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:
@@ -247,11 +247,9 @@ gint gtk_pizza_get_rtl_offset (GtkPizza *pizza)
|
|||||||
|
|
||||||
if (!pizza->bin_window) return 0;
|
if (!pizza->bin_window) return 0;
|
||||||
|
|
||||||
gdk_window_get_geometry( pizza->bin_window, NULL, NULL, &width, NULL, NULL );
|
|
||||||
|
|
||||||
border = pizza->container.border_width;
|
border = pizza->container.border_width;
|
||||||
|
|
||||||
return width-border*2;
|
return GTK_WIDGET(pizza)->allocation.width - border*2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user