From 5cb4a48c5bc17a5fea14446919259c0a5e12ec6a Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Wed, 12 Sep 2012 20:52:51 +0200 Subject: [PATCH] Subtoolbar Palettes do not display at correct position, SL #3891 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 5ab2b8054633e876da71ffdb6b5f7ee61f5c9930 [1] http://developer.gnome.org/gtk/stable/GtkWidget.html#GTK-WIDGET-NO-WINDOW:CAPS Signed-off-by: Simon Schampijer Acked-by: Manuel QuiƱones --- src/sugar3/graphics/palettewindow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sugar3/graphics/palettewindow.py b/src/sugar3/graphics/palettewindow.py index a4088be9..4d45dbfc 100644 --- a/src/sugar3/graphics/palettewindow.py +++ b/src/sugar3/graphics/palettewindow.py @@ -1005,6 +1005,10 @@ class WidgetInvoker(Invoker): x = 0 y = 0 + if not self._widget.get_has_window(): + x += allocation.x + y += allocation.y + rect = Gdk.Rectangle() rect.x = x rect.y = y