[gtk+/rendering-cleanup-next] docs: Get rid of gdk_drawable_get_size() usage in shooter example
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup-next] docs: Get rid of gdk_drawable_get_size() usage in shooter example
- Date: Mon, 20 Sep 2010 15:34:58 +0000 (UTC)
commit 9a783826595e76058bfcc4f7202d897099f2af95
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]