[gnome-software] Show the package names in the OS Updates dialog



commit a6e75223f33c3eff541e96c8adf18600f5ac46fa
Author: Richard Hughes <richard hughsie com>
Date:   Sat Sep 7 10:15:32 2013 +0100

    Show the package names in the OS Updates dialog
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=707668

 src/gs-shell-updates.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index eda8f90..4bca8a1 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -194,7 +194,7 @@ gs_shell_updates_set_updates_description_ui (GsShellUpdates *shell_updates, GsAp
                gtk_window_set_title (GTK_WINDOW (widget), gs_app_get_name (app));
        } else {
                tmp = g_strdup_printf ("%s %s",
-                                      gs_app_get_name (app),
+                                      gs_app_get_metadata_item (app, "package-name"),
                                       gs_app_get_version (app));
                gtk_window_set_title (GTK_WINDOW (widget), tmp);
                g_free (tmp);
@@ -266,7 +266,7 @@ show_update_details (GsApp *app, GsShellUpdates *shell_updates)
                        app_related = g_ptr_array_index (related, i);
                         row = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
                         g_object_set_data_full (G_OBJECT (row), "app", g_object_ref (app_related), 
g_object_unref);
-                        label = gtk_label_new (gs_app_get_name (app_related));
+                        label = gtk_label_new (gs_app_get_metadata_item (app_related, "package-name"));
                         g_object_set (label,
                                       "margin-left", 20,
                                       "margin-right", 20,


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