[gnome-control-center] search: Use AdwPreferences{Page,Group}



commit e5a2281dbe0d16576140ef6bbe1ea825c5de0453
Author: Christopher Davis <christopherdavis gnome org>
Date:   Sat Jan 22 13:59:29 2022 -0800

    search: Use AdwPreferences{Page,Group}

 panels/search/cc-search-panel.ui | 40 +++++++---------------------------------
 1 file changed, 7 insertions(+), 33 deletions(-)
---
diff --git a/panels/search/cc-search-panel.ui b/panels/search/cc-search-panel.ui
index 46488bf87..06b54865c 100644
--- a/panels/search/cc-search-panel.ui
+++ b/panels/search/cc-search-panel.ui
@@ -19,41 +19,15 @@
     </child>
 
     <child type="content">
-      <object class="GtkScrolledWindow" id="search_vbox">
-        <property name="visible">True</property>
-        <property name="hscrollbar_policy">never</property>
+      <object class="AdwPreferencesPage" id="search_vbox">
         <child>
-          <object class="AdwClamp">
-            <property name="visible">True</property>
-            <property name="margin_top">32</property>
-            <property name="margin_bottom">32</property>
-            <property name="margin_start">12</property>
-            <property name="margin_end">12</property>
+          <object class="AdwPreferencesGroup">
+            <property name="description" translatable="yes">Control which search results are shown in the 
Activities Overview. The order of search results can also be changed by moving rows in the list.</property>
             <child>
-              <object class="GtkBox">
-                <property name="visible">True</property>
-                <property name="orientation">vertical</property>
-                <property name="hexpand">True</property>
-                <child>
-                  <object class="GtkLabel">
-                    <property name="visible">True</property>
-                    <property name="xalign">0.0</property>
-                    <property name="margin-bottom">20</property>
-                    <property name="wrap">True</property>
-                    <property name="label" translatable="yes">Control which search results are shown in the 
Activities Overview. The order of search results can also be changed by moving rows in the list.</property>
-                    <style>
-                      <class name="dim-label"/>
-                    </style>
-                  </object>
-                </child>
-                <child>
-                  <object class="GtkListBox" id="list_box">
-                    <property name="visible">True</property>
-                    <style>
-                      <class name="boxed-list"/>
-                    </style>
-                  </object>
-                </child>
+              <object class="GtkListBox" id="list_box">
+                <style>
+                  <class name="boxed-list"/>
+                </style>
               </object>
             </child>
           </object>


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