Commit cb7d5a17 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

tools/pdbgen/pdb/fileops.pdb added a few more PDB wrappers

2000-08-25  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/fileops.pdb
	* tools/pdbgen/pdb/selection.pdb: added a few more PDB wrappers

	* tools/pdbgen/pdb/image.pdb: tweaked the help and blurb strings

	* app/image_cmds.c
	* libgimp/gimpfileops_pdb.[ch]
	* libgimp/gimpimage_pdb.c
	* libgimp/gimpselection_pdb.[ch]: regenerated

	* plug-ins/common/bz2.c
	* plug-ins/common/gz.c
	* plug-ins/common/mail.c
	* plug-ins/common/screenshot.c
	* plug-ins/common/url.c
	* plug-ins/gdyntext/gdyntext.c
	* plug-ins/gfig/gfig.c: use new PDB wrappers.
	For GDynText this change fixes a bug since it used to use the
	wrong number of arguments for gimp_selection_load().

	* plug-ins/flame/rect.[ch]: removed compiler warning
parent 6bde2b67
2000-08-25 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/fileops.pdb
* tools/pdbgen/pdb/selection.pdb: added a few more PDB wrappers
* tools/pdbgen/pdb/image.pdb: tweaked the help and blurb strings
* app/image_cmds.c
* libgimp/gimpfileops_pdb.[ch]
* libgimp/gimpimage_pdb.c
* libgimp/gimpselection_pdb.[ch]: regenerated
* plug-ins/common/bz2.c
* plug-ins/common/gz.c
* plug-ins/common/mail.c
* plug-ins/common/screenshot.c
* plug-ins/common/url.c
* plug-ins/gdyntext/gdyntext.c
* plug-ins/gfig/gfig.c: use new PDB wrappers.
For GDynText this change fixes a bug since it used to use the
wrong number of arguments for gimp_selection_load().
* plug-ins/flame/rect.[ch]: removed compiler warning
2000-08-25 Sven Neumann <sven@gimp.org>
* libgimp/gimpchannel.c
......
......@@ -2487,7 +2487,7 @@ static ProcRecord image_thumbnail_proc =
{
"gimp_image_thumbnail",
"Get a thumbnail of an image.",
"This function gets data from which a thumbnail of an image preview can be created. Maximum x or y dimension is 128 pixels. The pixles are returned in the RGB[A] format. The bpp return value gives the number of bytes in the image. The alpha channel also returned if the image has one.",
"This function gets data from which a thumbnail of an image preview can be created. Maximum x or y dimension is 128 pixels. The pixels are returned in the RGB[A] format. The bpp return value gives the number of bits per pixel in the image. If the image has an alpha channel, it is also returned.",
"Andy Thomas",
"Andy Thomas",
"1999",
......@@ -2759,7 +2759,7 @@ static ProcArg image_get_active_layer_outargs[] =
static ProcRecord image_get_active_layer_proc =
{
"gimp_image_get_active_layer",
"Returns if the specified image's active layer.",
"Returns the specified image's active layer.",
"If there is an active layer, its ID will be returned, otherwise, -1. If a channel is currently active, then no layer will be. If a layer mask is active, then this will return the associated layer.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
......@@ -2810,7 +2810,7 @@ static ProcArg image_set_active_layer_inargs[] =
static ProcRecord image_set_active_layer_proc =
{
"gimp_image_set_active_layer",
"Sets if the specified image's active layer.",
"Sets the specified image's active layer.",
"If the layer exists, it is set as the active layer in the image. Any previous active layer or channel is set to inactive. An exception is a previously existing floating selection, in which case this procedure will return an execution error.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
......@@ -2867,7 +2867,7 @@ static ProcArg image_get_active_channel_outargs[] =
static ProcRecord image_get_active_channel_proc =
{
"gimp_image_get_active_channel",
"Returns if the specified image's active channel.",
"Returns the specified image's active channel.",
"If there is an active channel, this will return the channel ID, otherwise, -1.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
......@@ -2918,7 +2918,7 @@ static ProcArg image_set_active_channel_inargs[] =
static ProcRecord image_set_active_channel_proc =
{
"gimp_image_set_active_channel",
"Sets if the specified image's active channel.",
"Sets the specified image's active channel.",
"If the channel exists, it is set as the active channel in the image. Any previous active channel or channel is set to inactive. An exception is a previously existing floating selection, in which case this procedure will return an execution error.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
......@@ -2975,8 +2975,8 @@ static ProcArg image_get_selection_outargs[] =
static ProcRecord image_get_selection_proc =
{
"gimp_image_get_selection",
"Returns if the specified image's selection.",
"This will always return a valid ID for a selection--which is represented as a channel internally.",
"Returns the specified image's selection.",
"This will always return a valid ID for a selection -- which is represented as a channel internally.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
......@@ -3049,7 +3049,7 @@ static ProcRecord image_get_component_active_proc =
{
"gimp_image_get_component_active",
"Returns if the specified image's image component is active.",
"This procedure returns if the specified image's image component (i.e. Red, Green, Blue intensity channels in an RGB image) is active or inactive--whether or not it can be modified. If the specified component is not valid for the image type, an error is returned.",
"This procedure returns if the specified image's image component (i.e. Red, Green, Blue intensity channels in an RGB image) is active or inactive -- whether or not it can be modified. If the specified component is not valid for the image type, an error is returned.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
......@@ -3118,7 +3118,7 @@ static ProcRecord image_set_component_active_proc =
{
"gimp_image_set_component_active",
"Sets if the specified image's image component is active.",
"This procedure sets if the specified image's image component (i.e. Red, Green, Blue intensity channels in an RGB image) is active or inactive--whether or not it can be modified. If the specified component is not valid for the image type, an error is returned.",
"This procedure sets if the specified image's image component (i.e. Red, Green, Blue intensity channels in an RGB image) is active or inactive -- whether or not it can be modified. If the specified component is not valid for the image type, an error is returned.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
......@@ -3191,7 +3191,7 @@ static ProcRecord image_get_component_visible_proc =
{
"gimp_image_get_component_visible",
"Returns if the specified image's image component is visible.",
"This procedure returns if the specified image's image component (i.e. Red, Green, Blue intensity channels in an RGB image) is visible or invisible--whether or not it can be seen. If the specified component is not valid for the image type, an error is returned.",
"This procedure returns if the specified image's image component (i.e. Red, Green, Blue intensity channels in an RGB image) is visible or invisible -- whether or not it can be seen. If the specified component is not valid for the image type, an error is returned.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
......@@ -3260,7 +3260,7 @@ static ProcRecord image_set_component_visible_proc =
{
"gimp_image_set_component_visible",
"Sets if the specified image's image component is visible.",
"This procedure sets if the specified image's image component (i.e. Red, Green, Blue intensity channels in an RGB image) is visible or invisible--whether or not it can be seen. If the specified component is not valid for the image type, an error is returned.",
"This procedure sets if the specified image's image component (i.e. Red, Green, Blue intensity channels in an RGB image) is visible or invisible -- whether or not it can be seen. If the specified component is not valid for the image type, an error is returned.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
......@@ -3312,8 +3312,8 @@ static ProcArg image_get_filename_outargs[] =
static ProcRecord image_get_filename_proc =
{
"gimp_image_get_filename",
"Returns if the specified image's filename.",
"This procedure returns if the specified image's filename--if it was loaded or has since been saved. Otherwise, returns NULL.",
"Returns the specified image's filename.",
"This procedure returns the specified image's filename -- if it was loaded or has since been saved. Otherwise, returns NULL.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
......@@ -3363,8 +3363,8 @@ static ProcArg image_set_filename_inargs[] =
static ProcRecord image_set_filename_proc =
{
"gimp_image_set_filename",
"Sets if the specified image's filename.",
"This procedure sets if the specified image's filename.",
"Sets the specified image's filename.",
"This procedure sets the specified image's filename.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
......@@ -3424,8 +3424,8 @@ static ProcArg image_get_resolution_outargs[] =
static ProcRecord image_get_resolution_proc =
{
"gimp_image_get_resolution",
"Returns if the specified image's resolution.",
"This procedure returns if the specified image's resolution in dots per inch. This value is independent of any of the layers in this image.",
"Returns the specified image's resolution.",
"This procedure returns the specified image's resolution in dots per inch. This value is independent of any of the layers in this image.",
"Austin Donnelly",
"Austin Donnelly",
"1998",
......@@ -3496,8 +3496,8 @@ static ProcArg image_set_resolution_inargs[] =
static ProcRecord image_set_resolution_proc =
{
"gimp_image_set_resolution",
"Sets if the specified image's resolution.",
"This procedure sets if the specified image's resolution in dots per inch. This value is independent of any of the layers in this image. No scaling or resizing is performed.",
"Sets the specified image's resolution.",
"This procedure sets the specified image's resolution in dots per inch. This value is independent of any of the layers in this image. No scaling or resizing is performed.",
"Austin Donnelly",
"Austin Donnelly",
"1998",
......@@ -3549,8 +3549,8 @@ static ProcArg image_get_unit_outargs[] =
static ProcRecord image_get_unit_proc =
{
"gimp_image_get_unit",
"Returns if the specified image's unit.",
"This procedure returns if the specified image's unit. This value is independent of any of the layers in this image. See the gimp_unit_* procedure definitions for the valid range of unit IDs and a description of the unit system.",
"Returns the specified image's unit.",
"This procedure returns the specified image's unit. This value is independent of any of the layers in this image. See the gimp_unit_* procedure definitions for the valid range of unit IDs and a description of the unit system.",
"Michael Natterer",
"Michael Natterer",
"1998",
......@@ -3600,8 +3600,8 @@ static ProcArg image_set_unit_inargs[] =
static ProcRecord image_set_unit_proc =
{
"gimp_image_set_unit",
"Sets if the specified image's unit.",
"This procedure sets if the specified image's unit. No scaling or resizing is performed. This value is independent of any of the layers in this image. See the gimp_unit_* procedure definitions for the valid range of unit IDs and a description of the unit system.",
"Sets the specified image's unit.",
"This procedure sets the specified image's unit. No scaling or resizing is performed. This value is independent of any of the layers in this image. See the gimp_unit_* procedure definitions for the valid range of unit IDs and a description of the unit system.",
"Michael Natterer",
"Michael Natterer",
"1998",
......
2000-08-25 Sven Neumann <sven@gimp.org>
* libgimp/libgimp-decl.txt
* libgimp/libgimp-sections.txt
* libgimp/tmpl/gimpfileops.sgml
* libgimp/tmpl/gimpselection.sgml: updated
2000-08-24 Sven Neumann <sven@gimp.org>
* libgimp/*: updated after libgimp API cleanup, moved all
......
......@@ -2105,19 +2105,34 @@ typedef enum
gint32 *image_ID,gint32 *drawable_ID,gchar *format_name,GimpExportCapabilities capabilities
</FUNCTION>
<FUNCTION>
<NAME>gimp_file_load</NAME>
<RETURNS>gint32 </RETURNS>
GimpRunModeType run_mode,gchar *filename,gchar *raw_filename
</FUNCTION>
<FUNCTION>
<NAME>gimp_file_save</NAME>
<RETURNS>gboolean </RETURNS>
GimpRunModeType run_mode,gint32 image_ID,gint32 drawable_ID,gchar *filename,gchar *raw_filename
</FUNCTION>
<FUNCTION>
<NAME>gimp_temp_name</NAME>
<RETURNS>gchar *</RETURNS>
gchar *extension
</FUNCTION>
<FUNCTION>
<NAME>gimp_register_magic_load_handler</NAME>
<RETURNS>gboolean </RETURNS>
gchar *procedure_name,gchar *extensions,gchar *prefixes,gchar *magics
gchar *procedure_name,gchar *extensions,gchar *prefixes,gchar *magics
</FUNCTION>
<FUNCTION>
<NAME>gimp_register_load_handler</NAME>
<RETURNS>gboolean </RETURNS>
gchar *procedure_name,gchar *extensions,gchar *prefixes
gchar *procedure_name,gchar *extensions,gchar *prefixes
</FUNCTION>
<FUNCTION>
<NAME>gimp_register_save_handler</NAME>
<RETURNS>gboolean </RETURNS>
gchar *procedure_name,gchar *extensions,gchar *prefixes
gchar *procedure_name,gchar *extensions,gchar *prefixes
</FUNCTION>
<MACRO>
<NAME>GIMP_TYPE_FILE_SELECTION</NAME>
......@@ -4127,15 +4142,80 @@ gint32 image_ID,gint32 drawable_ID,gint offx,gint offy
gint32 image_ID,gboolean *non_empty,gint *x1,gint *y1,gint *x2,gint *y2
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_value</NAME>
<RETURNS>gint </RETURNS>
gint32 image_ID,gint x,gint y
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_is_empty</NAME>
<RETURNS>gboolean </RETURNS>
gint32 image_ID
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_translate</NAME>
<RETURNS>gboolean </RETURNS>
gint32 image_ID,gint offx,gint offy
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_clear</NAME>
<RETURNS>gboolean </RETURNS>
gint32 image_ID
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_invert</NAME>
<RETURNS>gboolean </RETURNS>
gint32 image_ID
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_sharpen</NAME>
<RETURNS>gboolean </RETURNS>
gint32 image_ID
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_all</NAME>
<RETURNS>gboolean </RETURNS>
gint32 image_ID
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_none</NAME>
<RETURNS>gboolean </RETURNS>
gint32 image_ID
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_feather</NAME>
<RETURNS>gboolean </RETURNS>
gint32 image_ID,gdouble radius
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_border</NAME>
<RETURNS>gboolean </RETURNS>
gint32 image_ID,gint radius
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_grow</NAME>
<RETURNS>gboolean </RETURNS>
gint32 image_ID,gint steps
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_shrink</NAME>
<RETURNS>gboolean </RETURNS>
gint32 image_ID,gint radius
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_layer_alpha</NAME>
<RETURNS>gboolean </RETURNS>
gint32 layer_ID
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_load</NAME>
<RETURNS>gboolean </RETURNS>
gint32 channel_ID
</FUNCTION>
<FUNCTION>
<NAME>gimp_selection_save</NAME>
<RETURNS>gint32 </RETURNS>
gint32 image_ID
</FUNCTION>
<MACRO>
<NAME>SA_RESTART</NAME>
#define SA_RESTART SA_SYSV
......
......@@ -641,6 +641,9 @@ gimp_edit_stroke
<SECTION>
<FILE>gimpfileops</FILE>
gimp_temp_name
gimp_file_load
gimp_file_save
gimp_register_magic_load_handler
gimp_register_load_handler
gimp_register_save_handler
......@@ -887,10 +890,23 @@ gimp_procedural_db_get_data_size
<SECTION>
<FILE>gimpselection</FILE>
gimp_selection_float
gimp_selection_bounds
gimp_selection_is_empty
gimp_selection_all
gimp_selection_none
gimp_selection_clear
gimp_selection_is_empty
gimp_selection_float
gimp_selection_load
gimp_selection_save
gimp_selection_value
gimp_selection_grow
gimp_selection_shrink
gimp_selection_invert
gimp_selection_feather
gimp_selection_sharpen
gimp_selection_border
gimp_selection_translate
gimp_selection_layer_alpha
</SECTION>
<SECTION>
......
......@@ -14,6 +14,39 @@ gimpfileops
</para>
<!-- ##### FUNCTION gimp_temp_name ##### -->
<para>
</para>
@extension:
@Returns:
<!-- ##### FUNCTION gimp_file_load ##### -->
<para>
</para>
@run_mode:
@filename:
@raw_filename:
@Returns:
<!-- ##### FUNCTION gimp_file_save ##### -->
<para>
</para>
@run_mode:
@image_ID:
@drawable_ID:
@filename:
@raw_filename:
@Returns:
<!-- ##### FUNCTION gimp_register_magic_load_handler ##### -->
<para>
......
......@@ -14,6 +14,58 @@ gimpselection
</para>
<!-- ##### FUNCTION gimp_selection_bounds ##### -->
<para>
</para>
@image_ID:
@non_empty:
@x1:
@y1:
@x2:
@y2:
@Returns:
<!-- # Unused Parameters # -->
@none_empty:
<!-- ##### FUNCTION gimp_selection_all ##### -->
<para>
</para>
@image_ID:
@Returns:
<!-- ##### FUNCTION gimp_selection_none ##### -->
<para>
</para>
@image_ID:
@Returns:
<!-- ##### FUNCTION gimp_selection_clear ##### -->
<para>
</para>
@image_ID:
@Returns:
<!-- ##### FUNCTION gimp_selection_is_empty ##### -->
<para>
</para>
@image_ID:
@Returns:
<!-- ##### FUNCTION gimp_selection_float ##### -->
<para>
......@@ -29,37 +81,110 @@ gimpselection
@y_offset:
<!-- ##### FUNCTION gimp_selection_bounds ##### -->
<!-- ##### FUNCTION gimp_selection_load ##### -->
<para>
</para>
@channel_ID:
@Returns:
<!-- ##### FUNCTION gimp_selection_save ##### -->
<para>
</para>
@image_ID:
@non_empty:
@x1:
@y1:
@x2:
@y2:
@Returns:
<!-- # Unused Parameters # -->
@none_empty:
<!-- ##### FUNCTION gimp_selection_is_empty ##### -->
<!-- ##### FUNCTION gimp_selection_value ##### -->
<para>
</para>
@image_ID:
@x:
@y:
@Returns:
<!-- ##### FUNCTION gimp_selection_none ##### -->
<!-- ##### FUNCTION gimp_selection_grow ##### -->
<para>
</para>
@image_ID:
@steps:
@Returns:
<!-- ##### FUNCTION gimp_selection_shrink ##### -->
<para>
</para>
@image_ID:
@radius:
@Returns:
<!-- ##### FUNCTION gimp_selection_invert ##### -->
<para>
</para>
@image_ID:
@Returns:
<!-- ##### FUNCTION gimp_selection_feather ##### -->
<para>
</para>
@image_ID:
@radius:
@Returns:
<!-- ##### FUNCTION gimp_selection_sharpen ##### -->
<para>
</para>
@image_ID:
@Returns:
<!-- ##### FUNCTION gimp_selection_border ##### -->
<para>
</para>
@image_ID:
@radius:
@Returns:
<!-- ##### FUNCTION gimp_selection_translate ##### -->
<para>
</para>
@image_ID:
@offx:
@offy:
@Returns:
<!-- ##### FUNCTION gimp_selection_layer_alpha ##### -->
<para>
</para>
@layer_ID:
@Returns:
......@@ -23,6 +23,124 @@
#include "gimp.h"
/**
* gimp_file_load:
* @run_mode: The run mode.
* @filename: The name of the file to load.
* @raw_filename: The name entered.
*
* Loads a file by extension.
*
* This procedure invokes the correct file load handler according to
* the file's extension and/or prefix. The name of the file to load is
* typically a full pathname, and the name entered is what the user
* actually typed before prepending a directory path. The reason for
* this is that if the user types http://www.xcf/~gimp/ he wants to
* fetch a URL, and the full pathname will not look like a URL.
*
* Returns: The output image.
*/
gint32
gimp_file_load (GimpRunModeType run_mode,
gchar *filename,
gchar *raw_filename)
{
GimpParam *return_vals;
gint nreturn_vals;
gint32 image_ID = -1;
return_vals = gimp_run_procedure ("gimp_file_load",
&nreturn_vals,
GIMP_PDB_INT32, run_mode,
GIMP_PDB_STRING, filename,
GIMP_PDB_STRING, raw_filename,
GIMP_PDB_END);
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
image_ID = return_vals[1].data.d_image;
gimp_destroy_params (return_vals, nreturn_vals);
return image_ID;
}
/**
* gimp_file_save:
* @run_mode: The run mode.
* @image_ID: Input image.
* @drawable_ID: Drawable to save.
* @filename: The name of the file to save the image in.
* @raw_filename: The name of the file to save the image in.
*
* Saves a file by extension.
*
* This procedure invokes the correct file save handler according to
* the file's extension and/or prefix. The name of the file to save is
* typically a full pathname, and the name entered is what the user
* actually typed before prepending a directory path. The reason for
* this is that if the user types http://www.xcf/~gimp/ she wants to
* fetch a URL, and the full pathname will not look like a URL.
*
* Returns: TRUE on success.
*/
gboolean
gimp_file_save (GimpRunModeType run_mode,
gint32 image_ID,
gint32 drawable_ID,
gchar *filename,
gchar *raw_filename)
{
GimpParam *return_vals;
gint nreturn_vals;
gboolean success = TRUE;
return_vals = gimp_run_procedure ("gimp_file_save",
&nreturn_vals,
GIMP_PDB_INT32, run_mode,
GIMP_PDB_IMAGE, image_ID,
GIMP_PDB_DRAWABLE, drawable_ID,
GIMP_PDB_STRING, filename,
GIMP_PDB_STRING, raw_filename,
GIMP_PDB_END);
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
gimp_destroy_params (return_vals, nreturn_vals);
return success;
}
/**
* gimp_temp_name:
* @extension: The extension the file will have.
*
* Generates a unique filename.
*
* Generates a unique filename using the temp path supplied in the
* user's gimprc.
*
* Returns: The new temp filename.
*/
gchar *
gimp_temp_name (gchar *extension)
{
GimpParam *return_vals;
gint nreturn_vals;
gchar *name = NULL;
return_vals = gimp_run_procedure ("gimp_temp_name",
&nreturn_vals,
GIMP_PDB_STRING, extension,
GIMP_PDB_END);
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
name = g_strdup (return_vals[1].data.d_string);
gimp_destroy_params (return_vals, nreturn_vals);
return name;
}
/**
* gimp_register_magic_load_handler:
* @procedure_name: The name of the procedure to be used for loading.
......
......@@ -31,16 +31,25 @@ extern "C" {
/* For information look into the C source or the html documentation */
gboolean gimp_register_magic_load_handler (gchar *procedure_name,
gchar *extensions,
gchar *prefixes,
gchar *magics);
gboolean gimp_register_load_handler (gchar *procedure_name,
gchar *extensions,
gchar *prefixes);
gboolean gimp_register_save_handler (gchar *procedure_name,
gchar *extensions,
gchar *prefixes);
gint32 gimp_file_load (GimpRunModeType run_mode,
gchar *filename,
gchar *raw_filename);
gboolean gimp_file_save (GimpRunModeType run_mode,
gint32 image_ID,
gint32 drawable_ID,
gchar *filename,
gchar *raw_filename);
gchar* gimp_temp_name (gchar *extension);
gboolean gimp_register_magic_load_handler (gchar *procedure_name,
gchar *extensions,
gchar *prefixes,
gchar *magics);
gboolean gimp_register_load_handler (gchar *procedure_name,
gchar *extensions,
gchar *prefixes);
gboolean gimp_register_save_handler (gchar *procedure_name,
gchar *extensions,
gchar *prefixes);
#ifdef __cplusplus
......
......@@ -1384,10 +1384,10 @@ gimp_image_floating_sel_attached_to (gint32 image_ID)
* Get a thumbnail of an image.
*
* This function gets data from which a thumbnail of an image preview
* can be created. Maximum x or y dimension is 128 pixels. The pixles
* can be created. Maximum x or y dimension is 128 pixels. The pixels
* are returned in the RGB[A] format. The bpp return value gives the
* number of bytes in the image. The alpha channel also returned if the
* image has one.
* number of bits per pixel in the image. If the image has an alpha
* channel, it is also returned.
*
* Returns: TRUE on success.
*/
......@@ -1577,7 +1577,7 @@ gimp_image_height (gint32 image_ID)
* gimp_image_get_active_layer:
* @image_ID: The image.
*
* Returns if the specified image's active layer.
* Returns the specified image's active layer.
*
* If there is an active layer, its ID will be returned, otherwise, -1.
* If a channel is currently active, then no layer will be. If a layer
......@@ -1610,7 +1610,7 @@ gimp_image_get_active_layer (gint32 image_ID)
* @image_ID: The image.
* @active_layer_ID: The new image active layer.
*