2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2003-07-03 08:47:26 +08:00
|
|
|
* Copyright (C) 1995-2003 Spencer Kimball and Peter Mattis
|
1998-10-08 16:15:21 +08:00
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
* (at your option) any later version.
|
1998-10-08 16:15:21 +08:00
|
|
|
*
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
1998-10-08 16:15:21 +08:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
1998-10-08 16:15:21 +08:00
|
|
|
*
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
1998-10-08 16:15:21 +08:00
|
|
|
*/
|
|
|
|
|
2007-01-09 18:52:47 +08:00
|
|
|
/* NOTE: This file is auto-generated by pdbgen.pl. */
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
#include "config.h"
|
|
|
|
|
2008-10-10 04:24:04 +08:00
|
|
|
#include <gegl.h>
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2004-07-16 22:43:56 +08:00
|
|
|
#include "libgimpbase/gimpbase.h"
|
2004-05-07 07:26:45 +08:00
|
|
|
|
2001-08-17 22:27:31 +08:00
|
|
|
#include "pdb-types.h"
|
1998-10-08 16:15:21 +08:00
|
|
|
|
2002-05-15 19:05:32 +08:00
|
|
|
#include "core/gimp-parasites.h"
|
2001-05-09 10:32:03 +08:00
|
|
|
#include "core/gimpdrawable.h"
|
|
|
|
#include "core/gimpimage.h"
|
2008-02-08 01:08:54 +08:00
|
|
|
#include "core/gimpparamspecs.h"
|
2006-03-22 20:15:06 +08:00
|
|
|
#include "vectors/gimpvectors.h"
|
1999-05-01 05:11:27 +08:00
|
|
|
|
2008-02-08 01:08:54 +08:00
|
|
|
#include "gimppdb.h"
|
|
|
|
#include "gimpprocedure.h"
|
2008-04-04 19:15:55 +08:00
|
|
|
#include "internal-procs.h"
|
2006-11-01 03:02:56 +08:00
|
|
|
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
parasite_find_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
1998-10-08 16:15:21 +08:00
|
|
|
{
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
gboolean success = TRUE;
|
2006-04-04 18:30:58 +08:00
|
|
|
GValueArray *return_vals;
|
2006-04-03 00:03:32 +08:00
|
|
|
const gchar *name;
|
2000-05-27 06:28:40 +08:00
|
|
|
GimpParasite *parasite = NULL;
|
1998-10-08 16:15:21 +08:00
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
name = g_value_get_string (&args->values[0]);
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
2000-02-17 19:44:27 +08:00
|
|
|
if (success)
|
|
|
|
{
|
2001-07-05 06:59:25 +08:00
|
|
|
parasite = gimp_parasite_copy (gimp_parasite_find (gimp, name));
|
2006-03-22 20:15:06 +08:00
|
|
|
|
|
|
|
if (! parasite)
|
|
|
|
success = FALSE;
|
2000-02-17 19:44:27 +08:00
|
|
|
}
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return_vals = gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
1998-10-08 16:15:21 +08:00
|
|
|
|
1998-10-30 18:21:33 +08:00
|
|
|
if (success)
|
2006-04-04 18:30:58 +08:00
|
|
|
g_value_take_boxed (&return_vals->values[1], parasite);
|
1998-10-30 18:21:33 +08:00
|
|
|
|
2006-03-28 05:09:32 +08:00
|
|
|
return return_vals;
|
1998-10-30 18:21:33 +08:00
|
|
|
}
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
parasite_attach_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
1998-10-30 18:21:33 +08:00
|
|
|
{
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
gboolean success = TRUE;
|
2006-04-03 00:03:32 +08:00
|
|
|
const GimpParasite *parasite;
|
1998-10-30 18:21:33 +08:00
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
parasite = g_value_get_boxed (&args->values[0]);
|
1998-10-30 18:21:33 +08:00
|
|
|
|
1998-10-08 16:15:21 +08:00
|
|
|
if (success)
|
2006-03-22 20:15:06 +08:00
|
|
|
{
|
|
|
|
gimp_parasite_attach (gimp, parasite);
|
|
|
|
}
|
1998-10-30 18:21:33 +08:00
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
1998-10-30 18:21:33 +08:00
|
|
|
}
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
parasite_detach_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
1998-10-30 18:21:33 +08:00
|
|
|
{
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
gboolean success = TRUE;
|
2006-04-03 00:03:32 +08:00
|
|
|
const gchar *name;
|
1998-10-30 18:21:33 +08:00
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
name = g_value_get_string (&args->values[0]);
|
1998-10-30 18:21:33 +08:00
|
|
|
|
|
|
|
if (success)
|
2006-03-22 20:15:06 +08:00
|
|
|
{
|
|
|
|
gimp_parasite_detach (gimp, name);
|
|
|
|
}
|
1998-10-30 18:21:33 +08:00
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
1998-10-30 18:21:33 +08:00
|
|
|
}
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
parasite_list_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
1998-10-30 18:21:33 +08:00
|
|
|
{
|
2006-04-04 18:30:58 +08:00
|
|
|
GValueArray *return_vals;
|
2006-03-15 23:32:39 +08:00
|
|
|
gint32 num_parasites = 0;
|
|
|
|
gchar **parasites = NULL;
|
1998-10-30 18:21:33 +08:00
|
|
|
|
2001-07-05 06:59:25 +08:00
|
|
|
parasites = gimp_parasite_list (gimp, &num_parasites);
|
1998-10-30 18:21:33 +08:00
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return_vals = gimp_procedure_get_return_values (procedure, TRUE, NULL);
|
1998-10-08 16:15:21 +08:00
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
g_value_set_int (&return_vals->values[1], num_parasites);
|
|
|
|
gimp_value_take_stringarray (&return_vals->values[2], parasites, num_parasites);
|
1998-10-30 18:21:33 +08:00
|
|
|
|
2006-03-28 05:09:32 +08:00
|
|
|
return return_vals;
|
1998-10-08 16:15:21 +08:00
|
|
|
}
|
1999-02-14 02:19:44 +08:00
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
image_parasite_find_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
2006-03-22 20:15:06 +08:00
|
|
|
{
|
|
|
|
gboolean success = TRUE;
|
2006-04-04 18:30:58 +08:00
|
|
|
GValueArray *return_vals;
|
2006-03-24 05:17:16 +08:00
|
|
|
GimpImage *image;
|
2006-04-03 00:03:32 +08:00
|
|
|
const gchar *name;
|
2006-03-22 20:15:06 +08:00
|
|
|
GimpParasite *parasite = NULL;
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
image = gimp_value_get_image (&args->values[0], gimp);
|
|
|
|
name = g_value_get_string (&args->values[1]);
|
2006-03-22 20:15:06 +08:00
|
|
|
|
|
|
|
if (success)
|
|
|
|
{
|
2006-03-24 05:17:16 +08:00
|
|
|
parasite = gimp_parasite_copy (gimp_image_parasite_find (image, name));
|
2006-03-22 20:15:06 +08:00
|
|
|
|
|
|
|
if (! parasite)
|
|
|
|
success = FALSE;
|
|
|
|
}
|
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return_vals = gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
2006-03-22 20:15:06 +08:00
|
|
|
|
|
|
|
if (success)
|
2006-04-04 18:30:58 +08:00
|
|
|
g_value_take_boxed (&return_vals->values[1], parasite);
|
2006-03-22 20:15:06 +08:00
|
|
|
|
2006-03-28 05:09:32 +08:00
|
|
|
return return_vals;
|
2006-03-22 20:15:06 +08:00
|
|
|
}
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
image_parasite_attach_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
2006-03-22 20:15:06 +08:00
|
|
|
{
|
|
|
|
gboolean success = TRUE;
|
2006-03-24 05:17:16 +08:00
|
|
|
GimpImage *image;
|
2006-04-03 00:03:32 +08:00
|
|
|
const GimpParasite *parasite;
|
2006-03-22 20:15:06 +08:00
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
image = gimp_value_get_image (&args->values[0], gimp);
|
|
|
|
parasite = g_value_get_boxed (&args->values[1]);
|
2006-03-22 20:15:06 +08:00
|
|
|
|
|
|
|
if (success)
|
|
|
|
{
|
2006-03-24 05:17:16 +08:00
|
|
|
gimp_image_parasite_attach (image, parasite);
|
2006-03-22 20:15:06 +08:00
|
|
|
}
|
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
2006-03-22 20:15:06 +08:00
|
|
|
}
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
image_parasite_detach_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
2006-03-22 20:15:06 +08:00
|
|
|
{
|
|
|
|
gboolean success = TRUE;
|
2006-03-24 05:17:16 +08:00
|
|
|
GimpImage *image;
|
2006-04-03 00:03:32 +08:00
|
|
|
const gchar *name;
|
2006-03-22 20:15:06 +08:00
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
image = gimp_value_get_image (&args->values[0], gimp);
|
|
|
|
name = g_value_get_string (&args->values[1]);
|
2006-03-22 20:15:06 +08:00
|
|
|
|
|
|
|
if (success)
|
|
|
|
{
|
2006-03-24 05:17:16 +08:00
|
|
|
gimp_image_parasite_detach (image, name);
|
2006-03-22 20:15:06 +08:00
|
|
|
}
|
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
2006-03-22 20:15:06 +08:00
|
|
|
}
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
image_parasite_list_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
2006-03-22 20:15:06 +08:00
|
|
|
{
|
|
|
|
gboolean success = TRUE;
|
2006-04-04 18:30:58 +08:00
|
|
|
GValueArray *return_vals;
|
2006-03-24 05:17:16 +08:00
|
|
|
GimpImage *image;
|
2006-03-22 20:15:06 +08:00
|
|
|
gint32 num_parasites = 0;
|
|
|
|
gchar **parasites = NULL;
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
image = gimp_value_get_image (&args->values[0], gimp);
|
2006-03-22 20:15:06 +08:00
|
|
|
|
|
|
|
if (success)
|
|
|
|
{
|
2006-03-24 05:17:16 +08:00
|
|
|
parasites = gimp_image_parasite_list (image, &num_parasites);
|
2006-03-22 20:15:06 +08:00
|
|
|
}
|
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return_vals = gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
2006-03-22 20:15:06 +08:00
|
|
|
|
|
|
|
if (success)
|
|
|
|
{
|
2006-04-04 18:30:58 +08:00
|
|
|
g_value_set_int (&return_vals->values[1], num_parasites);
|
|
|
|
gimp_value_take_stringarray (&return_vals->values[2], parasites, num_parasites);
|
2006-03-22 20:15:06 +08:00
|
|
|
}
|
|
|
|
|
2006-03-28 05:09:32 +08:00
|
|
|
return return_vals;
|
2006-03-22 20:15:06 +08:00
|
|
|
}
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
drawable_parasite_find_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
{
|
|
|
|
gboolean success = TRUE;
|
2006-04-04 18:30:58 +08:00
|
|
|
GValueArray *return_vals;
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
GimpDrawable *drawable;
|
2006-04-03 00:03:32 +08:00
|
|
|
const gchar *name;
|
2000-05-27 06:28:40 +08:00
|
|
|
GimpParasite *parasite = NULL;
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
drawable = gimp_value_get_drawable (&args->values[0], gimp);
|
|
|
|
name = g_value_get_string (&args->values[1]);
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
|
|
|
if (success)
|
|
|
|
{
|
2006-03-22 20:15:06 +08:00
|
|
|
parasite = gimp_parasite_copy (gimp_item_parasite_find (GIMP_ITEM (drawable),
|
|
|
|
name));
|
|
|
|
|
|
|
|
if (! parasite)
|
|
|
|
success = FALSE;
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
}
|
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return_vals = gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
|
|
|
if (success)
|
2006-04-04 18:30:58 +08:00
|
|
|
g_value_take_boxed (&return_vals->values[1], parasite);
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
2006-03-28 05:09:32 +08:00
|
|
|
return return_vals;
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
}
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
drawable_parasite_attach_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
{
|
|
|
|
gboolean success = TRUE;
|
|
|
|
GimpDrawable *drawable;
|
2006-04-03 00:03:32 +08:00
|
|
|
const GimpParasite *parasite;
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
drawable = gimp_value_get_drawable (&args->values[0], gimp);
|
|
|
|
parasite = g_value_get_boxed (&args->values[1]);
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
|
|
|
if (success)
|
2006-03-22 20:15:06 +08:00
|
|
|
{
|
|
|
|
gimp_item_parasite_attach (GIMP_ITEM (drawable), parasite);
|
|
|
|
}
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
}
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
drawable_parasite_detach_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
{
|
|
|
|
gboolean success = TRUE;
|
|
|
|
GimpDrawable *drawable;
|
2006-04-03 00:03:32 +08:00
|
|
|
const gchar *name;
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
drawable = gimp_value_get_drawable (&args->values[0], gimp);
|
|
|
|
name = g_value_get_string (&args->values[1]);
|
1999-02-14 02:19:44 +08:00
|
|
|
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
if (success)
|
2006-03-22 20:15:06 +08:00
|
|
|
{
|
|
|
|
gimp_item_parasite_detach (GIMP_ITEM (drawable), name);
|
|
|
|
}
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
}
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
drawable_parasite_list_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
1999-02-14 02:19:44 +08:00
|
|
|
{
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
gboolean success = TRUE;
|
2006-04-04 18:30:58 +08:00
|
|
|
GValueArray *return_vals;
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
GimpDrawable *drawable;
|
2006-03-15 23:32:39 +08:00
|
|
|
gint32 num_parasites = 0;
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
gchar **parasites = NULL;
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
drawable = gimp_value_get_drawable (&args->values[0], gimp);
|
1999-02-14 02:19:44 +08:00
|
|
|
|
|
|
|
if (success)
|
2006-03-22 20:15:06 +08:00
|
|
|
{
|
|
|
|
parasites = gimp_item_parasite_list (GIMP_ITEM (drawable), &num_parasites);
|
|
|
|
}
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return_vals = gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
|
|
|
|
if (success)
|
|
|
|
{
|
2006-04-04 18:30:58 +08:00
|
|
|
g_value_set_int (&return_vals->values[1], num_parasites);
|
|
|
|
gimp_value_take_stringarray (&return_vals->values[2], parasites, num_parasites);
|
gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles
* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image
* app/color_cmds.c: s/GRAY/GRAY_LUT/g;
* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/
* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate
* app/gimpbrushlist.[ch]: removed PDB procs
* app/gradient.[ch]: removed PDB procs,
* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog
* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/
* app/patterns.[ch]: removed PDB procs
* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/
* app/procedural_db.c: removed PDB procs and supporting functions
* app/procedrual_db.h: fiddled with enums
* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files
* app/gimpparasite.c: minor cleanup
* app/internal_procs.c: use pdbgen stuff
* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen
* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files
* app/Makefile.am: file shuffle (see above)
-Yosh
1999-04-24 04:54:02 +08:00
|
|
|
}
|
1999-02-14 02:19:44 +08:00
|
|
|
|
2006-03-28 05:09:32 +08:00
|
|
|
return return_vals;
|
1999-02-14 02:19:44 +08:00
|
|
|
}
|
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
vectors_parasite_find_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
1999-04-27 12:57:59 +08:00
|
|
|
{
|
|
|
|
gboolean success = TRUE;
|
2006-04-04 18:30:58 +08:00
|
|
|
GValueArray *return_vals;
|
2006-03-22 20:15:06 +08:00
|
|
|
GimpVectors *vectors;
|
2006-04-03 00:03:32 +08:00
|
|
|
const gchar *name;
|
2000-05-27 06:28:40 +08:00
|
|
|
GimpParasite *parasite = NULL;
|
1999-04-27 12:57:59 +08:00
|
|
|
|
2006-04-04 18:30:58 +08:00
|
|
|
vectors = gimp_value_get_vectors (&args->values[0], gimp);
|
|
|
|
name = g_value_get_string (&args->values[1]);
|
1999-04-27 12:57:59 +08:00
|
|
|
|
|
|
|
if (success)
|
|
|
|
{
|
2006-03-22 20:15:06 +08:00
|
|
|
parasite = gimp_parasite_copy (gimp_item_parasite_find (GIMP_ITEM (vectors),
|
|
|
|
name));
|
|
|
|
|
2006-04-05 05:11:45 +08:00
|
|
|
if (! parasite)
|
|
|
|
success = FALSE;
|
|
|
|
}
|
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return_vals = gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
2006-04-05 05:11:45 +08:00
|
|
|
|
|
|
|
if (success)
|
|
|
|
g_value_take_boxed (&return_vals->values[1], parasite);
|
|
|
|
|
|
|
|
return return_vals;
|
|
|
|
}
|
|
|
|
|
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
vectors_parasite_attach_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
2006-04-05 05:11:45 +08:00
|
|
|
{
|
|
|
|
gboolean success = TRUE;
|
|
|
|
GimpVectors *vectors;
|
|
|
|
const GimpParasite *parasite;
|
|
|
|
|
|
|
|
vectors = gimp_value_get_vectors (&args->values[0], gimp);
|
|
|
|
parasite = g_value_get_boxed (&args->values[1]);
|
|
|
|
|
|
|
|
if (success)
|
|
|
|
{
|
|
|
|
gimp_item_parasite_attach (GIMP_ITEM (vectors), parasite);
|
|
|
|
}
|
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
2006-04-05 05:11:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
vectors_parasite_detach_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
2006-04-05 05:11:45 +08:00
|
|
|
{
|
|
|
|
gboolean success = TRUE;
|
|
|
|
GimpVectors *vectors;
|
|
|
|
const gchar *name;
|
|
|
|
|
|
|
|
vectors = gimp_value_get_vectors (&args->values[0], gimp);
|
|
|
|
name = g_value_get_string (&args->values[1]);
|
|
|
|
|
|
|
|
if (success)
|
|
|
|
{
|
|
|
|
gimp_item_parasite_detach (GIMP_ITEM (vectors), name);
|
|
|
|
}
|
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
2006-04-05 05:11:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static GValueArray *
|
2007-12-03 02:05:54 +08:00
|
|
|
vectors_parasite_list_invoker (GimpProcedure *procedure,
|
|
|
|
Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const GValueArray *args,
|
|
|
|
GError **error)
|
2006-04-05 05:11:45 +08:00
|
|
|
{
|
|
|
|
gboolean success = TRUE;
|
|
|
|
GValueArray *return_vals;
|
|
|
|
GimpVectors *vectors;
|
|
|
|
gint32 num_parasites = 0;
|
|
|
|
gchar **parasites = NULL;
|
|
|
|
|
|
|
|
vectors = gimp_value_get_vectors (&args->values[0], gimp);
|
|
|
|
|
|
|
|
if (success)
|
|
|
|
{
|
|
|
|
parasites = gimp_item_parasite_list (GIMP_ITEM (vectors), &num_parasites);
|
|
|
|
}
|
|
|
|
|
2008-08-16 21:57:57 +08:00
|
|
|
return_vals = gimp_procedure_get_return_values (procedure, success,
|
|
|
|
error ? *error : NULL);
|
2006-04-05 05:11:45 +08:00
|
|
|
|
|
|
|
if (success)
|
|
|
|
{
|
|
|
|
g_value_set_int (&return_vals->values[1], num_parasites);
|
|
|
|
gimp_value_take_stringarray (&return_vals->values[2], parasites, num_parasites);
|
|
|
|
}
|
|
|
|
|
|
|
|
return return_vals;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2006-04-26 17:13:47 +08:00
|
|
|
register_parasite_procs (GimpPDB *pdb)
|
2006-04-05 05:11:45 +08:00
|
|
|
{
|
|
|
|
GimpProcedure *procedure;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* gimp-parasite-find
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (parasite_find_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-parasite-find");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-parasite-find",
|
2006-12-22 17:49:36 +08:00
|
|
|
"Look up a global parasite.",
|
|
|
|
"Finds and returns the global parasite that was previously attached.",
|
2006-04-05 05:11:45 +08:00
|
|
|
"Jay Cox",
|
|
|
|
"Jay Cox",
|
|
|
|
"1998",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_string ("name",
|
|
|
|
"name",
|
|
|
|
"The name of the parasite to find",
|
2007-04-25 22:23:05 +08:00
|
|
|
FALSE, FALSE, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
NULL,
|
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_return_value (procedure,
|
|
|
|
gimp_param_spec_parasite ("parasite",
|
|
|
|
"parasite",
|
|
|
|
"The found parasite",
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
2006-04-05 05:11:45 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* gimp-parasite-attach
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (parasite_attach_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-parasite-attach");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-parasite-attach",
|
2006-12-22 17:49:36 +08:00
|
|
|
"Add a global parasite.",
|
|
|
|
"This procedure attaches a global parasite. It has no return values.",
|
2006-04-05 05:11:45 +08:00
|
|
|
"Jay Cox",
|
|
|
|
"Jay Cox",
|
|
|
|
"1998",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_parasite ("parasite",
|
|
|
|
"parasite",
|
2006-12-22 17:49:36 +08:00
|
|
|
"The parasite to attach",
|
2006-04-05 05:11:45 +08:00
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
2006-04-05 05:11:45 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* gimp-parasite-detach
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (parasite_detach_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-parasite-detach");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-parasite-detach",
|
2006-12-22 17:49:36 +08:00
|
|
|
"Removes a global parasite.",
|
|
|
|
"This procedure detaches a global parasite from. It has no return values.",
|
2006-04-05 05:11:45 +08:00
|
|
|
"Jay Cox",
|
|
|
|
"Jay Cox",
|
|
|
|
"1998",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_string ("name",
|
|
|
|
"name",
|
2006-12-22 17:49:36 +08:00
|
|
|
"The name of the parasite to detach.",
|
2007-04-25 22:23:05 +08:00
|
|
|
FALSE, FALSE, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
NULL,
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
2006-04-05 05:11:45 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* gimp-parasite-list
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (parasite_list_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-parasite-list");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-parasite-list",
|
|
|
|
"List all parasites.",
|
2006-12-22 17:49:36 +08:00
|
|
|
"Returns a list of all currently attached global parasites.",
|
2006-04-05 05:11:45 +08:00
|
|
|
"Marc Lehmann",
|
|
|
|
"Marc Lehmann",
|
|
|
|
"1999",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_return_value (procedure,
|
|
|
|
gimp_param_spec_int32 ("num-parasites",
|
|
|
|
"num parasites",
|
|
|
|
"The number of attached parasites",
|
|
|
|
0, G_MAXINT32, 0,
|
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_return_value (procedure,
|
|
|
|
gimp_param_spec_string_array ("parasites",
|
|
|
|
"parasites",
|
|
|
|
"The names of currently attached parasites",
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
2006-04-05 05:11:45 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* gimp-image-parasite-find
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (image_parasite_find_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-image-parasite-find");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-image-parasite-find",
|
2006-12-22 17:49:36 +08:00
|
|
|
"Look up a parasite in an image",
|
|
|
|
"Finds and returns the parasite that was previously attached to an image.",
|
2006-04-05 05:11:45 +08:00
|
|
|
"Jay Cox",
|
|
|
|
"Jay Cox",
|
|
|
|
"1998",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_image_id ("image",
|
|
|
|
"image",
|
|
|
|
"The image",
|
2006-05-07 02:57:51 +08:00
|
|
|
pdb->gimp, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_string ("name",
|
|
|
|
"name",
|
|
|
|
"The name of the parasite to find",
|
2007-04-25 22:23:05 +08:00
|
|
|
FALSE, FALSE, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
NULL,
|
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_return_value (procedure,
|
|
|
|
gimp_param_spec_parasite ("parasite",
|
|
|
|
"parasite",
|
|
|
|
"The found parasite",
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
2006-04-05 05:11:45 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* gimp-image-parasite-attach
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (image_parasite_attach_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-image-parasite-attach");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-image-parasite-attach",
|
|
|
|
"Add a parasite to an image.",
|
|
|
|
"This procedure attaches a parasite to an image. It has no return values.",
|
|
|
|
"Jay Cox",
|
|
|
|
"Jay Cox",
|
|
|
|
"1998",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_image_id ("image",
|
|
|
|
"image",
|
|
|
|
"The image",
|
2006-05-07 02:57:51 +08:00
|
|
|
pdb->gimp, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_parasite ("parasite",
|
|
|
|
"parasite",
|
|
|
|
"The parasite to attach to an image",
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
2006-04-05 05:11:45 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* gimp-image-parasite-detach
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (image_parasite_detach_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-image-parasite-detach");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-image-parasite-detach",
|
|
|
|
"Removes a parasite from an image.",
|
|
|
|
"This procedure detaches a parasite from an image. It has no return values.",
|
|
|
|
"Jay Cox",
|
|
|
|
"Jay Cox",
|
|
|
|
"1998",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_image_id ("image",
|
|
|
|
"image",
|
|
|
|
"The image",
|
2006-05-07 02:57:51 +08:00
|
|
|
pdb->gimp, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_string ("name",
|
|
|
|
"name",
|
|
|
|
"The name of the parasite to detach from an image.",
|
2007-04-25 22:23:05 +08:00
|
|
|
FALSE, FALSE, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
NULL,
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
1999-04-27 12:57:59 +08:00
|
|
|
|
2006-04-05 05:11:45 +08:00
|
|
|
/*
|
|
|
|
* gimp-image-parasite-list
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (image_parasite_list_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-image-parasite-list");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-image-parasite-list",
|
|
|
|
"List all parasites.",
|
|
|
|
"Returns a list of all currently attached parasites.",
|
|
|
|
"Marc Lehmann",
|
|
|
|
"Marc Lehmann",
|
|
|
|
"1999",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_image_id ("image",
|
|
|
|
"image",
|
|
|
|
"The image",
|
2006-05-07 02:57:51 +08:00
|
|
|
pdb->gimp, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_return_value (procedure,
|
|
|
|
gimp_param_spec_int32 ("num-parasites",
|
|
|
|
"num parasites",
|
|
|
|
"The number of attached parasites",
|
|
|
|
0, G_MAXINT32, 0,
|
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_return_value (procedure,
|
|
|
|
gimp_param_spec_string_array ("parasites",
|
|
|
|
"parasites",
|
|
|
|
"The names of currently attached parasites",
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
1999-04-27 12:57:59 +08:00
|
|
|
|
2006-04-05 05:11:45 +08:00
|
|
|
/*
|
|
|
|
* gimp-drawable-parasite-find
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (drawable_parasite_find_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-drawable-parasite-find");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-drawable-parasite-find",
|
2006-12-22 17:49:36 +08:00
|
|
|
"Look up a parasite in a drawable",
|
|
|
|
"Finds and returns the parasite that was previously attached to a drawable.",
|
2006-04-05 05:11:45 +08:00
|
|
|
"Jay Cox",
|
|
|
|
"Jay Cox",
|
|
|
|
"1998",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_drawable_id ("drawable",
|
|
|
|
"drawable",
|
|
|
|
"The drawable",
|
2006-05-07 02:57:51 +08:00
|
|
|
pdb->gimp, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_string ("name",
|
|
|
|
"name",
|
|
|
|
"The name of the parasite to find",
|
2007-04-25 22:23:05 +08:00
|
|
|
FALSE, FALSE, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
NULL,
|
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_return_value (procedure,
|
|
|
|
gimp_param_spec_parasite ("parasite",
|
|
|
|
"parasite",
|
|
|
|
"The found parasite",
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
1999-04-27 12:57:59 +08:00
|
|
|
|
2006-04-05 05:11:45 +08:00
|
|
|
/*
|
|
|
|
* gimp-drawable-parasite-attach
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (drawable_parasite_attach_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-drawable-parasite-attach");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-drawable-parasite-attach",
|
|
|
|
"Add a parasite to a drawable.",
|
|
|
|
"This procedure attaches a parasite to a drawable. It has no return values.",
|
|
|
|
"Jay Cox",
|
|
|
|
"Jay Cox",
|
|
|
|
"1998",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_drawable_id ("drawable",
|
|
|
|
"drawable",
|
|
|
|
"The drawable",
|
2006-05-07 02:57:51 +08:00
|
|
|
pdb->gimp, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_parasite ("parasite",
|
|
|
|
"parasite",
|
|
|
|
"The parasite to attach to a drawable",
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
1999-04-27 12:57:59 +08:00
|
|
|
|
2006-04-05 05:11:45 +08:00
|
|
|
/*
|
|
|
|
* gimp-drawable-parasite-detach
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (drawable_parasite_detach_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-drawable-parasite-detach");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-drawable-parasite-detach",
|
|
|
|
"Removes a parasite from a drawable.",
|
|
|
|
"This procedure detaches a parasite from a drawable. It has no return values.",
|
|
|
|
"Jay Cox",
|
|
|
|
"Jay Cox",
|
|
|
|
"1998",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_drawable_id ("drawable",
|
|
|
|
"drawable",
|
|
|
|
"The drawable",
|
2006-05-07 02:57:51 +08:00
|
|
|
pdb->gimp, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_string ("name",
|
|
|
|
"name",
|
|
|
|
"The name of the parasite to detach from a drawable.",
|
2007-04-25 22:23:05 +08:00
|
|
|
FALSE, FALSE, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
NULL,
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
1999-04-27 12:57:59 +08:00
|
|
|
|
2006-04-05 05:11:45 +08:00
|
|
|
/*
|
|
|
|
* gimp-drawable-parasite-list
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (drawable_parasite_list_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-drawable-parasite-list");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-drawable-parasite-list",
|
|
|
|
"List all parasites.",
|
|
|
|
"Returns a list of all currently attached parasites.",
|
|
|
|
"Marc Lehmann",
|
|
|
|
"Marc Lehmann",
|
|
|
|
"1999",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_drawable_id ("drawable",
|
|
|
|
"drawable",
|
|
|
|
"The drawable",
|
2006-05-07 02:57:51 +08:00
|
|
|
pdb->gimp, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_return_value (procedure,
|
|
|
|
gimp_param_spec_int32 ("num-parasites",
|
|
|
|
"num parasites",
|
|
|
|
"The number of attached parasites",
|
|
|
|
0, G_MAXINT32, 0,
|
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_return_value (procedure,
|
|
|
|
gimp_param_spec_string_array ("parasites",
|
|
|
|
"parasites",
|
|
|
|
"The names of currently attached parasites",
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
1999-04-27 12:57:59 +08:00
|
|
|
|
2006-04-05 05:11:45 +08:00
|
|
|
/*
|
|
|
|
* gimp-vectors-parasite-find
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (vectors_parasite_find_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-vectors-parasite-find");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-vectors-parasite-find",
|
2006-12-22 17:49:36 +08:00
|
|
|
"Look up a parasite in a vectors object",
|
|
|
|
"Finds and returns the parasite that was previously attached to a vectors object.",
|
2006-04-05 05:11:45 +08:00
|
|
|
"Michael Natterer <mitch@gimp.org>",
|
|
|
|
"Michael Natterer",
|
|
|
|
"2006",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_vectors_id ("vectors",
|
|
|
|
"vectors",
|
|
|
|
"The vectors object",
|
2006-05-07 02:57:51 +08:00
|
|
|
pdb->gimp, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_string ("name",
|
|
|
|
"name",
|
|
|
|
"The name of the parasite to find",
|
2007-04-25 22:23:05 +08:00
|
|
|
FALSE, FALSE, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
NULL,
|
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_return_value (procedure,
|
|
|
|
gimp_param_spec_parasite ("parasite",
|
|
|
|
"parasite",
|
|
|
|
"The found parasite",
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
1999-04-27 12:57:59 +08:00
|
|
|
|
2006-04-05 05:11:45 +08:00
|
|
|
/*
|
|
|
|
* gimp-vectors-parasite-attach
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (vectors_parasite_attach_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-vectors-parasite-attach");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-vectors-parasite-attach",
|
|
|
|
"Add a parasite to a vectors object",
|
|
|
|
"This procedure attaches a parasite to a vectors object. It has no return values.",
|
|
|
|
"Michael Natterer <mitch@gimp.org>",
|
|
|
|
"Michael Natterer",
|
|
|
|
"2006",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_vectors_id ("vectors",
|
|
|
|
"vectors",
|
|
|
|
"The vectors object",
|
2006-05-07 02:57:51 +08:00
|
|
|
pdb->gimp, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_parasite ("parasite",
|
|
|
|
"parasite",
|
|
|
|
"The parasite to attach to a vectors object",
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
1999-04-27 12:57:59 +08:00
|
|
|
|
2006-04-05 05:11:45 +08:00
|
|
|
/*
|
|
|
|
* gimp-vectors-parasite-detach
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (vectors_parasite_detach_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-vectors-parasite-detach");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-vectors-parasite-detach",
|
|
|
|
"Removes a parasite from a vectors object",
|
|
|
|
"This procedure detaches a parasite from a vectors object. It has no return values.",
|
|
|
|
"Michael Natterer <mitch@gimp.org>",
|
|
|
|
"Michael Natterer",
|
|
|
|
"2006",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_vectors_id ("vectors",
|
|
|
|
"vectors",
|
|
|
|
"The vectors object",
|
2006-05-07 02:57:51 +08:00
|
|
|
pdb->gimp, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_string ("name",
|
|
|
|
"name",
|
|
|
|
"The name of the parasite to detach from a vectors object.",
|
2007-04-25 22:23:05 +08:00
|
|
|
FALSE, FALSE, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
NULL,
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
1999-04-27 12:57:59 +08:00
|
|
|
|
2006-04-05 05:11:45 +08:00
|
|
|
/*
|
|
|
|
* gimp-vectors-parasite-list
|
|
|
|
*/
|
2006-04-06 18:01:30 +08:00
|
|
|
procedure = gimp_procedure_new (vectors_parasite_list_invoker);
|
2008-04-04 18:58:56 +08:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure),
|
|
|
|
"gimp-vectors-parasite-list");
|
2006-04-05 05:11:45 +08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
"gimp-vectors-parasite-list",
|
|
|
|
"List all parasites.",
|
|
|
|
"Returns a list of all currently attached parasites.",
|
|
|
|
"Michael Natterer <mitch@gimp.org>",
|
|
|
|
"Michael Natterer",
|
|
|
|
"2006",
|
|
|
|
NULL);
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
gimp_param_spec_vectors_id ("vectors",
|
|
|
|
"vectors",
|
|
|
|
"The vectors object",
|
2006-05-07 02:57:51 +08:00
|
|
|
pdb->gimp, FALSE,
|
2006-04-05 05:11:45 +08:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_return_value (procedure,
|
|
|
|
gimp_param_spec_int32 ("num-parasites",
|
|
|
|
"num parasites",
|
|
|
|
"The number of attached parasites",
|
|
|
|
0, G_MAXINT32, 0,
|
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
gimp_procedure_add_return_value (procedure,
|
|
|
|
gimp_param_spec_string_array ("parasites",
|
|
|
|
"parasites",
|
|
|
|
"The names of currently attached parasites",
|
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-26 17:13:47 +08:00
|
|
|
gimp_pdb_register_procedure (pdb, procedure);
|
2006-04-07 16:16:26 +08:00
|
|
|
g_object_unref (procedure);
|
1999-04-27 12:57:59 +08:00
|
|
|
}
|