504688b143
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/gnome-software.git#dbac9fa7a31701e5c4e70faa75ee216c66053da5
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From 80834ed7d336f103cfc7199fa96c6f2a860be438 Mon Sep 17 00:00:00 2001
|
|
From: Philip Withnall <pwithnall@endlessos.org>
|
|
Date: Thu, 18 Mar 2021 13:11:36 +0000
|
|
Subject: [PATCH 4/4] gs-shell-search-provider: Fix crash in variant handling
|
|
for icons
|
|
|
|
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
|
|
|
|
Fixes: #1179
|
|
---
|
|
src/gs-shell-search-provider.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/gs-shell-search-provider.c b/src/gs-shell-search-provider.c
|
|
index 8bafc9a8c..27bbb45f7 100644
|
|
--- a/src/gs-shell-search-provider.c
|
|
+++ b/src/gs-shell-search-provider.c
|
|
@@ -254,7 +254,7 @@ handle_get_result_metas (GsShellSearchProvider2 *skeleton,
|
|
if (icon != NULL) {
|
|
g_autofree gchar *icon_str = g_icon_to_string (icon);
|
|
if (icon_str != NULL) {
|
|
- g_variant_builder_add (&meta, "{sv}", "gicon", icon_str);
|
|
+ g_variant_builder_add (&meta, "{sv}", "gicon", g_variant_new_string (icon_str));
|
|
} else {
|
|
g_autoptr(GVariant) icon_serialized = g_icon_serialize (icon);
|
|
g_variant_builder_add (&meta, "{sv}", "icon", icon_serialized);
|
|
--
|
|
2.30.2
|
|
|