[gnome-control-center] Clean up wifi panel widgets in correct order
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Clean up wifi panel widgets in correct order
- Date: Tue, 30 Jun 2020 04:04:54 +0000 (UTC)
commit a2e494f418f448ba7e6d389979fc3cfb7708a3be
Author: Jamison Lofthouse <jamison lofthouse gmail com>
Date: Wed Jun 24 12:22:33 2020 -0400
Clean up wifi panel widgets in correct order
panels/network/cc-wifi-panel.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/panels/network/cc-wifi-panel.c b/panels/network/cc-wifi-panel.c
index e5a81a489..95e01f28b 100644
--- a/panels/network/cc-wifi-panel.c
+++ b/panels/network/cc-wifi-panel.c
@@ -180,13 +180,6 @@ remove_wifi_device (CcWifiPanel *self,
id = nm_device_get_udi (device);
- /* Destroy all stack pages related to this device */
- child = gtk_stack_get_child_by_name (self->stack, id);
- gtk_widget_destroy (child);
-
- child = gtk_stack_get_child_by_name (self->header_stack, id);
- gtk_widget_destroy (child);
-
/* Remove from the devices list */
for (i = 0; i < self->devices->len; i++)
{
@@ -199,6 +192,13 @@ remove_wifi_device (CcWifiPanel *self,
}
}
+ /* Destroy all stack pages related to this device */
+ child = gtk_stack_get_child_by_name (self->stack, id);
+ gtk_widget_destroy (child);
+
+ child = gtk_stack_get_child_by_name (self->header_stack, id);
+ gtk_widget_destroy (child);
+
/* Update the title widget */
update_devices_names (self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]