From: Sergio Villar Senin Date: Fri, 6 Jul 2007 15:27:32 +0000 (+0000) Subject: * Execute all pending gtk+ events before destroying the dialogs X-Git-Tag: git_migration_finished~2923 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=1db27d4412e07c5782fc164d68ea639cbac60d09 * Execute all pending gtk+ events before destroying the dialogs pmo-trunk-r2615 --- diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index 174774e..ecc50bb 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -749,6 +749,9 @@ launch_sort_headers_dialog (GtkWindow *parent_window, modest_widget_memory_save (modest_runtime_get_conf (), G_OBJECT (header_view), MODEST_CONF_HEADER_VIEW_KEY); + while (gtk_events_pending ()) + gtk_main_iteration (); + /* free */ g_list_free(cols); } @@ -820,6 +823,9 @@ modest_platform_run_folder_name_dialog (GtkWindow *parent_window, gtk_widget_destroy (dialog); + while (gtk_events_pending ()) + gtk_main_iteration (); + return result; } @@ -869,6 +875,9 @@ modest_platform_run_confirmation_dialog (GtkWindow *parent_window, gtk_widget_destroy (GTK_WIDGET (dialog)); + while (gtk_events_pending ()) + gtk_main_iteration (); + return response; } @@ -889,6 +898,9 @@ modest_platform_run_yes_no_dialog (GtkWindow *parent_window, gtk_widget_destroy (GTK_WIDGET (dialog)); + while (gtk_events_pending ()) + gtk_main_iteration (); + return response; }