[recipes] Improve keynav in the recipe conflict dialog



commit 6e7844e7bcc7e99222f0149444aa38ae546d432c
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 9 21:53:28 2017 -0500

    Improve keynav in the recipe conflict dialog
    
    Make the entry activate the default widget, and make the
    rename button the default.

 src/recipe-conflict-dialog.ui |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/recipe-conflict-dialog.ui b/src/recipe-conflict-dialog.ui
index 02d94e4..0af0cd1 100644
--- a/src/recipe-conflict-dialog.ui
+++ b/src/recipe-conflict-dialog.ui
@@ -14,6 +14,7 @@
       <object class="GtkButton" id="button_rename">
         <property name="visible">1</property>
         <property name="sensitive">0</property>
+        <property name="can-default">1</property>
         <property name="label" translatable="yes">Rename</property>
       </object>
     </child>
@@ -40,6 +41,7 @@
             <child>
               <object class="GtkEntry" id="name_entry">
                 <property name="visible">1</property>
+                <property name="activates-default">1</property>
               </object>
             </child>
           </object>
@@ -48,7 +50,7 @@
     </child>
     <action-widgets>
       <action-widget response="cancel">button_same</action-widget>
-      <action-widget response="apply">button_rename</action-widget>
+      <action-widget response="apply" default="true">button_rename</action-widget>
     </action-widgets>
     <initial-focus name="name_entry"/>
   </object>


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