Merge lp:~amigadave/gnome-control-center-signon/legal-notice into lp:gnome-control-center-signon

Proposed by David King
Status: Merged
Approved by: Alberto Mardegan
Approved revision: 113
Merged at revision: 107
Proposed branch: lp:~amigadave/gnome-control-center-signon/legal-notice
Merge into: lp:gnome-control-center-signon
Diff against target: 203 lines (+130/-4)
5 files modified
Makefile.am (+1/-0)
help/C/legal-notice.page (+93/-0)
help/Makefile.am (+1/-0)
libaccount-plugin/oauth-plugin.c (+12/-2)
src/cc-credentials-accounts-page.vala (+23/-2)
To merge this branch: bzr merge lp:~amigadave/gnome-control-center-signon/legal-notice
Reviewer Review Type Date Requested Status
Alberto Mardegan (community) Approve
jenkins (community) continuous-integration Needs Fixing
Review via email: mp+126387@code.launchpad.net

Description of the change

Add legal notice button to panel UI

* Add draft legal notice
* Add link to online legal notice
* Add legal notice button to AccountsPage
* Add legal notice button to OAuth plugin widget

This will need a UI freeze exception, as it changes the UI and a few translatable strings.

To post a comment you must log in.
Revision history for this message
jenkins (martin-mrazik+qa) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alberto Mardegan (mardy) wrote :

