summaryrefslogtreecommitdiff
path: root/src/nautilus-places-sidebar.c
diff options
context:
space:
mode:
authorLuca Ferretti <elle.uca@libero.it>2008-01-24 12:43:10 +0000
committerLuca Ferretti <lferrett@src.gnome.org>2008-01-24 12:43:10 +0000
commit8676045ded571aa423d348ebd7267acbe7fc6143 (patch)
tree523131dccfe03d641589040843777080b6274333 /src/nautilus-places-sidebar.c
parent6b68a3258f4859a0266e5559fc9a05d9d6d9bcb2 (diff)
downloadnautilus-8676045ded571aa423d348ebd7267acbe7fc6143.tar.gz
reviewed by: Alexander Larsson
2008-01-24 Luca Ferretti <elle.uca@libero.it> reviewed by: Alexander Larsson * libnautilus-private/Makefile.am: * libnautilus-private/nautilus-icon-names.h Add a new file to define icon names, like #define NAUTILUS_ICON_HOME "user-home" using named icons from fd.o icon naming spec. * libnautilus-private/nautilus-desktop-link.c: (nautilus_desktop_link_new): * libnautilus-private/nautilus-link.c: (nautilus_link_get_link_icon_from_desktop): * libnautilus-private/nautilus-trash-monitor.c: (update_info_cb), (nautilus_trash_monitor_init): * src/file-manager/fm-directory-view.c: * src/file-manager/fm-tree-view.c: (create_popup_menu), (create_tree): * src/nautilus-bookmark-list.c: (new_bookmark_from_uri): * src/nautilus-connect-server-dialog-main.c: (main): * src/nautilus-desktop-window.c: (real_get_icon): * src/nautilus-main.c: (main): * src/nautilus-pathbar.c: (get_icon_for_file_path), (get_button_image), (is_file_path_mounted_mount), (make_directory_button): * src/nautilus-places-sidebar.c: (update_places), (bookmarks_drop_uris): * src/nautilus-window-menus.c: Include nautilus-icon-name.h and use its icons defines. This means that now Nautilus is using "user-home", "user-desktop", "folder", "user-trash*", "computer", "drive-harddisk", "folder-remote", "network-workgroup", and "text-x-generic-template". * src/network-scheme.desktop.in: * nautilus-computer.desktop.in.in: * nautilus-file-management-properties.desktop.in.in: * nautilus-folder-handler.desktop.in.in: * nautilus-home.desktop.in.in: * nautilus.desktop.in.in: Use icons from fd.o spec here too. In details, we have Launcher | New Icon ----------------+---------------------- Computer | computer File Browser | system-file-manager Open Folder | folder-open Home Folder | user-home File Management | system-file-manager Network | network-workgroup For other details see bug #407130. svn path=/trunk/; revision=13646
Diffstat (limited to 'src/nautilus-places-sidebar.c')
-rw-r--r--src/nautilus-places-sidebar.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index c657321b1..deeacc289 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -55,6 +55,7 @@
#include <libnautilus-private/nautilus-file-utilities.h>
#include <libnautilus-private/nautilus-file-operations.h>
#include <libnautilus-private/nautilus-trash-monitor.h>
+#include <libnautilus-private/nautilus-icon-names.h>
#include <gio/gio.h>
#include "nautilus-bookmark-list.h"
@@ -259,7 +260,7 @@ update_places (NautilusPlacesSidebar *sidebar)
mount_uri = nautilus_get_home_directory_uri ();
display_name = g_filename_display_basename (g_get_home_dir ());
- icon = g_themed_icon_new ("gnome-fs-home");
+ icon = g_themed_icon_new (NAUTILUS_ICON_HOME);
last_iter = add_place (sidebar, PLACES_BUILT_IN,
display_name, icon,
mount_uri, NULL, NULL, NULL, 0);
@@ -272,7 +273,7 @@ update_places (NautilusPlacesSidebar *sidebar)
}
mount_uri = g_filename_to_uri (desktop_path, NULL, NULL);
- icon = g_themed_icon_new ("gnome-fs-desktop");
+ icon = g_themed_icon_new (NAUTILUS_ICON_DESKTOP);
last_iter = add_place (sidebar, PLACES_BUILT_IN,
_("Desktop"), icon,
mount_uri, NULL, NULL, NULL, 0);
@@ -284,7 +285,7 @@ update_places (NautilusPlacesSidebar *sidebar)
g_free (desktop_path);
mount_uri = "file:///"; /* No need to strdup */
- icon = g_themed_icon_new ("gnome-dev-harddisk");
+ icon = g_themed_icon_new (NAUTILUS_ICON_FILESYSTEM);
last_iter = add_place (sidebar, PLACES_BUILT_IN,
_("File System"), icon,
mount_uri, NULL, NULL, NULL, 0);
@@ -889,7 +890,7 @@ bookmarks_drop_uris (NautilusPlacesSidebar *sidebar,
name = nautilus_compute_title_for_location (location);
- icon = g_themed_icon_new ("gnome-fs-directory");
+ icon = g_themed_icon_new (NAUTILUS_ICON_FOLDER);
bookmark = nautilus_bookmark_new_with_icon (location, name,
FALSE, icon);
g_object_unref (icon);