[gnome-software] 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] Use the correct vfunc template for gs_plugin_update_app()
- Date: Wed, 17 May 2017 10:58:46 +0000 (UTC)
commit ce976f4087ce680ed564ccb17abd6b42d9e1d5b4
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 91a17df..0b33a92 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -627,9 +627,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]