[virt-tools-list] [virt-viewer 2/2] Make 'Cancel' the default action in exit dialog
Christophe Fergeau
cfergeau at redhat.com
Tue Oct 15 15:20:13 UTC 2013
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..a272caf 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_OK);
gint result = gtk_dialog_run(GTK_DIALOG(dialog));
gboolean dont_ask = FALSE;
--
1.8.3.1
More information about the virt-tools-list
mailing list