gtk-demo: Stop using ::delete-event

This commit is contained in:
Matthias Clasen 2017-12-31 12:54:42 -05:00
parent 67649763b6
commit eda3b43553
2 changed files with 1 additions and 3 deletions

View File

@ -296,8 +296,7 @@ do_list_store (GtkWidget *do_widget)
/* finish & show */
gtk_window_set_default_size (GTK_WINDOW (window), 280, 250);
g_signal_connect (window, "delete-event",
G_CALLBACK (window_closed), NULL);
g_signal_connect (window, "destroy", G_CALLBACK (window_closed), NULL);
}
if (!gtk_widget_get_visible (window))

View File

@ -19,7 +19,6 @@
<property name="default-width">800</property>
<property name="default-height">600</property>
<property name="title">GTK+ Demo</property>
<signal name="delete-event" handler="gtk_false" swapped="no"/>
<signal name="destroy" handler="gtk_main_quit" swapped="no"/>
<child type="titlebar">
<object class="GtkHeaderBar" id="headerbar">