[gimp] app, pdb: fixing gimp_vectors_export*() libgimp API.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app, pdb: fixing gimp_vectors_export*() libgimp API.
- Date: Thu, 20 Oct 2022 17:07:58 +0000 (UTC)
commit a77c64fafe6ab25d639f252f5166ac0d19a3cdab
Author: Jehan <jehan girinstud io>
Date: Thu Oct 20 18:57:52 2022 +0200
app, pdb: fixing gimp_vectors_export*() libgimp API.
It seems I forgot to fix some usage of core gimp_vectors_export*(),
which now take a list of paths (not a single path anymore since commit
9fc8260c7c), as these were used by PDB functions.
app/pdb/vectors-cmds.c | 11 +++++++++--
pdb/groups/vectors.pdb | 11 +++++++++--
2 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/app/pdb/vectors-cmds.c b/app/pdb/vectors-cmds.c
index c4950c2cfc..68a3ebc753 100644
--- a/app/pdb/vectors-cmds.c
+++ b/app/pdb/vectors-cmds.c
@@ -1293,7 +1293,11 @@ vectors_export_to_file_invoker (GimpProcedure *procedure,
if (success)
{
- success = gimp_vectors_export_file (image, vectors, file, error);
+ GList *vectors_list = g_list_prepend (NULL, vectors);
+
+ success = gimp_vectors_export_file (image, vectors_list, file, error);
+
+ g_list_free (vectors_list);
}
return gimp_procedure_get_return_values (procedure, success,
@@ -1319,7 +1323,10 @@ vectors_export_to_string_invoker (GimpProcedure *procedure,
if (success)
{
- string = gimp_vectors_export_string (image, vectors);
+ GList *vectors_list = g_list_prepend (NULL, vectors);
+
+ string = gimp_vectors_export_string (image, vectors_list);
+ g_list_free (vectors_list);
success = (string != NULL);
}
diff --git a/pdb/groups/vectors.pdb b/pdb/groups/vectors.pdb
index 759cd26597..709844c801 100644
--- a/pdb/groups/vectors.pdb
+++ b/pdb/groups/vectors.pdb
@@ -1274,7 +1274,11 @@ HELP
headers => [ qw("vectors/gimpvectors-export.h") ],
code => <<'CODE'
{
- success = gimp_vectors_export_file (image, vectors, file, error);
+ GList *vectors_list = g_list_prepend (NULL, vectors);
+
+ success = gimp_vectors_export_file (image, vectors_list, file, error);
+
+ g_list_free (vectors_list);
}
CODE
);
@@ -1308,7 +1312,10 @@ HELP
headers => [ qw("vectors/gimpvectors-export.h") ],
code => <<'CODE'
{
- string = gimp_vectors_export_string (image, vectors);
+ GList *vectors_list = g_list_prepend (NULL, vectors);
+
+ string = gimp_vectors_export_string (image, vectors_list);
+ g_list_free (vectors_list);
success = (string != NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]