X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmaemo%2Fmodest-maemo-utils.h;h=3bae92058361ff87fb56ac55c0c2c31379af8f71;hb=c23c9b6cc6be2bcdb5630e3855f2d9d518a49190;hp=ec99530451157ca4f5423598ad9450a35350c275;hpb=47b04b1e03f3599c7c77b5040baf7ad58aa3802b;p=modest diff --git a/src/maemo/modest-maemo-utils.h b/src/maemo/modest-maemo-utils.h index ec99530..3bae920 100644 --- a/src/maemo/modest-maemo-utils.h +++ b/src/maemo/modest-maemo-utils.h @@ -132,6 +132,16 @@ 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_information_note_in_main_context_and_forget: + * @parent_window: The window for which the note should be transient. + * @message: The text to show. + * + * This calls modest_maemo_show_information_note_and_forget() in an idle handler. + * This should be used when you are not sure that you are in the main context, + * because you should try to use GTK+ UI code only in the main context. + */ +void modest_maemo_show_information_note_in_main_context_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. @@ -145,4 +155,13 @@ void modest_maemo_show_dialog_and_forget (GtkWindow *parent_window, GtkDialog *d 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__*/