[gnome-software/gnome-3-26] fwupd: Get the device name from the FwupdDevice



commit 5352c86bab144da26cc8bec21ea89ba2978ee6be
Author: Richard Hughes <richard hughsie com>
Date:   Fri Sep 29 12:12:03 2017 +0100

    fwupd: Get the device name from the FwupdDevice

 plugins/fwupd/gs-fwupd-app.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/plugins/fwupd/gs-fwupd-app.c b/plugins/fwupd/gs-fwupd-app.c
index 39859c2..43d4a99 100644
--- a/plugins/fwupd/gs-fwupd-app.c
+++ b/plugins/fwupd/gs-fwupd-app.c
@@ -94,6 +94,14 @@ gs_fwupd_app_set_from_device (GsApp *app, FwupdDevice *dev)
                guid_str = g_strjoinv (",", tmp);
                gs_app_set_metadata (app, "fwupd::Guid", guid_str);
        }
+       if (fwupd_device_get_name (dev) != NULL) {
+               gs_app_set_name (app, GS_APP_QUALITY_NORMAL,
+                                fwupd_device_get_name (dev));
+       }
+       if (fwupd_device_get_summary (dev) != NULL) {
+               gs_app_set_summary (app, GS_APP_QUALITY_NORMAL,
+                                   fwupd_device_get_summary (dev));
+       }
        if (fwupd_device_get_version (dev) != NULL) {
                gs_app_set_version (app, fwupd_device_get_version (dev));
        }


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