[gnome-software] dummy: Only define refine(), not refine_app()
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] dummy: Only define refine(), not refine_app()
- Date: Wed, 22 Apr 2020 12:03:13 +0000 (UTC)
commit 83041b046f66a2686739ea2ad9b093208754f087
Author: Philip Withnall <withnall endlessm com>
Date: Wed Apr 22 12:02:25 2020 +0100
dummy: Only define refine(), not refine_app()
See the previous commit for details.
Signed-off-by: Philip Withnall <withnall endlessm com>
plugins/dummy/gs-plugin-dummy.c | 29 +++++++++++++++++++++++------
1 file changed, 23 insertions(+), 6 deletions(-)
---
diff --git a/plugins/dummy/gs-plugin-dummy.c b/plugins/dummy/gs-plugin-dummy.c
index 0d8d53cb..1561787a 100644
--- a/plugins/dummy/gs-plugin-dummy.c
+++ b/plugins/dummy/gs-plugin-dummy.c
@@ -589,12 +589,12 @@ gs_plugin_update_app (GsPlugin *plugin,
return TRUE;
}
-gboolean
-gs_plugin_refine_app (GsPlugin *plugin,
- GsApp *app,
- GsPluginRefineFlags flags,
- GCancellable *cancellable,
- GError **error)
+static gboolean
+refine_app (GsPlugin *plugin,
+ GsApp *app,
+ GsPluginRefineFlags flags,
+ GCancellable *cancellable,
+ GError **error)
{
GsPluginData *priv = gs_plugin_get_data (plugin);
@@ -712,6 +712,23 @@ gs_plugin_refine_app (GsPlugin *plugin,
return TRUE;
}
+gboolean
+gs_plugin_refine (GsPlugin *plugin,
+ GsAppList *list,
+ GsPluginRefineFlags flags,
+ GCancellable *cancellable,
+ GError **error)
+{
+ for (guint i = 0; i < gs_app_list_length (list); i++) {
+ GsApp *app = gs_app_list_index (list, i);
+
+ if (!refine_app (plugin, app, flags, cancellable, error))
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
gboolean
gs_plugin_add_category_apps (GsPlugin *plugin,
GsCategory *category,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]