mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
about dialog: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
This commit is contained in:
parent
c86e8d0e60
commit
59878f281f
@ -2510,12 +2510,10 @@ gtk_show_about_dialog (GtkWindow *parent,
|
||||
if (!dialog)
|
||||
{
|
||||
dialog = gtk_about_dialog_new ();
|
||||
gtk_window_set_hide_on_close (GTK_WINDOW (dialog), TRUE);
|
||||
|
||||
g_object_ref_sink (dialog);
|
||||
|
||||
g_signal_connect (dialog, "delete-event",
|
||||
G_CALLBACK (gtk_widget_hide_on_delete), NULL);
|
||||
|
||||
/* Close dialog on user response */
|
||||
g_signal_connect (dialog, "response",
|
||||
G_CALLBACK (close_cb), NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user