]> git.saurik.com Git - wxWidgets.git/commitdiff
Use widget->allocation instead of querying the
authorRobert Roebling <robert@roebling.de>
Sun, 15 Oct 2006 19:13:18 +0000 (19:13 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 15 Oct 2006 19:13:18 +0000 (19:13 +0000)
    window size with a gdk_  call.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/win_gtk.c

index 7e19cae8af5328a57bea6522e09702964afdcf9d..c62da37523ce9a46409de4b64daacfcd1ddb1182 100644 (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;
 }