Commit a5d4e411 authored by Stefano Teso's avatar Stefano Teso

bookmarks: bookmarked saved searches should use the saved-search icon

https://bugzilla.gnome.org/show_bug.cgi?id=643057
parent 02446f2c
......@@ -191,11 +191,18 @@ nautilus_bookmark_set_icon_to_default (NautilusBookmark *bookmark)
{
GIcon *icon, *emblemed_icon, *folder;
GEmblem *emblem;
char *uri;
if (g_file_is_native (bookmark->details->location)) {
folder = g_themed_icon_new (NAUTILUS_ICON_FOLDER);
} else {
folder = g_themed_icon_new (NAUTILUS_ICON_FOLDER_REMOTE);
uri = nautilus_bookmark_get_uri (bookmark);
if (g_str_has_prefix (uri, EEL_SEARCH_URI)) {
folder = g_themed_icon_new (NAUTILUS_ICON_FOLDER_SAVED_SEARCH);
} else {
folder = g_themed_icon_new (NAUTILUS_ICON_FOLDER_REMOTE);
}
g_free (uri);
}
if (nautilus_bookmark_uri_known_not_to_exist (bookmark)) {
......
......@@ -23,6 +23,7 @@
#define NAUTILUS_ICON_FOLDER_PUBLIC_SHARE "folder-publicshare"
#define NAUTILUS_ICON_FOLDER_TEMPLATES "folder-templates"
#define NAUTILUS_ICON_FOLDER_VIDEOS "folder-videos"
#define NAUTILUS_ICON_FOLDER_SAVED_SEARCH "folder-saved-search"
/* Other icons */
#define NAUTILUS_ICON_TEMPLATE "text-x-generic-template"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment