[Spice-devel] [PATCH spice-gtk] widget: connect automatically webdav channels

Marc-André Lureau marcandre.lureau at redhat.com
Fri Feb 6 14:09:24 PST 2015


The webdav channel is not being connected by the widget atm.

Since it's a quite desirable thing to have, instead of pushing a
spice_channel_connect() in many clients (boxes, virt-viewer,
virt-manager, vinagre etc), let the widget do it automatically.
---
 gtk/spice-widget.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index 9763f5c..0ada45b 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -2514,6 +2514,11 @@ static void channel_new(SpiceSession *s, SpiceChannel *channel, gpointer data)
         return;
     }
 
+    if (SPICE_IS_WEBDAV_CHANNEL(channel)) {
+        spice_channel_connect(channel);
+        return;
+    }
+
 #ifdef USE_SMARTCARD
     if (SPICE_IS_SMARTCARD_CHANNEL(channel)) {
         d->smartcard = SPICE_SMARTCARD_CHANNEL(channel);
-- 
2.1.0



More information about the Spice-devel mailing list