summaryrefslogtreecommitdiff
path: root/gdk/gdkpixbuf.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-11-20 11:47:32 +0100
committerBenjamin Otte <otte@redhat.com>2016-11-20 11:47:44 +0100
commite62a4d8eea55b08379cd0b0fc60e9ea95dce7b5e (patch)
tree3c5f3d632d27ce507ae7916fff0781e4d3f27394 /gdk/gdkpixbuf.h
parent84918c7e6f31339eccd3b27587ecfbd01a85f431 (diff)
downloadgtk+-e62a4d8eea55b08379cd0b0fc60e9ea95dce7b5e.tar.gz
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.
Diffstat (limited to 'gdk/gdkpixbuf.h')
-rw-r--r--gdk/gdkpixbuf.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/gdk/gdkpixbuf.h b/gdk/gdkpixbuf.h
index 4a96b1aee8..215c2773fb 100644
--- a/gdk/gdkpixbuf.h
+++ b/gdk/gdkpixbuf.h
@@ -37,13 +37,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,
gint src_y,