mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
gtk/gtkapplication.c: Do not use gtk_dialog_run()
This commit is contained in:
parent
f8ca9a86b2
commit
df1ff836a8
@ -1490,8 +1490,11 @@ idle_will_quit (gpointer data)
|
|||||||
_("%s cannot quit at this time:\n\n%s"),
|
_("%s cannot quit at this time:\n\n%s"),
|
||||||
g_get_application_name (),
|
g_get_application_name (),
|
||||||
inhibitor->reason);
|
inhibitor->reason);
|
||||||
gtk_dialog_run (GTK_DIALOG (dialog));
|
g_signal_connect_swapped (dialog,
|
||||||
gtk_widget_destroy (dialog);
|
"response",
|
||||||
|
G_CALLBACK (gtk_widget_destroy),
|
||||||
|
dialog);
|
||||||
|
gtk_widget_show_all (dialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
return G_SOURCE_REMOVE;
|
return G_SOURCE_REMOVE;
|
||||||
|
Loading…
Reference in New Issue
Block a user