[gtk+] testgtk: Get rid of gdk_drawable_get_size() usage



commit 15497825c0f2cd69b5af8cc834e8de676da24b8d
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 355c212..66efa9e 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -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)
 	    {



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