[Xfce4-commits] <exo:exo-helper-overhaul> Iterate the mainloop so the dialog is fully destroyed before executing.
Nick Schermer
nick at xfce.org
Wed Aug 26 18:44:04 CEST 2009
Updating branch refs/heads/exo-helper-overhaul
to a16361e2f7684ac84d9e80008969e3a7db5a5838 (commit)
from 4a3b8878bde0e18faae459e1a530bbd0f6c24aee (commit)
commit a16361e2f7684ac84d9e80008969e3a7db5a5838
Author: Nick Schermer <nick at xfce.org>
Date: Wed Aug 26 18:08:10 2009 +0200
Iterate the mainloop so the dialog is fully destroyed before executing.
exo-helper/main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/exo-helper/main.c b/exo-helper/main.c
index bfd6336..5cbfaf7 100644
--- a/exo-helper/main.c
+++ b/exo-helper/main.c
@@ -168,6 +168,10 @@ main (int argc, char **argv)
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK)
helper = exo_helper_database_get_default (database, category);
gtk_widget_destroy (dialog);
+
+ /* iterate the mainloop until the dialog is fully destroyed */
+ while (gtk_events_pending ())
+ gtk_main_iteration ();
}
/* release our reference on the database */
More information about the Xfce4-commits
mailing list