Codebase list virt-viewer / 47c7f4c
vnc: Set display as enabled on init Since 9c77a78af2ef85f3fcdce21b42d89566a9f7ee17 the vnc display has stopped setting the show hint and started to ignore the initial zoom setting. Let's handle it in a similar way as the spice display and set the hint when the display is initialized and unset it on disconnect. Resolves: rhbz#1436991 Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com> Pavel Grunt 7 years ago
2 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
133133 g_object_set(app, "uuid", _("VNC does not provide GUID"), NULL);
134134 }
135135
136 virt_viewer_display_set_enabled(display, TRUE);
136137 virt_viewer_display_set_show_hint(display,
137138 VIRT_VIEWER_DISPLAY_SHOW_HINT_READY, TRUE);
138139
121121 display = virt_viewer_display_vnc_new(session, session->priv->vnc);
122122 g_debug("Disconnected");
123123 g_signal_emit_by_name(session, "session-disconnected", NULL);
124 virt_viewer_display_set_enabled(VIRT_VIEWER_DISPLAY(display), FALSE);
124125 virt_viewer_display_set_show_hint(VIRT_VIEWER_DISPLAY(display),
125126 VIRT_VIEWER_DISPLAY_SHOW_HINT_READY, FALSE);
126127 }