<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 11 Feb 2016, at 24:52 AM, Jonathon Jongsma <<a href="mailto:jjongsma@redhat.com" class="">jjongsma@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">On Thu, 2015-10-29 at 17:27 +0200, Dmitry Fleytman wrote:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">From: Kirill Moizik <<a href="mailto:kmoizik@redhat.com" class="">kmoizik@redhat.com</a>><br class=""><br class="">Signed-off-by: Kirill Moizik <<a href="mailto:kmoizik@redhat.com" class="">kmoizik@redhat.com</a>><br class="">Signed-off-by: Dmitry Fleytman <<a href="mailto:dfleytma@redhat.com" class="">dfleytma@redhat.com</a>><br class="">---<br class="">src/map-file | 1 +<br class="">src/usb-device-manager.c | 23 +++++++++++++++++++++++<br class="">src/usb-device-manager.h | 2 ++<br class="">src/usb-device-widget.c | 8 ++++++++<br class="">4 files changed, 34 insertions(+)<br class=""><br class="">diff --git a/src/map-file b/src/map-file<br class="">index 1f7755b..b9ba950 100644<br class="">--- a/src/map-file<br class="">+++ b/src/map-file<br class="">@@ -128,6 +128,7 @@ spice_usb_device_manager_connect_device_async;<br class="">spice_usb_device_manager_connect_device_finish;<br class="">spice_usb_device_manager_disconnect_device;<br class="">spice_usb_device_manager_disconnect_device_async;<br class="">+spice_usb_device_manager_is_redirecting;<br class="">spice_usb_device_manager_get;<br class="">spice_usb_device_manager_get_devices;<br class="">spice_usb_device_manager_get_devices_with_filter;<br class="">diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c<br class="">index d927ecd..c697697 100644<br class="">--- a/src/usb-device-manager.c<br class="">+++ b/src/usb-device-manager.c<br class="">@@ -232,6 +232,29 @@ _set_redirecting(SpiceUsbDeviceManager *self, gboolean<br class="">is_redirecting)<br class="">G_DEFINE_BOXED_TYPE(SpiceUsbDevice, spice_usb_device, g_object_ref,<br class="">g_object_unref)<br class="">#endif<br class=""><br class="">+/**<br class="">+* spcie_usb_device_manager_is_redirecting:<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">typo: spcie -> spice</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div>Fixed.</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">+* @manager: the #SpiceUsbDeviceManager manager<br class="">+*<br class="">+* Returns: %TRUE if device redirection negotiation flow is in progress<br class="">+*/<br class="">+gboolean spice_usb_device_manager_is_redirecting(SpiceUsbDeviceManager *self)<br class="">+{<br class="">+#ifdef USE_USBREDIR<br class="">+<br class="">+#ifdef USE_GUDEV<br class="">+ gboolean redirecting;<br class="">+ g_object_get(self->priv->udev, "redirecting", &redirecting, NULL);<br class="">+ return redirecting;<br class="">+#else<br class="">+ return self->priv->redirecting;<br class="">+#endif<br class="">+<br class="">+#else<br class="">+ return FALSE;<br class="">+#endif<br class="">+}<br class="">+<br class="">static void spice_usb_device_manager_initable_iface_init(GInitableIface<br class="">*iface);<br class=""><br class="">static guint signals[LAST_SIGNAL] = { 0, };<br class="">diff --git a/src/usb-device-manager.h b/src/usb-device-manager.h<br class="">index d705e74..814af2e 100644<br class="">--- a/src/usb-device-manager.h<br class="">+++ b/src/usb-device-manager.h<br class="">@@ -135,6 +135,8 @@<br class="">spice_usb_device_manager_can_redirect_device(SpiceUsbDeviceManager *self,<br class=""> SpiceUsbDevice *device,<br class=""> GError **err);<br class=""><br class="">+gboolean spice_usb_device_manager_is_redirecting(SpiceUsbDeviceManager<br class="">*self);<br class="">+<br class="">G_END_DECLS<br class=""><br class="">#endif /* __SPICE_USB_DEVICE_MANAGER_H__ */<br class="">diff --git a/src/usb-device-widget.c b/src/usb-device-widget.c<br class="">index fe983c9..f88573a 100644<br class="">--- a/src/usb-device-widget.c<br class="">+++ b/src/usb-device-widget.c<br class="">@@ -401,6 +401,9 @@ static gboolean<br class="">spice_usb_device_widget_update_status(gpointer user_data)<br class="">{<br class=""> SpiceUsbDeviceWidget *self = SPICE_USB_DEVICE_WIDGET(user_data);<br class=""> SpiceUsbDeviceWidgetPrivate *priv = self->priv;<br class="">+ gboolean redirecting;<br class="">+<br class="">+ redirecting = spice_usb_device_manager_is_redirecting(priv->manager);<br class=""><br class=""> priv->device_count = 0;<br class=""> gtk_container_foreach(GTK_CONTAINER(self), check_can_redirect, self);<br class="">@@ -419,6 +422,11 @@ static gboolean<br class="">spice_usb_device_widget_update_status(gpointer user_data)<br class=""> spice_usb_device_widget_show_info_bar(self, _("No USB devices<br class="">detected"),<br class=""> GTK_MESSAGE_INFO,<br class=""> GTK_STOCK_DIALOG_INFO);<br class="">+ if (redirecting == TRUE) {<br class="">+ spice_usb_device_widget_show_info_bar(self, _("Redirecting USB<br class="">Device..."),<br class="">+ GTK_MESSAGE_INFO,<br class="">+ GTK_STOCK_DIALOG_INFO);<br class="">+ }<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">This will potentially overwrite any info bars that we just showed, such as error</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">messagese. I think it would probably be better to put this case into the 'else'</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">clause a few lines above where priv->err_msg is NULL.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div>Fixed, thanks.</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""> return FALSE;<br class="">}<br class=""><br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Reviewed-by: Jonathon Jongsma <</span><a href="mailto:jjongsma@redhat.com" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">jjongsma@redhat.com</a><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">></span></div></blockquote></div><br class=""></body></html>