summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer-app.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2013-04-25 21:54:24 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-04-25 22:16:04 +0200
commit20eb200ca50a3e9f00afd7a02bb5b81119fee5dd (patch)
treef639aa9eae35eefef9768be48ee09b5808e82112 /src/virt-viewer-app.h
parent284aecf0ce80c9784962d49d28e98dfb4705de34 (diff)
downloadvirt-viewer-20eb200ca50a3e9f00afd7a02bb5b81119fee5dd.tar.gz
virt-viewer-20eb200ca50a3e9f00afd7a02bb5b81119fee5dd.tar.xz
virt-viewer-20eb200ca50a3e9f00afd7a02bb5b81119fee5dd.zip
Exit virt-viewer when trying to close any window
Currently, in multi-screen scenarios, when closing one remote-viewer window, the corresponding screen gets disabled in the guest OS. This can be confusing as this behaves very differently from File/Quit. This commit will exit the whole application when the user tries to close one of virt-viewer window.
Diffstat (limited to 'src/virt-viewer-app.h')
-rw-r--r--src/virt-viewer-app.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/virt-viewer-app.h b/src/virt-viewer-app.h
index b2ef7e1..32bc7fb 100644
--- a/src/virt-viewer-app.h
+++ b/src/virt-viewer-app.h
@@ -65,6 +65,7 @@ void virt_viewer_app_set_title(VirtViewerApp *app, const char *title);
void virt_viewer_app_set_debug(gboolean debug);
gboolean virt_viewer_app_start(VirtViewerApp *app);
void virt_viewer_app_quit(VirtViewerApp *self);
+void virt_viewer_app_maybe_quit(VirtViewerApp *self, VirtViewerWindow *window);
VirtViewerWindow* virt_viewer_app_get_main_window(VirtViewerApp *self);
void virt_viewer_app_trace(VirtViewerApp *self, const char *fmt, ...);
void virt_viewer_app_simple_message_dialog(VirtViewerApp *self, const char *fmt, ...);