[gtk+/wip/matthiasc/kill-event-signals: 16/58] widget-factory: Stop connecting to ::delete-event
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/kill-event-signals: 16/58] widget-factory: Stop connecting to ::delete-event
- Date: Wed, 3 Jan 2018 03:03:17 +0000 (UTC)
commit e2d5b6ad4226d8cff0a705092fcc000b23b29402
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-close 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..34d8813 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-close">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-close">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-close">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-close">1</property>
<child internal-child="vbox">
<object class="GtkBox">
<child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]