[gnome-software: 1/2] gs-shell-search-provider: Fix crash in variant handling for icons
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/2] gs-shell-search-provider: Fix crash in variant handling for icons
- Date: Thu, 18 Mar 2021 13:54:56 +0000 (UTC)
commit 80834ed7d336f103cfc7199fa96c6f2a860be438
Author: Philip Withnall <pwithnall endlessos org>
Date: Thu Mar 18 13:11:36 2021 +0000
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]