virt-viewer-app: Call virt_viewer_app_update_menu_displays on show_hint change

Since the sensitivity of the display menu-check-items depends on show_hint,
we need to call virt_viewer_app_update_menu_displays on show_hint change.

This fixes the following scenario:
1) Linux guest with upto 4 displays on a single qxl dev
2) Configure it for 2 displays
3) Switch to a text-console in the guest (ie send ctrl+alt+F3)
4) All displays except for disp 1 are now not sensitve in the menu
5) Switch back to X
6) The second display in the view->displays menu is still not sensitive

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Hans de Goede 2013-03-21 14:03:01 +01:00
parent 7ea90b8d17
commit f43c87f599

View File

@ -681,6 +681,7 @@ display_show_hint(VirtViewerDisplay *display,
virt_viewer_window_hide(win);
virt_viewer_notebook_show_status(nb, _("Waiting for display %d..."), nth + 1);
}
virt_viewer_app_update_menu_displays(self);
g_object_unref(self);
}