summaryrefslogtreecommitdiff
path: root/gtk/gtkmountoperation.c
diff options
context:
space:
mode:
authorSven Neumann <sven@gimp.org>2008-03-18 09:21:15 +0000
committerSven Neumann <neo@src.gnome.org>2008-03-18 09:21:15 +0000
commit2d12c87bdcd90b61bf080802cae13e50157409ea (patch)
treeab3afa3ce7e2f4b4ec7a4f421cacf6d5b3d6d13d /gtk/gtkmountoperation.c
parent6ce7b71f9c9bbe63b5c9e1b96baddc67878c1d95 (diff)
downloadgtk+-2d12c87bdcd90b61bf080802cae13e50157409ea.tar.gz
set alternative button order on the password dialog.
2008-03-18 Sven Neumann <sven@gimp.org> * gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): set alternative button order on the password dialog. svn path=/trunk/; revision=19897
Diffstat (limited to 'gtk/gtkmountoperation.c')
-rw-r--r--gtk/gtkmountoperation.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index 5438230441..6414c5c743 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -455,6 +455,11 @@ gtk_mount_operation_ask_password (GMountOperation *mount_op,
NULL);
gtk_dialog_set_default_response (dialog, GTK_RESPONSE_OK);
+ gtk_dialog_set_alternative_button_order (dialog,
+ GTK_RESPONSE_OK,
+ GTK_RESPONSE_CANCEL,
+ -1);
+
/* Build contents */
hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
@@ -620,7 +625,7 @@ question_dialog_button_clicked (GtkDialog *dialog,
}
else
g_mount_operation_reply (op, G_MOUNT_OPERATION_ABORTED);
-
+
priv->dialog = NULL;
g_object_notify (G_OBJECT (operation), "is-showing");
gtk_widget_destroy (GTK_WIDGET (dialog));