[polari] ui: Do not grab focus from titlebar buttons



commit cdff0f3a0c43266de4b61ec3ae683a3d3c9b29e2
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Jul 28 19:09:49 2013 +0200

    ui: Do not grab focus from titlebar buttons
    
    In general, keyboard focus should leave the main input entry as
    little as possible; in particular for the titlebar buttons, there's
    absolutely no reason to do so ...

 data/resources/main-window.ui |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/data/resources/main-window.ui b/data/resources/main-window.ui
index 896413c..1f4f8ee 100644
--- a/data/resources/main-window.ui
+++ b/data/resources/main-window.ui
@@ -42,7 +42,6 @@
               <object class="GtkMenuButton" id="button1">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
-                <property name="receives_default">True</property>
                 <property name="halign">end</property>
                 <property name="valign">center</property>
                 <property name="margin-left">6</property>
@@ -68,7 +67,7 @@
               <object class="GtkButton" id="button2">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
-                <property name="receives_default">True</property>
+                <property name="focus_on_click">False</property>
                 <property name="halign">center</property>
                 <property name="valign">center</property>
                 <property name="action_name">app.leave-room</property>
@@ -117,7 +116,7 @@
               <object class="GtkToggleButton" id="button3">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
-                <property name="receives_default">True</property>
+                <property name="focus_on_click">False</property>
                 <property name="halign">center</property>
                 <property name="valign">center</property>
                 <property name="action_name">app.user-list</property>
@@ -141,7 +140,7 @@
               <object class="GtkButton" id="button4">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
-                <property name="receives_default">True</property>
+                <property name="focus_on_click">False</property>
                 <property name="halign">center</property>
                 <property name="valign">center</property>
                 <property name="action_name">app.quit</property>


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