[gimp] plug-ins: use begin_export() and end_export() in file-xbm
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: use begin_export() and end_export() in file-xbm
- Date: Wed, 23 Oct 2019 17:14:57 +0000 (UTC)
commit ba77ce58c7cf62f0bda943c16feb575b47c050d5
Author: Michael Natterer <mitch gimp org>
Date: Tue Oct 22 16:25:40 2019 +0200
plug-ins: use begin_export() and end_export() in file-xbm
so the "gimp-comment" parasite is handled automatically.
plug-ins/common/file-xbm.c | 20 ++------------------
1 file changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/plug-ins/common/file-xbm.c b/plug-ins/common/file-xbm.c
index dbe3c262dd..ca858fbe09 100644
--- a/plug-ins/common/file-xbm.c
+++ b/plug-ins/common/file-xbm.c
@@ -343,7 +343,7 @@ xbm_save (GimpProcedure *procedure,
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);
- gimp_procedure_config_begin_run (config, image, run_mode, args);
+ gimp_procedure_config_begin_export (config, image, run_mode, args, NULL);
switch (run_mode)
{
@@ -376,22 +376,6 @@ xbm_save (GimpProcedure *procedure,
{
GimpParasite *parasite;
- /* Get the parasites */
- parasite = gimp_image_get_parasite (image, "gimp-comment");
-
- if (parasite)
- {
- gchar *comment = g_strndup (gimp_parasite_data (parasite),
- gimp_parasite_data_size (parasite));
-
- g_object_set (config,
- "comment", comment,
- NULL);
-
- g_free (comment);
- gimp_parasite_free (parasite);
- }
-
parasite = gimp_image_get_parasite (image, "hot-spot");
if (parasite)
@@ -481,7 +465,7 @@ xbm_save (GimpProcedure *procedure,
g_object_unref (mask_file);
}
- gimp_procedure_config_end_run (config, status);
+ gimp_procedure_config_end_export (config, image, file, status);
g_object_unref (config);
if (export == GIMP_EXPORT_EXPORT)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]