]> Pileus Git - ~andy/gtk/commitdiff
set alternative button order on the password dialog.
authorSven Neumann <sven@gimp.org>
Tue, 18 Mar 2008 09:21:15 +0000 (09:21 +0000)
committerSven Neumann <neo@src.gnome.org>
Tue, 18 Mar 2008 09:21:15 +0000 (09:21 +0000)
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

ChangeLog
gtk/gtkmountoperation.c

index a125e4b89a6782b65e04609843e795b64cc23dff..275fca3910540a92d6f793d162a6b0974eded36f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-18  Sven Neumann  <sven@gimp.org>
+
+       * gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): set
+       alternative button order on the password dialog.
+
 2008-03-18  Tor Lillqvist  <tml@novell.com>
 
        Bug 99192 - Add --with-include-input-modules
index 54382304416c54a30bb7420d309f27ca49eb81e9..6414c5c743b6c5452af9c59d8c814e4d18cf2198 100644 (file)
@@ -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));