[gtk+/wip/matthiasc/kill-event-signals: 19/62] widget-factory: Stop connecting to ::delete-event



commit 6a25014e590f47a615e160774358a6feaf58488e
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 31 12:56:02 2017 -0500

    widget-factory: Stop connecting to ::delete-event
    
    We can use GtkWindow::hide-on-delete instead

 demos/widget-factory/widget-factory.ui |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index 6a5f5e2..cebe26b 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -3271,7 +3271,7 @@ microphone-sensitivity-medium-symbolic</property>
     <property name="text" translatable="yes">Do something?</property>
     <property name="secondary-text" translatable="yes">If you do something,
 bad things might happen.</property>
-    <signal name="delete-event" handler="gtk_widget_hide_on_delete"/>
+    <property name="hide-on-delete">1</property>
     <child type="action">
       <object class="GtkButton" id="cancel_info_dialog">
         <property name="label" translatable="yes">_Cancel</property>
@@ -3295,7 +3295,7 @@ bad things might happen.</property>
     <property name="modal">1</property>
     <property name="use-header-bar">1</property>
     <property name="title" translatable="yes">Zelda</property>
-    <signal name="delete-event" handler="gtk_widget_hide_on_delete"/>
+    <property name="hide-on-delete">1</property>
     <child internal-child="vbox">
       <object class="GtkBox">
         <child>
@@ -3331,7 +3331,7 @@ bad things might happen.</property>
     <property name="resizable">0</property>
     <property name="use-header-bar">1</property>
     <property name="title" translatable="yes">Settings</property>
-    <signal name="delete-event" handler="gtk_widget_hide_on_delete"/>
+    <property name="hide-on-delete">1</property>
     <child internal-child="vbox">
       <object class="GtkBox">
         <child>
@@ -3452,7 +3452,7 @@ bad things might happen.</property>
     <property name="modal">1</property>
     <property name="use-header-bar">1</property>
     <property name="title" translatable="yes">Choose one</property>
-    <signal name="delete-event" handler="gtk_widget_hide_on_delete"/>
+    <property name="hide-on-delete">1</property>
     <child internal-child="vbox">
       <object class="GtkBox">
         <child>


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