[gtk/gtk-4-2: 31/91] icon browser: Make header buttons not steal focus
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-4-2: 31/91] icon browser: Make header buttons not steal focus
- Date: Tue, 4 May 2021 02:05:40 +0000 (UTC)
commit 7b84ffd378ce2c93a95aed33375918992a2d741c
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Apr 11 15:27:52 2021 -0400
icon browser: Make header buttons not steal focus
This is rarely useful, and is confusing when it
happens as side-effect of dragging the window.
demos/icon-browser/window.ui | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/demos/icon-browser/window.ui b/demos/icon-browser/window.ui
index 17d745c218..137d3c7581 100644
--- a/demos/icon-browser/window.ui
+++ b/demos/icon-browser/window.ui
@@ -25,12 +25,14 @@
</style>
<child>
<object class="GtkToggleButton" id="normal_radio">
+ <property name="focus-on-click">0</property>
<property name="label" translatable="yes">Normal</property>
<property name="active">1</property>
</object>
</child>
<child>
<object class="GtkToggleButton" id="symbolic_radio">
+ <property name="focus-on-click">0</property>
<property name="label" translatable="yes">Symbolic</property>
<property name="group">normal_radio</property>
<signal name="notify::active" handler="symbolic_toggled" swapped="yes" after="yes"/>
@@ -40,6 +42,7 @@
</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>
@@ -47,6 +50,7 @@
</child>
<child type="end">
<object class="GtkToggleButton" id="search">
+ <property name="focus-on-click">0</property>
<style>
<class name="image-button"/>
</style>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]