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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]