[gtk+/rendering-cleanup-next: 185/203] testgtk: Get rid of gdk_drawable_get_size() usage



commit 7d6102e599e55aa736c9c69d74018d33b2b78036
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 20 16:47:06 2010 +0200

    testgtk: Get rid of gdk_drawable_get_size() usage

 tests/testgtk.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 61b037d..864e3ce 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -8696,7 +8696,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)
 	    {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]