Ugly as hell, but that's how it's designed to be... :-/
Works perfectly anyway, so thanks! :-)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile.am'
2--- Makefile.am 2012-09-18 10:12:12 +0000
3+++ Makefile.am 2012-09-26 06:46:21 +0000
4@@ -10,6 +10,7 @@
5 libaccount_plugin_@LIBACCOUNT_PLUGIN_API_VERSION@_la_CPPFLAGS = \
6 -include $(top_builddir)/config.h \
7 -DLIBACCOUNT_PLUGIN_DIR=\"$(LIBACCOUNT_PLUGIN_DIR)\" \
8+ -DG_LOG_DOMAIN=\"account-plugin\" \
9 $(LIBACCOUNT_PLUGIN_CFLAGS) \
10 $(WARN_CFLAGS)
11 libaccount_plugin_@LIBACCOUNT_PLUGIN_API_VERSION@_la_LIBADD = \
12
13=== added file 'help/C/legal-notice.page'
14--- help/C/legal-notice.page 1970-01-01 00:00:00 +0000
15+++ help/C/legal-notice.page 2012-09-26 06:46:21 +0000
16@@ -0,0 +1,93 @@
17+<page xmlns="http://projectmallard.org/1.0/"
18+ type="topic" style="task"
19+ id="legal-notice">
20+
21+ <info>
22+ <link type="guide" xref="index#information"/>
23+
24+ <revision version="0.1" date="2012-09-25" status="candidate"/>
25+
26+ <credit type="author">
27+ <name>David King</name>
28+ <email>david.king@canonical.com</email>
29+ <years>2012</years>
30+ </credit>
31+ <credit type="copyright">
32+ <name>Canonical Ltd.</name>
33+ <years>2012</years>
34+ </credit>
35+ <license>
36+ <p>Creative Commons Attribution-ShareAlike 3.0</p>
37+ </license>
38+
39+ <desc>Important information about Online Accounts.</desc>
40+ </info>
41+
42+ <title>Legal notice</title>
43+
44+ <p>Ubuntu Online Accounts is provided by Canonical Group Limited (Canonical).
45+ This Ubuntu Online Accounts legal notice applies to your use of Ubuntu Online
46+ Accounts and incorporates the terms of
47+ <link href="http://www.canonical.com/legal">Canonical's legal notice</link>
48+ (and privacy policy).</p>
49+
50+ <section id="collection-of-credentials">
51+ <title>Collection and use of credential information</title>
52+
53+ <p>You provide Ubuntu Online Accounts with your name and password(s)
54+ (credentials) for those online services you want Ubuntu Online Accounts to
55+ authenticate while using Ubuntu.</p>
56+
57+ <p>Ubuntu Online Accounts collects and stores your credentials when you
58+ enter them in the web authentication dialog and uses them, and
59+ authentication cookies, to provide authentication to those online services
60+ each time you access them while using Ubuntu.</p>
61+
62+ <p>By using Ubuntu Online Accounts you consent to:</p>
63+ <list>
64+ <item><p>the collection and use of your credentials in this way;</p></item>
65+ <item><p>the use of authentication cookies; and</p></item>
66+ <item><p>the storage of your credentials and the authentication cookies on your Ubuntu computer.</p></item>
67+ </list>
68+ <p>Canonical will not access or use your credentials or authentication
69+ cookies in any other way.</p>
70+ </section>
71+
72+ <section id="links-and-third-party-content">
73+ <title>Links and third party content</title>
74+
75+ <p>Ubuntu Online Accounts provides links to online services. Canonical has
76+ no affiliation or partnership with the online services you link to from
77+ Ubuntu Online Accounts. Any trademarks, logos and service marks displayed
78+ on Ubuntu Online Accounts are the property of their owners, whether
79+ Canonical or third parties. For further information on links to third party
80+ sites and content please see Canonical's legal notice.</p>
81+ </section>
82+
83+ <section id="ceasing-use">
84+ <title>Ceasing use</title>
85+
86+ <p>You may cease using Ubuntu Online Accounts at any time. If you cease
87+ using Ubuntu Online Accounts, or wish to cease using it for certain online
88+ services, please ensure that you have removed all of your credentials from
89+ the “Online Accounts” entry of your Ubuntu System Settings.</p>
90+ </section>
91+
92+ <section id="changes">
93+ <title>Changes</title>
94+
95+ <p>Although most changes are likely to be minor, Canonical may change this
96+ legal notice from time to time, and at Canonical's sole discretion. Please
97+ check this page from time to time for any changes to this legal notice as
98+ we will not be able to notify you directly.</p>
99+ </section>
100+
101+ <section id="contact-us">
102+ <title>How to contact us</title>
103+
104+ <p>Please submit any questions or comments about Ubuntu Online Accounts or
105+ this legal notice by contacting us at the following address: Canonical
106+ Group Ltd, 5th Floor, Blue Fin Building, 110 Southwark Street, London,
107+ England, SE1 0SU.</p>
108+ </section>
109+</page>
110
111=== modified file 'help/Makefile.am'
112--- help/Makefile.am 2012-04-10 12:52:15 +0000
113+++ help/Makefile.am 2012-09-26 06:46:21 +0000
114@@ -7,5 +7,6 @@
115 introduction.page \
116 add-account.page \
117 disable-account.page \
118+ legal-notice.page \
119 remove-account.page \
120 supported-services.page
121
122=== modified file 'libaccount-plugin/oauth-plugin.c'
123--- libaccount-plugin/oauth-plugin.c 2012-09-10 11:15:39 +0000
124+++ libaccount-plugin/oauth-plugin.c 2012-09-26 06:46:21 +0000
125@@ -483,7 +483,9 @@
126 create_infobar (ApOAuthPlugin *self)
127 {
128 GtkWidget *infobar;
129+ GtkWidget *grid;
130 GtkWidget *infobar_label;
131+ GtkWidget *legal_button;
132 GtkWidget *content_area;
133 GtkCssProvider *css;
134 GError *error;
135@@ -501,15 +503,23 @@
136 g_signal_connect (infobar, "response",
137 G_CALLBACK (on_infobar_response), self);
138
139+ grid = gtk_grid_new ();
140+
141 provider = ap_plugin_get_provider ((ApPlugin *)self);
142 text = g_strdup_printf (_("Please authorize Ubuntu to access "
143- "your %s account"),
144+ "your %s account."),
145 ag_provider_get_display_name (provider));
146 infobar_label = gtk_label_new (text);
147 g_free (text);
148
149+ gtk_container_add (GTK_CONTAINER (grid), infobar_label);
150+
151+ legal_button = gtk_link_button_new_with_label ("help:web-credentials/legal-notice",
152+ _("Learn more"));
153+ gtk_container_add (GTK_CONTAINER (grid), legal_button);
154+
155 content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (infobar));
156- gtk_container_add (GTK_CONTAINER (content_area), infobar_label);
157+ gtk_container_add (GTK_CONTAINER (content_area), grid);
158
159 css = gtk_css_provider_new ();
160 error = NULL;
161
162=== modified file 'src/cc-credentials-accounts-page.vala'
163--- src/cc-credentials-accounts-page.vala 2012-08-09 09:02:03 +0000
164+++ src/cc-credentials-accounts-page.vala 2012-09-26 06:46:21 +0000
165@@ -98,8 +98,9 @@
166 row_spacing = 6;
167 column_spacing = 12;
168
169- this.add (create_accounts_tree ());
170- this.add (create_accounts_notebook ());
171+ this.attach (create_legal_button (), 0, 0, 2, 1);
172+ this.attach (create_accounts_tree (), 0, 1, 1, 1);
173+ this.attach (create_accounts_notebook (), 1, 1, 1, 1);
174
175 // Force handling of the changed signal.
176 var selection = accounts_tree.get_selection ();
177@@ -111,6 +112,26 @@
178 }
179
180 /**
181+ * Create the buttonbox containing the button to display a legal notice.
182+ *
183+ * @return a Gtk.ButtonBox for presecting the legal notice button
184+ */
185+ private Gtk.Widget create_legal_button ()
186+ {
187+ var buttonbox = new Gtk.ButtonBox (Gtk.Orientation.HORIZONTAL);
188+ var legal_button = new Gtk.LinkButton.with_label ("help:"
189+ + "web-credentials"
190+ + "/legal-notice",
191+ _("Legal notice"));
192+
193+ buttonbox.layout_style = Gtk.ButtonBoxStyle.END;
194+ buttonbox.add (legal_button);
195+ buttonbox.show_all ();
196+
197+ return buttonbox;
198+ }
199+
200+ /**
201 * Create the treeview for the list of accounts and show it.
202 *
203 * @return a Gtk.ScrolledWindow containing a treeview of accounts

Subscribers

People subscribed via source and target branches

to all changes: