summaryrefslogtreecommitdiff
path: root/docs/tools/shooter.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-05-27 04:22:52 +0200
committerBenjamin Otte <otte@redhat.com>2011-05-27 16:11:09 +0200
commitd46deb35b2d0bd8c5328bc2b385c4ff9b8dbe393 (patch)
tree1c91aad800ed3add9528d2ccc2249a5132b5ba35 /docs/tools/shooter.c
parentb3ec31f8b67e3c0e650904ff283a7e899e21cb5a (diff)
downloadgtk+-d46deb35b2d0bd8c5328bc2b385c4ff9b8dbe393.tar.gz
docs: Remove unused variables in shooter example
Diffstat (limited to 'docs/tools/shooter.c')
-rw-r--r--docs/tools/shooter.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/docs/tools/shooter.c b/docs/tools/shooter.c
index fa7e8459c2..1d3eeb26df 100644
--- a/docs/tools/shooter.c
+++ b/docs/tools/shooter.c
@@ -121,8 +121,7 @@ take_window_shot (Window child,
gboolean include_decoration)
{
GdkWindow *window;
- Display *disp;
- Window w, xid;
+ Window xid;
gint x_orig, y_orig;
gint x = 0, y = 0;
gint width, height;
@@ -130,9 +129,6 @@ take_window_shot (Window child,
GdkPixbuf *tmp, *tmp2;
GdkPixbuf *retval;
- disp = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
- w = GDK_ROOT_WINDOW ();
-
if (include_decoration)
xid = find_toplevel_window (child);
else