[Spice-devel] [PATCH v3 10/13] UsbDeviceWidget: if redirecting update infobar accordingly
Christophe Fergeau
cfergeau at redhat.com
Tue Aug 11 03:54:08 PDT 2015
On Mon, Aug 03, 2015 at 04:10:50PM +0300, Kirill Moizik wrote:
> From: Kirill Moizik <kmoizik at redhat.com>
>
> ---
> src/usb-device-widget.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/src/usb-device-widget.c b/src/usb-device-widget.c
> index 1ec30e3..4d66e12 100644
> --- a/src/usb-device-widget.c
> +++ b/src/usb-device-widget.c
> @@ -399,6 +399,8 @@ static gboolean spice_usb_device_widget_update_status(gpointer user_data)
> {
> SpiceUsbDeviceWidget *self = SPICE_USB_DEVICE_WIDGET(user_data);
> SpiceUsbDeviceWidgetPrivate *priv = self->priv;
> + gboolean redirecting;
> + g_object_get(priv->manager, "redirecting", &redirecting, NULL);
>
> priv->device_count = 0;
> gtk_container_foreach(GTK_CONTAINER(self), check_can_redirect, self);
> @@ -417,6 +419,11 @@ static gboolean spice_usb_device_widget_update_status(gpointer user_data)
> spice_usb_device_widget_show_info_bar(self, _("No USB devices detected"),
> GTK_MESSAGE_INFO,
> GTK_STOCK_DIALOG_INFO);
> + if (redirecting == TRUE) {
> + spice_usb_device_widget_show_info_bar(self, _("Redirecting Usb Device"),
USB, not Usb
Ideally, we would get a spinner to indicate something is in progress.
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150811/a29b1a9f/attachment.sig>
More information about the Spice-devel
mailing list