console: spice: Handle older spice-gtk desktop resolution

This commit is contained in:
Cole Robinson 2011-06-01 10:20:50 -04:00
parent 22db8a32ec
commit b54ef7216d

View File

@ -476,7 +476,8 @@ class SpiceViewer(Viewer):
return
def get_desktop_resolution(self):
if not self.display_channel:
if (not self.display_channel or
not has_property(self.display_channel, "width")):
return None
return self.display_channel.get_properties("width", "height")