[virt-tools-list] [PATCHv2 virt-viewer 08/10] kiosk: warn and prevent if app want to quit or window to hide

Christophe Fergeau cfergeau at redhat.com
Mon Aug 19 18:32:13 UTC 2013


ACK

On Fri, Aug 16, 2013 at 09:47:44PM +0200, Marc-André Lureau wrote:
> These condition shouldn't happen, they are here for debugging
> purposes (ie file a bug if it happens).
> ---
>  src/virt-viewer-window.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
> index abd417b..ac6b8fe 100644
> --- a/src/virt-viewer-window.c
> +++ b/src/virt-viewer-window.c
> @@ -1299,6 +1299,11 @@ virt_viewer_window_show(VirtViewerWindow *self)
>  void
>  virt_viewer_window_hide(VirtViewerWindow *self)
>  {
> +    if (self->priv->kiosk) {
> +        g_warning("Can't hide windows in kiosk mode");
> +        return;
> +    }
> +
>      gtk_widget_hide(self->priv->window);
>  
>      if (self->priv->display) {
> -- 
> 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/bf99a726/attachment.sig>


More information about the virt-tools-list mailing list