From 697b4929ac22a1014db0b81270d1d01b51a773bf Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 15 Oct 2013 17:09:53 +0200 Subject: [PATCH] Make 'Cancel' the default action in exit dialog In the 'Do you want to close the session dialog?', the default focus is currently on the 'Do not ask me again' checkbox. The purpose of this dialog is to make sure that the user does not inadvertantly exit remote-viewer, this commit changes the default action in this dialog to be 'cancel' rather than switching the 'Do not ask me again 'checkbox. --- src/virt-viewer-app.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c index 445fe26..74678dd 100644 --- a/src/virt-viewer-app.c +++ b/src/virt-viewer-app.c @@ -297,6 +297,7 @@ virt_viewer_app_maybe_quit(VirtViewerApp *self, VirtViewerWindow *window) gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), check); gtk_widget_show(check); + gtk_dialog_set_default_response (GTK_DIALOG(dialog), GTK_RESPONSE_CANCEL); gint result = gtk_dialog_run(GTK_DIALOG(dialog)); gboolean dont_ask = FALSE;