summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-03-18 04:38:49 +0100
committerBenjamin Otte <otte@redhat.com>2018-03-18 05:57:07 +0100
commitee8e42f19bb2cf0505d74265dfb71470040b0502 (patch)
tree87d121547dd4a55a4bac96891a7dfd19f9620e22 /gtk
parent41a5e744d82efe95cb1e145caf2f3c3f22eac950 (diff)
downloadgtk+-ee8e42f19bb2cf0505d74265dfb71470040b0502.tar.gz
gdk: Remove gdk_texture_new_from_data()
Use gdk_memory_texture_new() instead.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkwindow.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 1d0b95ef18..be5e903233 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -73,6 +73,7 @@
#include "inspector/init.h"
#include "inspector/window.h"
+#include "gdk/gdktextureprivate.h"
#include "gdk/gdk-private.h"
#include <cairo-gobject.h>
@@ -4600,10 +4601,7 @@ icon_from_list (GList *list,
cairo_destroy (cr);
cairo_surface_destroy (source);
- texture = gdk_texture_new_for_data (cairo_image_surface_get_data (target),
- cairo_image_surface_get_width (target),
- cairo_image_surface_get_height (target),
- cairo_image_surface_get_stride (target));
+ texture = gdk_texture_new_for_surface (target);
cairo_surface_destroy (target);
return texture;