[gnome-control-center] network: Show VPN empty state by default



commit 43b61571c1b2f1d7badea7564363f733f9b9cb46
Author: Athul Iddya <athul iddya com>
Date:   Tue Aug 9 19:21:12 2022 -0700

    network: Show VPN empty state by default
    
    The network panel used to show an empty box under the VPN header at
    start up if no VPNs were present instead of the empty state. This was
    because the GtkListBox containing VPN connections was visible by
    default instead of the empty state widget.
    
    To fix this, the empty state widget has been moved to the top in the
    GtkStack to show it by default. If any VPN connections are found during
    initialization, `cc-network-panel` already handles setting the
    visibility of the appropriate widget correctly.
    
    Fixes: #1634

 panels/network/cc-network-panel.ui | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/panels/network/cc-network-panel.ui b/panels/network/cc-network-panel.ui
index 760bfbb1f..1ae10093e 100644
--- a/panels/network/cc-network-panel.ui
+++ b/panels/network/cc-network-panel.ui
@@ -49,17 +49,6 @@
             </property>
             <child>
               <object class="GtkStack" id="vpn_stack">
-                <child>
-                  <object class="GtkListBox" id="box_vpn">
-                    <property name="selection_mode">none</property>
-                    <accessibility>
-                      <property name="label" translatable="yes">VPN</property>
-                    </accessibility>
-                    <style>
-                      <class name="boxed-list" />
-                    </style>
-                  </object>
-                </child>
                 <child>
                   <!-- "Not set up" row -->
                   <object class="GtkListBox" id="empty_listbox">
@@ -75,6 +64,17 @@
                     </child>
                   </object>
                 </child>
+                <child>
+                  <object class="GtkListBox" id="box_vpn">
+                    <property name="selection_mode">none</property>
+                    <accessibility>
+                      <property name="label" translatable="yes">VPN</property>
+                    </accessibility>
+                    <style>
+                      <class name="boxed-list" />
+                    </style>
+                  </object>
+                </child>
               </object>
             </child>
           </object>


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