[gnome-software] Update Fedora third party repositories "Find out more..." link



commit 3f7670f374e573f261e08dc4cb3a44faa4b9dc72
Author: Kalev Lember <klember redhat com>
Date:   Thu Apr 5 15:17:54 2018 +0200

    Update Fedora third party repositories "Find out more..." link
    
    Instead of a generic wikipedia link, point it to Fedora wiki.

 src/gs-overview-page.c | 14 +++++---------
 src/gs-repos-dialog.c  | 14 +++++---------
 2 files changed, 10 insertions(+), 18 deletions(-)
---
diff --git a/src/gs-overview-page.c b/src/gs-overview-page.c
index ea0f12e5..cbb45ef3 100644
--- a/src/gs-overview-page.c
+++ b/src/gs-overview-page.c
@@ -874,7 +874,6 @@ gs_overview_page_setup (GsPage *page,
        GtkAdjustment *adj;
        GtkWidget *tile;
        gint i;
-       g_autofree gchar *uri = NULL;
        g_autoptr(GString) str = g_string_new (NULL);
 
        g_return_val_if_fail (GS_IS_OVERVIEW_PAGE (self), TRUE);
@@ -892,14 +891,11 @@ gs_overview_page_setup (GsPage *page,
        g_string_append (str,
                         /* TRANSLATORS: this is the third party repositories info bar. */
                         _("Some of this software is proprietary and therefore has restrictions on use, 
sharing, and access to source code."));
-       /* optional URL */
-       uri = g_settings_get_string (priv->settings, "nonfree-software-uri");
-       if (uri != NULL && uri[0] != '\0') {
-               g_string_append_printf (str, " <a href=\"%s\">%s</a>", uri,
-                                       /* TRANSLATORS: this is the clickable
-                                        * link on the third party repositories info bar */
-                                       _("Find out more…"));
-       }
+       g_string_append_printf (str, " <a href=\"%s\">%s</a>",
+                               
"https://fedoraproject.org/wiki/Workstation/Third_Party_Software_Repositories";,
+                               /* TRANSLATORS: this is the clickable
+                                * link on the third party repositories info bar */
+                               _("Find out more…"));
        gtk_label_set_markup (GTK_LABEL (priv->label_third_party), str->str);
 
        /* create info bar if not already dismissed in initial-setup */
diff --git a/src/gs-repos-dialog.c b/src/gs-repos-dialog.c
index 47495a3d..0fa9e103 100644
--- a/src/gs-repos-dialog.c
+++ b/src/gs-repos-dialog.c
@@ -731,7 +731,6 @@ gs_repos_dialog_init (GsReposDialog *dialog)
        g_autofree gchar *label_description_text = NULL;
        g_autofree gchar *label_empty_text = NULL;
        g_autofree gchar *os_name = NULL;
-       g_autofree gchar *uri = NULL;
        g_autoptr(GString) str = g_string_new (NULL);
 
        gtk_widget_init_template (GTK_WIDGET (dialog));
@@ -779,14 +778,11 @@ gs_repos_dialog_init (GsReposDialog *dialog)
        g_string_append (str,
                         /* TRANSLATORS: this is the third party repositories info bar. */
                         _("Some of this software is proprietary and therefore has restrictions on use, 
sharing, and access to source code."));
-       /* optional URL */
-       uri = g_settings_get_string (dialog->settings, "nonfree-software-uri");
-       if (uri != NULL && uri[0] != '\0') {
-               g_string_append_printf (str, " <a href=\"%s\">%s</a>", uri,
-                                       /* TRANSLATORS: this is the clickable
-                                        * link on the third party repositories info bar */
-                                       _("Find out more…"));
-       }
+       g_string_append_printf (str, " <a href=\"%s\">%s</a>",
+                               
"https://fedoraproject.org/wiki/Workstation/Third_Party_Software_Repositories";,
+                               /* TRANSLATORS: this is the clickable
+                                * link on the third party repositories info bar */
+                               _("Find out more…"));
        gs_third_party_repo_row_set_comment (GS_THIRD_PARTY_REPO_ROW (dialog->row_third_party), str->str);
        refresh_third_party_repo (dialog);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]