summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendarchive.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2012-08-28 20:45:50 -0400
committerWilliam Jon McCann <jmccann@redhat.com>2012-08-30 11:24:19 -0400
commit5e2d824527f6b6b8e456f1b717f9fd5d95b488ac (patch)
treee6d224b7e3939b11cea1a9d67ab4d1da71d5d28f /daemon/gvfsbackendarchive.c
parentc47f093895ceb648429ef4ab85004b9c3941438d (diff)
downloadgvfs-5e2d824527f6b6b8e456f1b717f9fd5d95b488ac.tar.gz
Add symbolics support to the backends
https://bugzilla.gnome.org/show_bug.cgi?id=681458
Diffstat (limited to 'daemon/gvfsbackendarchive.c')
-rw-r--r--daemon/gvfsbackendarchive.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/daemon/gvfsbackendarchive.c b/daemon/gvfsbackendarchive.c
index 4e16b768..30b44557 100644
--- a/daemon/gvfsbackendarchive.c
+++ b/daemon/gvfsbackendarchive.c
@@ -45,6 +45,7 @@
#include "gvfskeyring.h"
#define MOUNT_ICON_NAME "drive-removable-media"
+#define MOUNT_SYMBOLIC_ICON_NAME "drive-removable-media-symbolic"
/* #define PRINT_DEBUG */
@@ -346,6 +347,9 @@ create_root_file (GVfsBackendArchive *ba)
icon = g_themed_icon_new ("folder");
g_file_info_set_icon (info, icon);
g_object_unref (icon);
+ icon = g_themed_icon_new ("folder-symbolic");
+ g_file_info_set_symbolic_icon (info, icon);
+ g_object_unref (icon);
}
static void
@@ -594,6 +598,7 @@ do_mount (GVfsBackend *backend,
g_vfs_backend_set_display_name (backend, g_file_info_get_display_name (info));
g_vfs_backend_set_icon_name (backend, MOUNT_ICON_NAME);
+ g_vfs_backend_set_symbolic_icon_name (backend, MOUNT_SYMBOLIC_ICON_NAME);
create_root_file (archive);
create_file_tree (archive, G_VFS_JOB (job));