[gnome-control-center/wip/feborges/new-search-panel: 5/9] search: Move the gear button to the top of the panel



commit 226801c5662224b0fc165acb9aabd35c8f20e004
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Sep 21 14:33:43 2016 +0200

    search: Move the gear button to the top of the panel
    
    Also introduce usage instructions. These changes are
    according to the design guidelines available at
    https://wiki.gnome.org/Design/SystemSettings/Search

 panels/search/search.ui |   85 +++++++++++++++++++++++++++++++---------------
 1 files changed, 57 insertions(+), 28 deletions(-)
---
diff --git a/panels/search/search.ui b/panels/search/search.ui
index 96f14e5..48d3bdf 100644
--- a/panels/search/search.ui
+++ b/panels/search/search.ui
@@ -13,9 +13,65 @@
         <property name="margin-top">22</property>
         <property name="margin-bottom">22</property>
         <child>
+          <object class="GtkBox">
+            <property name="visible">True</property>
+            <property name="orientation">horizontal</property>
+            <property name="margin-bottom">22</property>
+            <child>
+              <object class="GtkLabel">
+                <property name="visible">True</property>
+                <property name="max-width-chars">60</property>
+                <property name="wrap">True</property>
+                <property name="wrap-mode">word</property>
+                <property name="xalign">0</property>
+                <property name="label" translatable="yes">Move items to change the order of search results 
in the Activities Overview</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkToolItem">
+                <property name="visible">True</property>
+                <property name="valign">center</property>
+                <child>
+                  <object class="GtkButton" id="settings_button">
+                    <property name="visible">True</property>
+                    <style>
+                      <class name="circular"/>
+                    </style>
+                    <child internal-child="accessible">
+                      <object class="AtkObject" id="settings_button_a11y">
+                        <property name="accessible-name" translatable="yes">Preferences</property>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GtkImage">
+                        <property name="visible">True</property>
+                        <property name="icon-name">emblem-system-symbolic</property>
+                        <property name="icon-size">1</property>
+                      </object>
+                    </child>
+                  </object>
+                </child>
+              </object>
+              <packing>
+                <property name="pack-type">end</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+        <child>
           <object class="GtkFrame" id="search_frame">
             <property name="visible">True</property>
           </object>
+          <packing>
+            <property name="expand">True</property>
+            <property name="fill">True</property>
+            <property name="position">1</property>
+          </packing>
         </child>
         <child>
           <object class="GtkToolbar" id="search_toolbar">
@@ -80,38 +136,11 @@
                 <property name="expand">True</property>
               </packing>
             </child>
-            <child>
-              <object class="GtkToolItem" id="settings_item">
-                <property name="visible">True</property>
-                <child>
-                  <object class="GtkBox" id="i_s_ud_box">
-                    <property name="visible">True</property>
-                    <child>
-                       <object class="GtkButton" id="settings_button">
-                         <property name="visible">True</property>
-                         <child internal-child="accessible">
-                           <object class="AtkObject" id="settings_button_a11y">
-                             <property name="accessible-name" translatable="yes">Preferences</property>
-                           </object>
-                         </child>
-                         <child>
-                            <object class="GtkImage" id="settings_image">
-                              <property name="visible">True</property>
-                              <property name="icon-name">emblem-system-symbolic</property>
-                              <property name="icon-size">1</property>
-                            </object>
-                         </child>
-                       </object>
-                    </child>
-                  </object>
-                </child>
-              </object>
-            </child>
           </object>
           <packing>
             <property name="expand">False</property>
             <property name="fill">True</property>
-            <property name="position">1</property>
+            <property name="position">2</property>
           </packing>
         </child>
       </object>


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