From: Robert Roebling Date: Sun, 15 Oct 2006 19:13:18 +0000 (+0000) Subject: Use widget->allocation instead of querying the X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/55dc8e189d622e010451e45bcc181dad67cd8ca1 Use widget->allocation instead of querying the window size with a gdk_ call. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/win_gtk.c b/src/gtk/win_gtk.c index 7e19cae8af..c62da37523 100644 --- a/src/gtk/win_gtk.c +++ b/src/gtk/win_gtk.c @@ -247,11 +247,9 @@ gint gtk_pizza_get_rtl_offset (GtkPizza *pizza) if (!pizza->bin_window) return 0; - gdk_window_get_geometry( pizza->bin_window, NULL, NULL, &width, NULL, NULL ); - border = pizza->container.border_width; - return width-border*2; + return GTK_WIDGET(pizza)->allocation.width - border*2; }