about dialog: Stop connecting to ::delete-event

We can just use GtkWindow::hide-on-close.
This commit is contained in:
Matthias Clasen 2017-12-31 11:40:42 -05:00
parent c86e8d0e60
commit 59878f281f

View File

@ -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);