summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-08-30 22:20:51 +0200
committerTimm Bäder <mail@baedert.org>2019-09-09 17:36:26 +0200
commit590e70d4d1f3c3d95b2d96b67aa4b0e5639e1547 (patch)
treebe67ab8c8be122a1eb9f91e3eb01fda44d075639 /testsuite
parentfd16ac4d5ed535bfebf0fbdb3e3e75115038b832 (diff)
downloadgtk+-590e70d4d1f3c3d95b2d96b67aa4b0e5639e1547.tar.gz
icontheme: Return a paintable from gtk_icon_info_load_icon
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gtk/icontheme.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/gtk/icontheme.c b/testsuite/gtk/icontheme.c
index a2d091d56e..0260e1625c 100644
--- a/testsuite/gtk/icontheme.c
+++ b/testsuite/gtk/icontheme.c
@@ -82,13 +82,13 @@ assert_icon_lookup_size (const char *icon_name,
if (pixbuf_size > 0)
{
- GdkPixbuf *pixbuf;
+ GdkTexture *texture;
GError *error = NULL;
- pixbuf = gtk_icon_info_load_icon (info, &error);
+ texture = GDK_TEXTURE (gtk_icon_info_load_icon (info, &error));
g_assert_no_error (error);
- g_assert_cmpint (gdk_pixbuf_get_width (pixbuf), ==, pixbuf_size);
- g_object_unref (pixbuf);
+ g_assert_cmpint (gdk_texture_get_width (texture), ==, pixbuf_size);
+ g_object_unref (texture);
}
g_object_unref (info);