From: Dan Breslau Date: Thu, 25 Aug 2016 22:50:53 +0000 (-0400) Subject: For consistency with GTK standards, put Cancel button on the left of the OK button X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot-ui.git;a=commitdiff_plain;h=2f8d4369433a277012679bf877633e686820eab8;hp=42c3796bcbe056e7058652eda8751a853b6f745d For consistency with GTK standards, put Cancel button on the left of the OK button --- diff --git a/src/moonshot-identity-dialog.vala b/src/moonshot-identity-dialog.vala index bb017fe..3eb8c2b 100644 --- a/src/moonshot-identity-dialog.vala +++ b/src/moonshot-identity-dialog.vala @@ -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:"); diff --git a/src/moonshot-password-dialog.vala b/src/moonshot-password-dialog.vala index 5e22023..52e8c5a 100644 --- a/src/moonshot-password-dialog.vala +++ b/src/moonshot-password-dialog.vala @@ -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); diff --git a/src/moonshot-trust-anchor-dialog.vala b/src/moonshot-trust-anchor-dialog.vala index 695aa63..0537494 100644 --- a/src/moonshot-trust-anchor-dialog.vala +++ b/src/moonshot-trust-anchor-dialog.vala @@ -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);