[gtk+] gtk-demo: Stop using ::delete-event



commit eda3b435536b23aaffd353fd499366d5c039db02
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 31 12:54:42 2017 -0500

    gtk-demo: Stop using ::delete-event

 demos/gtk-demo/list_store.c |    3 +--
 demos/gtk-demo/main.ui      |    1 -
 2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/demos/gtk-demo/list_store.c b/demos/gtk-demo/list_store.c
index 84b6572..3055eb2 100644
--- a/demos/gtk-demo/list_store.c
+++ b/demos/gtk-demo/list_store.c
@@ -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))
diff --git a/demos/gtk-demo/main.ui b/demos/gtk-demo/main.ui
index 7e16168..e02808c 100644
--- a/demos/gtk-demo/main.ui
+++ b/demos/gtk-demo/main.ui
@@ -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">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]