mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-26 10:03:54 +03: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")
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user