mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
autodrawer: Fix fullscreen toolbar centering on F19
child_get_property appears to be busted.
This commit is contained in:
parent
3da7f55462
commit
eeba8b6d0b
@ -95,15 +95,17 @@ class OverBox(Gtk.Box):
|
|||||||
fill = self.child_get_property(self.overWidget, "fill")
|
fill = self.child_get_property(self.overWidget, "fill")
|
||||||
padding = self.child_get_property(self.overWidget, "padding")
|
padding = self.child_get_property(self.overWidget, "padding")
|
||||||
|
|
||||||
if not expand:
|
# XXX: On Fedora 19 child_get_property isn't working :(
|
||||||
width = min(self.overWidth, boxwidth - padding)
|
expand = True
|
||||||
x = padding
|
if expand and fill:
|
||||||
elif not fill:
|
|
||||||
width = min(self.overWidth, boxwidth)
|
|
||||||
x = ((boxwidth - width) / 2)
|
|
||||||
else:
|
|
||||||
width = boxwidth
|
width = boxwidth
|
||||||
x = 0
|
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)) +
|
y = (((self.overHeight - actual_min) * (self.fraction - 1)) +
|
||||||
self.verticalOffset)
|
self.verticalOffset)
|
||||||
|
Loading…
Reference in New Issue
Block a user