testgtk: Get rid of gdk_drawable_get_size() usage

This commit is contained in:
Benjamin Otte 2010-09-20 16:47:06 +02:00
parent ffa5587fb3
commit 15497825c0

View File

@ -8697,7 +8697,9 @@ find_widget (GtkWidget *widget, FindWidgetData *data)
while (window != gtk_widget_get_window (gtk_widget_get_parent (widget)))
{
gint tx, ty, twidth, theight;
gdk_drawable_get_size (window, &twidth, &theight);
twidth = gdk_window_get_width (window);
theight = gdk_window_get_height (window);
if (new_allocation.x < 0)
{