diff options
author | Radek Vykydal <rvykydal@redhat.com> | 2012-06-13 14:49:10 +0200 |
---|---|---|
committer | Radek Vykydal <rvykydal@redhat.com> | 2012-06-14 14:06:43 +0200 |
commit | d19d9b3346fbd0b97c14b5b150a036a55ea06155 (patch) | |
tree | 1c467364bde962ad4fd5d6b6231d0851d596d5f6 /pyanaconda/ui/gui/spokes/network.py | |
parent | 5735238bc473ac7449c0e144f2ab2375804141e0 (diff) | |
download | anaconda-d19d9b3346fbd0b97c14b5b150a036a55ea06155.tar.gz anaconda-d19d9b3346fbd0b97c14b5b150a036a55ea06155.tar.xz anaconda-d19d9b3346fbd0b97c14b5b150a036a55ea06155.zip |
Network spoke: don't show widgets hidden on purpose after spoke refresh.
This should fix
http://www.redhat.com/archives/anaconda-devel-list/2012-June/msg00166.html
Diffstat (limited to 'pyanaconda/ui/gui/spokes/network.py')
-rw-r--r-- | 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 fab315fe3..a7eb3b64e 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() |