[gnome-software/gnome-3-24] Use the correct vfunc template for gs_plugin_update_app()
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-24] Use the correct vfunc template for gs_plugin_update_app()
- Date: Sat, 20 May 2017 19:40:42 +0000 (UTC)
commit 6811bdae70171b1e68636fa2f1b67e405ea48883
Author: Richard Hughes <richard hughsie com>
Date: Wed May 17 11:29:44 2017 +0100
Use the correct vfunc template for gs_plugin_update_app()
I have no idea how this isn't crashing in a heap of flames every time updating
a single app fails. Maybe it is, in which case, this fix should fix that.
lib/gs-plugin-loader.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 8b151e9..246143e 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -551,9 +551,8 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderJob *job,
break;
case GS_PLUGIN_ACTION_UPDATE:
if (g_strcmp0 (job->function_name, "gs_plugin_update_app") == 0) {
- GsPluginRefineAppFunc plugin_func = func;
- ret = plugin_func (plugin, app, job->refine_flags,
- cancellable, &error_local);
+ GsPluginActionFunc plugin_func = func;
+ ret = plugin_func (plugin, app, cancellable, &error_local);
} else if (g_strcmp0 (job->function_name, "gs_plugin_update") == 0) {
GsPluginUpdateFunc plugin_func = func;
ret = plugin_func (plugin, list, cancellable, &error_local);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]