summaryrefslogtreecommitdiff
path: root/tests/testimage.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-08-30 22:58:41 +0200
committerTimm Bäder <mail@baedert.org>2019-09-09 17:36:26 +0200
commit71339225ebd8758f40d83d4930d8969b7fb04c49 (patch)
treef11860746b4fbbb413b869b74a61dc12861f7e27 /tests/testimage.c
parent590e70d4d1f3c3d95b2d96b67aa4b0e5639e1547 (diff)
downloadgtk+-71339225ebd8758f40d83d4930d8969b7fb04c49.tar.gz
icontheme: Remove gtk_icon_info_load_texture
It's the same as load_icon now.
Diffstat (limited to 'tests/testimage.c')
-rw-r--r--tests/testimage.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testimage.c b/tests/testimage.c
index b595cd8f4d..455d5c03fa 100644
--- a/tests/testimage.c
+++ b/tests/testimage.c
@@ -78,7 +78,7 @@ main (int argc, char **argv)
GtkWidget *window, *grid;
GtkWidget *label, *image;
GtkIconTheme *theme;
- GdkTexture *texture;
+ GdkPaintable *paintable;
gchar *icon_name = "help-browser";
gchar *anim_filename = NULL;
GtkIconInfo *icon_info;
@@ -110,10 +110,10 @@ main (int argc, char **argv)
theme = gtk_icon_theme_get_default ();
icon_info = gtk_icon_theme_lookup_icon_for_scale (theme, icon_name, 48, gtk_widget_get_scale_factor (window), GTK_ICON_LOOKUP_GENERIC_FALLBACK);
- texture = gtk_icon_info_load_texture (icon_info, NULL);
+ paintable = gtk_icon_info_load_icon (icon_info, NULL);
g_object_unref (icon_info);
- image = gtk_image_new_from_paintable (GDK_PAINTABLE (texture));
- g_object_unref (texture);
+ image = gtk_image_new_from_paintable (paintable);
+ g_object_unref (paintable);
gtk_grid_attach (GTK_GRID (grid), image, 2, 1, 1, 1);
gtk_drag_source_set (image, GDK_BUTTON1_MASK,