[gnome-software: 1/2] core: Fix use of new libxmlb API
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/2] core: Fix use of new libxmlb API
- Date: Mon, 4 Jan 2021 22:39:33 +0000 (UTC)
commit 4dc409a5fe2b6b0879af0e99b9f7d98540e90613
Author: Philip Withnall <pwithnall endlessos org>
Date: Mon Jan 4 18:27:40 2021 +0000
core: Fix use of new libxmlb API
The API which landed changed slightly from what was merged in commit
f85d9bfd2c914d5617a710343be68fbe01ae1f15. Update the calls in
gnome-software to match what’s in libxmlb master.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
plugins/core/gs-appstream.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/core/gs-appstream.c b/plugins/core/gs-appstream.c
index 82b8447e..866013d6 100644
--- a/plugins/core/gs-appstream.c
+++ b/plugins/core/gs-appstream.c
@@ -1086,9 +1086,9 @@ gs_appstream_silo_search_component2 (GPtrArray *array, XbNode *component, const
g_autoptr(GPtrArray) n = NULL;
GsAppstreamSearchHelper *helper = g_ptr_array_index (array, i);
#if LIBXMLB_CHECK_VERSION(0, 3, 0)
- g_auto(XbValueBindings) bindings = XB_VALUE_BINDINGS_INIT ();
- xb_value_bindings_bind_str (&bindings, 0, search, NULL);
- n = xb_node_query_with_bindings (component, helper->query, &bindings, NULL);
+ g_auto(XbQueryContext) context = XB_QUERY_CONTEXT_INIT ();
+ xb_value_bindings_bind_str (xb_query_context_get_bindings (&context), 0, search, NULL);
+ n = xb_node_query_with_context (component, helper->query, &context, NULL);
#else
xb_query_bind_str (helper->query, 0, search, NULL);
n = xb_node_query_full (component, helper->query, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]