[virt-tools-list] [PATCH 10/11] window: Call virt_viewer_app_quit instead of gtk_main_quit
Hans de Goede
hdegoede at redhat.com
Sun Mar 4 19:06:01 UTC 2012
When quiting from the fullscreen menu call virt_viewer_app_quit instead of
gtk_main_quit so that the session gets properly disconnected before quiting.
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
src/virt-viewer-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index 77283f5..f55eb84 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -803,7 +803,7 @@ virt_viewer_window_toolbar_setup(VirtViewerWindow *self)
gtk_tool_item_set_tooltip_text(GTK_TOOL_ITEM(button), _("Disconnect"));
gtk_widget_show(GTK_WIDGET(button));
gtk_toolbar_insert(GTK_TOOLBAR(priv->toolbar), GTK_TOOL_ITEM (button), 0);
- g_signal_connect(button, "clicked", G_CALLBACK(gtk_main_quit), NULL);
+ g_signal_connect(button, "clicked", G_CALLBACK(virt_viewer_window_menu_file_quit), self);
/* Leave fullscreen */
button = GTK_WIDGET(gtk_tool_button_new_from_stock(GTK_STOCK_LEAVE_FULLSCREEN));
--
1.7.7.6
More information about the virt-tools-list
mailing list