X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-utils.h;fp=src%2Fmodest-utils.h;h=a47b0d051642a10bdef844511563c0a92def0159;hp=a055cc000f6d474dd9d082fa55d27fb81e9ab885;hb=91526797480db76525e1295ec4a65f29f4bdc9cf;hpb=43d04cf5d20ab51e3440b10213670585d9d46fe5 diff --git a/src/modest-utils.h b/src/modest-utils.h index a055cc0..a47b0d0 100644 --- a/src/modest-utils.h +++ b/src/modest-utils.h @@ -124,4 +124,15 @@ void modest_utils_show_dialog_and_forget (GtkWindow *parent_window, GtkDialog *d */ void modest_utils_toggle_action_set_active_block_notify (GtkToggleAction *action, gboolean value); +/** + * modest_list_index: + * @list: a #TnyList + * @object: a #GObject + * + * finds the index of @object in @list + * + * Returns: the index of @object, or -1 if @object is not in @list + */ +gint modest_list_index (TnyList *list, GObject *object); + #endif /*__MODEST_MAEMO_UTILS_H__*/