forked from AuroraMiddleware/gtk
gtk-demo: Stop using ::delete-event
This commit is contained in:
parent
67649763b6
commit
eda3b43553
@ -296,8 +296,7 @@ do_list_store (GtkWidget *do_widget)
|
|||||||
|
|
||||||
/* finish & show */
|
/* finish & show */
|
||||||
gtk_window_set_default_size (GTK_WINDOW (window), 280, 250);
|
gtk_window_set_default_size (GTK_WINDOW (window), 280, 250);
|
||||||
g_signal_connect (window, "delete-event",
|
g_signal_connect (window, "destroy", G_CALLBACK (window_closed), NULL);
|
||||||
G_CALLBACK (window_closed), NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gtk_widget_get_visible (window))
|
if (!gtk_widget_get_visible (window))
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
<property name="default-width">800</property>
|
<property name="default-width">800</property>
|
||||||
<property name="default-height">600</property>
|
<property name="default-height">600</property>
|
||||||
<property name="title">GTK+ Demo</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"/>
|
<signal name="destroy" handler="gtk_main_quit" swapped="no"/>
|
||||||
<child type="titlebar">
|
<child type="titlebar">
|
||||||
<object class="GtkHeaderBar" id="headerbar">
|
<object class="GtkHeaderBar" id="headerbar">
|
||||||
|
Loading…
Reference in New Issue
Block a user