From e62a4d8eea55b08379cd0b0fc60e9ea95dce7b5e Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 20 Nov 2016 11:47:32 +0100 Subject: API: gdk: Remove ability to render window contents The functions gdk_pixbuf_get_from_window() and gdk_cairo_set_source_window() are unreliable and depend on the windowing system (they work great on X11 and Win32, less so on Quartz and Wayland). With the switch to new drawing API and OpenGL, we can definitely no longer support a generic way to snapshot windows. People should either write windowsystem-specific code or draw their widgets directly - like with gtk_widget_draw() - if they need to get a rendering. --- gdk/gdkpixbuf.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'gdk/gdkpixbuf.h') diff --git a/gdk/gdkpixbuf.h b/gdk/gdkpixbuf.h index 4a96b1aee8..215c2773fb 100644 --- a/gdk/gdkpixbuf.h +++ b/gdk/gdkpixbuf.h @@ -36,13 +36,6 @@ G_BEGIN_DECLS -GDK_AVAILABLE_IN_ALL -GdkPixbuf *gdk_pixbuf_get_from_window (GdkWindow *window, - gint src_x, - gint src_y, - gint width, - gint height); - GDK_AVAILABLE_IN_ALL GdkPixbuf *gdk_pixbuf_get_from_surface (cairo_surface_t *surface, gint src_x, -- cgit v1.2.1