[gtk+/rendering-cleanup-next: 186/199] docs: Get rid of gdk_drawable_get_size() usage in shooter example



commit 8e29b261772b34daab2200e452b2baf32407c454
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 20 16:55:33 2010 +0200

    docs: Get rid of gdk_drawable_get_size() usage in shooter example

 docs/tools/shooter.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/docs/tools/shooter.c b/docs/tools/shooter.c
index 4b31f03..ec3d551 100644
--- a/docs/tools/shooter.c
+++ b/docs/tools/shooter.c
@@ -140,7 +140,8 @@ take_window_shot (Window   child,
 
   window = gdk_window_foreign_new (xid);
 
-  gdk_drawable_get_size (window, &width, &height);
+  width = gdk_window_get_width (window);
+  height = gdk_window_get_height (window);
   gdk_window_get_origin (window, &x_orig, &y_orig);
 
   if (x_orig < 0)



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