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
=== modified file 'Makefile.am'
--- Makefile.am 2012-09-18 10:12:12 +0000
+++ Makefile.am 2012-09-26 06:46:21 +0000
@@ -10,6 +10,7 @@
10libaccount_plugin_@LIBACCOUNT_PLUGIN_API_VERSION@_la_CPPFLAGS = \10libaccount_plugin_@LIBACCOUNT_PLUGIN_API_VERSION@_la_CPPFLAGS = \
11 -include $(top_builddir)/config.h \11 -include $(top_builddir)/config.h \
12 -DLIBACCOUNT_PLUGIN_DIR=\"$(LIBACCOUNT_PLUGIN_DIR)\" \12 -DLIBACCOUNT_PLUGIN_DIR=\"$(LIBACCOUNT_PLUGIN_DIR)\" \
13 -DG_LOG_DOMAIN=\"account-plugin\" \
13 $(LIBACCOUNT_PLUGIN_CFLAGS) \14 $(LIBACCOUNT_PLUGIN_CFLAGS) \
14 $(WARN_CFLAGS)15 $(WARN_CFLAGS)
15libaccount_plugin_@LIBACCOUNT_PLUGIN_API_VERSION@_la_LIBADD = \16libaccount_plugin_@LIBACCOUNT_PLUGIN_API_VERSION@_la_LIBADD = \
1617
=== added file 'help/C/legal-notice.page'
--- help/C/legal-notice.page 1970-01-01 00:00:00 +0000
+++ help/C/legal-notice.page 2012-09-26 06:46:21 +0000
@@ -0,0 +1,93 @@
1<page xmlns="http://projectmallard.org/1.0/"
2 type="topic" style="task"
3 id="legal-notice">
4
5 <info>
6 <link type="guide" xref="index#information"/>
7
8 <revision version="0.1" date="2012-09-25" status="candidate"/>
9
10 <credit type="author">
11 <name>David King</name>
12 <email>david.king@canonical.com</email>
13 <years>2012</years>
14 </credit>
15 <credit type="copyright">
16 <name>Canonical Ltd.</name>
17 <years>2012</years>
18 </credit>
19 <license>
20 <p>Creative Commons Attribution-ShareAlike 3.0</p>
21 </license>
22
23 <desc>Important information about Online Accounts.</desc>
24 </info>
25
26 <title>Legal notice</title>
27
28 <p>Ubuntu Online Accounts is provided by Canonical Group Limited (Canonical).
29 This Ubuntu Online Accounts legal notice applies to your use of Ubuntu Online
30 Accounts and incorporates the terms of
31 <link href="http://www.canonical.com/legal">Canonical's legal notice</link>
32 (and privacy policy).</p>
33
34 <section id="collection-of-credentials">
35 <title>Collection and use of credential information</title>
36
37 <p>You provide Ubuntu Online Accounts with your name and password(s)
38 (credentials) for those online services you want Ubuntu Online Accounts to
39 authenticate while using Ubuntu.</p>
40
41 <p>Ubuntu Online Accounts collects and stores your credentials when you
42 enter them in the web authentication dialog and uses them, and
43 authentication cookies, to provide authentication to those online services
44 each time you access them while using Ubuntu.</p>
45
46 <p>By using Ubuntu Online Accounts you consent to:</p>
47 <list>
48 <item><p>the collection and use of your credentials in this way;</p></item>
49 <item><p>the use of authentication cookies; and</p></item>
50 <item><p>the storage of your credentials and the authentication cookies on your Ubuntu computer.</p></item>
51 </list>
52 <p>Canonical will not access or use your credentials or authentication
53 cookies in any other way.</p>
54 </section>
55
56 <section id="links-and-third-party-content">
57 <title>Links and third party content</title>
58
59 <p>Ubuntu Online Accounts provides links to online services. Canonical has
60 no affiliation or partnership with the online services you link to from
61 Ubuntu Online Accounts. Any trademarks, logos and service marks displayed
62 on Ubuntu Online Accounts are the property of their owners, whether
63 Canonical or third parties. For further information on links to third party
64 sites and content please see Canonical's legal notice.</p>
65 </section>
66
67 <section id="ceasing-use">
68 <title>Ceasing use</title>
69
70 <p>You may cease using Ubuntu Online Accounts at any time. If you cease
71 using Ubuntu Online Accounts, or wish to cease using it for certain online
72 services, please ensure that you have removed all of your credentials from
73 the “Online Accounts” entry of your Ubuntu System Settings.</p>
74 </section>
75
76 <section id="changes">
77 <title>Changes</title>
78
79 <p>Although most changes are likely to be minor, Canonical may change this
80 legal notice from time to time, and at Canonical's sole discretion. Please
81 check this page from time to time for any changes to this legal notice as
82 we will not be able to notify you directly.</p>
83 </section>
84
85 <section id="contact-us">
86 <title>How to contact us</title>
87
88 <p>Please submit any questions or comments about Ubuntu Online Accounts or
89 this legal notice by contacting us at the following address: Canonical
90 Group Ltd, 5th Floor, Blue Fin Building, 110 Southwark Street, London,
91 England, SE1 0SU.</p>
92 </section>
93</page>
094
=== modified file 'help/Makefile.am'
--- help/Makefile.am 2012-04-10 12:52:15 +0000
+++ help/Makefile.am 2012-09-26 06:46:21 +0000
@@ -7,5 +7,6 @@
7 introduction.page \7 introduction.page \
8 add-account.page \8 add-account.page \
9 disable-account.page \9 disable-account.page \
10 legal-notice.page \
10 remove-account.page \11 remove-account.page \
11 supported-services.page12 supported-services.page
1213
=== modified file 'libaccount-plugin/oauth-plugin.c'
--- libaccount-plugin/oauth-plugin.c 2012-09-10 11:15:39 +0000
+++ libaccount-plugin/oauth-plugin.c 2012-09-26 06:46:21 +0000
@@ -483,7 +483,9 @@
483create_infobar (ApOAuthPlugin *self)483create_infobar (ApOAuthPlugin *self)
484{484{
485 GtkWidget *infobar;485 GtkWidget *infobar;
486 GtkWidget *grid;
486 GtkWidget *infobar_label;487 GtkWidget *infobar_label;
488 GtkWidget *legal_button;
487 GtkWidget *content_area;489 GtkWidget *content_area;
488 GtkCssProvider *css;490 GtkCssProvider *css;
489 GError *error;491 GError *error;
@@ -501,15 +503,23 @@
501 g_signal_connect (infobar, "response",503 g_signal_connect (infobar, "response",
502 G_CALLBACK (on_infobar_response), self);504 G_CALLBACK (on_infobar_response), self);
503505
506 grid = gtk_grid_new ();
507
504 provider = ap_plugin_get_provider ((ApPlugin *)self);508 provider = ap_plugin_get_provider ((ApPlugin *)self);
505 text = g_strdup_printf (_("Please authorize Ubuntu to access "509 text = g_strdup_printf (_("Please authorize Ubuntu to access "
506 "your %s account"),510 "your %s account."),
507 ag_provider_get_display_name (provider));511 ag_provider_get_display_name (provider));
508 infobar_label = gtk_label_new (text);512 infobar_label = gtk_label_new (text);
509 g_free (text);513 g_free (text);
510514
515 gtk_container_add (GTK_CONTAINER (grid), infobar_label);
516
517 legal_button = gtk_link_button_new_with_label ("help:web-credentials/legal-notice",
518 _("Learn more"));
519 gtk_container_add (GTK_CONTAINER (grid), legal_button);
520
511 content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (infobar));521 content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (infobar));
512 gtk_container_add (GTK_CONTAINER (content_area), infobar_label);522 gtk_container_add (GTK_CONTAINER (content_area), grid);
513523
514 css = gtk_css_provider_new ();524 css = gtk_css_provider_new ();
515 error = NULL;525 error = NULL;
516526
=== modified file 'src/cc-credentials-accounts-page.vala'
--- src/cc-credentials-accounts-page.vala 2012-08-09 09:02:03 +0000
+++ src/cc-credentials-accounts-page.vala 2012-09-26 06:46:21 +0000
@@ -98,8 +98,9 @@
98 row_spacing = 6;98 row_spacing = 6;
99 column_spacing = 12;99 column_spacing = 12;
100100
101 this.add (create_accounts_tree ());101 this.attach (create_legal_button (), 0, 0, 2, 1);
102 this.add (create_accounts_notebook ());102 this.attach (create_accounts_tree (), 0, 1, 1, 1);
103 this.attach (create_accounts_notebook (), 1, 1, 1, 1);
103104
104 // Force handling of the changed signal.105 // Force handling of the changed signal.
105 var selection = accounts_tree.get_selection ();106 var selection = accounts_tree.get_selection ();
@@ -111,6 +112,26 @@
111 }112 }
112113
113 /**114 /**
115 * Create the buttonbox containing the button to display a legal notice.
116 *
117 * @return a Gtk.ButtonBox for presecting the legal notice button
118 */
119 private Gtk.Widget create_legal_button ()
120 {
121 var buttonbox = new Gtk.ButtonBox (Gtk.Orientation.HORIZONTAL);
122 var legal_button = new Gtk.LinkButton.with_label ("help:"
123 + "web-credentials"
124 + "/legal-notice",
125 _("Legal notice"));
126
127 buttonbox.layout_style = Gtk.ButtonBoxStyle.END;
128 buttonbox.add (legal_button);
129 buttonbox.show_all ();
130
131 return buttonbox;
132 }
133
134 /**
114 * Create the treeview for the list of accounts and show it.135 * Create the treeview for the list of accounts and show it.
115 *136 *
116 * @return a Gtk.ScrolledWindow containing a treeview of accounts137 * @return a Gtk.ScrolledWindow containing a treeview of accounts

Subscribers

People subscribed via source and target branches

to all changes: