spice: sync share folder preferences with session

This commit is contained in:
Marc-André Lureau 2015-02-15 16:52:12 +01:00
parent 77ac0d8892
commit 73f70899e4

View File

@ -981,6 +981,13 @@ virt_viewer_session_spice_new(VirtViewerApp *app, GtkWindow *main_window)
virt_viewer_signal_connect_object(self->priv->session, "notify::name",
G_CALLBACK(name_changed), self, 0);
g_object_bind_property(self->priv->session, "shared-dir",
self, "shared-folder",
G_BINDING_BIDIRECTIONAL|G_BINDING_SYNC_CREATE);
g_object_bind_property(self->priv->session, "share-dir-ro",
self, "share-folder-ro",
G_BINDING_BIDIRECTIONAL|G_BINDING_SYNC_CREATE);
return VIRT_VIEWER_SESSION(self);
}