1999-04-27 04:57:59 +00:00
/* The GIMP -- an image manipulation program
2003-07-03 00:47:26 +00:00
* Copyright ( C ) 1995 - 2003 Spencer Kimball and Peter Mattis
1999-04-27 04:57:59 +00:00
*
* This program is free software ; you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 2 of the License , or
* ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program ; if not , write to the Free Software
* Foundation , Inc . , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA .
*/
/* NOTE: This file is autogenerated by pdbgen.pl. */
2000-12-29 15:22:01 +00:00
# include "config.h"
2001-08-17 14:27:31 +00:00
# include <glib-object.h>
2000-12-29 15:22:01 +00:00
2001-08-17 14:27:31 +00:00
# include "pdb-types.h"
2006-04-26 09:13:47 +00:00
# include "gimppdb.h"
2006-03-31 09:15:08 +00:00
# include "gimpprocedure.h"
2006-03-28 19:58:00 +00:00
# include "core/gimpparamspecs.h"
1999-04-27 04:57:59 +00:00
include the new "paint-funcs/paint-funcs-types.h".
2001-11-28 Michael Natterer <mitch@gimp.org>
* app/base/base-types.h: include the new
"paint-funcs/paint-funcs-types.h".
* app/paint-funcs/Makefile.am
* app/paint-funcs/paint-funcs-types.h: new file. Includes
"base/base-types.h".
* app/paint-funcs/paint-funcs.[ch]: removed the enums here,
include "paint-funcs-types.h".
* app/widgets/widgets-types.h: include "display/display-types.h"
* app/display/display-types.h: include "widgets/widgets-types.h".
* app/tools/tools-types.h: include "display/display-types.h"
* app/gui/gui-types.h: include "tools/tools-types.h".
The order of namespaces/dependencies should be (but is not):
(base, paint-funcs) -> (core, file, xcf, pdb) ->
(widgets, display) -> tools -> gui
* app/path.c: include "tools/tools-types.h".
* app/core/Makefile.am
* app/core/gimpimage-guides.[ch]
* app/core/gimpimage-merge.[ch]
* app/core/gimpimage-resize.[ch]
* app/core/gimpimage-scale.[ch]: new files.
* app/core/gimpimage.[ch]: removed the stuff which is in the new
files. Reordered all functions in both the .h and .c files,
commented the groups of functions.
* app/core/gimpcontainer.c: create the handler_id using a counter,
not the address of a pointer, because the address *may* be the
same twice, added debugging output.
* app/core/gimpviewable.[ch]: added primitive support for getting
a preview GdkPixbuf.
* app/nav_window.c
* app/undo.c
* app/undo_history.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage-mask.[ch]
* app/display/gimpdisplay.c
* app/display/gimpdisplayshell-callbacks.c
* app/display/gimpdisplayshell-dnd.c
* app/display/gimpdisplayshell-render.c
* app/display/gimpdisplayshell-scale.c
* app/display/gimpdisplayshell-scroll.c
* app/gui/image-commands.c
* app/gui/info-window.c
* app/gui/layers-commands.c
* app/gui/palette-import-dialog.c
* app/tools/gimpbycolorselecttool.c
* app/tools/gimpeditselectiontool.c
* app/tools/gimpmeasuretool.c
* app/tools/gimpmovetool.c
* app/widgets/gimpcontainerview-utils.c
* app/xcf/xcf-load.c: changed accordingly, some cleanup.
* tools/pdbgen/pdb/guides.pdb
* tools/pdbgen/pdb/image.pdb: changed accordingly, reordered functions.
* app/plug_in.c: set the labels of the "Repeat" and "Re-Show" menu
items to the name of the last plug-in (Fixes #50986).
* app/display/gimpdisplayshell.[ch]: set the labels of "Undo" and
"Redo" to the resp. undo names. Much simplified the WM icon stuff
by removing most code and using gimp_viewable_get_new_preview_pixbuf().
* app/widgets/gimpbrushfactoryview.c: forgot to assign the GQuark
returned by gimp_container_add_handler().
* app/pdb/guides_cmds.c
* app/pdb/image_cmds.c
* libgimp/gimpimage_pdb.[ch]: regenerated.
2001-11-28 17:51:06 +00:00
# include "core/gimpimage-guides.h"
2003-02-14 14:14:29 +00:00
# include "core/gimpimage-undo-push.h"
2001-05-09 02:32:03 +00:00
# include "core/gimpimage.h"
1999-04-27 04:57:59 +00:00
2006-04-04 10:30:58 +00:00
static GValueArray *
image_add_hguide_invoker ( GimpProcedure * procedure ,
Gimp * gimp ,
GimpContext * context ,
GimpProgress * progress ,
const GValueArray * args )
1999-04-27 04:57:59 +00:00
{
gboolean success = TRUE ;
2006-04-04 10:30:58 +00:00
GValueArray * return_vals ;
2006-03-23 21:17:16 +00:00
GimpImage * image ;
2006-03-15 15:00:01 +00:00
gint32 yposition ;
2006-03-13 19:13:08 +00:00
gint32 guide = 0 ;
1999-04-27 04:57:59 +00:00
2006-04-04 10:30:58 +00:00
image = gimp_value_get_image ( & args - > values [ 0 ] , gimp ) ;
yposition = g_value_get_int ( & args - > values [ 1 ] ) ;
1999-04-27 04:57:59 +00:00
if ( success )
{
2006-03-23 21:17:16 +00:00
if ( yposition < = image - > height )
2004-03-26 16:49:18 +00:00
{
2006-03-13 19:13:08 +00:00
GimpGuide * g ;
2006-03-23 21:17:16 +00:00
g = gimp_image_add_hguide ( image , yposition , TRUE ) ;
2006-03-13 19:13:08 +00:00
guide = g - > guide_ID ;
2004-03-26 16:49:18 +00:00
}
1999-04-27 04:57:59 +00:00
else
2004-03-26 16:49:18 +00:00
success = FALSE ;
1999-04-27 04:57:59 +00:00
}
2006-03-31 17:42:13 +00:00
return_vals = gimp_procedure_get_return_values ( procedure , success ) ;
1999-04-27 04:57:59 +00:00
if ( success )
2006-04-04 10:30:58 +00:00
g_value_set_uint ( & return_vals - > values [ 1 ] , guide ) ;
1999-04-27 04:57:59 +00:00
2006-03-27 21:09:32 +00:00
return return_vals ;
1999-04-27 04:57:59 +00:00
}
2006-04-04 10:30:58 +00:00
static GValueArray *
image_add_vguide_invoker ( GimpProcedure * procedure ,
Gimp * gimp ,
GimpContext * context ,
GimpProgress * progress ,
const GValueArray * args )
1999-04-27 04:57:59 +00:00
{
gboolean success = TRUE ;
2006-04-04 10:30:58 +00:00
GValueArray * return_vals ;
2006-03-23 21:17:16 +00:00
GimpImage * image ;
2006-03-15 15:00:01 +00:00
gint32 xposition ;
2006-03-13 19:13:08 +00:00
gint32 guide = 0 ;
1999-04-27 04:57:59 +00:00
2006-04-04 10:30:58 +00:00
image = gimp_value_get_image ( & args - > values [ 0 ] , gimp ) ;
xposition = g_value_get_int ( & args - > values [ 1 ] ) ;
1999-04-27 04:57:59 +00:00
if ( success )
{
2006-03-23 21:17:16 +00:00
if ( xposition < = image - > width )
2004-03-26 16:49:18 +00:00
{
2006-03-13 19:13:08 +00:00
GimpGuide * g ;
2006-03-23 21:17:16 +00:00
g = gimp_image_add_vguide ( image , xposition , TRUE ) ;
2006-03-13 19:13:08 +00:00
guide = g - > guide_ID ;
2004-03-26 16:49:18 +00:00
}
1999-04-27 04:57:59 +00:00
else
2004-03-26 16:49:18 +00:00
success = FALSE ;
1999-04-27 04:57:59 +00:00
}
2006-03-31 17:42:13 +00:00
return_vals = gimp_procedure_get_return_values ( procedure , success ) ;
1999-04-27 04:57:59 +00:00
if ( success )
2006-04-04 10:30:58 +00:00
g_value_set_uint ( & return_vals - > values [ 1 ] , guide ) ;
1999-04-27 04:57:59 +00:00
2006-03-27 21:09:32 +00:00
return return_vals ;
1999-04-27 04:57:59 +00:00
}
2006-04-04 10:30:58 +00:00
static GValueArray *
image_delete_guide_invoker ( GimpProcedure * procedure ,
Gimp * gimp ,
GimpContext * context ,
GimpProgress * progress ,
const GValueArray * args )
1999-04-27 04:57:59 +00:00
{
gboolean success = TRUE ;
2006-03-23 21:17:16 +00:00
GimpImage * image ;
1999-04-27 04:57:59 +00:00
gint32 guide ;
2006-04-04 10:30:58 +00:00
image = gimp_value_get_image ( & args - > values [ 0 ] , gimp ) ;
guide = g_value_get_uint ( & args - > values [ 1 ] ) ;
1999-04-27 04:57:59 +00:00
if ( success )
{
2006-03-23 21:17:16 +00:00
GimpGuide * g = gimp_image_get_guide ( image , guide ) ;
2004-03-26 16:38:44 +00:00
2006-03-13 19:13:08 +00:00
if ( g )
2006-03-23 21:17:16 +00:00
gimp_image_remove_guide ( image , g , TRUE ) ;
2006-03-13 19:13:08 +00:00
else
success = FALSE ;
1999-04-27 04:57:59 +00:00
}
2006-03-31 17:42:13 +00:00
return gimp_procedure_get_return_values ( procedure , success ) ;
1999-04-27 04:57:59 +00:00
}
2006-04-04 10:30:58 +00:00
static GValueArray *
image_find_next_guide_invoker ( GimpProcedure * procedure ,
Gimp * gimp ,
GimpContext * context ,
GimpProgress * progress ,
const GValueArray * args )
1999-04-27 04:57:59 +00:00
{
gboolean success = TRUE ;
2006-04-04 10:30:58 +00:00
GValueArray * return_vals ;
2006-03-23 21:17:16 +00:00
GimpImage * image ;
1999-04-27 04:57:59 +00:00
gint32 guide ;
gint32 next_guide = 0 ;
2006-04-04 10:30:58 +00:00
image = gimp_value_get_image ( & args - > values [ 0 ] , gimp ) ;
guide = g_value_get_uint ( & args - > values [ 1 ] ) ;
1999-04-27 04:57:59 +00:00
if ( success )
{
2006-03-23 21:17:16 +00:00
GimpGuide * g = gimp_image_get_next_guide ( image , guide , & success ) ;
2006-03-13 19:13:08 +00:00
if ( g )
next_guide = g - > guide_ID ;
1999-04-27 04:57:59 +00:00
}
2006-03-31 17:42:13 +00:00
return_vals = gimp_procedure_get_return_values ( procedure , success ) ;
1999-04-27 04:57:59 +00:00
if ( success )
2006-04-04 10:30:58 +00:00
g_value_set_uint ( & return_vals - > values [ 1 ] , next_guide ) ;
1999-04-27 04:57:59 +00:00
2006-03-27 21:09:32 +00:00
return return_vals ;
1999-04-27 04:57:59 +00:00
}
2006-04-04 10:30:58 +00:00
static GValueArray *
image_get_guide_orientation_invoker ( GimpProcedure * procedure ,
Gimp * gimp ,
GimpContext * context ,
GimpProgress * progress ,
const GValueArray * args )
1999-04-27 04:57:59 +00:00
{
gboolean success = TRUE ;
2006-04-04 10:30:58 +00:00
GValueArray * return_vals ;
2006-03-23 21:17:16 +00:00
GimpImage * image ;
1999-04-27 04:57:59 +00:00
gint32 guide ;
gint32 orientation = 0 ;
2006-04-04 10:30:58 +00:00
image = gimp_value_get_image ( & args - > values [ 0 ] , gimp ) ;
guide = g_value_get_uint ( & args - > values [ 1 ] ) ;
1999-04-27 04:57:59 +00:00
if ( success )
{
2006-03-23 21:17:16 +00:00
GimpGuide * g = gimp_image_get_guide ( image , guide ) ;
2004-03-26 16:38:44 +00:00
2006-03-13 19:13:08 +00:00
if ( g )
orientation = g - > orientation ;
else
success = FALSE ;
1999-04-27 04:57:59 +00:00
}
2006-03-31 17:42:13 +00:00
return_vals = gimp_procedure_get_return_values ( procedure , success ) ;
1999-04-27 04:57:59 +00:00
if ( success )
2006-04-04 10:30:58 +00:00
g_value_set_enum ( & return_vals - > values [ 1 ] , orientation ) ;
1999-04-27 04:57:59 +00:00
2006-03-27 21:09:32 +00:00
return return_vals ;
1999-04-27 04:57:59 +00:00
}
2006-04-04 10:30:58 +00:00
static GValueArray *
image_get_guide_position_invoker ( GimpProcedure * procedure ,
Gimp * gimp ,
GimpContext * context ,
GimpProgress * progress ,
const GValueArray * args )
1999-04-27 04:57:59 +00:00
{
gboolean success = TRUE ;
2006-04-04 10:30:58 +00:00
GValueArray * return_vals ;
2006-03-23 21:17:16 +00:00
GimpImage * image ;
1999-04-27 04:57:59 +00:00
gint32 guide ;
gint32 position = 0 ;
2006-04-04 10:30:58 +00:00
image = gimp_value_get_image ( & args - > values [ 0 ] , gimp ) ;
guide = g_value_get_uint ( & args - > values [ 1 ] ) ;
1999-04-27 04:57:59 +00:00
if ( success )
{
2006-03-23 21:17:16 +00:00
GimpGuide * g = gimp_image_get_guide ( image , guide ) ;
2004-03-26 16:38:44 +00:00
2006-03-13 19:13:08 +00:00
if ( g )
position = g - > position ;
else
success = FALSE ;
1999-04-27 04:57:59 +00:00
}
2006-03-31 17:42:13 +00:00
return_vals = gimp_procedure_get_return_values ( procedure , success ) ;
1999-04-27 04:57:59 +00:00
if ( success )
2006-04-04 10:30:58 +00:00
g_value_set_int ( & return_vals - > values [ 1 ] , position ) ;
1999-04-27 04:57:59 +00:00
2006-03-27 21:09:32 +00:00
return return_vals ;
1999-04-27 04:57:59 +00:00
}
2006-04-04 21:11:45 +00:00
void
2006-04-26 09:13:47 +00:00
register_guides_procs ( GimpPDB * pdb )
1999-04-27 04:57:59 +00:00
{
2006-04-04 21:11:45 +00:00
GimpProcedure * procedure ;
/*
* gimp - image - add - hguide
*/
2006-04-06 10:01:30 +00:00
procedure = gimp_procedure_new ( image_add_hguide_invoker ) ;
2006-04-07 10:04:27 +00:00
gimp_object_set_static_name ( GIMP_OBJECT ( procedure ) , " gimp-image-add-hguide " ) ;
2006-04-04 21:11:45 +00:00
gimp_procedure_set_static_strings ( procedure ,
" gimp-image-add-hguide " ,
" Add a horizontal guide to an image. " ,
" This procedure adds a horizontal guide to an image. It takes the input image and the y-position of the new guide as parameters. It returns the guide ID of the new guide. " ,
" Adam D. Moss " ,
" Adam D. Moss " ,
" 1998 " ,
NULL ) ;
gimp_procedure_add_argument ( procedure ,
gimp_param_spec_image_id ( " image " ,
" image " ,
" The image " ,
2006-05-06 18:57:51 +00:00
pdb - > gimp , FALSE ,
2006-04-04 21:11:45 +00:00
GIMP_PARAM_READWRITE ) ) ;
gimp_procedure_add_argument ( procedure ,
gimp_param_spec_int32 ( " yposition " ,
" yposition " ,
" The guide's y-offset from top of image " ,
0 , G_MAXINT32 , 0 ,
GIMP_PARAM_READWRITE ) ) ;
gimp_procedure_add_return_value ( procedure ,
g_param_spec_uint ( " guide " ,
" guide " ,
" The new guide " ,
1 , G_MAXUINT32 , 1 ,
GIMP_PARAM_READWRITE ) ) ;
2006-04-26 09:13:47 +00:00
gimp_pdb_register_procedure ( pdb , procedure ) ;
2006-04-07 08:16:26 +00:00
g_object_unref ( procedure ) ;
2006-04-04 21:11:45 +00:00
/*
* gimp - image - add - vguide
*/
2006-04-06 10:01:30 +00:00
procedure = gimp_procedure_new ( image_add_vguide_invoker ) ;
2006-04-07 10:04:27 +00:00
gimp_object_set_static_name ( GIMP_OBJECT ( procedure ) , " gimp-image-add-vguide " ) ;
2006-04-04 21:11:45 +00:00
gimp_procedure_set_static_strings ( procedure ,
" gimp-image-add-vguide " ,
" Add a vertical guide to an image. " ,
" This procedure adds a vertical guide to an image. It takes the input image and the x-position of the new guide as parameters. It returns the guide ID of the new guide. " ,
" Adam D. Moss " ,
" Adam D. Moss " ,
" 1998 " ,
NULL ) ;
gimp_procedure_add_argument ( procedure ,
gimp_param_spec_image_id ( " image " ,
" image " ,
" The image " ,
2006-05-06 18:57:51 +00:00
pdb - > gimp , FALSE ,
2006-04-04 21:11:45 +00:00
GIMP_PARAM_READWRITE ) ) ;
gimp_procedure_add_argument ( procedure ,
gimp_param_spec_int32 ( " xposition " ,
" xposition " ,
" The guide's x-offset from left of image " ,
0 , G_MAXINT32 , 0 ,
GIMP_PARAM_READWRITE ) ) ;
gimp_procedure_add_return_value ( procedure ,
g_param_spec_uint ( " guide " ,
" guide " ,
" The new guide " ,
1 , G_MAXUINT32 , 1 ,
GIMP_PARAM_READWRITE ) ) ;
2006-04-26 09:13:47 +00:00
gimp_pdb_register_procedure ( pdb , procedure ) ;
2006-04-07 08:16:26 +00:00
g_object_unref ( procedure ) ;
2006-04-04 21:11:45 +00:00
/*
* gimp - image - delete - guide
*/
2006-04-06 10:01:30 +00:00
procedure = gimp_procedure_new ( image_delete_guide_invoker ) ;
2006-04-07 10:04:27 +00:00
gimp_object_set_static_name ( GIMP_OBJECT ( procedure ) , " gimp-image-delete-guide " ) ;
2006-04-04 21:11:45 +00:00
gimp_procedure_set_static_strings ( procedure ,
" gimp-image-delete-guide " ,
" Deletes a guide from an image. " ,
" This procedure takes an image and a guide ID as input and removes the specified guide from the specified image. " ,
" Adam D. Moss " ,
" Adam D. Moss " ,
" 1998 " ,
NULL ) ;
gimp_procedure_add_argument ( procedure ,
gimp_param_spec_image_id ( " image " ,
" image " ,
" The image " ,
2006-05-06 18:57:51 +00:00
pdb - > gimp , FALSE ,
2006-04-04 21:11:45 +00:00
GIMP_PARAM_READWRITE ) ) ;
gimp_procedure_add_argument ( procedure ,
g_param_spec_uint ( " guide " ,
" guide " ,
" The ID of the guide to be removed " ,
1 , G_MAXUINT32 , 1 ,
GIMP_PARAM_READWRITE ) ) ;
2006-04-26 09:13:47 +00:00
gimp_pdb_register_procedure ( pdb , procedure ) ;
2006-04-07 08:16:26 +00:00
g_object_unref ( procedure ) ;
2006-04-04 21:11:45 +00:00
/*
* gimp - image - find - next - guide
*/
2006-04-06 10:01:30 +00:00
procedure = gimp_procedure_new ( image_find_next_guide_invoker ) ;
2006-04-07 10:04:27 +00:00
gimp_object_set_static_name ( GIMP_OBJECT ( procedure ) , " gimp-image-find-next-guide " ) ;
2006-04-04 21:11:45 +00:00
gimp_procedure_set_static_strings ( procedure ,
" gimp-image-find-next-guide " ,
" Find next guide on an image. " ,
" This procedure takes an image and a guide ID as input and finds the guide ID of the successor of the given guide ID in the image's guide list. If the supplied guide ID is 0, the procedure will return the first Guide. The procedure will return 0 if given the final guide ID as an argument or the image has no guides. " ,
" Adam D. Moss " ,
" Adam D. Moss " ,
" 1998 " ,
NULL ) ;
gimp_procedure_add_argument ( procedure ,
gimp_param_spec_image_id ( " image " ,
" image " ,
" The image " ,
2006-05-06 18:57:51 +00:00
pdb - > gimp , FALSE ,
2006-04-04 21:11:45 +00:00
GIMP_PARAM_READWRITE ) ) ;
gimp_procedure_add_argument ( procedure ,
g_param_spec_uint ( " guide " ,
" guide " ,
" The ID of the current guide (0 if first invocation) " ,
1 , G_MAXUINT32 , 1 ,
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE ) ) ;
gimp_procedure_add_return_value ( procedure ,
g_param_spec_uint ( " next-guide " ,
" next guide " ,
" The next guide's ID " ,
1 , G_MAXUINT32 , 1 ,
GIMP_PARAM_READWRITE ) ) ;
2006-04-26 09:13:47 +00:00
gimp_pdb_register_procedure ( pdb , procedure ) ;
2006-04-07 08:16:26 +00:00
g_object_unref ( procedure ) ;
2006-04-04 21:11:45 +00:00
/*
* gimp - image - get - guide - orientation
*/
2006-04-06 10:01:30 +00:00
procedure = gimp_procedure_new ( image_get_guide_orientation_invoker ) ;
2006-04-07 10:04:27 +00:00
gimp_object_set_static_name ( GIMP_OBJECT ( procedure ) , " gimp-image-get-guide-orientation " ) ;
2006-04-04 21:11:45 +00:00
gimp_procedure_set_static_strings ( procedure ,
" gimp-image-get-guide-orientation " ,
" Get orientation of a guide on an image. " ,
" This procedure takes an image and a guide ID as input and returns the orientations of the guide. " ,
" Adam D. Moss " ,
" Adam D. Moss " ,
" 1998 " ,
NULL ) ;
gimp_procedure_add_argument ( procedure ,
gimp_param_spec_image_id ( " image " ,
" image " ,
" The image " ,
2006-05-06 18:57:51 +00:00
pdb - > gimp , FALSE ,
2006-04-04 21:11:45 +00:00
GIMP_PARAM_READWRITE ) ) ;
gimp_procedure_add_argument ( procedure ,
g_param_spec_uint ( " guide " ,
" guide " ,
" The guide " ,
1 , G_MAXUINT32 , 1 ,
GIMP_PARAM_READWRITE ) ) ;
gimp_procedure_add_return_value ( procedure ,
gimp_param_spec_enum ( " orientation " ,
" orientation " ,
2006-05-18 17:25:15 +00:00
" The guide's orientation " ,
2006-04-04 21:11:45 +00:00
GIMP_TYPE_ORIENTATION_TYPE ,
GIMP_ORIENTATION_HORIZONTAL ,
GIMP_PARAM_READWRITE ) ) ;
gimp_param_spec_enum_exclude_value ( GIMP_PARAM_SPEC_ENUM ( procedure - > values [ 0 ] ) ,
GIMP_ORIENTATION_UNKNOWN ) ;
2006-04-26 09:13:47 +00:00
gimp_pdb_register_procedure ( pdb , procedure ) ;
2006-04-07 08:16:26 +00:00
g_object_unref ( procedure ) ;
2006-04-04 21:11:45 +00:00
/*
* gimp - image - get - guide - position
*/
2006-04-06 10:01:30 +00:00
procedure = gimp_procedure_new ( image_get_guide_position_invoker ) ;
2006-04-07 10:04:27 +00:00
gimp_object_set_static_name ( GIMP_OBJECT ( procedure ) , " gimp-image-get-guide-position " ) ;
2006-04-04 21:11:45 +00:00
gimp_procedure_set_static_strings ( procedure ,
" gimp-image-get-guide-position " ,
" Get position of a guide on an image. " ,
" This procedure takes an image and a guide ID as input and returns the position of the guide relative to the top or left of the image. " ,
" Adam D. Moss " ,
" Adam D. Moss " ,
" 1998 " ,
NULL ) ;
gimp_procedure_add_argument ( procedure ,
gimp_param_spec_image_id ( " image " ,
" image " ,
" The image " ,
2006-05-06 18:57:51 +00:00
pdb - > gimp , FALSE ,
2006-04-04 21:11:45 +00:00
GIMP_PARAM_READWRITE ) ) ;
gimp_procedure_add_argument ( procedure ,
g_param_spec_uint ( " guide " ,
" guide " ,
" The guide " ,
1 , G_MAXUINT32 , 1 ,
GIMP_PARAM_READWRITE ) ) ;
gimp_procedure_add_return_value ( procedure ,
gimp_param_spec_int32 ( " position " ,
" position " ,
" The guide's position relative to top or left of image " ,
G_MININT32 , G_MAXINT32 , 0 ,
GIMP_PARAM_READWRITE ) ) ;
2006-04-26 09:13:47 +00:00
gimp_pdb_register_procedure ( pdb , procedure ) ;
2006-04-07 08:16:26 +00:00
g_object_unref ( procedure ) ;
2006-04-04 21:11:45 +00:00
}