summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-11-12 12:10:50 +0100
committerraveit65 <[email protected]>2022-07-21 19:33:49 +0200
commita1bcf35aea9bd6cd53550a9d60b8408c83b9409a (patch)
treec081f57151aca27a153420fbe4bceadcd3ac8512
parent2696f1c6ec8ca1615fea80c02d65910dee75f217 (diff)
downloadcaja-a1bcf35aea9bd6cd53550a9d60b8408c83b9409a.tar.bz2
caja-a1bcf35aea9bd6cd53550a9d60b8408c83b9409a.tar.xz
test-eel-labeled-image: Fix showing the image on the controls
-rw-r--r--test/test-eel-labeled-image.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test-eel-labeled-image.c b/test/test-eel-labeled-image.c
index b5f4e829..7bde363e 100644
--- a/test/test-eel-labeled-image.c
+++ b/test/test-eel-labeled-image.c
@@ -2,7 +2,7 @@
#include "test.h"
-static const char pixbuf_name[] = "/usr/share/pixmaps/mate-globe.png";
+static const char icon_name[] = "gnome-globe";
static void
button_callback (GtkWidget *button,
@@ -61,10 +61,13 @@ main (int argc, char* argv[])
GtkWidget *labeled_image_window = NULL;
GtkWidget *labeled_image_button_window = NULL;
GdkPixbuf *pixbuf = NULL;
+ GtkIconTheme *icon_theme = NULL;
test_init (&argc, &argv);
- if (1) pixbuf = test_pixbuf_new_named (pixbuf_name, 1.0);
+ icon_theme = gtk_icon_theme_get_default ();
+
+ if (1) pixbuf = gtk_icon_theme_load_icon (icon_theme, icon_name, 32, GTK_ICON_LOOKUP_USE_BUILTIN, NULL);
if (1) labeled_image_button_window = labeled_image_button_window_new ("LabeledImage in GtkButton Test", pixbuf);
eel_gdk_pixbuf_unref_if_not_null (pixbuf);