[nautilus] general: use eel_create_spotlight_pixbuf()



commit 8b13a044cc226cf1347831ef566938a24aa5f9a1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jan 20 12:57:25 2011 +0100

    general: use eel_create_spotlight_pixbuf()

 src/nautilus-list-model.c         |    4 ++--
 src/nautilus-places-sidebar.c     |    4 ++--
 src/nautilus-tree-sidebar-model.c |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/nautilus-list-model.c b/src/nautilus-list-model.c
index e916073..f5bc2df 100644
--- a/src/nautilus-list-model.c
+++ b/src/nautilus-list-model.c
@@ -34,7 +34,7 @@
 #include <gtk/gtk.h>
 
 #include <libegg/eggtreemultidnd.h>
-#include <eel/eel-gdk-pixbuf-extensions.h>
+#include <eel/eel-graphic-effects.h>
 #include <libnautilus-private/nautilus-dnd.h>
 
 enum {
@@ -357,7 +357,7 @@ nautilus_list_model_get_value (GtkTreeModel *tree_model, GtkTreeIter *iter, int
 			    g_list_find_custom (model->details->highlight_files,
 			                        file, (GCompareFunc) nautilus_file_compare_location))
 			{
-				rendered_icon = eel_gdk_pixbuf_render (icon, 1, 255, 255, 0, 0);
+				rendered_icon = eel_create_spotlight_pixbuf (icon);
 
 				if (rendered_icon != NULL) {
 					g_object_unref (icon);
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 7929492..8c1d09a 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -42,9 +42,9 @@
 #include <eel/eel-debug.h>
 #include <eel/eel-gtk-extensions.h>
 #include <eel/eel-glib-extensions.h>
+#include <eel/eel-graphic-effects.h>
 #include <eel/eel-string.h>
 #include <eel/eel-stock-dialogs.h>
-#include <eel/eel-gdk-pixbuf-extensions.h>
 
 #include "nautilus-application.h"
 #include "nautilus-bookmark-list.h"
@@ -225,7 +225,7 @@ get_eject_icon (gboolean highlighted)
 
 	if (highlighted) {
 		GdkPixbuf *high;
-		high = eel_gdk_pixbuf_render (eject, 1, 255, 255, 0, 0);
+		high = eel_create_spotlight_pixbuf (eject);
 		g_object_unref (eject);
 		eject = high;
 	}
diff --git a/src/nautilus-tree-sidebar-model.c b/src/nautilus-tree-sidebar-model.c
index 9aed1bb..fb5eea0 100644
--- a/src/nautilus-tree-sidebar-model.c
+++ b/src/nautilus-tree-sidebar-model.c
@@ -30,7 +30,7 @@
 
 #include "nautilus-tree-sidebar-model.h"
 
-#include <eel/eel-gdk-pixbuf-extensions.h>
+#include <eel/eel-graphic-effects.h>
 
 #include <libnautilus-private/nautilus-directory.h>
 #include <libnautilus-private/nautilus-file-attributes.h>
@@ -321,7 +321,7 @@ get_menu_icon_for_file (TreeNode *node,
 	                                 file, (GCompareFunc) nautilus_file_compare_location) != NULL);
 
 	if (highlight) {
-		pixbuf = eel_gdk_pixbuf_render (retval, 1, 255, 255, 0, 0);
+		pixbuf = eel_create_spotlight_pixbuf (retval);
 
 		if (pixbuf != NULL) {
 			g_object_unref (retval);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]