From 2f8d4369433a277012679bf877633e686820eab8 Mon Sep 17 00:00:00 2001 From: Dan Breslau Date: Thu, 25 Aug 2016 18:50:53 -0400 Subject: [PATCH] For consistency with GTK standards, put Cancel button on the left of the OK button --- src/moonshot-identity-dialog.vala | 2 +- src/moonshot-password-dialog.vala | 4 ++-- src/moonshot-trust-anchor-dialog.vala | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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); -- 2.1.4