[virt-tools-list] [PATCH virt-viewer 23/25] vnc: when session is disconnected, make the display as non-ready

Marc-André Lureau marcandre.lureau at gmail.com
Tue Jul 17 19:25:05 UTC 2012


---
 src/virt-viewer-session-vnc.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/virt-viewer-session-vnc.c b/src/virt-viewer-session-vnc.c
index a24d65d..52baf5c 100644
--- a/src/virt-viewer-session-vnc.c
+++ b/src/virt-viewer-session-vnc.c
@@ -104,11 +104,11 @@ static void
 virt_viewer_session_vnc_disconnected(VncDisplay *vnc G_GNUC_UNUSED,
                                      VirtViewerSessionVnc *session)
 {
+    GtkWidget *display = virt_viewer_display_vnc_new(session->priv->vnc);
     DEBUG_LOG("Disconnected");
     g_signal_emit_by_name(session, "session-disconnected");
-    /* TODO perhaps? */
-    /* virt_viewer_display_set_show_hint(VIRT_VIEWER_DISPLAY(session->priv->vnc), */
-    /*                                   VIRT_VIEWER_DISPLAY_SHOW_HINT_HIDE); */
+    virt_viewer_display_set_show_hint(VIRT_VIEWER_DISPLAY(display),
+                                      VIRT_VIEWER_DISPLAY_SHOW_HINT_READY, FALSE);
 }
 
 static void
-- 
1.7.10.4




More information about the virt-tools-list mailing list