From b1350c6d63250d5ecfab95804c1bb7f5eeefe29f Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sat, 9 Jan 2016 16:12:35 +0100 Subject: GTK3 general: use eel_create_spotlight_pixbuf() taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=8b13a04 --- src/file-manager/fm-tree-model.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/file-manager/fm-tree-model.c') diff --git a/src/file-manager/fm-tree-model.c b/src/file-manager/fm-tree-model.c index 504dd89a..039a1ef8 100644 --- a/src/file-manager/fm-tree-model.c +++ b/src/file-manager/fm-tree-model.c @@ -29,7 +29,11 @@ #include #include "fm-tree-model.h" +#if GTK_CHECK_VERSION(3,0,0) +#include +#else #include +#endif #include #include #include @@ -332,7 +336,11 @@ get_menu_icon_for_file (TreeNode *node, if (highlight) { +#if GTK_CHECK_VERSION(3,0,0) + pixbuf = eel_create_spotlight_pixbuf (retval); +#else pixbuf = eel_gdk_pixbuf_render (retval, 1, 255, 255, 0, 0); +#endif if (pixbuf != NULL) { -- cgit v1.2.1