[gnome-software: 6/7] flatpak: Load the comment from a FlatpakRemote
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 6/7] flatpak: Load the comment from a FlatpakRemote
- Date: Wed, 1 Dec 2021 13:16:45 +0000 (UTC)
commit 080d60a0e3dafc55ea51e8865388d250bd400dd8
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Nov 30 16:23:16 2021 +0000
flatpak: Load the comment from a FlatpakRemote
This improves round trips of information between `FlatpakRemote` and its
representation as a `GsApp`.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Helps: #1507
plugins/flatpak/gs-flatpak-utils.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/plugins/flatpak/gs-flatpak-utils.c b/plugins/flatpak/gs-flatpak-utils.c
index 3e0dc74c0..9932bb6f1 100644
--- a/plugins/flatpak/gs-flatpak-utils.c
+++ b/plugins/flatpak/gs-flatpak-utils.c
@@ -74,6 +74,7 @@ gs_flatpak_app_new_from_remote (GsPlugin *plugin,
g_autofree gchar *url = NULL;
g_autofree gchar *filter = NULL;
g_autofree gchar *description = NULL;
+ g_autofree gchar *comment = NULL;
g_autoptr(GsApp) app = NULL;
app = gs_flatpak_app_new (flatpak_remote_get_name (xremote));
@@ -118,6 +119,10 @@ gs_flatpak_app_new_from_remote (GsPlugin *plugin,
if (filter != NULL)
gs_flatpak_app_set_repo_filter (app, filter);
+ comment = flatpak_remote_get_comment (xremote);
+ if (comment != NULL)
+ gs_app_set_summary (app, GS_APP_QUALITY_NORMAL, comment);
+
/* success */
return g_steal_pointer (&app);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]