Re: [PATCH v3 10/13] UsbDeviceWidget: if redirecting update infobar accordingly

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

 



On Mon, Aug 03, 2015 at 04:10:50PM +0300, Kirill Moizik wrote:
> From: Kirill Moizik <kmoizik@xxxxxxxxxx>
> 
> ---
>  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

Attachment: pgpYgOukYOkHS.pgp
Description: PGP signature

_______________________________________________
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]