[gimp] plug-ins: help: use new API to call the help browser
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: help: use new API to call the help browser
- Date: Tue, 30 Jul 2019 19:16:35 +0000 (UTC)
commit 46cacb5ebd6ad794ba360027ff8d79fab4380dbb
Author: Michael Natterer <mitch gimp org>
Date: Tue Jul 30 21:16:07 2019 +0200
plug-ins: help: use new API to call the help browser
plug-ins/help/help.c | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/plug-ins/help/help.c b/plug-ins/help/help.c
index a20ea139aa..8d9d4fd32c 100644
--- a/plug-ins/help/help.c
+++ b/plug-ins/help/help.c
@@ -348,20 +348,22 @@ help_load_idle (gpointer data)
if (uri)
{
- GimpParam *return_vals;
- gint n_return_vals;
+ GimpValueArray *args;
+ GimpValueArray *return_vals;
#ifdef GIMP_HELP_DEBUG
g_printerr ("help: calling '%s' for '%s'\n",
idle_help->procedure, uri);
#endif
- return_vals = gimp_run_procedure (idle_help->procedure,
- &n_return_vals,
- GIMP_PDB_STRING, uri,
- GIMP_PDB_END);
+ args = gimp_value_array_new_from_types (G_TYPE_STRING,
+ G_TYPE_NONE);
+ g_value_set_string (gimp_value_array_index (args, 0), uri);
- gimp_destroy_params (return_vals, n_return_vals);
+ return_vals = gimp_run_procedure_with_array (idle_help->procedure,
+ args);
+ gimp_value_array_unref (args);
+ gimp_value_array_unref (return_vals);
g_free (uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]