Skip to content

Commit

Permalink
Add privacy info (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored May 16, 2017
1 parent 5154db8 commit 47e9079
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Dialogs/StripeDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public class AppCenter.Widgets.StripeDialog : Gtk.Dialog {
email_entry.input_purpose = Gtk.InputPurpose.EMAIL;
email_entry.placeholder_text = "Email";
email_entry.primary_icon_name = "internet-mail-symbolic";
email_entry.tooltip_text = _("Your email address is used to send a receipt. It is never stored and you will not be subscribed to a mailing list.");

email_entry.changed.connect (() => {
email_entry.text = email_entry.text.replace (" ", "").down ();
Expand Down Expand Up @@ -139,10 +140,14 @@ public class AppCenter.Widgets.StripeDialog : Gtk.Dialog {

get_content_area ().add (layouts);

var action_area = get_action_area ();
var privacy_policy_link = new Gtk.LinkButton.with_label ("https://stripe.com/privacy", _("Privacy Policy"));

var action_area = (Gtk.ButtonBox) get_action_area ();
action_area.margin_right = 5;
action_area.margin_bottom = 5;
action_area.margin_top = 14;
action_area.add (privacy_policy_link);
action_area.set_child_secondary (privacy_policy_link, true);

cancel_button = (Gtk.Button) add_button (_("Cancel"), Gtk.ResponseType.CLOSE);

Expand Down

0 comments on commit 47e9079

Please sign in to comment.