[totem] grilo: Reorder buttons on the header bar



commit 7487418fea5b68c2438fc3e6076ba870978624f3
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 15 18:14:10 2014 +0100

    grilo: Reorder buttons on the header bar
    
    To match gnome-documents:
    - Search then select, Cancel replaced select button
    - Rename "Done" to "Cancel"
    - Remove "suggested-action" class from Cancel

 src/plugins/grilo/totemmaintoolbar.ui |   52 ++++++++++++++++----------------
 1 files changed, 26 insertions(+), 26 deletions(-)
---
diff --git a/src/plugins/grilo/totemmaintoolbar.ui b/src/plugins/grilo/totemmaintoolbar.ui
index 83dd058..0de565c 100644
--- a/src/plugins/grilo/totemmaintoolbar.ui
+++ b/src/plugins/grilo/totemmaintoolbar.ui
@@ -39,23 +39,23 @@
           </packing>
         </child>
         <child>
-          <object class="GtkToggleButton" id="search_button">
+          <object class="GtkToggleButton" id="select_button">
             <property name="visible">True</property>
             <property name="can_focus">True</property>
             <property name="receives_default">True</property>
             <child internal-child="accessible">
-              <object class="AtkObject" id="search-button-atkobject">
-                <property name="AtkObject::accessible-name" translatable="yes">Search</property>
+              <object class="AtkObject" id="select-button-atkobject">
+                <property name="AtkObject::accessible-name" translatable="yes">Select</property>
               </object>
            </child>
             <style>
               <class name="image-button"/>
             </style>
             <child>
-              <object class="GtkImage" id="image2">
+              <object class="GtkImage" id="image1">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
-                <property name="icon_name">edit-find-symbolic</property>
+                <property name="icon_name">object-select-symbolic</property>
                 <property name="icon_size">1</property>
               </object>
             </child>
@@ -65,52 +65,52 @@
           </packing>
         </child>
         <child>
-          <object class="GtkToggleButton" id="select_button">
-            <property name="visible">True</property>
+          <object class="GtkButton" id="done_button">
+            <property name="visible">False</property>
+            <property name="no-show-all">True</property>
             <property name="can_focus">True</property>
             <property name="receives_default">True</property>
+            <property name="label" translatable="yes">Cancel</property>
             <child internal-child="accessible">
-              <object class="AtkObject" id="select-button-atkobject">
-                <property name="AtkObject::accessible-name" translatable="yes">Select</property>
+              <object class="AtkObject" id="done-button-atkobject">
+                <property name="AtkObject::accessible-name" translatable="yes">Cancel</property>
               </object>
            </child>
             <style>
-              <class name="image-button"/>
+              <class name="text-button"/>
             </style>
-            <child>
-              <object class="GtkImage" id="image1">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="icon_name">object-select-symbolic</property>
-                <property name="icon_size">1</property>
-              </object>
-            </child>
           </object>
           <packing>
             <property name="pack_type">end</property>
           </packing>
         </child>
         <child>
-          <object class="GtkButton" id="done_button">
-            <property name="visible">False</property>
-            <property name="no-show-all">True</property>
+          <object class="GtkToggleButton" id="search_button">
+            <property name="visible">True</property>
             <property name="can_focus">True</property>
             <property name="receives_default">True</property>
-            <property name="label" translatable="yes">Done</property>
             <child internal-child="accessible">
-              <object class="AtkObject" id="done-button-atkobject">
-                <property name="AtkObject::accessible-name" translatable="yes">Done</property>
+              <object class="AtkObject" id="search-button-atkobject">
+                <property name="AtkObject::accessible-name" translatable="yes">Search</property>
               </object>
            </child>
             <style>
-              <class name="suggested-action"/>
-              <class name="text-button"/>
+              <class name="image-button"/>
             </style>
+            <child>
+              <object class="GtkImage" id="image2">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="icon_name">edit-find-symbolic</property>
+                <property name="icon_size">1</property>
+              </object>
+            </child>
           </object>
           <packing>
             <property name="pack_type">end</property>
           </packing>
         </child>
+
         <child type="title">
           <object class="GtkStack" id="stack">
             <property name="visible">True</property>


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