[virt-tools-list] [PATCHv2 virt-viewer 04/10] kiosk: use less verbose window/display status

Christophe Fergeau cfergeau at redhat.com
Mon Aug 19 18:31:49 UTC 2013


ACK

On Fri, Aug 16, 2013 at 09:47:40PM +0200, Marc-André Lureau wrote:
> We want extra windows to remain blank after connection.
> 
> For example, if the remote has a single monitor, and client has more, we
> don't want extra client monitors to say "Connected to graphic server"
> all the time on other monitors. Instead, we leave them empty/black in
> kiosk mode.
> ---
>  src/virt-viewer-app.c | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
> index a38d9ab..99c5fe7 100644
> --- a/src/virt-viewer-app.c
> +++ b/src/virt-viewer-app.c
> @@ -711,7 +711,8 @@ display_show_hint(VirtViewerDisplay *display,
>          if (win != self->priv->main_window &&
>              g_getenv("VIRT_VIEWER_HIDE"))
>              virt_viewer_window_hide(win);
> -        virt_viewer_notebook_show_status(nb, _("Waiting for display %d..."), nth + 1);
> +        if (!self->priv->kiosk)
> +            virt_viewer_notebook_show_status(nb, _("Waiting for display %d..."), nth + 1);
>      }
>      virt_viewer_app_update_menu_displays(self);
>  
> @@ -1175,7 +1176,11 @@ virt_viewer_app_connected(VirtViewerSession *session G_GNUC_UNUSED,
>      VirtViewerAppPrivate *priv = self->priv;
>  
>      priv->connected = TRUE;
> -    virt_viewer_app_show_status(self, _("Connected to graphic server"));
> +
> +    if (self->priv->kiosk)
> +        virt_viewer_app_show_status(self, "");
> +    else
> +        virt_viewer_app_show_status(self, _("Connected to graphic server"));
>  }
>  
>  
> -- 
> 1.8.3.rc1.49.g8d97506
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20130819/847d251a/attachment.sig>


More information about the virt-tools-list mailing list