summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-04-20 19:35:34 -0400
committerRyan Lortie <desrt@desrt.ca>2013-04-21 16:36:33 -0400
commitc9bbd01b70fea6488f48d2360893196295e13429 (patch)
treeae1f71d9488e67841ca420c0c3e061edff824997 /client
parent89c89f5a3a0ce4dedb969f4cc2e996c581141c97 (diff)
GVfsIcon: support icon serialisation
Add support for the new icon serialisation interface to GVfsIcon as well as implementing the new interface on GVfsClass for deserialising. https://bugzilla.gnome.org/show_bug.cgi?id=688820
Diffstat (limited to 'client')
-rw-r--r--client/gdaemonvfs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/gdaemonvfs.c b/client/gdaemonvfs.c
index b712b22b..7c7f9a70 100644
--- a/client/gdaemonvfs.c
+++ b/client/gdaemonvfs.c
@@ -1473,6 +1473,13 @@ g_daemon_vfs_local_file_moved (GVfs *vfs,
meta_lookup_cache_free (cache);
}
+static GIcon *
+g_daemon_vfs_deserialize_icon (GVfs *vfs,
+ GVariant *value)
+{
+ return g_vfs_icon_deserialize (value);
+}
+
GDBusConnection *
_g_daemon_vfs_get_async_bus (void)
{
@@ -1515,6 +1522,7 @@ g_daemon_vfs_class_init (GDaemonVfsClass *class)
vfs_class->local_file_set_attributes = g_daemon_vfs_local_file_set_attributes;
vfs_class->local_file_removed = g_daemon_vfs_local_file_removed;
vfs_class->local_file_moved = g_daemon_vfs_local_file_moved;
+ vfs_class->deserialize_icon = g_daemon_vfs_deserialize_icon;
}
/* Module API */