[gtk: 11/40] tests: Use gtk_icon_info_download_colored_texture instead of load_symbolic
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 11/40] tests: Use gtk_icon_info_download_colored_texture instead of load_symbolic
- Date: Thu, 30 Jan 2020 17:32:04 +0000 (UTC)
commit 97b24b0732dd849fd5a756d138bcdd68aeb95f94
Author: Alexander Larsson <alexl redhat com>
Date: Tue Jan 28 12:40:14 2020 +0100
tests: Use gtk_icon_info_download_colored_texture instead of load_symbolic
testsuite/gtk/icontheme.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/testsuite/gtk/icontheme.c b/testsuite/gtk/icontheme.c
index 927eab9839..b23e5424b7 100644
--- a/testsuite/gtk/icontheme.c
+++ b/testsuite/gtk/icontheme.c
@@ -709,7 +709,6 @@ test_nonsquare_symbolic (void)
GFile *file;
GIcon *icon;
GdkRGBA black = { 0.0, 0.0, 0.0, 1.0 };
- gboolean was_symbolic = FALSE;
GError *error = NULL;
GdkTexture *texture;
gchar *path = g_build_filename (g_test_get_dir (G_TEST_DIST),
@@ -736,13 +735,11 @@ test_nonsquare_symbolic (void)
g_assert_nonnull (info);
g_object_unref (pixbuf);
- texture = GDK_TEXTURE (gtk_icon_info_load_symbolic (info, &black, NULL, NULL, NULL,
- &was_symbolic, &error));
+ texture = gtk_icon_info_download_colored_texture (info, &black, NULL, NULL, NULL, &error);
/* we are loaded successfully */
g_assert_no_error (error);
g_assert_nonnull (texture);
- g_assert_true (was_symbolic);
/* the original dimensions have been preserved */
g_assert_cmpint (gdk_texture_get_width (texture), ==, width);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]