From eeba8b6d0b4de39ed9772a65beef62f666079c7c Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 13 Jun 2013 13:55:43 -0400 Subject: [PATCH] autodrawer: Fix fullscreen toolbar centering on F19 child_get_property appears to be busted. --- virtManager/autodrawer.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/virtManager/autodrawer.py b/virtManager/autodrawer.py index 72cd1adfb..f7b115dd0 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: - width = min(self.overWidth, boxwidth - padding) - x = padding - elif not fill: - width = min(self.overWidth, boxwidth) - x = ((boxwidth - width) / 2) - else: + # 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 + else: + width = min(self.overWidth, boxwidth) + x = ((boxwidth - width) / 2) y = (((self.overHeight - actual_min) * (self.fraction - 1)) + self.verticalOffset)