Subtoolbar Palettes do not display at correct position, SL #3891
GTK_WIDGET_NO_WINDOW has been deprecated but we can use
gtk_widget_get_has_window() instead [1]. This brings back the
old code.
Follow up of: 5ab2b80546
[1] http://developer.gnome.org/gtk/stable/GtkWidget.html#GTK-WIDGET-NO-WINDOW:CAPS
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
This commit is contained in:
parent
7fc29c9d58
commit
5cb4a48c5b
@ -1005,6 +1005,10 @@ class WidgetInvoker(Invoker):
|
|||||||
x = 0
|
x = 0
|
||||||
y = 0
|
y = 0
|
||||||
|
|
||||||
|
if not self._widget.get_has_window():
|
||||||
|
x += allocation.x
|
||||||
|
y += allocation.y
|
||||||
|
|
||||||
rect = Gdk.Rectangle()
|
rect = Gdk.Rectangle()
|
||||||
rect.x = x
|
rect.x = x
|
||||||
rect.y = y
|
rect.y = y
|
||||||
|
Loading…
Reference in New Issue
Block a user