[gtk/wip/matthiasc/popup4: 91/94] widget-factory: Stop setting has-default in ui files
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup4: 91/94] widget-factory: Stop setting has-default in ui files
- Date: Sat, 27 Apr 2019 04:49:03 +0000 (UTC)
commit 35934a4c6f021c9955d8cc3f61765440f9368509
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Apr 27 03:47:28 2019 +0000
widget-factory: Stop setting has-default in ui files
We can just set the default-widget property. The
special handling for has-default in ui files is
going away.
demos/widget-factory/widget-factory.ui | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index eae1800f30..2c077faac4 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -3154,6 +3154,7 @@ bad things might happen.</property>
<property name="use-header-bar">1</property>
<property name="title" translatable="yes">Zelda</property>
<property name="hide-on-close">1</property>
+ <property name="default-widget">act_action_dialog</property>
<child internal-child="content_area">
<object class="GtkBox">
<child>
@@ -3176,7 +3177,6 @@ bad things might happen.</property>
<child type="action">
<object class="GtkButton" id="act_action_dialog">
<property name="can-default">1</property>
- <property name="has-default">1</property>
<property name="label" translatable="yes">_Act</property>
<property name="use-underline">1</property>
</object>
@@ -3314,6 +3314,7 @@ bad things might happen.</property>
<property name="use-header-bar">1</property>
<property name="title" translatable="yes">Choose one</property>
<property name="hide-on-close">1</property>
+ <property name="default-widget">select_selection_dialog</property>
<child internal-child="content_area">
<object class="GtkBox">
<child>
@@ -3336,7 +3337,6 @@ bad things might happen.</property>
<child type="action">
<object class="GtkButton" id="select_selection_dialog">
<property name="can-default">1</property>
- <property name="has-default">1</property>
<property name="label" translatable="yes">_Select</property>
<property name="use-underline">1</property>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]