Fix palette issue in Friends frame, part of #4515
This commit is contained in:
parent
acd0bec92f
commit
e9119e5733
@ -611,13 +611,14 @@ class WidgetInvoker(Invoker):
|
|||||||
widget.connect('leave-notify-event', self._leave_notify_event_cb)
|
widget.connect('leave-notify-event', self._leave_notify_event_cb)
|
||||||
|
|
||||||
def get_rect(self):
|
def get_rect(self):
|
||||||
win_x, win_y = self._widget.window.get_origin()
|
x, y = self._widget.window.get_origin()
|
||||||
rectangle = self._widget.get_allocation()
|
allocation = self._widget.get_allocation()
|
||||||
|
|
||||||
x = win_x + rectangle.x
|
if self._widget.flags() & gtk.NO_WINDOW:
|
||||||
y = win_y + rectangle.y
|
x += allocation.x
|
||||||
width = rectangle.width
|
y += allocation.y
|
||||||
height = rectangle.height
|
width = allocation.width
|
||||||
|
height = allocation.height
|
||||||
|
|
||||||
return gtk.gdk.Rectangle(x, y, width, height)
|
return gtk.gdk.Rectangle(x, y, width, height)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user