From ee8e42f19bb2cf0505d74265dfb71470040b0502 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 18 Mar 2018 04:38:49 +0100 Subject: gdk: Remove gdk_texture_new_from_data() Use gdk_memory_texture_new() instead. --- gtk/gtkwindow.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gtk') 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 @@ -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; -- cgit v1.2.1