diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py index 542eddb8f..832e799db 100644 --- a/virtManager/addhardware.py +++ b/virtManager/addhardware.py @@ -756,7 +756,7 @@ class vmmAddHardware(vmmGObjectUI): def get_config_fs_mode(self): name = "fs-mode-combo" combo = self.widget(name) - if not combo.get_property("visible"): + if not combo.get_visible(): return None return combo.get_model()[combo.get_active()][0] @@ -764,7 +764,7 @@ class vmmAddHardware(vmmGObjectUI): def get_config_fs_wrpolicy(self): name = "fs-wrpolicy-combo" combo = self.widget(name) - if not combo.get_property("visible"): + if not combo.get_visible(): return None return combo.get_model()[combo.get_active()][0] @@ -772,7 +772,7 @@ class vmmAddHardware(vmmGObjectUI): def get_config_fs_type(self): name = "fs-type-combo" combo = self.widget(name) - if not combo.get_property("visible"): + if not combo.get_visible(): return None return combo.get_model()[combo.get_active()][0] @@ -780,7 +780,7 @@ class vmmAddHardware(vmmGObjectUI): def get_config_fs_readonly(self): name = "fs-readonly" check = self.widget(name) - if not check.get_property("visible"): + if not check.get_visible(): return None return check.get_active() @@ -788,7 +788,7 @@ class vmmAddHardware(vmmGObjectUI): def get_config_fs_driver(self): name = "fs-driver-combo" combo = self.widget(name) - if not combo.get_property("visible"): + if not combo.get_visible(): return None return combo.get_model()[combo.get_active()][0] @@ -1068,7 +1068,7 @@ class vmmAddHardware(vmmGObjectUI): show_driver_combo = False show_wrpolicy_combo = self.conn.is_qemu() - if idx >= 0 and src.get_property("visible"): + if idx >= 0 and src.get_visible(): fstype = src.get_model()[idx][0] if fstype == virtinst.VirtualFilesystem.TYPE_TEMPLATE: @@ -1087,7 +1087,7 @@ class vmmAddHardware(vmmGObjectUI): def change_fs_driver(self, src): fsdriver = None idx = src.get_active() - if idx >= 0 and src.get_property("visible"): + if idx >= 0 and src.get_visible(): fsdriver = src.get_model()[idx][0] show_mode = bool( diff --git a/virtManager/create.py b/virtManager/create.py index c80243ceb..f69fa3349 100644 --- a/virtManager/create.py +++ b/virtManager/create.py @@ -892,7 +892,7 @@ class vmmCreate(vmmGObjectUI): return curpage == PAGE_INSTALL def get_config_install_page(self): - if self.widget("virt-install-box").get_property("visible"): + if self.widget("virt-install-box").get_visible(): if self.widget("method-local").get_active(): return INSTALL_PAGE_ISO elif self.widget("method-tree").get_active(): @@ -1200,7 +1200,7 @@ class vmmCreate(vmmGObjectUI): self.widget("install-local-browse").set_sensitive(uselocal) def detect_visibility_changed(self, src, ignore=None): - is_visible = src.get_property("visible") + is_visible = src.get_visible() detect_chkbox = self.widget("install-detect-os") nodetect_label = self.widget("install-nodetect-label") diff --git a/virtManager/createinterface.py b/virtManager/createinterface.py index e7ca6411a..40bb1fcb7 100644 --- a/virtManager/createinterface.py +++ b/virtManager/createinterface.py @@ -587,7 +587,7 @@ class vmmCreateInterface(vmmGObjectUI): return type_list.get_model()[type_list.get_active()][0] def set_interface_name(self, name): - if self.widget("interface-name-entry").get_property("visible"): + if self.widget("interface-name-entry").get_visible(): widget = "interface-name-entry" else: widget = "interface-name-label" @@ -595,7 +595,7 @@ class vmmCreateInterface(vmmGObjectUI): self.widget(widget).set_text(name) def get_config_interface_name(self): - if self.widget("interface-name-entry").get_property("visible"): + if self.widget("interface-name-entry").get_visible(): return self.widget("interface-name-entry").get_text() else: return self.widget("interface-name-label").get_text() @@ -751,7 +751,7 @@ class vmmCreateInterface(vmmGObjectUI): self.widget("ip-config-label").set_text(label) def get_config_ip_info(self): - if not self.widget("ip-label").get_property("visible"): + if not self.widget("ip-label").get_visible(): return [True, None, None, None, None] if not self.validate_ip_info(): diff --git a/virtManager/createpool.py b/virtManager/createpool.py index dac436c2c..e6a9d5073 100644 --- a/virtManager/createpool.py +++ b/virtManager/createpool.py @@ -377,7 +377,7 @@ class vmmCreatePool(vmmGObjectUI): def get_config_iqn(self): iqn = self.widget("pool-iqn") - if iqn.get_sensitive() and iqn.get_property("visible"): + if iqn.get_sensitive() and iqn.get_visible(): return iqn.get_text().strip() return None @@ -537,7 +537,7 @@ class vmmCreatePool(vmmGObjectUI): buildval = self.widget("pool-build").get_active() buildsen = (self.widget("pool-build").get_sensitive() and - self.widget("pool-build-box").get_property("visible")) + self.widget("pool-build-box").get_visible()) if buildsen and buildval: ret = self.err.yes_no(_("Building a pool of this type will " "format the source device. Are you " diff --git a/virtManager/details.py b/virtManager/details.py index a4fddd42f..a02778c7f 100644 --- a/virtManager/details.py +++ b/virtManager/details.py @@ -1085,7 +1085,7 @@ class vmmDetails(vmmGObjectUI): label = self.widget(prefix + "-label") value = None - if label.get_property("visible"): + if label.get_visible(): value = label.get_text() else: value = self.get_combo_value(comboname, model_idx)