X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmaemo%2Fmodest-maemo-utils.h;h=3fa9ef3d700f85526509bc4a66370b9604e63fb5;hb=564e10a66fdd0e9bfcdbd3ab98c10cb1b66f6633;hp=9aade8c04a376a1bdca83083e2241fb3793a2009;hpb=832c77270a9a6f2ecbf7f42aeda724bffdc29749;p=modest diff --git a/src/maemo/modest-maemo-utils.h b/src/maemo/modest-maemo-utils.h index 9aade8c..3fa9ef3 100644 --- a/src/maemo/modest-maemo-utils.h +++ b/src/maemo/modest-maemo-utils.h @@ -132,7 +132,26 @@ void modest_maemo_utils_setup_images_filechooser (GtkFileChooser *chooser); */ void modest_maemo_show_information_note_and_forget (GtkWindow *parent_window, const gchar* message); +/** modest_maemo_show_dialog_and_forget: + * @parent_window: The window for which the note should be transient. + * @message: The dialog to show. + * + * Show the dialog and destroy it when it is closed, without + * blocking. Use this when you don't want to use gtk_dialog_run(), which might lead + * to hangs. + */ +void modest_maemo_show_dialog_and_forget (GtkWindow *parent_window, GtkDialog *dialog); + void modest_maemo_set_thumbable_scrollbar (GtkScrolledWindow *win, gboolean thumbable); +/** + * modest_maemo_toggle_action_set_active_block_notify: + * @action: a #GtkToggleAction + * @value: a #gboolean + * + * updates the toggle action active status, but blocking the notification of the changes. + */ +void modest_maemo_toggle_action_set_active_block_notify (GtkToggleAction *action, gboolean value); + #endif /*__MODEST_MAEMO_UTILS_H__*/