[gnome-software] fwupd: Get the device name from the FwupdDevice
- From: Richard Hughes <rhughes src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-software] fwupd: Get the device name from the FwupdDevice
 
- Date: Fri, 29 Sep 2017 11:14:08 +0000 (UTC)
 
commit 12de55149d5cc181a22c24e4454cb031c3159f12
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 b92aef0..7246dc6 100644
--- a/plugins/fwupd/gs-fwupd-app.c
+++ b/plugins/fwupd/gs-fwupd-app.c
@@ -134,6 +134,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]