diff options
author | Javier Jardón <jjardon@gnome.org> | 2012-02-27 11:09:03 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2012-02-27 17:06:11 +0000 |
commit | df1ff836a8ba09bd9d17ba288ea297028b1bb756 (patch) | |
tree | c7b00b72a1141dc97a643b15d856c10bbe429754 | |
parent | f8ca9a86b2db668f7f36a2a95a3fae739a3f6257 (diff) | |
download | gtk+-df1ff836a8ba09bd9d17ba288ea297028b1bb756.tar.gz |
gtk/gtkapplication.c: Do not use gtk_dialog_run()
-rw-r--r-- | gtk/gtkapplication.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c index ed9d917b3d..cb9a082b61 100644 --- a/gtk/gtkapplication.c +++ b/gtk/gtkapplication.c @@ -1490,8 +1490,11 @@ idle_will_quit (gpointer data) _("%s cannot quit at this time:\n\n%s"), g_get_application_name (), inhibitor->reason); - gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); + g_signal_connect_swapped (dialog, + "response", + G_CALLBACK (gtk_widget_destroy), + dialog); + gtk_widget_show_all (dialog); } return G_SOURCE_REMOVE; |