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

This commit is contained in:
Benjamin Otte 2010-09-20 16:55:33 +02:00
parent aa70d351c4
commit 9403e167b4

View 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)