diff options
author | Benjamin Otte <otte@redhat.com> | 2016-11-20 11:47:32 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-11-20 11:47:44 +0100 |
commit | e62a4d8eea55b08379cd0b0fc60e9ea95dce7b5e (patch) | |
tree | 3c5f3d632d27ce507ae7916fff0781e4d3f27394 /gdk/gdkpixbuf.h | |
parent | 84918c7e6f31339eccd3b27587ecfbd01a85f431 (diff) | |
download | gtk+-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.h | 7 |
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, |