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



commit 0a57863f737c01b12be3d1d988992ead64896887
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 20 12:53:32 2010 +0200

    win32: Get rid of gdk_drawable_get_size() usage

 gdk/win32/gdkmain-win32.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/gdk/win32/gdkmain-win32.c b/gdk/win32/gdkmain-win32.c
index a9ca0d6..e48e2be 100644
--- a/gdk/win32/gdkmain-win32.c
+++ b/gdk/win32/gdkmain-win32.c
@@ -1045,17 +1045,14 @@ _gdk_win32_cairo_region_to_string (const cairo_region_t *rgn)
 gchar *
 _gdk_win32_drawable_description (GdkDrawable *d)
 {
-  gint width, height, depth;
-
   g_return_val_if_fail (GDK_IS_DRAWABLE (d), NULL);
 
-  gdk_drawable_get_size (d, &width, &height);
-  depth = gdk_visual_get_depth (gdk_window_get_visual (GDK_WINDOW (d)));
-
   return static_printf ("%s:%p:%dx%dx%d",
 			G_OBJECT_TYPE_NAME (d),
 			GDK_DRAWABLE_HANDLE (d),
-			width, height, depth);
+			gdk_window_get_width (GDK_WINDOW (d)),
+                        gdk_window_get_height (GDK_WINDOW (d)),
+                        gdk_visual_get_depth (gdk_window_get_visual (GDK_WINDOW (d))));
 }
 
 #endif /* G_ENABLE_DEBUG */



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