[gnome-initial-setup/shell/4765: 306/362] Remove metrics privacy policy
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/shell/4765: 306/362] Remove metrics privacy policy
- Date: Thu, 19 Mar 2015 01:46:48 +0000 (UTC)
commit 8a973121c72ad1f90068f0c80eb89c6321aaab61
Author: Roddy Shuler <roddy endlessm com>
Date: Wed Dec 10 21:24:41 2014 -0800
Remove metrics privacy policy
For now, we don't collect any personal data,
so we don't need or have a formal privacy policy.
The old popup dialog was redundant with the
text of the checkbox, so it can be removed.
[endlessm/eos-shell#3601]
.../pages/endless-eula/gis-endless-eula-page.c | 68 --------------------
.../pages/endless-eula/gis-endless-eula-page.ui | 2 +-
2 files changed, 1 insertions(+), 69 deletions(-)
---
diff --git a/gnome-initial-setup/pages/endless-eula/gis-endless-eula-page.c
b/gnome-initial-setup/pages/endless-eula/gis-endless-eula-page.c
index 651d48a..cb39100 100644
--- a/gnome-initial-setup/pages/endless-eula/gis-endless-eula-page.c
+++ b/gnome-initial-setup/pages/endless-eula/gis-endless-eula-page.c
@@ -45,7 +45,6 @@ G_DEFINE_TYPE_WITH_PRIVATE (GisEndlessEulaPage, gis_endless_eula_page, GIS_TYPE_
#define OBJ(type,name) ((type)gtk_builder_get_object(GIS_PAGE(page)->builder,(name)))
#define WID(name) OBJ(GtkWidget*,name)
-#define METRICS_PRIVACY_POLICY_URI "metrics-privacy-policy"
#define LICENSE_SERVICE_URI "http://localhost:3010"
static void
@@ -75,69 +74,6 @@ sync_metrics_active_state (GisEndlessEulaPage *page)
}
}
-static GtkWidget *
-build_policy_view (void)
-{
- GtkWidget *label;
- PangoAttrList *attr_list;
- PangoAttribute *attr;
-
- label = gtk_label_new (_("Endless collects metrics on user behavior and actions.\n"
- "All data sent is anonymous.\n"
- "We use the data to improve the system."));
- gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
-
- attr_list = pango_attr_list_new ();
- attr = pango_attr_scale_new (PANGO_SCALE_LARGE);
- pango_attr_list_insert (attr_list, attr);
-
- gtk_label_set_attributes (GTK_LABEL (label), attr_list);
- pango_attr_list_unref (attr_list);
-
- gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
- gtk_widget_set_vexpand (label, TRUE);
-
- return label;
-}
-
-static void
-show_metrics_privacy_policy (GisEndlessEulaPage *page)
-{
- GtkWindow *toplevel;
- GtkWidget *dialog, *view, *content_area;
-
- toplevel = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (page)));
- dialog = gtk_dialog_new_with_buttons (_("Privacy Policy"),
- toplevel,
- GTK_DIALOG_MODAL |
- GTK_DIALOG_DESTROY_WITH_PARENT |
- GTK_DIALOG_USE_HEADER_BAR,
- NULL, NULL);
- gtk_window_set_default_size (GTK_WINDOW (dialog), 400, 400);
-
- content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
- gtk_container_set_border_width (GTK_CONTAINER (content_area), 16);
-
- view = build_policy_view ();
- gtk_container_add (GTK_CONTAINER (content_area), view);
-
- gtk_widget_show_all (dialog);
-}
-
-static gboolean
-metrics_privacy_label_link_cb (GtkLabel *label,
- gchar *uri,
- GisEndlessEulaPage *page)
-{
- if (g_strcmp0 (uri, METRICS_PRIVACY_POLICY_URI) == 0)
- {
- show_metrics_privacy_policy (page);
- return TRUE;
- }
-
- return FALSE;
-}
-
static void
gis_endless_eula_page_finalize (GObject *object)
{
@@ -396,10 +332,6 @@ gis_endless_eula_page_constructed (GObject *object)
g_signal_connect_swapped (widget, "toggled",
G_CALLBACK (sync_metrics_active_state), page);
- widget = WID ("metrics-privacy-label");
- g_signal_connect (widget, "activate-link",
- G_CALLBACK (metrics_privacy_label_link_cb), page);
-
sync_metrics_active_state (page);
load_terms_view (page);
diff --git a/gnome-initial-setup/pages/endless-eula/gis-endless-eula-page.ui
b/gnome-initial-setup/pages/endless-eula/gis-endless-eula-page.ui
index 156fc85..4881b9b 100644
--- a/gnome-initial-setup/pages/endless-eula/gis-endless-eula-page.ui
+++ b/gnome-initial-setup/pages/endless-eula/gis-endless-eula-page.ui
@@ -123,7 +123,7 @@
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="yalign">0</property>
- <property name="label" translatable="yes">Automatically save and send usage statistics and
problem reports to Endless Mobile. All data is anonymous. <a href='metrics-privacy-policy'>Learn
more</a></property>
+ <property name="label" translatable="yes">Automatically save and send usage statistics and
problem reports to Endless Mobile. All data is anonymous.</property>
<property name="use_markup">True</property>
<property name="wrap">True</property>
<property name="width_chars">48</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]