[gnome-control-center] wwan: apn-dialog: Use AdwPreferencesPage



commit 7da8101446aaab02da9568ab0d3ec26a0c259d92
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Thu Feb 3 14:49:01 2022 +0530

    wwan: apn-dialog: Use AdwPreferencesPage
    
    This fixes the listbox content being cut of with the scrolled window.

 panels/wwan/cc-wwan-apn-dialog.ui | 56 +++++++++++++++++----------------------
 1 file changed, 25 insertions(+), 31 deletions(-)
---
diff --git a/panels/wwan/cc-wwan-apn-dialog.ui b/panels/wwan/cc-wwan-apn-dialog.ui
index eb5b748b9..0c88e4a84 100644
--- a/panels/wwan/cc-wwan-apn-dialog.ui
+++ b/panels/wwan/cc-wwan-apn-dialog.ui
@@ -52,44 +52,39 @@
     </child>
 
     <child>
-      <object class="GtkBox">
-        <property name="width-request">340</property>
-        <property name="height-request">360</property>
+      <object class="GtkStack" id="apn_settings_stack">
+        <property name="transition-type">slide-left-right</property>
 
+        <!-- Access Point List -->
         <child>
-          <object class="AdwClamp">
-            <property name="margin-top">32</property>
-            <property name="margin-bottom">32</property>
-
+          <object class="AdwPreferencesPage" id="apn_list_view">
             <child>
-              <object class="GtkStack" id="apn_settings_stack">
-                <property name="transition-type">slide-left-right</property>
-
-                <!-- Access Point List -->
+              <object class="AdwPreferencesGroup">
                 <child>
-                  <object class="GtkScrolledWindow" id="apn_list_view">
-                    <property name="margin-start">18</property>
-                    <property name="margin-end">18</property>
-                    <property name="child">
-                      <object class="GtkListBox" id="apn_list">
-                        <property name="valign">start</property>
-                        <property name="selection-mode">none</property>
-                        <signal name="row-activated" handler="cc_wwan_apn_activated_cb" swapped="yes"/>
-                        <style>
-                          <class name="boxed-list"/>
-                        </style>
-                      </object>
-                    </property>
+                  <object class="GtkListBox" id="apn_list">
+                    <property name="valign">start</property>
+                    <property name="selection-mode">none</property>
+                    <signal name="row-activated" handler="cc_wwan_apn_activated_cb" swapped="yes"/>
+                    <style>
+                      <class name="boxed-list"/>
+                    </style>
                   </object>
                 </child>
+              </object>
+            </child>
 
+          </object>
+        </child>
+
+        <child>
+          <object class="AdwPreferencesPage" id="apn_edit_view">
+            <child>
+              <object class="AdwPreferencesGroup">
                 <child>
-                  <object class="GtkGrid" id="apn_edit_view">
+                  <object class="GtkGrid">
                     <property name="orientation">vertical</property>
                     <property name="hexpand">True</property>
                     <property name="vexpand">True</property>
-                    <property name="margin-start">18</property>
-                    <property name="margin-end">18</property>
                     <property name="row-spacing">6</property>
                     <property name="column-spacing">12</property>
 
@@ -196,14 +191,13 @@
 
                   </object>
                 </child>
-
-              </object> <!-- ./GtkStack apn_settings_stack -->
+              </object> <!-- ./AdwPreferencesGroup -->
             </child>
           </object>
         </child>
-      </object>
-    </child>
 
+      </object> <!-- ./GtkStack apn_settings_stack -->
+    </child>
   </template>
 
   <!-- A simple hack to create a radio button group -->


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