summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-03-04 19:15:34 +0100
committerHans de Goede <hdegoede@redhat.com>2012-03-06 12:55:30 +0100
commitec5eaecb42643f3dc1cd43c8975a3d1b66f2d60a (patch)
tree5527b84f60c1dd9c974d612f5d264370d6485b1f
parent8ec03e50974330c3813df68e16b38702e216f9fd (diff)
window: Call virt_viewer_app_quit instead of gtk_main_quit
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@redhat.com>
-rw-r--r--src/virt-viewer-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index 2a6f0f4..befabe9 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));