[gnome-software] trivial: Actually show the update text in the updates view
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Actually show the update text in the updates view
- Date: Mon, 11 Mar 2013 21:05:40 +0000 (UTC)
commit dbf2d3714c27712724a4eaac6f38901de08552c1
Author: Richard Hughes <richard hughsie com>
Date: Mon Mar 11 21:05:35 2013 +0000
trivial: Actually show the update text in the updates view
src/gs-plugin-loader.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 44e0aaa..170a42f 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -265,6 +265,7 @@ cd_plugin_loader_get_updates_thread_cb (GSimpleAsyncResult *res,
GObject *object,
GCancellable *cancellable)
{
+ const gchar *tmp;
gboolean has_os_update = FALSE;
GdkPixbuf *pixbuf = NULL;
GError *error = NULL;
@@ -292,7 +293,11 @@ cd_plugin_loader_get_updates_thread_cb (GSimpleAsyncResult *res,
app_tmp = GS_APP (l->data);
if (gs_app_get_kind (app_tmp) == GS_APP_KIND_PACKAGE) {
has_os_update = TRUE;
- break;
+ } else {
+ /* if we have update text, then use it */
+ tmp = gs_app_get_metadata_item (app_tmp, "update-details");
+ if (tmp != NULL && tmp[0] != '\0')
+ gs_app_set_summary (app_tmp, tmp);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]