For consistency with GTK standards, put Cancel button on the left of the OK button
authorDan Breslau <dbreslau@painless-security.com>
Thu, 25 Aug 2016 22:50:53 +0000 (18:50 -0400)
committerDan Breslau <dbreslau@painless-security.com>
Thu, 25 Aug 2016 22:50:53 +0000 (18:50 -0400)
src/moonshot-identity-dialog.vala
src/moonshot-password-dialog.vala
src/moonshot-trust-anchor-dialog.vala

index bb017fe..3eb8c2b 100644 (file)
@@ -118,7 +118,7 @@ class IdentityDialog : Dialog
         this.set_modal(true);
         this.set_transient_for(parent);
 
-        this.add_buttons(_("OK"), ResponseType.OK, CANCEL, ResponseType.CANCEL);
+        this.add_buttons(CANCEL, ResponseType.CANCEL, _("OK"), ResponseType.OK);
         Box content_area = (Box) this.get_content_area();
 
         displayname_label = new Label(@"$displayname_labeltext:");
index 5e22023..52e8c5a 100644 (file)
@@ -52,8 +52,8 @@ class AddPasswordDialog : Dialog
         this.set_modal(true);
         this.modify_bg(StateType.NORMAL, white);
 
-        this.add_buttons(_("Connect"), ResponseType.OK,
-                         _("Cancel"), ResponseType.CANCEL);
+        this.add_buttons(_("Cancel"), ResponseType.CANCEL,
+                         _("Connect"), ResponseType.OK);
 
         this.set_default_response(ResponseType.OK);
 
index 695aa63..0537494 100644 (file)
@@ -44,8 +44,8 @@ class TrustAnchorDialog : Dialog
         this.set_transient_for(parent);
         this.modify_bg(StateType.NORMAL, white);
 
-        this.add_buttons(_("Confirm"), ResponseType.OK,
-                         _("Cancel"), ResponseType.CANCEL);
+        this.add_buttons(_("Cancel"), ResponseType.CANCEL,
+                         _("Confirm"), ResponseType.OK);
 
         this.set_default_response(ResponseType.OK);