X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmaemo%2Fmodest-maemo-utils.c;h=3f5eff255e3b5bd4d92e37b24233d1a466028298;hp=bb9862c7990b23530e9049710df825f9a51f2d90;hb=434f59409e20ea0ae3a828422d1c9cc91fdde8fa;hpb=73cad43f81a906f0d597301052e2b1628317a622 diff --git a/src/maemo/modest-maemo-utils.c b/src/maemo/modest-maemo-utils.c index bb9862c..3f5eff2 100644 --- a/src/maemo/modest-maemo-utils.c +++ b/src/maemo/modest-maemo-utils.c @@ -507,3 +507,20 @@ modest_maemo_utils_setup_images_filechooser (GtkFileChooser *chooser) #endif } + +static void +on_response (GtkDialog *dialog, gint response, gpointer user_data) +{ + /* Just destroy the dialog: */ + gtk_widget_destroy (GTK_WIDGET (dialog)); +} + +void modest_maemo_show_information_note_and_forget (GtkWindow *parent_window, const gchar* message) +{ + GtkDialog *dialog = GTK_DIALOG (hildon_note_new_information (parent_window, message)); + + /* Destroy the dialog when it is closed: */ + g_signal_connect (G_OBJECT (dialog), "response", G_CALLBACK (on_response), NULL); + gtk_widget_show (GTK_WIDGET (dialog)); +} +