network: Remove unused hotspot connected label

This commit is contained in:
Robert Ancell 2019-10-18 13:50:04 +13:00 committed by Georges Basile Stavracas Neto
parent 4100c69d9c
commit 96585c1542
2 changed files with 4 additions and 44 deletions

View file

@ -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"));

View file

@ -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>