[PATCH newui] Network spoke: don't show widgets hidden on purpose after spoke refresh.

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

 



This should fix
http://www.redhat.com/archives/anaconda-devel-list/2012-June/msg00166.html
---
 pyanaconda/ui/gui/spokes/network.py |   29 ++++++++++++++++++++---------
 1 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index fab315f..a7eb3b6 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -232,15 +232,26 @@ class NetworkControlBox():
         self.builder.get_object("add_toolbutton").set_sensitive(False)
         self.builder.get_object("remove_toolbutton").set_sensitive(False)
 
-        for id in ["start_hotspot_button",
-                   "stop_hotspot_button",
-                   "heading_hotspot_network_name",
-                   "heading_hotspot_security_key",
-                   "label_hotspot_network_name",
-                   "label_hotspot_security_key",
-                   "devices_toolbar",
-                   "hbox54",
-                  ]:
+        not_supported = ["start_hotspot_button",
+                         "stop_hotspot_button",
+                         "heading_hotspot_network_name",
+                         "heading_hotspot_security_key",
+                         "label_hotspot_network_name",
+                         "label_hotspot_security_key",
+                         "devices_toolbar",
+                         "hbox54",
+                        ]
+
+        do_not_show_in_refresh = ["heading_wireless_network_name",
+                                  "combobox_wireless_network_name"]
+        do_not_show_in_refresh += ["%s_%s_%s" % (widget, type, value)
+                                   for widget in ["heading", "label"]
+                                   for type in ["wired", "wireless"]
+                                   for value in ["ipv4", "ipv6", "dns", "route"]]
+        do_not_show_in_refresh += ["%s_wired_subnet" % widget
+                                   for widget in ["heading", "label"]]
+
+        for id in not_supported + do_not_show_in_refresh:
             self.builder.get_object(id).set_no_show_all(True)
             self.builder.get_object(id).hide()
 
-- 
1.7.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux