diff options
author | Cole Robinson <crobinso@redhat.com> | 2013-06-13 13:55:43 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2013-06-13 13:55:43 -0400 |
commit | eeba8b6d0b4de39ed9772a65beef62f666079c7c (patch) | |
tree | f346bc2324ddcac34fe5124ce30ca1b7404e1b7c | |
parent | 3da7f55462ee7b2586c4aba981249aabb7394d38 (diff) | |
download | virt-manager-eeba8b6d0b4de39ed9772a65beef62f666079c7c.tar.gz |
autodrawer: Fix fullscreen toolbar centering on F19
child_get_property appears to be busted.
-rw-r--r-- | virtManager/autodrawer.py | 12 |
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) |