[gnome-control-center] network: Remove unused hotspot connected label



commit 96585c1542aee0970b3caac67c27c60713fc6993
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Oct 18 13:50:04 2019 +1300

    network: Remove unused hotspot connected label

 panels/network/net-device-wifi.c |  5 -----
 panels/network/network-wifi.ui   | 43 ++++------------------------------------
 2 files changed, 4 insertions(+), 44 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 473ba180d..ce96ccc3e 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -64,8 +64,6 @@ struct _NetDeviceWifi
         GtkSwitch               *device_off_switch;
         GtkBox                  *header_box;
         GtkButton               *history_button;
-        GtkLabel                *hotspot_connected_heading_label;
-        GtkLabel                *hotspot_connected_label;
         GtkLabel                *hotspot_network_name_heading_label;
         GtkLabel                *hotspot_network_name_label;
         GtkSwitch               *hotspot_off_switch;
@@ -334,7 +332,6 @@ nm_device_wifi_refresh_hotspot (NetDeviceWifi *self)
         panel_set_device_widget_details (self->hotspot_network_name_heading_label, 
self->hotspot_network_name_label, hotspot_ssid);
         panel_set_device_widget_details (self->hotspot_security_key_heading_label, 
self->hotspot_security_key_label, hotspot_secret);
         panel_set_device_widget_details (self->hotspot_security_heading_label, self->hotspot_security_label, 
hotspot_security);
-        panel_set_device_widget_details (self->hotspot_connected_heading_label, 
self->hotspot_connected_label, NULL);
 }
 
 static void
@@ -1410,8 +1407,6 @@ net_device_wifi_init (NetDeviceWifi *self)
         self->device_off_switch = GTK_SWITCH (gtk_builder_get_object (self->builder, "device_off_switch"));
         self->header_box = GTK_BOX (gtk_builder_get_object (self->builder, "header_box"));
         self->history_button = GTK_BUTTON (gtk_builder_get_object (self->builder, "history_button"));
-        self->hotspot_connected_heading_label = GTK_LABEL (gtk_builder_get_object (self->builder, 
"hotspot_connected_heading_label"));
-        self->hotspot_connected_label = GTK_LABEL (gtk_builder_get_object (self->builder, 
"hotspot_connected_label"));
         self->hotspot_network_name_heading_label = GTK_LABEL (gtk_builder_get_object (self->builder, 
"hotspot_network_name_heading_label"));
         self->hotspot_network_name_label = GTK_LABEL (gtk_builder_get_object (self->builder, 
"hotspot_network_name_label"));
         self->hotspot_off_switch = GTK_SWITCH (gtk_builder_get_object (self->builder, "hotspot_off_switch"));
diff --git a/panels/network/network-wifi.ui b/panels/network/network-wifi.ui
index ba758485f..4b2f1b651 100644
--- a/panels/network/network-wifi.ui
+++ b/panels/network/network-wifi.ui
@@ -118,24 +118,6 @@
                 <property name="height">1</property>
               </packing>
             </child>
-            <child>
-              <object class="GtkLabel" id="hotspot_connected_heading_label">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="xalign">1</property>
-                <property name="label" translatable="yes">Connected Devices</property>
-                <property name="mnemonic_widget">hotspot_connected_label</property>
-                <style>
-                  <class name="dim-label"/>
-                </style>
-              </object>
-              <packing>
-                <property name="left_attach">0</property>
-                <property name="top_attach">1</property>
-                <property name="width">1</property>
-                <property name="height">1</property>
-              </packing>
-            </child>
             <child>
               <object class="GtkLabel" id="hotspot_security_heading_label">
                 <property name="visible">True</property>
@@ -149,7 +131,7 @@
               </object>
               <packing>
                 <property name="left_attach">0</property>
-                <property name="top_attach">2</property>
+                <property name="top_attach">1</property>
                 <property name="width">1</property>
                 <property name="height">1</property>
               </packing>
@@ -171,23 +153,6 @@
                 <property name="height">1</property>
               </packing>
             </child>
-            <child>
-              <object class="GtkLabel" id="hotspot_connected_label">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="xalign">0</property>
-                <property name="label"></property>
-                <property name="selectable">True</property>
-                <property name="max-width-chars">50</property>
-                <property name="ellipsize">end</property>
-              </object>
-              <packing>
-                <property name="left_attach">1</property>
-                <property name="top_attach">1</property>
-                <property name="width">1</property>
-                <property name="height">1</property>
-              </packing>
-            </child>
             <child>
               <object class="GtkLabel" id="hotspot_security_label">
                 <property name="visible">True</property>
@@ -200,7 +165,7 @@
               </object>
               <packing>
                 <property name="left_attach">1</property>
-                <property name="top_attach">2</property>
+                <property name="top_attach">1</property>
                 <property name="width">1</property>
                 <property name="height">1</property>
               </packing>
@@ -218,7 +183,7 @@
               </object>
               <packing>
                 <property name="left_attach">0</property>
-                <property name="top_attach">3</property>
+                <property name="top_attach">2</property>
                 <property name="width">1</property>
                 <property name="height">1</property>
               </packing>
@@ -238,7 +203,7 @@
               </object>
               <packing>
                 <property name="left_attach">1</property>
-                <property name="top_attach">3</property>
+                <property name="top_attach">2</property>
                 <property name="width">1</property>
                 <property name="height">1</property>
               </packing>


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