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
This commit is contained in:
Robert Roebling
2006-10-15 19:13:18 +00:00
parent 1e89eecdc2
commit 55dc8e189d

View File

@@ -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;
}