diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-03-29 17:11:23 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2012-03-29 17:11:23 +0200 |
commit | e2b41b43eb8477460ab6305fdabd7ca382d566d0 (patch) | |
tree | b668f2bd5ee8b51183d16aab339491ca5bfa7457 | |
parent | 310497275d4e006d4bcf70b79e83b67a55699707 (diff) |
usbredir: listen for device-error signal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | src/virt-viewer-session-spice.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c index c000d35..49f72fe 100644 --- a/src/virt-viewer-session-spice.c +++ b/src/virt-viewer-session-spice.c @@ -191,9 +191,12 @@ create_spice_session(VirtViewerSessionSpice *self) G_CALLBACK(virt_viewer_session_spice_channel_destroy), self); manager = spice_usb_device_manager_get(self->priv->session, NULL); - if (manager) + if (manager) { g_signal_connect(manager, "auto-connect-failed", G_CALLBACK(usb_connect_failed), self); + g_signal_connect(manager, "device-error", + G_CALLBACK(usb_connect_failed), self); + } g_object_bind_property(self, "auto-usbredir", self->priv->gtk_session, "auto-usbredir", |