[tracker] TrackerSearchBar: Add icon for tags and bookmarks.



commit 213d88aa4503872fa2c38a3e7f938cf887b1f052
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Mar 23 11:38:57 2010 +0100

    TrackerSearchBar: Add icon for tags and bookmarks.

 src/tracker-search-bar/tracker-results-window.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-search-bar/tracker-results-window.c b/src/tracker-search-bar/tracker-results-window.c
index c237bec..77ef7e8 100644
--- a/src/tracker-search-bar/tracker-results-window.c
+++ b/src/tracker-search-bar/tracker-results-window.c
@@ -745,6 +745,12 @@ pixbuf_get (TrackerResultsWindow *window,
 	priv = TRACKER_RESULTS_WINDOW_GET_PRIVATE (window);
 	file = g_file_new_for_uri (uri);
 
+        if (category & CATEGORY_TAG) {
+                icon_name = GTK_STOCK_INDEX;
+        } else if (category & CATEGORY_BOOKMARK) {
+                icon_name = "user-bookmarks";
+        }
+
 	if (icon_name) {
 		if (strrchr (icon_name, '.') == NULL) {
 			pixbuf = gtk_icon_theme_load_icon (priv->icon_theme,



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