diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-10-03 14:16:51 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-10-03 14:16:51 +0800 |
commit | 7a102381acf224110cfe32fcc0905a103268abde (patch) | |
tree | 3797369272088bdacc8706e1abff2eca92e1bdfe /calendar/gui/misc.c | |
parent | 263e728c125f4312867084d9b85b41caabec6a4f (diff) | |
download | gsoc2013-evolution-7a102381acf224110cfe32fcc0905a103268abde.tar gsoc2013-evolution-7a102381acf224110cfe32fcc0905a103268abde.tar.gz gsoc2013-evolution-7a102381acf224110cfe32fcc0905a103268abde.tar.bz2 gsoc2013-evolution-7a102381acf224110cfe32fcc0905a103268abde.tar.lz gsoc2013-evolution-7a102381acf224110cfe32fcc0905a103268abde.tar.xz gsoc2013-evolution-7a102381acf224110cfe32fcc0905a103268abde.tar.zst gsoc2013-evolution-7a102381acf224110cfe32fcc0905a103268abde.zip |
fixes #264449.
svn path=/trunk/; revision=30467
Diffstat (limited to 'calendar/gui/misc.c')
-rw-r--r-- | calendar/gui/misc.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/calendar/gui/misc.c b/calendar/gui/misc.c index 332283172b..026cd8417e 100644 --- a/calendar/gui/misc.c +++ b/calendar/gui/misc.c @@ -78,3 +78,16 @@ get_uri_without_password (const char *full_uri) return uristr; } + +gint +get_position_in_array (GPtrArray *objects, gpointer item) +{ + gint i; + + for (i = 0; i < objects->len; i++) { + if (g_ptr_array_index (objects, i) == item) + return i; + } + + return -1; +} |