[gnome-software: 1/7] gs-common: Use origin UI in a prompt message to the user




commit 84a6345f69fe7417e1f0107b4ebef3b1d31e332a
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Oct 19 12:07:44 2021 +0100

    gs-common: Use origin UI in a prompt message to the user
    
    Don’t use the origin, as that’s not designed to be shown to end users in
    the UI.
    
    This fixes a “(null)” appearing in the message string when installing a
    flatpakrepo file.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #1507

 src/gs-common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-common.c b/src/gs-common.c
index a2b3eb70b..2e26bb176 100644
--- a/src/gs-common.c
+++ b/src/gs-common.c
@@ -294,7 +294,7 @@ gs_app_notify_unavailable (GsApp *app, GtkWindow *parent)
                                          "free and open source software</a>, "
                                          "and is provided by “%s”."),
                                        gs_app_get_name (app),
-                                       gs_app_get_origin (app));
+                                       gs_app_get_origin_ui (app));
        } else {
                g_string_append_printf (body,
                                        /* TRANSLATORS: the replacements are as follows:
@@ -302,7 +302,7 @@ gs_app_notify_unavailable (GsApp *app, GtkWindow *parent)
                                         * 2. Software repository name, e.g. fedora-optional */
                                        _("%s is provided by “%s”."),
                                        gs_app_get_name (app),
-                                       gs_app_get_origin (app));
+                                       gs_app_get_origin_ui (app));
        }
 
        /* tell the use what needs to be done */


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