diff options
author | rbuj <[email protected]> | 2020-11-12 12:10:50 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-11-15 14:02:01 +0100 |
commit | aafb541adef96a7bdf4594ae66dbf0d7b71d2701 (patch) | |
tree | ab9089e236f0907953bac2d21e53c6c3d9c195bd /test | |
parent | 2c61357fa601376e4ab4a1603f814f39315c59ad (diff) | |
download | caja-aafb541adef96a7bdf4594ae66dbf0d7b71d2701.tar.bz2 caja-aafb541adef96a7bdf4594ae66dbf0d7b71d2701.tar.xz |
test-eel-labeled-image: Fix showing the image on the controls
Diffstat (limited to 'test')
-rw-r--r-- | test/test-eel-labeled-image.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test-eel-labeled-image.c b/test/test-eel-labeled-image.c index b5dd7f22..1e0e9540 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); |