summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-11 15:31:31 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-04-11 15:32:15 -0400
commitae41697d83b884ace141d731c2cfaed0b870e0c5 (patch)
tree45a19e8595551111cf45f5dbfa24f1cedd9ff0fb
parente2fb59798e41d40a2a45d243c40a8add9a3d111b (diff)
downloadgtk+-ae41697d83b884ace141d731c2cfaed0b870e0c5.tar.gz
node-editor: Make header buttons not steal focus
This is rarely useful, and is confusing when it happens as side-effect of dragging the window.
-rw-r--r--demos/node-editor/node-editor-window.ui7
1 files changed, 7 insertions, 0 deletions
diff --git a/demos/node-editor/node-editor-window.ui b/demos/node-editor/node-editor-window.ui
index fc26719819..6b492390d6 100644
--- a/demos/node-editor/node-editor-window.ui
+++ b/demos/node-editor/node-editor-window.ui
@@ -102,6 +102,7 @@
<object class="GtkHeaderBar" id="header">
<child type="start">
<object class="GtkButton">
+ <property name="focus-on-click">0</property>
<property name="icon-name">document-open-symbolic</property>
<property name="tooltip-text">Open node file</property>
<signal name="clicked" handler="open_cb"/>
@@ -109,6 +110,7 @@
</child>
<child type="start">
<object class="GtkButton">
+ <property name="focus-on-click">0</property>
<property name="icon-name">document-save-symbolic</property>
<property name="tooltip-text">Save to node file</property>
<signal name="clicked" handler="save_cb"/>
@@ -116,6 +118,7 @@
</child>
<child type="start">
<object class="GtkButton">
+ <property name="focus-on-click">0</property>
<property name="icon-name">insert-image-symbolic</property>
<property name="tooltip-text">Export to image</property>
<signal name="clicked" handler="export_image_cb"/>
@@ -123,6 +126,7 @@
</child>
<child type="start">
<object class="GtkButton">
+ <property name="focus-on-click">0</property>
<property name="icon-name">edit-copy-symbolic</property>
<property name="tooltip-text">Copy image to clipboard</property>
<signal name="clicked" handler="clip_image_cb"/>
@@ -130,12 +134,14 @@
</child>
<child type="start">
<object class="GtkMenuButton">
+ <property name="focus-on-click">0</property>
<property name="label">Save Testcase</property>
<property name="popover">testcase_popover</property>
</object>
</child>
<child type="end">
<object class="GtkMenuButton" id="gear_menu_button">
+ <property name="focus-on-click">0</property>
<property name="valign">center</property>
<property name="menu-model">gear_menu</property>
<property name="icon-name">open-menu-symbolic</property>
@@ -143,6 +149,7 @@
</child>
<child type="end">
<object class="GtkToggleButton" id="dark_bg_button">
+ <property name="focus-on-click">0</property>
<property name="valign">center</property>
<property name="has-frame">0</property>
<property name="icon-name">display-brightness-symbolic</property>