diff options
-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; |