mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-29 08:42:19 +00:00
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>
This commit is contained in:
parent
8ec03e5097
commit
ec5eaecb42
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user