uiutil: Drop check for old pygobject row handling

Once upon a time it couldn't handle setting a row value to None,
but we've bumped the dep now
This commit is contained in:
Cole Robinson 2016-05-17 17:27:23 -04:00
parent f55e27674b
commit 3aa941571a
3 changed files with 0 additions and 14 deletions

View File

@ -754,8 +754,6 @@ class vmmManager(vmmGObjectUI):
row[ROW_MARKUP] = self._build_vm_markup(name, status)
desc = vm.get_description()
if not uiutil.can_set_row_none:
desc = desc or ""
row[ROW_HINT] = util.xml_escape(desc)
except libvirt.libvirtError, e:
if util.exception_is_libvirt_error(e, "VIR_ERR_NO_DOMAIN"):
@ -770,8 +768,6 @@ class vmmManager(vmmGObjectUI):
return
new_icon = _get_inspection_icon_pixbuf(vm, 16, 16)
if not uiutil.can_set_row_none:
new_icon = new_icon or ""
row[ROW_INSPECTION_OS_ICON] = new_icon
self.vm_row_updated(vm)

View File

@ -231,9 +231,6 @@ class vmmSnapshotPage(vmmGObjectUI):
has_internal = False
for snap in snapshots:
desc = snap.get_xmlobj().description
if not uiutil.can_set_row_none:
desc = desc or ""
name = snap.get_name()
state = util.xml_escape(snap.run_status())
if snap.is_external():

View File

@ -21,13 +21,6 @@
from gi.repository import GObject
from gi.repository import Gtk
try:
import gi
gi.check_version("3.7.4")
can_set_row_none = True
except (ValueError, AttributeError):
can_set_row_none = False
#####################
# UI getter helpers #