API: remove gdk_drawable_copy_to_image()

This commit is contained in:
Benjamin Otte
2010-07-13 23:28:20 +02:00
parent 2a72ffd4de
commit 6f5084551a
22 changed files with 7 additions and 701 deletions

View File

@ -37,11 +37,16 @@
void
gdk_test_render_sync (GdkWindow *window)
{
static GdkImage *p1image = NULL;
Display *display = gdk_x11_drawable_get_xdisplay (window);
XImage *ximage;
/* syncronize to X drawing queue, see:
* http://mail.gnome.org/archives/gtk-devel-list/2006-October/msg00103.html
*/
p1image = gdk_drawable_copy_to_image (window, p1image, 0, 0, 0, 0, 1, 1);
ximage = XGetImage (display, DefaultRootWindow (display),
0, 0, 1, 1, AllPlanes, ZPixmap);
if (ximage != NULL)
XDestroyImage (ximage);
}
/**