summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-09-26 13:11:31 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-09-26 13:55:42 -0400
commit6fefabd53655fa886f2c3240374f99f9e8f3cdd5 (patch)
tree528def8276ee2b4bc8ceac130a48b17fd8a35f5c /src
parent5ac6df0fbfe175dfc76e8b539bceafc3d50554e2 (diff)
downloadnautilus-6fefabd53655fa886f2c3240374f99f9e8f3cdd5.tar.gz
file-utilities: export special_directory_get_icon()
Will be useful to get the icon for XDG bookmarks.
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-places-sidebar.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 29b4e21cf..9236dbd89 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -396,31 +396,6 @@ sidebar_update_restore_selection (NautilusPlacesSidebar *sidebar,
}
}
-static GIcon *
-special_directory_get_gicon (GUserDirectory directory)
-{
-
-#define ICON_CASE(x) \
- case G_USER_DIRECTORY_ ## x: \
- return g_themed_icon_new (NAUTILUS_ICON_FOLDER_ ## x);
-
- switch (directory) {
-
- ICON_CASE (DOCUMENTS);
- ICON_CASE (DOWNLOAD);
- ICON_CASE (MUSIC);
- ICON_CASE (PICTURES);
- ICON_CASE (PUBLIC_SHARE);
- ICON_CASE (TEMPLATES);
- ICON_CASE (VIDEOS);
-
- default:
- return g_themed_icon_new ("folder-symbolic");
- }
-
-#undef ICON_CASE
-}
-
static gboolean
recent_is_supported (void)
{
@@ -475,7 +450,7 @@ add_special_dirs (NautilusPlacesSidebar *sidebar)
root = g_file_new_for_path (path);
name = g_file_get_basename (root);
- icon = special_directory_get_gicon (index);
+ icon = nautilus_special_directory_get_symbolic_icon (index);
mount_uri = g_file_get_uri (root);
tooltip = g_file_get_parse_name (root);