summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2013-06-13 13:55:43 -0400
committerCole Robinson <crobinso@redhat.com>2013-06-13 13:55:43 -0400
commiteeba8b6d0b4de39ed9772a65beef62f666079c7c (patch)
treef346bc2324ddcac34fe5124ce30ca1b7404e1b7c
parent3da7f55462ee7b2586c4aba981249aabb7394d38 (diff)
downloadvirt-manager-eeba8b6d0b4de39ed9772a65beef62f666079c7c.tar.gz
autodrawer: Fix fullscreen toolbar centering on F19
child_get_property appears to be busted.
-rw-r--r--virtManager/autodrawer.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/virtManager/autodrawer.py b/virtManager/autodrawer.py
index 72cd1adf..f7b115dd 100644
--- a/virtManager/autodrawer.py
+++ b/virtManager/autodrawer.py
@@ -95,15 +95,17 @@ class OverBox(Gtk.Box):
fill = self.child_get_property(self.overWidget, "fill")
padding = self.child_get_property(self.overWidget, "padding")
- if not expand:
+ # XXX: On Fedora 19 child_get_property isn't working :(
+ expand = True
+ if expand and fill:
+ width = boxwidth
+ x = 0
+ elif fill:
width = min(self.overWidth, boxwidth - padding)
x = padding
- elif not fill:
+ else:
width = min(self.overWidth, boxwidth)
x = ((boxwidth - width) / 2)
- else:
- width = boxwidth
- x = 0
y = (((self.overHeight - actual_min) * (self.fraction - 1)) +
self.verticalOffset)