]> Pileus Git - ~andy/gtk/commitdiff
docs: Get rid of gdk_drawable_get_size() usage in shooter example
authorBenjamin Otte <otte@redhat.com>
Mon, 20 Sep 2010 14:55:33 +0000 (16:55 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:45 +0000 (15:11 +0200)
docs/tools/shooter.c

index 4b31f034ae615cd5cac8105af16f4c96257b36f0..ec3d551cfac6764de240145c3405de7b9682d737 100644 (file)
@@ -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)