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

Marc-André Lureau marcandre.lureau at gmail.com
Fri Aug 16 19:47:40 UTC 2013


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




More information about the virt-tools-list mailing list