[gnome-software] Get the name and summary from fwupd if provided
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Get the name and summary from fwupd if provided
- Date: Mon, 29 Feb 2016 11:57:53 +0000 (UTC)
commit 6425293134235c833055f3e681d94fd0df1db0e0
Author: Richard Hughes <richard hughsie com>
Date: Mon Feb 29 11:52:57 2016 +0000
Get the name and summary from fwupd if provided
This isn't really required for the UI, but makes the debug logs make sense.
src/plugins/gs-plugin-fwupd.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fwupd.c b/src/plugins/gs-plugin-fwupd.c
index 37de596..5a0ff1b 100644
--- a/src/plugins/gs-plugin-fwupd.c
+++ b/src/plugins/gs-plugin-fwupd.c
@@ -216,6 +216,16 @@ gs_plugin_fwupd_set_app_from_kv (GsApp *app, const gchar *key, GVariant *val)
gs_app_set_metadata (app, "GUID", g_variant_get_string (val, NULL));
return;
}
+ if (g_strcmp0 (key, "Name") == 0) {
+ gs_app_set_name (app, GS_APP_QUALITY_NORMAL,
+ g_variant_get_string (val, NULL));
+ return;
+ }
+ if (g_strcmp0 (key, "Summary") == 0) {
+ gs_app_set_summary (app, GS_APP_QUALITY_NORMAL,
+ g_variant_get_string (val, NULL));
+ return;
+ }
if (g_strcmp0 (key, "Version") == 0) {
gs_app_set_version (app, g_variant_get_string (val, NULL));
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]