mirror of https://github.com/GNOME/gimp.git
tools/pdbgen/pdb/brush.pdb tools/pdbgen/pdb/brushes.pdb
2006-03-24 Michael Natterer <mitch@gimp.org> * tools/pdbgen/pdb/brush.pdb * tools/pdbgen/pdb/brushes.pdb * tools/pdbgen/pdb/channel.pdb * tools/pdbgen/pdb/color.pdb * tools/pdbgen/pdb/display.pdb * tools/pdbgen/pdb/drawable.pdb * tools/pdbgen/pdb/drawable_transform.pdb * tools/pdbgen/pdb/edit.pdb * tools/pdbgen/pdb/fileops.pdb * tools/pdbgen/pdb/floating_sel.pdb * tools/pdbgen/pdb/gradient.pdb * tools/pdbgen/pdb/gradient_select.pdb * tools/pdbgen/pdb/gradients.pdb * tools/pdbgen/pdb/image.pdb * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/paint_tools.pdb * tools/pdbgen/pdb/palette.pdb * tools/pdbgen/pdb/palettes.pdb * tools/pdbgen/pdb/patterns.pdb * tools/pdbgen/pdb/plug_in.pdb * tools/pdbgen/pdb/procedural_db.pdb * tools/pdbgen/pdb/selection.pdb * tools/pdbgen/pdb/selection_tools.pdb * tools/pdbgen/pdb/text_tool.pdb * tools/pdbgen/pdb/transform_tools.pdb * tools/pdbgen/pdb/undo.pdb * tools/pdbgen/pdb/vectors.pdb: replaced 'True', 'true' and 'non-zero' by 'TRUE' where appropriate. Added %%desc%% to enum arg descriptions where missing. Get object names using gimp_object_get_name(). Set 'success' more consistently. Removed { } from all enum arg descriptions... * tools/pdbgen/app.pl (make_arg_recs): ...and add the { } generically here. Removed some code that replaced the ',' by 'or' for enums without { } so all enums are now documented the same. * app/pdb/<some>_cmds.c * libgimp/<some>_pdb.c: regenerated.
This commit is contained in:
parent
cebdd67d88
commit
328345dc92
41
ChangeLog
41
ChangeLog
|
@ -1,3 +1,44 @@
|
|||
2006-03-24 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* tools/pdbgen/pdb/brush.pdb
|
||||
* tools/pdbgen/pdb/brushes.pdb
|
||||
* tools/pdbgen/pdb/channel.pdb
|
||||
* tools/pdbgen/pdb/color.pdb
|
||||
* tools/pdbgen/pdb/display.pdb
|
||||
* tools/pdbgen/pdb/drawable.pdb
|
||||
* tools/pdbgen/pdb/drawable_transform.pdb
|
||||
* tools/pdbgen/pdb/edit.pdb
|
||||
* tools/pdbgen/pdb/fileops.pdb
|
||||
* tools/pdbgen/pdb/floating_sel.pdb
|
||||
* tools/pdbgen/pdb/gradient.pdb
|
||||
* tools/pdbgen/pdb/gradient_select.pdb
|
||||
* tools/pdbgen/pdb/gradients.pdb
|
||||
* tools/pdbgen/pdb/image.pdb
|
||||
* tools/pdbgen/pdb/layer.pdb
|
||||
* tools/pdbgen/pdb/paint_tools.pdb
|
||||
* tools/pdbgen/pdb/palette.pdb
|
||||
* tools/pdbgen/pdb/palettes.pdb
|
||||
* tools/pdbgen/pdb/patterns.pdb
|
||||
* tools/pdbgen/pdb/plug_in.pdb
|
||||
* tools/pdbgen/pdb/procedural_db.pdb
|
||||
* tools/pdbgen/pdb/selection.pdb
|
||||
* tools/pdbgen/pdb/selection_tools.pdb
|
||||
* tools/pdbgen/pdb/text_tool.pdb
|
||||
* tools/pdbgen/pdb/transform_tools.pdb
|
||||
* tools/pdbgen/pdb/undo.pdb
|
||||
* tools/pdbgen/pdb/vectors.pdb: replaced 'True', 'true' and
|
||||
'non-zero' by 'TRUE' where appropriate. Added %%desc%% to enum arg
|
||||
descriptions where missing. Get object names using
|
||||
gimp_object_get_name(). Set 'success' more consistently. Removed
|
||||
{ } from all enum arg descriptions...
|
||||
|
||||
* tools/pdbgen/app.pl (make_arg_recs): ...and add the { }
|
||||
generically here. Removed some code that replaced the ',' by 'or'
|
||||
for enums without { } so all enums are now documented the same.
|
||||
|
||||
* app/pdb/<some>_cmds.c
|
||||
* libgimp/<some>_pdb.c: regenerated.
|
||||
|
||||
2006-03-24 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/jpeg/jpeg-load.c (load_thumbnail_image): close the file
|
||||
|
|
|
@ -107,7 +107,7 @@ brush_new_invoker (Gimp *gimp,
|
|||
GimpData *data = gimp_data_factory_data_new (gimp->brush_factory, name);
|
||||
|
||||
if (data)
|
||||
actual_name = g_strdup (GIMP_OBJECT (data)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ brush_duplicate_invoker (Gimp *gimp,
|
|||
GIMP_DATA (brush));
|
||||
|
||||
if (brush_copy)
|
||||
copy_name = g_strdup (GIMP_OBJECT (brush_copy)->name);
|
||||
copy_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush_copy)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ static ProcArg brush_is_generated_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"generated",
|
||||
"True if the brush is generated"
|
||||
"TRUE if the brush is generated"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -294,8 +294,8 @@ static ProcRecord brush_is_generated_proc =
|
|||
{
|
||||
"gimp-brush-is-generated",
|
||||
"gimp-brush-is-generated",
|
||||
"Tests if generated",
|
||||
"Returns True if this brush is parametric, False for other types",
|
||||
"Tests if brush is generated",
|
||||
"Returns TRUE if this brush is parametric, FALSE for other types",
|
||||
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
|
||||
"Bill Skaggs",
|
||||
"2004",
|
||||
|
@ -336,7 +336,7 @@ brush_rename_invoker (Gimp *gimp,
|
|||
if (brush && GIMP_DATA (brush)->writable)
|
||||
{
|
||||
gimp_object_set_name (GIMP_OBJECT (brush), new_name);
|
||||
actual_name = g_strdup (GIMP_OBJECT (brush)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush)));
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
|
@ -505,7 +505,7 @@ static ProcArg brush_is_editable_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"editable",
|
||||
"True if the brush can be edited"
|
||||
"TRUE if the brush can be edited"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -514,7 +514,7 @@ static ProcRecord brush_is_editable_proc =
|
|||
"gimp-brush-is-editable",
|
||||
"gimp-brush-is-editable",
|
||||
"Tests if brush can be edited",
|
||||
"Returns True if you have permission to change the brush",
|
||||
"Returns TRUE if you have permission to change the brush",
|
||||
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
|
||||
"Bill Skaggs",
|
||||
"2004",
|
||||
|
@ -942,7 +942,7 @@ static ProcArg brush_get_shape_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"shape",
|
||||
"The brush shape"
|
||||
"The brush shape: { GIMP_BRUSH_GENERATED_CIRCLE (0), GIMP_BRUSH_GENERATED_SQUARE (1), GIMP_BRUSH_GENERATED_DIAMOND (2) }"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1376,7 +1376,7 @@ static ProcArg brush_set_shape_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"shape-out",
|
||||
"The brush shape actually assigned"
|
||||
"The brush shape actually assigned: { GIMP_BRUSH_GENERATED_CIRCLE (0), GIMP_BRUSH_GENERATED_SQUARE (1), GIMP_BRUSH_GENERATED_DIAMOND (2) }"
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ brushes_get_brush_invoker (Gimp *gimp,
|
|||
|
||||
if (brush)
|
||||
{
|
||||
name = g_strdup (GIMP_OBJECT (brush)->name);
|
||||
name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush)));
|
||||
width = brush->mask->width;
|
||||
height = brush->mask->height;
|
||||
spacing = gimp_brush_get_spacing (brush);
|
||||
|
@ -373,7 +373,7 @@ brushes_get_brush_data_invoker (Gimp *gimp,
|
|||
|
||||
if (brush)
|
||||
{
|
||||
actual_name = g_strdup (GIMP_OBJECT (brush)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush)));
|
||||
opacity = 1.0;
|
||||
spacing = gimp_brush_get_spacing (brush);
|
||||
paint_mode = 0;
|
||||
|
|
|
@ -522,7 +522,7 @@ static ProcArg buffer_get_image_type_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"image-type",
|
||||
"The buffer image type"
|
||||
"The buffer image type: { GIMP_RGB (0), GIMP_GRAY (1), GIMP_INDEXED (2) }"
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -470,7 +470,7 @@ static ProcRecord channel_get_show_masked_proc =
|
|||
"gimp-channel-get-show-masked",
|
||||
"gimp-channel-get-show-masked",
|
||||
"Get the composite method of the specified channel.",
|
||||
"This procedure returns the specified channel's composite method. If it is non-zero, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.",
|
||||
"This procedure returns the specified channel's composite method. If it is TRUE, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -526,7 +526,7 @@ static ProcRecord channel_set_show_masked_proc =
|
|||
"gimp-channel-set-show-masked",
|
||||
"gimp-channel-set-show-masked",
|
||||
"Set the composite method of the specified channel.",
|
||||
"This procedure sets the specified channel's composite method. If it is non-zero, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.",
|
||||
"This procedure sets the specified channel's composite method. If it is TRUE, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -1111,7 +1111,7 @@ static ProcRecord color_balance_proc =
|
|||
"gimp-color-balance",
|
||||
"gimp-color-balance",
|
||||
"Modify the color balance of the specified drawable.",
|
||||
"Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed.",
|
||||
"Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if TRUE, ensures that the luminosity of each pixel remains fixed.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1997",
|
||||
|
|
|
@ -251,7 +251,7 @@ static ProcArg image_convert_indexed_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"remove-unused",
|
||||
"Remove unused or duplicate colour entries from final palette, ignored if (palette_type == GIMP_MAKE_PALETTE)"
|
||||
"Remove unused or duplicate color entries from final palette, ignored if (palette_type == GIMP_MAKE_PALETTE)"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_STRING,
|
||||
|
|
|
@ -132,10 +132,10 @@ drawable_delete_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_floating (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_floating (GIMP_ITEM (drawable)))
|
||||
gimp_item_sink (GIMP_ITEM (drawable));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&drawable_delete_proc, success);
|
||||
|
@ -210,7 +210,7 @@ static ProcArg drawable_is_layer_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"layer",
|
||||
"Non-zero if the drawable is a layer"
|
||||
"TRUE if the drawable is a layer"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -219,7 +219,7 @@ static ProcRecord drawable_is_layer_proc =
|
|||
"gimp-drawable-is-layer",
|
||||
"gimp-drawable-is-layer",
|
||||
"Returns whether the drawable is a layer.",
|
||||
"This procedure returns non-zero if the specified drawable is a layer.",
|
||||
"This procedure returns TRUE if the specified drawable is a layer.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -274,7 +274,7 @@ static ProcArg drawable_is_layer_mask_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"layer-mask",
|
||||
"Non-zero if the drawable is a layer mask"
|
||||
"TRUE if the drawable is a layer mask"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -283,7 +283,7 @@ static ProcRecord drawable_is_layer_mask_proc =
|
|||
"gimp-drawable-is-layer-mask",
|
||||
"gimp-drawable-is-layer-mask",
|
||||
"Returns whether the drawable is a layer mask.",
|
||||
"This procedure returns non-zero if the specified drawable is a layer mask.",
|
||||
"This procedure returns TRUE if the specified drawable is a layer mask.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -338,7 +338,7 @@ static ProcArg drawable_is_channel_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"channel",
|
||||
"Non-zero if the drawable is a channel"
|
||||
"TRUE if the drawable is a channel"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -347,7 +347,7 @@ static ProcRecord drawable_is_channel_proc =
|
|||
"gimp-drawable-is-channel",
|
||||
"gimp-drawable-is-channel",
|
||||
"Returns whether the drawable is a channel.",
|
||||
"This procedure returns non-zero if the specified drawable is a channel.",
|
||||
"This procedure returns TRUE if the specified drawable is a channel.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -538,7 +538,7 @@ static ProcRecord drawable_has_alpha_proc =
|
|||
{
|
||||
"gimp-drawable-has-alpha",
|
||||
"gimp-drawable-has-alpha",
|
||||
"Returns non-zero if the drawable has an alpha channel.",
|
||||
"Returns TRUE if the drawable has an alpha channel.",
|
||||
"This procedure returns whether the specified drawable has an alpha channel. This can only be true for layers, and the associated type will be one of: { RGBA , GRAYA, INDEXEDA }.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
|
@ -594,7 +594,7 @@ static ProcArg drawable_is_rgb_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"is-rgb",
|
||||
"non-zero if the drawable is an RGB type"
|
||||
"TRUE if the drawable is an RGB type"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -603,7 +603,7 @@ static ProcRecord drawable_is_rgb_proc =
|
|||
"gimp-drawable-is-rgb",
|
||||
"gimp-drawable-is-rgb",
|
||||
"Returns whether the drawable is an RGB type.",
|
||||
"This procedure returns non-zero if the specified drawable is of type { RGB, RGBA }.",
|
||||
"This procedure returns TRUE if the specified drawable is of type { RGB, RGBA }.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -658,7 +658,7 @@ static ProcArg drawable_is_gray_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"is-gray",
|
||||
"non-zero if the drawable is a grayscale type"
|
||||
"TRUE if the drawable is a grayscale type"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -667,7 +667,7 @@ static ProcRecord drawable_is_gray_proc =
|
|||
"gimp-drawable-is-gray",
|
||||
"gimp-drawable-is-gray",
|
||||
"Returns whether the drawable is a grayscale type.",
|
||||
"This procedure returns non-zero if the specified drawable is of type { Gray, GrayA }.",
|
||||
"This procedure returns TRUE if the specified drawable is of type { Gray, GrayA }.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -722,7 +722,7 @@ static ProcArg drawable_is_indexed_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"is-indexed",
|
||||
"non-zero if the drawable is an indexed type"
|
||||
"TRUE if the drawable is an indexed type"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -731,7 +731,7 @@ static ProcRecord drawable_is_indexed_proc =
|
|||
"gimp-drawable-is-indexed",
|
||||
"gimp-drawable-is-indexed",
|
||||
"Returns whether the drawable is an indexed type.",
|
||||
"This procedure returns non-zero if the specified drawable is of type { Indexed, IndexedA }.",
|
||||
"This procedure returns TRUE if the specified drawable is of type { Indexed, IndexedA }.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -1822,9 +1822,7 @@ drawable_merge_shadow_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
gchar *undo_desc = NULL;
|
||||
|
||||
|
@ -1838,6 +1836,8 @@ drawable_merge_shadow_invoker (Gimp *gimp,
|
|||
|
||||
g_free (undo_desc);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&drawable_merge_shadow_proc, success);
|
||||
|
@ -2214,7 +2214,7 @@ static ProcArg drawable_fill_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"fill-type",
|
||||
"The type of fill: GIMP_FOREGROUND_FILL (0), GIMP_BACKGROUND_FILL (1), GIMP_WHITE_FILL (2), GIMP_TRANSPARENT_FILL (3), GIMP_PATTERN_FILL (4)"
|
||||
"The type of fill: { GIMP_FOREGROUND_FILL (0), GIMP_BACKGROUND_FILL (1), GIMP_WHITE_FILL (2), GIMP_TRANSPARENT_FILL (3), GIMP_PATTERN_FILL (4) }"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -2265,11 +2265,11 @@ drawable_offset_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
gimp_drawable_offset (drawable, context, wrap_around, fill_type,
|
||||
offset_x, offset_y);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&drawable_offset_proc, success);
|
||||
|
@ -2290,7 +2290,7 @@ static ProcArg drawable_offset_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"fill-type",
|
||||
"fill vacated regions of drawable with background or transparent: GIMP_OFFSET_BACKGROUND (0) or GIMP_OFFSET_TRANSPARENT (1)"
|
||||
"fill vacated regions of drawable with background or transparent: { GIMP_OFFSET_BACKGROUND (0), GIMP_OFFSET_TRANSPARENT (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_INT32,
|
||||
|
@ -2521,10 +2521,8 @@ drawable_sub_thumbnail_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = ((src_x + src_width) <= gimp_item_width (GIMP_ITEM (drawable)) &&
|
||||
(src_y + src_height) <= gimp_item_height (GIMP_ITEM (drawable)));
|
||||
|
||||
if (success)
|
||||
if ((src_x + src_width) <= gimp_item_width (GIMP_ITEM (drawable)) &&
|
||||
(src_y + src_height) <= gimp_item_height (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
TempBuf *buf;
|
||||
|
@ -2552,10 +2550,10 @@ drawable_sub_thumbnail_invoker (Gimp *gimp,
|
|||
temp_buf_free (buf);
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&drawable_sub_thumbnail_proc, success);
|
||||
|
@ -2683,10 +2681,10 @@ drawable_foreground_extract_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
gimp_drawable_foreground_extract (drawable, mode, mask, progress);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&drawable_foreground_extract_proc, success);
|
||||
|
@ -2702,7 +2700,7 @@ static ProcArg drawable_foreground_extract_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"mode",
|
||||
"The algorithm to use: GIMP_FOREGROUND_EXTRACT_SIOX (0)"
|
||||
"The algorithm to use: { GIMP_FOREGROUND_EXTRACT_SIOX (0) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_DRAWABLE,
|
||||
|
|
|
@ -137,7 +137,7 @@ static ProcArg drawable_transform_flip_simple_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"flip-type",
|
||||
"Type of flip: GIMP_ORIENTATION_HORIZONTAL (0) or GIMP_ORIENTATION_VERTICAL (1)"
|
||||
"Type of flip: { GIMP_ORIENTATION_HORIZONTAL (0), GIMP_ORIENTATION_VERTICAL (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_INT32,
|
||||
|
@ -170,7 +170,7 @@ static ProcRecord drawable_transform_flip_simple_proc =
|
|||
"gimp-drawable-transform-flip-simple",
|
||||
"gimp-drawable-transform-flip-simple",
|
||||
"Flip the specified drawable either vertically or horizontally.",
|
||||
"This procedure flips the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipped. If auto_center is set to true, the flip is around the selection's center. Otherwise, the coordinate of the axis needs to be specified. The return value is the ID of the flipped drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and flipped drawable.",
|
||||
"This procedure flips the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipped. If auto_center is set to TRUE, the flip is around the selection's center. Otherwise, the coordinate of the axis needs to be specified. The return value is the ID of the flipped drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and flipped drawable.",
|
||||
"Jo\xc3\xa3o S. O. Bueno Calligaris",
|
||||
"Jo\xc3\xa3o S. O. Bueno Calligaris",
|
||||
"2004",
|
||||
|
@ -936,7 +936,7 @@ static ProcArg drawable_transform_rotate_simple_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"rotate-type",
|
||||
"Type of rotation: GIMP_ROTATE_90 (0), GIMP_ROTATE_180 (1), GIMP_ROTATE_270 (2)"
|
||||
"Type of rotation: { GIMP_ROTATE_90 (0), GIMP_ROTATE_180 (1), GIMP_ROTATE_270 (2) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_INT32,
|
||||
|
@ -1708,7 +1708,7 @@ static ProcArg drawable_transform_shear_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"shear-type",
|
||||
"Type of shear: GIMP_ORIENTATION_HORIZONTAL (0) or GIMP_ORIENTATION_VERTICAL (1)"
|
||||
"Type of shear: { GIMP_ORIENTATION_HORIZONTAL (0), GIMP_ORIENTATION_VERTICAL (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_FLOAT,
|
||||
|
@ -1851,7 +1851,7 @@ static ProcArg drawable_transform_shear_default_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"shear-type",
|
||||
"Type of shear: GIMP_ORIENTATION_HORIZONTAL (0) or GIMP_ORIENTATION_VERTICAL (1)"
|
||||
"Type of shear: { GIMP_ORIENTATION_HORIZONTAL (0), GIMP_ORIENTATION_VERTICAL (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_FLOAT,
|
||||
|
|
|
@ -93,14 +93,14 @@ edit_cut_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
non_empty = gimp_edit_cut (image, drawable, context) != NULL;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&edit_cut_proc, success);
|
||||
|
@ -164,14 +164,14 @@ edit_copy_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
non_empty = gimp_edit_copy (image, drawable, context) != NULL;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&edit_copy_proc, success);
|
||||
|
@ -302,17 +302,17 @@ edit_paste_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = (gimp_item_is_attached (GIMP_ITEM (drawable)) &&
|
||||
gimp->global_buffer != NULL);
|
||||
|
||||
if (success)
|
||||
if (gimp->global_buffer && gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
floating_sel = gimp_edit_paste (gimp_item_get_image (GIMP_ITEM (drawable)),
|
||||
drawable, gimp->global_buffer,
|
||||
paste_into, -1, -1, -1, -1);
|
||||
|
||||
if (! floating_sel)
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&edit_paste_proc, success);
|
||||
|
@ -374,14 +374,15 @@ edit_paste_as_new_invoker (Gimp *gimp,
|
|||
Argument *return_args;
|
||||
GimpImage *image = NULL;
|
||||
|
||||
success = (gimp->global_buffer != NULL);
|
||||
|
||||
if (success)
|
||||
if (gimp->global_buffer)
|
||||
{
|
||||
image = gimp_edit_paste_as_new (gimp, NULL, gimp->global_buffer);
|
||||
|
||||
if (! image)
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
|
||||
return_args = procedural_db_return_args (&edit_paste_as_new_proc, success);
|
||||
|
||||
|
@ -440,21 +441,20 @@ edit_named_cut_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = (strlen (buffer_name) > 0 &&
|
||||
gimp_item_is_attached (GIMP_ITEM (drawable)));
|
||||
if (strlen (buffer_name) && gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
real_name = (gchar *) gimp_edit_named_cut (image, buffer_name,
|
||||
drawable, context);
|
||||
|
||||
real_name = (gchar *) gimp_edit_named_cut (image, buffer_name,
|
||||
drawable, context);
|
||||
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&edit_named_cut_proc, success);
|
||||
|
@ -528,21 +528,20 @@ edit_named_copy_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = (strlen (buffer_name) > 0 &&
|
||||
gimp_item_is_attached (GIMP_ITEM (drawable)));
|
||||
if (strlen (buffer_name) && gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
real_name = (gchar *) gimp_edit_named_copy (image, buffer_name,
|
||||
drawable, context);
|
||||
|
||||
real_name = (gchar *) gimp_edit_named_copy (image, buffer_name,
|
||||
drawable, context);
|
||||
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&edit_named_copy_proc, success);
|
||||
|
@ -616,18 +615,18 @@ edit_named_copy_visible_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = (strlen (buffer_name) > 0);
|
||||
if (strlen (buffer_name))
|
||||
{
|
||||
real_name = (gchar *) gimp_edit_named_copy_visible (image, buffer_name,
|
||||
context);
|
||||
|
||||
if (success)
|
||||
{
|
||||
real_name = (gchar *) gimp_edit_named_copy_visible (image, buffer_name,
|
||||
context);
|
||||
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&edit_named_copy_visible_proc, success);
|
||||
|
@ -704,14 +703,10 @@ edit_named_paste_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
GimpBuffer *buffer;
|
||||
|
||||
buffer = (GimpBuffer *)
|
||||
GimpBuffer *buffer = (GimpBuffer *)
|
||||
gimp_container_get_child_by_name (gimp->named_buffers, buffer_name);
|
||||
|
||||
success = (buffer != NULL && gimp_item_is_attached (GIMP_ITEM (drawable)));
|
||||
|
||||
if (success)
|
||||
if (buffer && gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
floating_sel = gimp_edit_paste (gimp_item_get_image (GIMP_ITEM (drawable)),
|
||||
drawable, buffer,
|
||||
|
@ -719,6 +714,8 @@ edit_named_paste_invoker (Gimp *gimp,
|
|||
if (! floating_sel)
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&edit_named_paste_proc, success);
|
||||
|
@ -792,19 +789,18 @@ edit_named_paste_as_new_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
GimpBuffer *buffer;
|
||||
|
||||
buffer = (GimpBuffer *)
|
||||
GimpBuffer *buffer = (GimpBuffer *)
|
||||
gimp_container_get_child_by_name (gimp->named_buffers, buffer_name);
|
||||
|
||||
success = (buffer != NULL);
|
||||
|
||||
if (success)
|
||||
if (buffer)
|
||||
{
|
||||
image = gimp_edit_paste_as_new (gimp, NULL, buffer);
|
||||
|
||||
if (! image)
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&edit_named_paste_as_new_proc, success);
|
||||
|
@ -866,14 +862,14 @@ edit_clear_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
success = gimp_edit_clear (image, drawable, context);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&edit_clear_proc, success);
|
||||
|
@ -926,15 +922,15 @@ edit_fill_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
success = gimp_edit_fill (image, drawable, context,
|
||||
(GimpFillType) fill_type);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&edit_fill_proc, success);
|
||||
|
@ -950,7 +946,7 @@ static ProcArg edit_fill_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"fill-type",
|
||||
"The type of fill: GIMP_FOREGROUND_FILL (0), GIMP_BACKGROUND_FILL (1), GIMP_WHITE_FILL (2), GIMP_TRANSPARENT_FILL (3), GIMP_PATTERN_FILL (4)"
|
||||
"The type of fill: { GIMP_FOREGROUND_FILL (0), GIMP_BACKGROUND_FILL (1), GIMP_WHITE_FILL (2), GIMP_TRANSPARENT_FILL (3), GIMP_PATTERN_FILL (4) }"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1016,9 +1012,7 @@ edit_bucket_fill_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
gboolean do_seed_fill;
|
||||
|
@ -1031,6 +1025,8 @@ edit_bucket_fill_invoker (Gimp *gimp,
|
|||
FALSE /* don't fill transparent */,
|
||||
threshold, sample_merged, x, y);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&edit_bucket_fill_proc, success);
|
||||
|
@ -1085,7 +1081,7 @@ static ProcRecord edit_bucket_fill_proc =
|
|||
"gimp-edit-bucket-fill",
|
||||
"gimp-edit-bucket-fill",
|
||||
"Fill the area specified either by the current selection if there is one, or by a seed fill starting at the specified coordinates.",
|
||||
"This tool requires information on the paint application mode, and the fill mode, which can either be in the foreground color, or in the currently active pattern. If there is no selection, a seed fill is executed at the specified coordinates and extends outward in keeping with the threshold parameter. If there is a selection in the target image, the threshold, sample merged, x, and y arguments are unused. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of merged sampling, the x and y coordinates are relative to the image's origin; otherwise, they are relative to the drawable's origin.",
|
||||
"This tool requires information on the paint application mode, and the fill mode, which can either be in the foreground color, or in the currently active pattern. If there is no selection, a seed fill is executed at the specified coordinates and extends outward in keeping with the threshold parameter. If there is a selection in the target image, the threshold, sample merged, x, and y arguments are unused. If the sample_merged parameter is TRUE, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of merged sampling, the x and y coordinates are relative to the image's origin; otherwise, they are relative to the drawable's origin.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -1323,9 +1319,7 @@ edit_stroke_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
GimpStrokeDesc *desc = gimp_stroke_desc_new (gimp, context);
|
||||
|
@ -1337,6 +1331,8 @@ edit_stroke_invoker (Gimp *gimp,
|
|||
|
||||
g_object_unref (desc);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&edit_stroke_proc, success);
|
||||
|
|
|
@ -182,7 +182,7 @@ static ProcArg file_load_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"run-mode",
|
||||
"The run mode: GIMP_RUN_INTERACTIVE (0) or GIMP_RUN_NONINTERACTIVE (1)"
|
||||
"The run mode: { GIMP_RUN_INTERACTIVE (0), GIMP_RUN_NONINTERACTIVE (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_STRING,
|
||||
|
@ -250,18 +250,20 @@ file_load_layer_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
GimpPDBStatusType status;
|
||||
gchar *uri;
|
||||
gchar *uri = file_utils_filename_to_uri (gimp->load_procs, filename, NULL);
|
||||
|
||||
uri = file_utils_filename_to_uri (gimp->load_procs, filename, NULL);
|
||||
if (! uri)
|
||||
if (uri)
|
||||
{
|
||||
GimpPDBStatusType status;
|
||||
|
||||
layer = file_open_layer (gimp, context, progress,
|
||||
image, uri, run_mode, NULL, &status, NULL);
|
||||
|
||||
if (! layer)
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
|
||||
if (success)
|
||||
layer = file_open_layer (gimp, context, progress,
|
||||
image, uri, run_mode, NULL, &status, NULL);
|
||||
|
||||
success = layer != NULL;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&file_load_layer_proc, success);
|
||||
|
@ -277,7 +279,7 @@ static ProcArg file_load_layer_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"run-mode",
|
||||
"The run mode: GIMP_RUN_INTERACTIVE (0) or GIMP_RUN_NONINTERACTIVE (1)"
|
||||
"The run mode: { GIMP_RUN_INTERACTIVE (0), GIMP_RUN_NONINTERACTIVE (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_IMAGE,
|
||||
|
@ -379,15 +381,11 @@ file_load_thumbnail_invoker (Gimp *gimp,
|
|||
thumb_data_count);
|
||||
|
||||
g_object_unref (pixbuf);
|
||||
|
||||
success = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
|
||||
g_free (uri);
|
||||
g_free (uri);
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&file_load_thumbnail_proc, success);
|
||||
|
@ -503,7 +501,7 @@ static ProcArg file_save_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"run-mode",
|
||||
"The run mode: GIMP_RUN_INTERACTIVE (0) or GIMP_RUN_NONINTERACTIVE (1)"
|
||||
"The run mode: { GIMP_RUN_INTERACTIVE (0), GIMP_RUN_NONINTERACTIVE (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_IMAGE,
|
||||
|
@ -567,22 +565,13 @@ file_save_thumbnail_invoker (Gimp *gimp,
|
|||
{
|
||||
const gchar *image_uri = gimp_object_get_name (GIMP_OBJECT (image));
|
||||
|
||||
if (! image_uri)
|
||||
success = FALSE;
|
||||
|
||||
if (success)
|
||||
if (image_uri)
|
||||
{
|
||||
gchar *uri = g_filename_to_uri (filename, NULL, NULL);
|
||||
|
||||
if (! uri)
|
||||
success = FALSE;
|
||||
|
||||
if (success)
|
||||
if (uri)
|
||||
{
|
||||
if (strcmp (uri, image_uri))
|
||||
success = FALSE;
|
||||
|
||||
if (success)
|
||||
if (! strcmp (uri, image_uri))
|
||||
{
|
||||
GimpImagefile *imagefile;
|
||||
|
||||
|
@ -590,10 +579,16 @@ file_save_thumbnail_invoker (Gimp *gimp,
|
|||
success = gimp_imagefile_save_thumbnail (imagefile, NULL, image);
|
||||
g_object_unref (imagefile);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
|
||||
g_free (uri);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&file_save_thumbnail_proc, success);
|
||||
|
@ -978,7 +973,8 @@ register_file_handler_mime_invoker (Gimp *gimp,
|
|||
|
||||
canonical = gimp_canonicalize_identifier (procedure_name);
|
||||
|
||||
success = (plug_ins_file_register_mime (gimp, canonical, mime_type) != NULL);
|
||||
if (! plug_ins_file_register_mime (gimp, canonical, mime_type))
|
||||
success = FALSE;
|
||||
|
||||
g_free (canonical);
|
||||
}
|
||||
|
@ -1042,8 +1038,8 @@ register_thumbnail_loader_invoker (Gimp *gimp,
|
|||
|
||||
canonical = gimp_canonicalize_identifier (load_proc);
|
||||
|
||||
success = (plug_ins_file_register_thumb_loader (gimp, canonical,
|
||||
thumb_proc) != NULL);
|
||||
if (! plug_ins_file_register_thumb_loader (gimp, canonical, thumb_proc))
|
||||
success = FALSE;
|
||||
|
||||
g_free (canonical);
|
||||
}
|
||||
|
|
|
@ -172,7 +172,7 @@ gradient_new_invoker (Gimp *gimp,
|
|||
GimpData *data = gimp_data_factory_data_new (gimp->gradient_factory, name);
|
||||
|
||||
if (data)
|
||||
actual_name = g_strdup (GIMP_OBJECT (data)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -251,7 +251,7 @@ gradient_duplicate_invoker (Gimp *gimp,
|
|||
GIMP_DATA (gradient));
|
||||
|
||||
if (gradient_copy)
|
||||
copy_name = g_strdup (GIMP_OBJECT (gradient_copy)->name);
|
||||
copy_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (gradient_copy)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -351,7 +351,7 @@ static ProcArg gradient_is_editable_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"editable",
|
||||
"True if the gradient can be edited"
|
||||
"TRUE if the gradient can be edited"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -401,7 +401,7 @@ gradient_rename_invoker (Gimp *gimp,
|
|||
if (gradient && GIMP_DATA (gradient)->writable)
|
||||
{
|
||||
gimp_object_set_name (GIMP_OBJECT (gradient), new_name);
|
||||
actual_name = g_strdup (GIMP_OBJECT (gradient)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (gradient)));
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
|
|
|
@ -105,7 +105,7 @@ static ProcArg gradients_popup_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"sample-size",
|
||||
"Size of the sample to return when the gradient is changed (1 <= sample_size <= 10000)"
|
||||
"Size of the sample to return when the gradient is changed: (1 <= sample_size <= 10000)"
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -420,7 +420,7 @@ gradients_get_gradient_data_invoker (Gimp *gimp,
|
|||
pos = 0.0;
|
||||
delta = 1.0 / (sample_size - 1);
|
||||
|
||||
actual_name = g_strdup (GIMP_OBJECT (gradient)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (gradient)));
|
||||
grad_data = g_new (gdouble, sample_size * 4);
|
||||
width = sample_size * 4;
|
||||
|
||||
|
@ -464,7 +464,7 @@ static ProcArg gradients_get_gradient_data_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"sample-size",
|
||||
"Size of the sample to return when the gradient is changed (1 <= sample_size <= 10000)"
|
||||
"Size of the sample to return when the gradient is changed: (1 <= sample_size <= 10000)"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_INT32,
|
||||
|
|
|
@ -672,7 +672,7 @@ static ProcArg image_grid_get_style_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"style",
|
||||
"The image's grid style"
|
||||
"The image's grid style: { GIMP_GRID_DOTS (0), GIMP_GRID_INTERSECTIONS (1), GIMP_GRID_ON_OFF_DASH (2), GIMP_GRID_DOUBLE_DASH (3), GIMP_GRID_SOLID (4) }"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -735,7 +735,7 @@ static ProcArg image_grid_set_style_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"style",
|
||||
"The image's grid style"
|
||||
"The image's grid style: { GIMP_GRID_DOTS (0), GIMP_GRID_INTERSECTIONS (1), GIMP_GRID_ON_OFF_DASH (2), GIMP_GRID_DOUBLE_DASH (3), GIMP_GRID_SOLID (4) }"
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -1057,7 +1057,7 @@ static ProcArg image_flip_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"flip-type",
|
||||
"Type of flip: GIMP_ORIENTATION_HORIZONTAL (0) or GIMP_ORIENTATION_VERTICAL (1)"
|
||||
"Type of flip: { GIMP_ORIENTATION_HORIZONTAL (0), GIMP_ORIENTATION_VERTICAL (1) }"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1115,7 +1115,7 @@ static ProcArg image_rotate_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"rotate-type",
|
||||
"Angle of rotation: GIMP_ROTATE_90 (0), GIMP_ROTATE_180 (1), GIMP_ROTATE_270 (2)"
|
||||
"Angle of rotation: { GIMP_ROTATE_90 (0), GIMP_ROTATE_180 (1), GIMP_ROTATE_270 (2) }"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1762,7 +1762,7 @@ static ProcRecord image_pick_color_proc =
|
|||
"gimp-image-pick-color",
|
||||
"gimp-image-pick-color",
|
||||
"Determine the color at the given drawable coordinates",
|
||||
"This tool determines the color at the specified coordinates. The returned color is an RGB triplet even for grayscale and indexed drawables. If the coordinates lie outside of the extents of the specified drawable, then an error is returned. If the drawable has an alpha channel, the algorithm examines the alpha value of the drawable at the coordinates. If the alpha value is completely transparent (0), then an error is returned. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored.",
|
||||
"This tool determines the color at the specified coordinates. The returned color is an RGB triplet even for grayscale and indexed drawables. If the coordinates lie outside of the extents of the specified drawable, then an error is returned. If the drawable has an alpha channel, the algorithm examines the alpha value of the drawable at the coordinates. If the alpha value is completely transparent (0), then an error is returned. If the sample_merged parameter is TRUE, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -2243,10 +2243,10 @@ image_add_channel_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_floating (GIMP_ITEM (channel));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_floating (GIMP_ITEM (channel)))
|
||||
success = gimp_image_add_channel (image, channel, MAX (position, -1));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&image_add_channel_proc, success);
|
||||
|
@ -2486,7 +2486,10 @@ image_add_vectors_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
if (gimp_item_is_floating (GIMP_ITEM (vectors)))
|
||||
success = gimp_image_add_vectors (image, vectors, MAX (position, -1));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&image_add_vectors_proc, success);
|
||||
|
@ -3417,7 +3420,7 @@ static ProcArg image_is_dirty_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"dirty",
|
||||
"True if the image has unsaved changes."
|
||||
"TRUE if the image has unsaved changes."
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -3505,9 +3508,7 @@ image_thumbnail_invoker (Gimp *gimp,
|
|||
temp_buf_free (buf);
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&image_thumbnail_proc, success);
|
||||
|
|
|
@ -466,12 +466,12 @@ layer_scale_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (layer));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (layer)))
|
||||
gimp_item_scale_by_origin (GIMP_ITEM (layer), new_width, new_height,
|
||||
gimp->config->interpolation_type, NULL,
|
||||
local_origin);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&layer_scale_proc, success);
|
||||
|
@ -550,11 +550,11 @@ layer_resize_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (layer));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (layer)))
|
||||
gimp_item_resize (GIMP_ITEM (layer), context,
|
||||
new_width, new_height, offx, offy);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&layer_resize_proc, success);
|
||||
|
@ -622,10 +622,10 @@ layer_resize_to_image_size_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (layer));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (layer)))
|
||||
gimp_layer_resize_to_image (layer, context);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&layer_resize_to_image_size_proc, success);
|
||||
|
@ -1034,10 +1034,10 @@ layer_add_mask_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (layer));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (layer)))
|
||||
gimp_layer_add_mask (layer, mask, TRUE);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&layer_add_mask_proc, success);
|
||||
|
@ -1095,10 +1095,10 @@ layer_remove_mask_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (layer));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (layer)))
|
||||
gimp_layer_apply_mask (layer, mode, TRUE);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&layer_remove_mask_proc, success);
|
||||
|
@ -1178,7 +1178,7 @@ static ProcArg layer_is_floating_sel_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"is-floating-sel",
|
||||
"Non-zero if the layer is a floating selection"
|
||||
"TRUE if the layer is a floating selection"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1374,7 +1374,7 @@ static ProcRecord layer_get_apply_mask_proc =
|
|||
"gimp-layer-get-apply-mask",
|
||||
"gimp-layer-get-apply-mask",
|
||||
"Get the apply mask setting of the specified layer.",
|
||||
"This procedure returns the specified layer's apply mask setting. If the value is non-zero, then the layer mask for this layer is currently being composited with the layer's alpha channel.",
|
||||
"This procedure returns the specified layer's apply mask setting. If the value is TRUE, then the layer mask for this layer is currently being composited with the layer's alpha channel.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -1500,7 +1500,7 @@ static ProcRecord layer_get_show_mask_proc =
|
|||
"gimp-layer-get-show-mask",
|
||||
"gimp-layer-get-show-mask",
|
||||
"Get the show mask setting of the specified layer.",
|
||||
"This procedure returns the specified layer's show mask setting. This controls whether the layer or its mask is visible. Non-zero values indicate that the mask should be visible. If the layer has no mask, then this function returns an error.",
|
||||
"This procedure returns the specified layer's show mask setting. This controls whether the layer or its mask is visible. TRUE indicates that the mask should be visible. If the layer has no mask, then this function returns an error.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -1626,7 +1626,7 @@ static ProcRecord layer_get_edit_mask_proc =
|
|||
"gimp-layer-get-edit-mask",
|
||||
"gimp-layer-get-edit-mask",
|
||||
"Get the edit mask setting of the specified layer.",
|
||||
"This procedure returns the specified layer's edit mask setting. If the value is non-zero, then the layer mask for this layer is currently active, and not the layer.",
|
||||
"This procedure returns the specified layer's edit mask setting. If the value is TRUE, then the layer mask for this layer is currently active, and not the layer.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -1862,7 +1862,7 @@ static ProcArg layer_get_mode_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"mode",
|
||||
"The layer combination mode"
|
||||
"The layer combination mode: { GIMP_NORMAL_MODE (0), GIMP_DISSOLVE_MODE (1), GIMP_BEHIND_MODE (2), GIMP_MULTIPLY_MODE (3), GIMP_SCREEN_MODE (4), GIMP_OVERLAY_MODE (5), GIMP_DIFFERENCE_MODE (6), GIMP_ADDITION_MODE (7), GIMP_SUBTRACT_MODE (8), GIMP_DARKEN_ONLY_MODE (9), GIMP_LIGHTEN_ONLY_MODE (10), GIMP_HUE_MODE (11), GIMP_SATURATION_MODE (12), GIMP_COLOR_MODE (13), GIMP_VALUE_MODE (14), GIMP_DIVIDE_MODE (15), GIMP_DODGE_MODE (16), GIMP_BURN_MODE (17), GIMP_HARDLIGHT_MODE (18), GIMP_SOFTLIGHT_MODE (19), GIMP_GRAIN_EXTRACT_MODE (20), GIMP_GRAIN_MERGE_MODE (21), GIMP_COLOR_ERASE_MODE (22) }"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1920,7 +1920,7 @@ static ProcArg layer_set_mode_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"mode",
|
||||
"The new layer combination mode (GIMP_NORMAL_MODE (0), GIMP_DISSOLVE_MODE (1), GIMP_BEHIND_MODE (2), GIMP_MULTIPLY_MODE (3), GIMP_SCREEN_MODE (4), GIMP_OVERLAY_MODE (5), GIMP_DIFFERENCE_MODE (6), GIMP_ADDITION_MODE (7), GIMP_SUBTRACT_MODE (8), GIMP_DARKEN_ONLY_MODE (9), GIMP_LIGHTEN_ONLY_MODE (10), GIMP_HUE_MODE (11), GIMP_SATURATION_MODE (12), GIMP_COLOR_MODE (13), GIMP_VALUE_MODE (14), GIMP_DIVIDE_MODE (15), GIMP_DODGE_MODE (16), GIMP_BURN_MODE (17), GIMP_HARDLIGHT_MODE (18), GIMP_SOFTLIGHT_MODE (19), GIMP_GRAIN_EXTRACT_MODE (20), GIMP_GRAIN_MERGE_MODE (21), GIMP_COLOR_ERASE_MODE (22))"
|
||||
"The new layer combination mode: { GIMP_NORMAL_MODE (0), GIMP_DISSOLVE_MODE (1), GIMP_BEHIND_MODE (2), GIMP_MULTIPLY_MODE (3), GIMP_SCREEN_MODE (4), GIMP_OVERLAY_MODE (5), GIMP_DIFFERENCE_MODE (6), GIMP_ADDITION_MODE (7), GIMP_SUBTRACT_MODE (8), GIMP_DARKEN_ONLY_MODE (9), GIMP_LIGHTEN_ONLY_MODE (10), GIMP_HUE_MODE (11), GIMP_SATURATION_MODE (12), GIMP_COLOR_MODE (13), GIMP_VALUE_MODE (14), GIMP_DIVIDE_MODE (15), GIMP_DODGE_MODE (16), GIMP_BURN_MODE (17), GIMP_HARDLIGHT_MODE (18), GIMP_SOFTLIGHT_MODE (19), GIMP_GRAIN_EXTRACT_MODE (20), GIMP_GRAIN_MERGE_MODE (21), GIMP_COLOR_ERASE_MODE (22) }"
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -177,7 +177,7 @@ static ProcArg airbrush_inargs[] =
|
|||
{
|
||||
GIMP_PDB_FLOAT,
|
||||
"pressure",
|
||||
"The pressure of the airbrush strokes (0 <= pressure <= 100)"
|
||||
"The pressure of the airbrush strokes: (0 <= pressure <= 100)"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_INT32,
|
||||
|
@ -741,7 +741,7 @@ static ProcArg dodgeburn_inargs[] =
|
|||
{
|
||||
GIMP_PDB_FLOAT,
|
||||
"exposure",
|
||||
"The exposer of the strokes (0 <= exposure <= 100)"
|
||||
"The exposure of the strokes: (0 <= exposure <= 100)"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_INT32,
|
||||
|
@ -935,12 +935,12 @@ static ProcArg eraser_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"hardness",
|
||||
"GIMP_BRUSH_HARD (0) or GIMP_BRUSH_SOFT (1)"
|
||||
"{ GIMP_BRUSH_HARD (0), GIMP_BRUSH_SOFT (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_INT32,
|
||||
"method",
|
||||
"GIMP_PAINT_CONSTANT (0) or GIMP_PAINT_INCREMENTAL (1)"
|
||||
"{ GIMP_PAINT_CONSTANT (0), GIMP_PAINT_INCREMENTAL (1) }"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1127,7 +1127,7 @@ static ProcArg paintbrush_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"method",
|
||||
"GIMP_PAINT_CONSTANT (0) or GIMP_PAINT_INCREMENTAL (1)"
|
||||
"{ GIMP_PAINT_CONSTANT (0), GIMP_PAINT_INCREMENTAL (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_FLOAT,
|
||||
|
@ -1367,7 +1367,7 @@ static ProcArg smudge_inargs[] =
|
|||
{
|
||||
GIMP_PDB_FLOAT,
|
||||
"pressure",
|
||||
"The pressure of the smudge strokes (0 <= pressure <= 100)"
|
||||
"The pressure of the smudge strokes: (0 <= pressure <= 100)"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_INT32,
|
||||
|
|
|
@ -91,7 +91,7 @@ palette_new_invoker (Gimp *gimp,
|
|||
GimpData *data = gimp_data_factory_data_new (gimp->palette_factory, name);
|
||||
|
||||
if (data)
|
||||
actual_name = g_strdup (GIMP_OBJECT (data)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -170,7 +170,7 @@ palette_duplicate_invoker (Gimp *gimp,
|
|||
GIMP_DATA (palette));
|
||||
|
||||
if (palette_copy)
|
||||
copy_name = g_strdup (GIMP_OBJECT (palette_copy)->name);
|
||||
copy_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette_copy)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -250,7 +250,7 @@ palette_rename_invoker (Gimp *gimp,
|
|||
if (palette && GIMP_DATA (palette)->writable)
|
||||
{
|
||||
gimp_object_set_name (GIMP_OBJECT (palette), new_name);
|
||||
actual_name = g_strdup (GIMP_OBJECT (palette)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette)));
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
|
@ -419,7 +419,7 @@ static ProcArg palette_is_editable_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"editable",
|
||||
"True if the palette can be edited"
|
||||
"TRUE if the palette can be edited"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -428,7 +428,7 @@ static ProcRecord palette_is_editable_proc =
|
|||
"gimp-palette-is-editable",
|
||||
"gimp-palette-is-editable",
|
||||
"Tests if palette can be edited",
|
||||
"Returns True if you have permission to change the palette",
|
||||
"Returns TRUE if you have permission to change the palette",
|
||||
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
|
||||
"Bill Skaggs",
|
||||
"2004",
|
||||
|
|
|
@ -167,7 +167,7 @@ palettes_get_palette_invoker (Gimp *gimp,
|
|||
|
||||
if (palette)
|
||||
{
|
||||
name = g_strdup (GIMP_OBJECT (palette)->name);
|
||||
name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette)));
|
||||
num_colors = palette->n_colors;
|
||||
}
|
||||
else
|
||||
|
@ -257,7 +257,7 @@ palettes_get_palette_entry_invoker (Gimp *gimp,
|
|||
{
|
||||
GimpPaletteEntry *entry = g_list_nth_data (palette->colors, entry_num);
|
||||
|
||||
actual_name = g_strdup (GIMP_OBJECT (palette)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette)));
|
||||
num_colors = palette->n_colors;
|
||||
color = entry->color;
|
||||
}
|
||||
|
|
|
@ -1245,7 +1245,7 @@ static ProcArg path_to_selection_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"op",
|
||||
"The desired operation with current selection."
|
||||
"The desired operation with current selection: { GIMP_CHANNEL_OP_ADD (0), GIMP_CHANNEL_OP_SUBTRACT (1), GIMP_CHANNEL_OP_REPLACE (2), GIMP_CHANNEL_OP_INTERSECT (3) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_INT32,
|
||||
|
|
|
@ -167,7 +167,7 @@ patterns_get_pattern_invoker (Gimp *gimp,
|
|||
|
||||
if (pattern)
|
||||
{
|
||||
name = g_strdup (GIMP_OBJECT (pattern)->name);
|
||||
name = g_strdup (gimp_object_get_name (GIMP_OBJECT (pattern)));
|
||||
width = pattern->mask->width;
|
||||
height = pattern->mask->height;
|
||||
}
|
||||
|
@ -260,7 +260,7 @@ patterns_get_pattern_data_invoker (Gimp *gimp,
|
|||
|
||||
if (pattern)
|
||||
{
|
||||
actual_name = g_strdup (GIMP_OBJECT (pattern)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (pattern)));
|
||||
width = pattern->mask->width;
|
||||
height = pattern->mask->height;
|
||||
mask_bpp = pattern->mask->bytes;
|
||||
|
|
|
@ -526,7 +526,7 @@ static ProcArg plugin_icon_register_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"icon-type",
|
||||
"The type of the icon"
|
||||
"The type of the icon: { GIMP_ICON_TYPE_STOCK_ID (0), GIMP_ICON_TYPE_INLINE_PIXBUF (1), GIMP_ICON_TYPE_IMAGE_FILE (2) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_INT32,
|
||||
|
|
|
@ -496,7 +496,7 @@ static ProcArg procedural_db_proc_arg_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"arg-type",
|
||||
"The type of argument { GIMP_PDB_INT32 (0), GIMP_PDB_INT16 (1), GIMP_PDB_INT8 (2), GIMP_PDB_FLOAT (3), GIMP_PDB_STRING (4), GIMP_PDB_INT32ARRAY (5), GIMP_PDB_INT16ARRAY (6), GIMP_PDB_INT8ARRAY (7), GIMP_PDB_FLOATARRAY (8), GIMP_PDB_STRINGARRAY (9), GIMP_PDB_COLOR (10), GIMP_PDB_REGION (11), GIMP_PDB_DISPLAY (12), GIMP_PDB_IMAGE (13), GIMP_PDB_LAYER (14), GIMP_PDB_CHANNEL (15), GIMP_PDB_DRAWABLE (16), GIMP_PDB_SELECTION (17), GIMP_PDB_BOUNDARY (18), GIMP_PDB_VECTORS (19), GIMP_PDB_PARASITE (20), GIMP_PDB_STATUS (21), GIMP_PDB_PATH (GIMP_PDB_VECTORS) }"
|
||||
"The type of argument: { GIMP_PDB_INT32 (0), GIMP_PDB_INT16 (1), GIMP_PDB_INT8 (2), GIMP_PDB_FLOAT (3), GIMP_PDB_STRING (4), GIMP_PDB_INT32ARRAY (5), GIMP_PDB_INT16ARRAY (6), GIMP_PDB_INT8ARRAY (7), GIMP_PDB_FLOATARRAY (8), GIMP_PDB_STRINGARRAY (9), GIMP_PDB_COLOR (10), GIMP_PDB_REGION (11), GIMP_PDB_DISPLAY (12), GIMP_PDB_IMAGE (13), GIMP_PDB_LAYER (14), GIMP_PDB_CHANNEL (15), GIMP_PDB_DRAWABLE (16), GIMP_PDB_SELECTION (17), GIMP_PDB_BOUNDARY (18), GIMP_PDB_VECTORS (19), GIMP_PDB_PARASITE (20), GIMP_PDB_STATUS (21), GIMP_PDB_PATH (GIMP_PDB_VECTORS) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_STRING,
|
||||
|
@ -612,7 +612,7 @@ static ProcArg procedural_db_proc_val_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"val-type",
|
||||
"The type of return value { GIMP_PDB_INT32 (0), GIMP_PDB_INT16 (1), GIMP_PDB_INT8 (2), GIMP_PDB_FLOAT (3), GIMP_PDB_STRING (4), GIMP_PDB_INT32ARRAY (5), GIMP_PDB_INT16ARRAY (6), GIMP_PDB_INT8ARRAY (7), GIMP_PDB_FLOATARRAY (8), GIMP_PDB_STRINGARRAY (9), GIMP_PDB_COLOR (10), GIMP_PDB_REGION (11), GIMP_PDB_DISPLAY (12), GIMP_PDB_IMAGE (13), GIMP_PDB_LAYER (14), GIMP_PDB_CHANNEL (15), GIMP_PDB_DRAWABLE (16), GIMP_PDB_SELECTION (17), GIMP_PDB_BOUNDARY (18), GIMP_PDB_VECTORS (19), GIMP_PDB_PARASITE (20), GIMP_PDB_STATUS (21), GIMP_PDB_PATH (GIMP_PDB_VECTORS) }"
|
||||
"The type of return value: { GIMP_PDB_INT32 (0), GIMP_PDB_INT16 (1), GIMP_PDB_INT8 (2), GIMP_PDB_FLOAT (3), GIMP_PDB_STRING (4), GIMP_PDB_INT32ARRAY (5), GIMP_PDB_INT16ARRAY (6), GIMP_PDB_INT8ARRAY (7), GIMP_PDB_FLOATARRAY (8), GIMP_PDB_STRINGARRAY (9), GIMP_PDB_COLOR (10), GIMP_PDB_REGION (11), GIMP_PDB_DISPLAY (12), GIMP_PDB_IMAGE (13), GIMP_PDB_LAYER (14), GIMP_PDB_CHANNEL (15), GIMP_PDB_DRAWABLE (16), GIMP_PDB_SELECTION (17), GIMP_PDB_BOUNDARY (18), GIMP_PDB_VECTORS (19), GIMP_PDB_PARASITE (20), GIMP_PDB_STATUS (21), GIMP_PDB_PATH (GIMP_PDB_VECTORS) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_STRING,
|
||||
|
@ -668,12 +668,13 @@ procedural_db_get_data_invoker (Gimp *gimp,
|
|||
canonical = gimp_canonicalize_identifier (identifier);
|
||||
|
||||
orig_data = plug_in_data_get (gimp, canonical, &bytes);
|
||||
success = (orig_data != NULL);
|
||||
|
||||
g_free (canonical);
|
||||
|
||||
if (success)
|
||||
if (orig_data)
|
||||
data = g_memdup (orig_data, bytes);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&procedural_db_get_data_proc, success);
|
||||
|
@ -751,9 +752,12 @@ procedural_db_get_data_size_invoker (Gimp *gimp,
|
|||
canonical = gimp_canonicalize_identifier (identifier);
|
||||
|
||||
data = plug_in_data_get (gimp, canonical, &bytes);
|
||||
success = (data != NULL);
|
||||
|
||||
g_free (canonical);
|
||||
|
||||
if (! data)
|
||||
success = FALSE;
|
||||
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&procedural_db_get_data_size_proc, success);
|
||||
|
|
|
@ -128,7 +128,7 @@ static ProcArg selection_bounds_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"non-empty",
|
||||
"True if there is a selection"
|
||||
"TRUE if there is a selection"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_INT32,
|
||||
|
@ -301,7 +301,7 @@ static ProcRecord selection_is_empty_proc =
|
|||
"gimp-selection-is-empty",
|
||||
"gimp-selection-is-empty",
|
||||
"Determine whether the selection is empty.",
|
||||
"This procedure returns non-zero if the selection for the specified image is not empty.",
|
||||
"This procedure returns TRUE if the selection for the specified image is not empty.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -402,9 +402,7 @@ selection_float_invoker (Gimp *gimp,
|
|||
|
||||
if (success)
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
|
@ -413,6 +411,8 @@ selection_float_invoker (Gimp *gimp,
|
|||
if (! layer)
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&selection_float_proc, success);
|
||||
|
|
|
@ -123,7 +123,7 @@ static ProcArg by_color_select_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"threshold",
|
||||
"Threshold in intensity levels 0 <= threshold <= 255"
|
||||
"Threshold in intensity levels: 0 <= threshold <= 255"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_INT32,
|
||||
|
@ -157,7 +157,7 @@ static ProcRecord by_color_select_proc =
|
|||
"gimp-by-color-select",
|
||||
"gimp-by-color-select",
|
||||
"Create a selection by selecting all pixels (in the specified drawable) with the same (or similar) color to that specified.",
|
||||
"This tool creates a selection over the specified image. A by-color selection is determined by the supplied color under the constraints of the specified threshold. Essentially, all pixels (in the drawable) that have color sufficiently close to the specified color (as determined by the threshold value) are included in the selection. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar. Feathering can be enabled optionally and is controlled with the \"feather_radius\" parameter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored.",
|
||||
"This tool creates a selection over the specified image. A by-color selection is determined by the supplied color under the constraints of the specified threshold. Essentially, all pixels (in the drawable) that have color sufficiently close to the specified color (as determined by the threshold value) are included in the selection. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar. Feathering can be enabled optionally and is controlled with the \"feather_radius\" parameter. If the sample_merged parameter is TRUE, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -490,7 +490,7 @@ static ProcArg fuzzy_select_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"threshold",
|
||||
"Threshold in intensity levels 0 <= threshold <= 255"
|
||||
"Threshold in intensity levels: 0 <= threshold <= 255"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_INT32,
|
||||
|
@ -524,8 +524,8 @@ static ProcRecord fuzzy_select_proc =
|
|||
"gimp-fuzzy-select",
|
||||
"gimp-fuzzy-select",
|
||||
"Create a fuzzy selection starting at the specified coordinates on the specified drawable.",
|
||||
"This tool creates a fuzzy selection over the specified image. A fuzzy selection is determined by a seed fill under the constraints of the specified threshold. Essentially, the color at the specified coordinates (in the drawable) is measured and the selection expands outwards from that point to any adjacent pixels which are not significantly different (as determined by the threshold value). This process continues until no more expansion is possible. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar at pixels along the seed fill boundary. Feathering can be enabled optionally and is controlled with the \"feather_radius\" paramter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored."
|
||||
"If the sample is merged, the specified coordinates are relative to the image origin; otherwise, they are relative to the drawable's origin.",
|
||||
"This tool creates a fuzzy selection over the specified image. A fuzzy selection is determined by a seed fill under the constraints of the specified threshold. Essentially, the color at the specified coordinates (in the drawable) is measured and the selection expands outwards from that point to any adjacent pixels which are not significantly different (as determined by the threshold value). This process continues until no more expansion is possible. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar at pixels along the seed fill boundary. Feathering can be enabled optionally and is controlled with the \"feather_radius\" paramter. If the sample_merged parameter is TRUE, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored. If"
|
||||
"the sample is merged, the specified coordinates are relative to the image origin; otherwise, they are relative to the drawable's origin.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -169,7 +169,7 @@ static ProcArg text_fontname_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"size-type",
|
||||
"The units of specified size: GIMP_PIXELS (0) or GIMP_POINTS (1)"
|
||||
"The units of specified size: { GIMP_PIXELS (0), GIMP_POINTS (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_STRING,
|
||||
|
@ -277,7 +277,7 @@ static ProcArg text_get_extents_fontname_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"size-type",
|
||||
"The units of specified size: GIMP_PIXELS (0) or GIMP_POINTS (1)"
|
||||
"The units of specified size: { GIMP_PIXELS (0), GIMP_POINTS (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_STRING,
|
||||
|
@ -485,7 +485,7 @@ static ProcArg text_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"size-type",
|
||||
"The units of specified size: GIMP_PIXELS (0) or GIMP_POINTS (1)"
|
||||
"The units of specified size: { GIMP_PIXELS (0), GIMP_POINTS (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_STRING,
|
||||
|
@ -663,7 +663,7 @@ static ProcArg text_get_extents_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"size-type",
|
||||
"The units of specified size: GIMP_PIXELS (0) or GIMP_POINTS (1)"
|
||||
"The units of specified size: { GIMP_PIXELS (0), GIMP_POINTS (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_STRING,
|
||||
|
|
|
@ -106,7 +106,7 @@ static ProcArg flip_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"flip-type",
|
||||
"Type of flip: GIMP_ORIENTATION_HORIZONTAL (0) or GIMP_ORIENTATION_VERTICAL (1)"
|
||||
"Type of flip: { GIMP_ORIENTATION_HORIZONTAL (0), GIMP_ORIENTATION_VERTICAL (1) }"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -636,7 +636,7 @@ static ProcArg shear_inargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"shear-type",
|
||||
"Type of shear: GIMP_ORIENTATION_HORIZONTAL (0) or GIMP_ORIENTATION_VERTICAL (1)"
|
||||
"Type of shear: { GIMP_ORIENTATION_HORIZONTAL (0), GIMP_ORIENTATION_VERTICAL (1) }"
|
||||
},
|
||||
{
|
||||
GIMP_PDB_FLOAT,
|
||||
|
|
|
@ -197,7 +197,7 @@ static ProcArg image_undo_is_enabled_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"enabled",
|
||||
"True if undo is enabled for this image"
|
||||
"TRUE if undo is enabled for this image"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -261,7 +261,7 @@ static ProcArg image_undo_disable_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"disabled",
|
||||
"True if the image undo has been disabled"
|
||||
"TRUE if the image undo has been disabled"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -325,7 +325,7 @@ static ProcArg image_undo_enable_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"enabled",
|
||||
"True if the image undo has been enabled"
|
||||
"TRUE if the image undo has been enabled"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -389,7 +389,7 @@ static ProcArg image_undo_freeze_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"frozen",
|
||||
"True if the image undo has been frozen"
|
||||
"TRUE if the image undo has been frozen"
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -453,7 +453,7 @@ static ProcArg image_undo_thaw_outargs[] =
|
|||
{
|
||||
GIMP_PDB_INT32,
|
||||
"thawed",
|
||||
"True if the image undo has been thawed"
|
||||
"TRUE if the image undo has been thawed"
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -922,9 +922,7 @@ vectors_stroke_get_point_at_dist_invoker (Gimp *gimp,
|
|||
y_point = valid ? coord.y : 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&vectors_stroke_get_point_at_dist_proc, success);
|
||||
|
@ -1330,14 +1328,10 @@ vectors_stroke_interpolate_invoker (Gimp *gimp,
|
|||
num_coords *= 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return_args = procedural_db_return_args (&vectors_stroke_interpolate_proc, success);
|
||||
|
@ -1532,9 +1526,7 @@ vectors_bezier_stroke_lineto_invoker (Gimp *gimp,
|
|||
gimp_bezier_stroke_lineto (stroke, &coord0);
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&vectors_bezier_stroke_lineto_proc, success);
|
||||
|
@ -1628,9 +1620,7 @@ vectors_bezier_stroke_conicto_invoker (Gimp *gimp,
|
|||
gimp_bezier_stroke_conicto (stroke, &coord0, &coord1);
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&vectors_bezier_stroke_conicto_proc, success);
|
||||
|
@ -1744,9 +1734,7 @@ vectors_bezier_stroke_cubicto_invoker (Gimp *gimp,
|
|||
gimp_bezier_stroke_cubicto (stroke, &coord0, &coord1, &coord2);
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
return procedural_db_return_args (&vectors_bezier_stroke_cubicto_proc, success);
|
||||
|
|
|
@ -95,11 +95,11 @@ gimp_brush_duplicate (const gchar *name)
|
|||
* gimp_brush_is_generated:
|
||||
* @name: The brush name.
|
||||
*
|
||||
* Tests if generated
|
||||
* Tests if brush is generated
|
||||
*
|
||||
* Returns True if this brush is parametric, False for other types
|
||||
* Returns TRUE if this brush is parametric, FALSE for other types
|
||||
*
|
||||
* Returns: True if the brush is generated.
|
||||
* Returns: TRUE if the brush is generated.
|
||||
*
|
||||
* Since: GIMP 2.4
|
||||
*/
|
||||
|
@ -195,9 +195,9 @@ gimp_brush_delete (const gchar *name)
|
|||
*
|
||||
* Tests if brush can be edited
|
||||
*
|
||||
* Returns True if you have permission to change the brush
|
||||
* Returns TRUE if you have permission to change the brush
|
||||
*
|
||||
* Returns: True if the brush can be edited.
|
||||
* Returns: TRUE if the brush can be edited.
|
||||
*
|
||||
* Since: GIMP 2.4
|
||||
*/
|
||||
|
|
|
@ -193,9 +193,8 @@ gimp_channel_combine_masks (gint32 channel1_ID,
|
|||
* Get the composite method of the specified channel.
|
||||
*
|
||||
* This procedure returns the specified channel's composite method. If
|
||||
* it is non-zero, then the channel is composited with the image so
|
||||
* that masked regions are shown. Otherwise, selected regions are
|
||||
* shown.
|
||||
* it is TRUE, then the channel is composited with the image so that
|
||||
* masked regions are shown. Otherwise, selected regions are shown.
|
||||
*
|
||||
* Returns: The channel composite method.
|
||||
*/
|
||||
|
@ -227,7 +226,7 @@ gimp_channel_get_show_masked (gint32 channel_ID)
|
|||
* Set the composite method of the specified channel.
|
||||
*
|
||||
* This procedure sets the specified channel's composite method. If it
|
||||
* is non-zero, then the channel is composited with the image so that
|
||||
* is TRUE, then the channel is composited with the image so that
|
||||
* masked regions are shown. Otherwise, selected regions are shown.
|
||||
*
|
||||
* Returns: TRUE on success.
|
||||
|
|
|
@ -456,8 +456,8 @@ gimp_curves_explicit (gint32 drawable_ID,
|
|||
* positive values increase the amount of the latter. Color balance can
|
||||
* be controlled with the 'transfer_mode' setting, which allows
|
||||
* shadows, midtones, and highlights in an image to be affected
|
||||
* differently. The 'preserve_lum' parameter, if non-zero, ensures that
|
||||
* the luminosity of each pixel remains fixed.
|
||||
* differently. The 'preserve_lum' parameter, if TRUE, ensures that the
|
||||
* luminosity of each pixel remains fixed.
|
||||
*
|
||||
* Returns: TRUE on success.
|
||||
*/
|
||||
|
|
|
@ -95,7 +95,7 @@ gimp_image_convert_grayscale (gint32 image_ID)
|
|||
* @palette_type: The type of palette to use.
|
||||
* @num_cols: The number of colors to quantize to, ignored unless (palette_type == GIMP_MAKE_PALETTE).
|
||||
* @alpha_dither: Dither transparency to fake partial opacity.
|
||||
* @remove_unused: Remove unused or duplicate colour entries from final palette, ignored if (palette_type == GIMP_MAKE_PALETTE).
|
||||
* @remove_unused: Remove unused or duplicate color entries from final palette, ignored if (palette_type == GIMP_MAKE_PALETTE).
|
||||
* @palette: The name of the custom palette to use, ignored unless (palette_type == GIMP_CUSTOM_PALETTE).
|
||||
*
|
||||
* Convert specified image to and Indexed image
|
||||
|
|
|
@ -66,10 +66,9 @@ gimp_drawable_delete (gint32 drawable_ID)
|
|||
*
|
||||
* Returns whether the drawable is a layer.
|
||||
*
|
||||
* This procedure returns non-zero if the specified drawable is a
|
||||
* layer.
|
||||
* This procedure returns TRUE if the specified drawable is a layer.
|
||||
*
|
||||
* Returns: Non-zero if the drawable is a layer.
|
||||
* Returns: TRUE if the drawable is a layer.
|
||||
*/
|
||||
gboolean
|
||||
gimp_drawable_is_layer (gint32 drawable_ID)
|
||||
|
@ -97,10 +96,10 @@ gimp_drawable_is_layer (gint32 drawable_ID)
|
|||
*
|
||||
* Returns whether the drawable is a layer mask.
|
||||
*
|
||||
* This procedure returns non-zero if the specified drawable is a layer
|
||||
* This procedure returns TRUE if the specified drawable is a layer
|
||||
* mask.
|
||||
*
|
||||
* Returns: Non-zero if the drawable is a layer mask.
|
||||
* Returns: TRUE if the drawable is a layer mask.
|
||||
*/
|
||||
gboolean
|
||||
gimp_drawable_is_layer_mask (gint32 drawable_ID)
|
||||
|
@ -128,10 +127,9 @@ gimp_drawable_is_layer_mask (gint32 drawable_ID)
|
|||
*
|
||||
* Returns whether the drawable is a channel.
|
||||
*
|
||||
* This procedure returns non-zero if the specified drawable is a
|
||||
* channel.
|
||||
* This procedure returns TRUE if the specified drawable is a channel.
|
||||
*
|
||||
* Returns: Non-zero if the drawable is a channel.
|
||||
* Returns: TRUE if the drawable is a channel.
|
||||
*/
|
||||
gboolean
|
||||
gimp_drawable_is_channel (gint32 drawable_ID)
|
||||
|
@ -220,7 +218,7 @@ gimp_drawable_type_with_alpha (gint32 drawable_ID)
|
|||
* gimp_drawable_has_alpha:
|
||||
* @drawable_ID: The drawable.
|
||||
*
|
||||
* Returns non-zero if the drawable has an alpha channel.
|
||||
* Returns TRUE if the drawable has an alpha channel.
|
||||
*
|
||||
* This procedure returns whether the specified drawable has an alpha
|
||||
* channel. This can only be true for layers, and the associated type
|
||||
|
@ -254,10 +252,10 @@ gimp_drawable_has_alpha (gint32 drawable_ID)
|
|||
*
|
||||
* Returns whether the drawable is an RGB type.
|
||||
*
|
||||
* This procedure returns non-zero if the specified drawable is of type
|
||||
* { RGB, RGBA }.
|
||||
* This procedure returns TRUE if the specified drawable is of type {
|
||||
* RGB, RGBA }.
|
||||
*
|
||||
* Returns: non-zero if the drawable is an RGB type.
|
||||
* Returns: TRUE if the drawable is an RGB type.
|
||||
*/
|
||||
gboolean
|
||||
gimp_drawable_is_rgb (gint32 drawable_ID)
|
||||
|
@ -285,10 +283,10 @@ gimp_drawable_is_rgb (gint32 drawable_ID)
|
|||
*
|
||||
* Returns whether the drawable is a grayscale type.
|
||||
*
|
||||
* This procedure returns non-zero if the specified drawable is of type
|
||||
* { Gray, GrayA }.
|
||||
* This procedure returns TRUE if the specified drawable is of type {
|
||||
* Gray, GrayA }.
|
||||
*
|
||||
* Returns: non-zero if the drawable is a grayscale type.
|
||||
* Returns: TRUE if the drawable is a grayscale type.
|
||||
*/
|
||||
gboolean
|
||||
gimp_drawable_is_gray (gint32 drawable_ID)
|
||||
|
@ -316,10 +314,10 @@ gimp_drawable_is_gray (gint32 drawable_ID)
|
|||
*
|
||||
* Returns whether the drawable is an indexed type.
|
||||
*
|
||||
* This procedure returns non-zero if the specified drawable is of type
|
||||
* { Indexed, IndexedA }.
|
||||
* This procedure returns TRUE if the specified drawable is of type {
|
||||
* Indexed, IndexedA }.
|
||||
*
|
||||
* Returns: non-zero if the drawable is an indexed type.
|
||||
* Returns: TRUE if the drawable is an indexed type.
|
||||
*/
|
||||
gboolean
|
||||
gimp_drawable_is_indexed (gint32 drawable_ID)
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
* This procedure flips the specified drawable if no selection exists.
|
||||
* If a selection exists, the portion of the drawable which lies under
|
||||
* the selection is cut from the drawable and made into a floating
|
||||
* selection which is then flipped. If auto_center is set to true, the
|
||||
* selection which is then flipped. If auto_center is set to TRUE, the
|
||||
* flip is around the selection's center. Otherwise, the coordinate of
|
||||
* the axis needs to be specified. The return value is the ID of the
|
||||
* flipped drawable. If there was no selection, this will be equal to
|
||||
|
|
|
@ -488,7 +488,7 @@ gimp_edit_fill (gint32 drawable_ID,
|
|||
* is executed at the specified coordinates and extends outward in
|
||||
* keeping with the threshold parameter. If there is a selection in the
|
||||
* target image, the threshold, sample merged, x, and y arguments are
|
||||
* unused. If the sample_merged parameter is non-zero, the data of the
|
||||
* unused. If the sample_merged parameter is TRUE, the data of the
|
||||
* composite image will be used instead of that for the specified
|
||||
* drawable. This is equivalent to sampling for colors after merging
|
||||
* all visible layers. In the case of merged sampling, the x and y
|
||||
|
|
|
@ -99,7 +99,7 @@ gimp_gradient_duplicate (const gchar *name)
|
|||
*
|
||||
* Returns TRUE if you have permission to change the gradient
|
||||
*
|
||||
* Returns: True if the gradient can be edited.
|
||||
* Returns: TRUE if the gradient can be edited.
|
||||
*
|
||||
* Since: GIMP 2.4
|
||||
*/
|
||||
|
|
|
@ -801,7 +801,7 @@ gimp_image_floating_sel_attached_to (gint32 image_ID)
|
|||
* an alpha channel, the algorithm examines the alpha value of the
|
||||
* drawable at the coordinates. If the alpha value is completely
|
||||
* transparent (0), then an error is returned. If the sample_merged
|
||||
* parameter is non-zero, the data of the composite image will be used
|
||||
* parameter is TRUE, the data of the composite image will be used
|
||||
* instead of that for the specified drawable. This is equivalent to
|
||||
* sampling for colors after merging all visible layers. In the case of
|
||||
* a merged sampling, the supplied drawable is ignored.
|
||||
|
@ -1691,7 +1691,7 @@ gimp_image_clean_all (gint32 image_ID)
|
|||
* set the dirty count to 0, you need to call gimp-image-clean-all
|
||||
* after calling a save procedure to make the image clean.
|
||||
*
|
||||
* Returns: True if the image has unsaved changes.
|
||||
* Returns: TRUE if the image has unsaved changes.
|
||||
*/
|
||||
gboolean
|
||||
gimp_image_is_dirty (gint32 image_ID)
|
||||
|
|
|
@ -566,7 +566,7 @@ gimp_layer_remove_mask (gint32 layer_ID,
|
|||
* Floating selections are special cases of layers which are attached
|
||||
* to a specific drawable.
|
||||
*
|
||||
* Returns: Non-zero if the layer is a floating selection.
|
||||
* Returns: TRUE if the layer is a floating selection.
|
||||
*/
|
||||
gboolean
|
||||
gimp_layer_is_floating_sel (gint32 layer_ID)
|
||||
|
@ -659,8 +659,8 @@ gimp_layer_set_lock_alpha (gint32 layer_ID,
|
|||
* Get the apply mask setting of the specified layer.
|
||||
*
|
||||
* This procedure returns the specified layer's apply mask setting. If
|
||||
* the value is non-zero, then the layer mask for this layer is
|
||||
* currently being composited with the layer's alpha channel.
|
||||
* the value is TRUE, then the layer mask for this layer is currently
|
||||
* being composited with the layer's alpha channel.
|
||||
*
|
||||
* Returns: The layer's apply mask setting.
|
||||
*/
|
||||
|
@ -726,9 +726,9 @@ gimp_layer_set_apply_mask (gint32 layer_ID,
|
|||
* Get the show mask setting of the specified layer.
|
||||
*
|
||||
* This procedure returns the specified layer's show mask setting. This
|
||||
* controls whether the layer or its mask is visible. Non-zero values
|
||||
* indicate that the mask should be visible. If the layer has no mask,
|
||||
* then this function returns an error.
|
||||
* controls whether the layer or its mask is visible. TRUE indicates
|
||||
* that the mask should be visible. If the layer has no mask, then this
|
||||
* function returns an error.
|
||||
*
|
||||
* Returns: The layer's show mask setting.
|
||||
*/
|
||||
|
@ -794,8 +794,8 @@ gimp_layer_set_show_mask (gint32 layer_ID,
|
|||
* Get the edit mask setting of the specified layer.
|
||||
*
|
||||
* This procedure returns the specified layer's edit mask setting. If
|
||||
* the value is non-zero, then the layer mask for this layer is
|
||||
* currently active, and not the layer.
|
||||
* the value is TRUE, then the layer mask for this layer is currently
|
||||
* active, and not the layer.
|
||||
*
|
||||
* Returns: The layer's edit mask setting.
|
||||
*/
|
||||
|
|
|
@ -290,7 +290,7 @@ gimp_convolve_default (gint32 drawable_ID,
|
|||
/**
|
||||
* gimp_dodgeburn:
|
||||
* @drawable_ID: The affected drawable.
|
||||
* @exposure: The exposer of the strokes.
|
||||
* @exposure: The exposure of the strokes.
|
||||
* @dodgeburn_type: The type either dodge or burn.
|
||||
* @dodgeburn_mode: The mode.
|
||||
* @num_strokes: Number of stroke control points (count each coordinate as 2 points).
|
||||
|
|
|
@ -161,9 +161,9 @@ gimp_palette_delete (const gchar *name)
|
|||
*
|
||||
* Tests if palette can be edited
|
||||
*
|
||||
* Returns True if you have permission to change the palette
|
||||
* Returns TRUE if you have permission to change the palette
|
||||
*
|
||||
* Returns: True if the palette can be edited.
|
||||
* Returns: TRUE if the palette can be edited.
|
||||
*
|
||||
* Since: GIMP 2.4
|
||||
*/
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
/**
|
||||
* gimp_selection_bounds:
|
||||
* @image_ID: The image.
|
||||
* @non_empty: True if there is a selection.
|
||||
* @non_empty: TRUE if there is a selection.
|
||||
* @x1: x coordinate of upper left corner of selection bounds.
|
||||
* @y1: y coordinate of upper left corner of selection bounds.
|
||||
* @x2: x coordinate of lower right corner of selection bounds.
|
||||
|
@ -129,8 +129,8 @@ gimp_selection_value (gint32 image_ID,
|
|||
*
|
||||
* Determine whether the selection is empty.
|
||||
*
|
||||
* This procedure returns non-zero if the selection for the specified
|
||||
* image is not empty.
|
||||
* This procedure returns TRUE if the selection for the specified image
|
||||
* is not empty.
|
||||
*
|
||||
* Returns: Is the selection empty?
|
||||
*/
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
* gimp_by_color_select:
|
||||
* @drawable_ID: The affected drawable.
|
||||
* @color: The color to select.
|
||||
* @threshold: Threshold in intensity levels %%desc%%.
|
||||
* @threshold: Threshold in intensity levels.
|
||||
* @operation: The selection operation.
|
||||
* @antialias: Antialiasing.
|
||||
* @feather: Feather option for selections.
|
||||
|
@ -48,7 +48,7 @@
|
|||
* mask to contain intermediate values based on close misses to the
|
||||
* threshold bar. Feathering can be enabled optionally and is
|
||||
* controlled with the \"feather_radius\" parameter. If the
|
||||
* sample_merged parameter is non-zero, the data of the composite image
|
||||
* sample_merged parameter is TRUE, the data of the composite image
|
||||
* will be used instead of that for the specified drawable. This is
|
||||
* equivalent to sampling for colors after merging all visible layers.
|
||||
* In the case of a merged sampling, the supplied drawable is ignored.
|
||||
|
@ -211,7 +211,7 @@ gimp_free_select (gint32 image_ID,
|
|||
* @drawable_ID: The affected drawable.
|
||||
* @x: x coordinate of initial seed fill point: (image coordinates).
|
||||
* @y: y coordinate of initial seed fill point: (image coordinates).
|
||||
* @threshold: Threshold in intensity levels %%desc%%.
|
||||
* @threshold: Threshold in intensity levels.
|
||||
* @operation: The selection operation.
|
||||
* @antialias: Antialiasing.
|
||||
* @feather: Feather option for selections.
|
||||
|
@ -232,13 +232,13 @@ gimp_free_select (gint32 image_ID,
|
|||
* intermediate values based on close misses to the threshold bar at
|
||||
* pixels along the seed fill boundary. Feathering can be enabled
|
||||
* optionally and is controlled with the \"feather_radius\" paramter.
|
||||
* If the sample_merged parameter is non-zero, the data of the
|
||||
* composite image will be used instead of that for the specified
|
||||
* drawable. This is equivalent to sampling for colors after merging
|
||||
* all visible layers. In the case of a merged sampling, the supplied
|
||||
* drawable is ignored. If the sample is merged, the specified
|
||||
* coordinates are relative to the image origin; otherwise, they are
|
||||
* relative to the drawable's origin.
|
||||
* If the sample_merged parameter is TRUE, the data of the composite
|
||||
* image will be used instead of that for the specified drawable. This
|
||||
* is equivalent to sampling for colors after merging all visible
|
||||
* layers. In the case of a merged sampling, the supplied drawable is
|
||||
* ignored. If the sample is merged, the specified coordinates are
|
||||
* relative to the image origin; otherwise, they are relative to the
|
||||
* drawable's origin.
|
||||
*
|
||||
* Returns: TRUE on success.
|
||||
*/
|
||||
|
|
|
@ -98,7 +98,7 @@ gimp_image_undo_group_end (gint32 image_ID)
|
|||
* each other and want to check if their caller has already used
|
||||
* 'gimp_image_undo_disable' or 'gimp_image_undo_freeze'.
|
||||
*
|
||||
* Returns: True if undo is enabled for this image.
|
||||
* Returns: TRUE if undo is enabled for this image.
|
||||
*/
|
||||
gboolean
|
||||
gimp_image_undo_is_enabled (gint32 image_ID)
|
||||
|
@ -132,7 +132,7 @@ gimp_image_undo_is_enabled (gint32 image_ID)
|
|||
* image undo stack. This is advantageous because saving undo steps can
|
||||
* be time and memory intensive.
|
||||
*
|
||||
* Returns: True if the image undo has been disabled.
|
||||
* Returns: TRUE if the image undo has been disabled.
|
||||
*/
|
||||
gboolean
|
||||
gimp_image_undo_disable (gint32 image_ID)
|
||||
|
@ -165,7 +165,7 @@ gimp_image_undo_disable (gint32 image_ID)
|
|||
* conjunction with 'gimp_image_undo_disable' to temporarily disable an
|
||||
* image undo stack.
|
||||
*
|
||||
* Returns: True if the image undo has been enabled.
|
||||
* Returns: TRUE if the image undo has been enabled.
|
||||
*/
|
||||
gboolean
|
||||
gimp_image_undo_enable (gint32 image_ID)
|
||||
|
@ -204,7 +204,7 @@ gimp_image_undo_enable (gint32 image_ID)
|
|||
* image is back to the same state it was frozen in before thawing,
|
||||
* else 'undo' behaviour is undefined.
|
||||
*
|
||||
* Returns: True if the image undo has been frozen.
|
||||
* Returns: TRUE if the image undo has been frozen.
|
||||
*/
|
||||
gboolean
|
||||
gimp_image_undo_freeze (gint32 image_ID)
|
||||
|
@ -243,7 +243,7 @@ gimp_image_undo_freeze (gint32 image_ID)
|
|||
* freezes and thaws and ensuring image consistancy is the
|
||||
* responsibility of the caller.
|
||||
*
|
||||
* Returns: True if the image undo has been thawed.
|
||||
* Returns: TRUE if the image undo has been thawed.
|
||||
*/
|
||||
gboolean
|
||||
gimp_image_undo_thaw (gint32 image_ID)
|
||||
|
|
|
@ -147,15 +147,12 @@ sub make_arg_recs {
|
|||
/boolean/ && do { $info = 'TRUE or FALSE'; last };
|
||||
/int|float/ && do { $info =~ s/$type/$arg->{name}/e; last };
|
||||
/enum/ && do { my $enum = $enums{$name};
|
||||
$info = $enum->{info};
|
||||
$info = '{ ' . $enum->{info};
|
||||
foreach (@remove) {
|
||||
$info =~ s/$_ \(.*?\)(, )?//
|
||||
}
|
||||
$info =~ s/, $//;
|
||||
if (!$#{[$info =~ /,/g]} &&
|
||||
$desc !~ /{ %%desc%% }/) {
|
||||
$info =~ s/,/ or/
|
||||
} last };
|
||||
$info .= ' }'; last };
|
||||
}
|
||||
|
||||
$desc =~ s/%%desc%%/$info/eg;
|
||||
|
|
|
@ -41,7 +41,7 @@ sub brush_new {
|
|||
GimpData *data = gimp_data_factory_data_new (gimp->brush_factory, name);
|
||||
|
||||
if (data)
|
||||
actual_name = g_strdup (GIMP_OBJECT (data)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ sub brush_duplicate {
|
|||
GIMP_DATA (brush));
|
||||
|
||||
if (brush_copy)
|
||||
copy_name = g_strdup (GIMP_OBJECT (brush_copy)->name);
|
||||
copy_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush_copy)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -93,8 +93,8 @@ CODE
|
|||
}
|
||||
|
||||
sub brush_is_generated {
|
||||
$blurb = "Tests if generated";
|
||||
$help = "Returns True if this brush is parametric, False for other types";
|
||||
$blurb = "Tests if brush is generated";
|
||||
$help = "Returns TRUE if this brush is parametric, FALSE for other types";
|
||||
|
||||
&bill_pdb_misc('2004', '2.4');
|
||||
|
||||
|
@ -105,7 +105,7 @@ sub brush_is_generated {
|
|||
|
||||
@outargs = (
|
||||
{ name => 'generated', type => 'boolean',
|
||||
desc => 'True if the brush is generated' }
|
||||
desc => 'TRUE if the brush is generated' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -125,7 +125,7 @@ CODE
|
|||
|
||||
sub brush_is_editable {
|
||||
$blurb = "Tests if brush can be edited";
|
||||
$help = "Returns True if you have permission to change the brush";
|
||||
$help = "Returns TRUE if you have permission to change the brush";
|
||||
|
||||
&bill_pdb_misc('2004', '2.4');
|
||||
|
||||
|
@ -136,7 +136,7 @@ sub brush_is_editable {
|
|||
|
||||
@outargs = (
|
||||
{ name => 'editable', type => 'boolean',
|
||||
desc => 'True if the brush can be edited' }
|
||||
desc => 'TRUE if the brush can be edited' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -181,7 +181,7 @@ sub brush_rename {
|
|||
if (brush && GIMP_DATA (brush)->writable)
|
||||
{
|
||||
gimp_object_set_name (GIMP_OBJECT (brush), new_name);
|
||||
actual_name = g_strdup (GIMP_OBJECT (brush)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush)));
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
|
@ -393,7 +393,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'shape', type => 'enum GimpBrushGeneratedShape',
|
||||
desc => 'The brush shape' }
|
||||
desc => 'The brush shape: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -638,12 +638,12 @@ HELP
|
|||
{ name => 'name', type => 'string',
|
||||
desc => 'The brush name' },
|
||||
{ name => 'shape_in', type => 'enum GimpBrushGeneratedShape',
|
||||
desc => 'The brush shape: { %%desc%% }' }
|
||||
desc => 'The brush shape: %%desc%%' }
|
||||
);
|
||||
|
||||
@outargs = (
|
||||
{ name => 'shape_out', type => 'enum GimpBrushGeneratedShape',
|
||||
desc => 'The brush shape actually assigned' }
|
||||
desc => 'The brush shape actually assigned: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
|
|
@ -38,7 +38,7 @@ sub brushes_popup {
|
|||
desc => 'The initial spacing of the brush (if < 0 then use brush
|
||||
default spacing)' },
|
||||
{ name => 'paint_mode', type => 'enum GimpLayerModeEffects',
|
||||
desc => 'The initial paint mode: { %%desc%% }' }
|
||||
desc => 'The initial paint mode: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -99,7 +99,7 @@ sub brushes_set_popup {
|
|||
desc => 'The initial spacing of the brush (if < 0 then use brush
|
||||
default spacing)' },
|
||||
{ name => 'paint_mode', type => 'enum GimpLayerModeEffects',
|
||||
desc => 'The initial paint mode: { %%desc%% }' }
|
||||
desc => 'The initial paint mode: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
|
|
@ -91,7 +91,7 @@ sub brushes_get_brush {
|
|||
|
||||
if (brush)
|
||||
{
|
||||
name = g_strdup (GIMP_OBJECT (brush)->name);
|
||||
name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush)));
|
||||
width = brush->mask->width;
|
||||
height = brush->mask->height;
|
||||
spacing = gimp_brush_get_spacing (brush);
|
||||
|
@ -159,7 +159,7 @@ sub brushes_get_brush_data {
|
|||
{ name => 'spacing', type => '0 <= int32 <= 1000',
|
||||
desc => 'The brush spacing: %%desc%%' },
|
||||
{ name => 'paint_mode', type => 'enum GimpLayerModeEffects',
|
||||
desc => 'The paint mode: { %%desc%% }' },
|
||||
desc => 'The paint mode: %%desc%%' },
|
||||
{ name => 'width', type => 'int32',
|
||||
desc => 'The brush width' },
|
||||
{ name => 'height', type => 'int32',
|
||||
|
@ -187,7 +187,7 @@ sub brushes_get_brush_data {
|
|||
|
||||
if (brush)
|
||||
{
|
||||
actual_name = g_strdup (GIMP_OBJECT (brush)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush)));
|
||||
opacity = 1.0;
|
||||
spacing = gimp_brush_get_spacing (brush);
|
||||
paint_mode = 0;
|
||||
|
|
|
@ -218,7 +218,7 @@ sub buffer_get_image_type {
|
|||
|
||||
@outargs = (
|
||||
{ name => 'image_type', type => 'enum GimpImageBaseType',
|
||||
desc => "The buffer image type" }
|
||||
desc => "The buffer image type: %%desc%%" }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
|
|
@ -115,7 +115,7 @@ HELP
|
|||
{ name => 'channel2', type => 'channel',
|
||||
desc => 'The channel2' },
|
||||
{ name => 'operation', type => 'enum GimpChannelOps',
|
||||
desc => 'The selection operation: { %%desc%% }' },
|
||||
desc => 'The selection operation: %%desc%%' },
|
||||
{ name => 'offx', type => 'int32',
|
||||
desc => 'x offset between upper left corner of
|
||||
channels: (second - first)' },
|
||||
|
@ -147,7 +147,7 @@ HELP
|
|||
{ name => 'image', type => 'image',
|
||||
desc => 'The image to which to add the channel' },
|
||||
{ name => 'component', type => 'enum GimpChannelType',
|
||||
desc => 'The image component: { %%desc%% }' },
|
||||
desc => 'The image component: %%desc%%' },
|
||||
{ name => 'name', type => 'string',
|
||||
desc => 'The channel name' },
|
||||
);
|
||||
|
@ -178,7 +178,7 @@ sub channel_get_show_masked {
|
|||
|
||||
$help = <<'HELP';
|
||||
This procedure returns the specified channel's composite method. If
|
||||
it is non-zero, then the channel is composited with the image so that
|
||||
it is TRUE, then the channel is composited with the image so that
|
||||
masked regions are shown. Otherwise, selected regions are shown.
|
||||
HELP
|
||||
|
||||
|
@ -208,7 +208,7 @@ sub channel_set_show_masked {
|
|||
|
||||
$help = <<'HELP';
|
||||
This procedure sets the specified channel's composite method. If
|
||||
it is non-zero, then the channel is composited with the image so that
|
||||
it is TRUE, then the channel is composited with the image so that
|
||||
masked regions are shown. Otherwise, selected regions are shown.
|
||||
HELP
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ HELP
|
|||
{ name => 'drawable', type => 'drawable',
|
||||
desc => 'The drawable' },
|
||||
{ name => 'channel', type => 'enum GimpHistogramChannel',
|
||||
desc => 'The channel to modify: { %%desc%% }' },
|
||||
desc => 'The channel to modify: %%desc%%' },
|
||||
{ name => 'low_input', type => '0 <= int32 <= 255',
|
||||
desc => "Intensity of lowest input: (%%desc%%)" },
|
||||
{ name => 'high_input', type => '0 <= int32 <= 255',
|
||||
|
@ -412,7 +412,7 @@ HELP
|
|||
{ name => 'drawable', type => 'drawable',
|
||||
desc => 'The drawable' },
|
||||
{ name => 'channel', type => 'enum GimpHistogramChannel',
|
||||
desc => 'The channel to modify: { %%desc%% }' },
|
||||
desc => 'The channel to modify: %%desc%%' },
|
||||
{ name => 'control_pts', type => 'int8array',
|
||||
desc => 'The spline control points: { cp1.x, cp1.y, cp2.x, cp2.y,
|
||||
... }',
|
||||
|
@ -509,7 +509,7 @@ HELP
|
|||
{ name => 'drawable', type => 'drawable',
|
||||
desc => 'The drawable' },
|
||||
{ name => 'channel', type => 'enum GimpHistogramChannel',
|
||||
desc => 'The channel to modify: { %%desc%% }' },
|
||||
desc => 'The channel to modify: %%desc%%' },
|
||||
{ name => 'curve', type => 'int8array',
|
||||
desc => 'The explicit curve',
|
||||
array => { name => 'num_bytes',
|
||||
|
@ -587,7 +587,7 @@ can be modified: cyan-red, magenta-green, and yellow-blue. Negative values
|
|||
increase the amount of the former, positive values increase the amount of the
|
||||
latter. Color balance can be controlled with the 'transfer_mode' setting, which
|
||||
allows shadows, midtones, and highlights in an image to be affected
|
||||
differently. The 'preserve_lum' parameter, if non-zero, ensures that the
|
||||
differently. The 'preserve_lum' parameter, if TRUE, ensures that the
|
||||
luminosity of each pixel remains fixed.
|
||||
HELP
|
||||
|
||||
|
@ -598,7 +598,7 @@ HELP
|
|||
{ name => 'drawable', type => 'drawable',
|
||||
desc => 'The drawable' },
|
||||
{ name => 'transfer_mode', type => 'enum GimpTransferMode',
|
||||
desc => 'Transfer mode: { %%desc%% }' },
|
||||
desc => 'Transfer mode: %%desc%%' },
|
||||
{ name => 'preserve_lum', type => 'boolean',
|
||||
desc => 'Preserve luminosity values at each pixel' },
|
||||
{ name => 'cyan_red', type => '-100 <= float <= 100',
|
||||
|
@ -744,7 +744,7 @@ HELP
|
|||
{ name => 'drawable', type => 'drawable',
|
||||
desc => 'The drawable' },
|
||||
{ name => 'channel', type => 'enum GimpHistogramChannel',
|
||||
desc => 'The channel to modify: { %%desc%% }' },
|
||||
desc => 'The channel to modify: %%desc%%' },
|
||||
{ name => 'start_range', type => '0 <= int32 < 256',
|
||||
desc => 'Start of the intensity measurement range' },
|
||||
{ name => 'end_range', type => '0 <= int32 < 256',
|
||||
|
@ -820,7 +820,7 @@ HELP
|
|||
{ name => 'drawable', type => 'drawable',
|
||||
desc => 'The drawable' },
|
||||
{ name => 'hue_range', type => 'enum GimpHueRange',
|
||||
desc => 'Range of affected hues: { %%desc%% }' },
|
||||
desc => 'Range of affected hues: %%desc%%' },
|
||||
{ name => 'hue_offset', type => '-180 <= float <= 180',
|
||||
desc => 'Hue offset in degrees: (%%desc%%)' },
|
||||
{ name => 'lightness', type => '-100 <= float <= 100',
|
||||
|
|
|
@ -335,7 +335,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'paint_mode', type => 'enum GimpLayerModeEffects',
|
||||
desc => 'The paint mode: { %%desc%% }' }
|
||||
desc => 'The paint mode: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -358,7 +358,7 @@ HELP
|
|||
|
||||
@inargs = (
|
||||
{ name => 'paint_mode', type => 'enum GimpLayerModeEffects',
|
||||
desc => 'The paint mode: { %%desc%% }' }
|
||||
desc => 'The paint mode: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
|
|
@ -98,16 +98,16 @@ HELP
|
|||
{ name => 'image', type => 'image',
|
||||
desc => 'The image' },
|
||||
{ name => 'dither_type', type => 'enum GimpConvertDitherType',
|
||||
desc => 'The dither type to use: { %%desc%% }' },
|
||||
desc => 'The dither type to use: %%desc%%' },
|
||||
{ name => 'palette_type', type => 'enum GimpConvertPaletteType',
|
||||
desc => 'The type of palette to use: { %%desc%% }' },
|
||||
desc => 'The type of palette to use: %%desc%%' },
|
||||
{ name => 'num_cols', type => 'int32',
|
||||
desc => 'The number of colors to quantize to, ignored unless
|
||||
(palette_type == GIMP_MAKE_PALETTE)' },
|
||||
{ name => 'alpha_dither', type => 'boolean',
|
||||
desc => 'Dither transparency to fake partial opacity' },
|
||||
{ name => 'remove_unused', type => 'boolean',
|
||||
desc => 'Remove unused or duplicate colour entries from final
|
||||
desc => 'Remove unused or duplicate color entries from final
|
||||
palette, ignored if (palette_type == GIMP_MAKE_PALETTE)' },
|
||||
{ name => 'palette', type => 'string',
|
||||
desc => 'The name of the custom palette to use, ignored unless
|
||||
|
|
|
@ -73,7 +73,8 @@ HELP
|
|||
desc => 'The display to delete' }
|
||||
);
|
||||
|
||||
%invoke = ( code => <<'CODE'
|
||||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
gimp_delete_display (gimp, display);
|
||||
}
|
||||
|
@ -103,7 +104,8 @@ HELP
|
|||
desc => 'The native window handle or 0' }
|
||||
);
|
||||
|
||||
%invoke = ( code => <<'CODE'
|
||||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
window = (gint32) gimp_get_display_window (gimp, display);
|
||||
}
|
||||
|
@ -152,7 +154,8 @@ HELP
|
|||
desc => 'The new image (must not have a display)' }
|
||||
);
|
||||
|
||||
%invoke = ( code => <<'CODE'
|
||||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = (old_image != new_image &&
|
||||
old_image->disp_count > 0 &&
|
||||
|
|
|
@ -41,9 +41,7 @@ HELP
|
|||
headers => [ qw("plug-in/plug-in.h") ],
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
gchar *undo_desc = NULL;
|
||||
|
||||
|
@ -57,6 +55,8 @@ HELP
|
|||
|
||||
g_free (undo_desc);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -260,7 +260,7 @@ sub drawable_type {
|
|||
|
||||
@outargs = (
|
||||
{ name => 'type', type => 'enum GimpImageType',
|
||||
desc => "The drawable's type: { %%desc%% }" }
|
||||
desc => "The drawable's type: %%desc%%" }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -273,7 +273,7 @@ CODE
|
|||
}
|
||||
|
||||
sub drawable_has_alpha {
|
||||
$blurb = 'Returns non-zero if the drawable has an alpha channel.';
|
||||
$blurb = 'Returns TRUE if the drawable has an alpha channel.';
|
||||
|
||||
$help = <<'HELP';
|
||||
This procedure returns whether the specified drawable has an alpha channel.
|
||||
|
@ -323,7 +323,7 @@ HELP
|
|||
{ name => 'type_with_alpha', type => 'enum GimpImageType
|
||||
(no RGB_GIMAGE, GRAY_GIMAGE,
|
||||
INDEXED_GIMAGE)',
|
||||
desc => "The drawable's type with alpha: { %%desc%% }" }
|
||||
desc => "The drawable's type with alpha: %%desc%%" }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -339,7 +339,7 @@ sub drawable_is_rgb {
|
|||
$blurb = 'Returns whether the drawable is an RGB type.';
|
||||
|
||||
$help = <<HELP;
|
||||
This procedure returns non-zero if the specified drawable
|
||||
This procedure returns TRUE if the specified drawable
|
||||
is of type { RGB, RGBA }.
|
||||
HELP
|
||||
|
||||
|
@ -352,7 +352,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'is_rgb', type => 'boolean',
|
||||
desc => 'non-zero if the drawable is an RGB type' }
|
||||
desc => 'TRUE if the drawable is an RGB type' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -368,7 +368,7 @@ sub drawable_is_gray {
|
|||
$blurb = 'Returns whether the drawable is a grayscale type.';
|
||||
|
||||
$help = <<HELP;
|
||||
This procedure returns non-zero if the specified drawable
|
||||
This procedure returns TRUE if the specified drawable
|
||||
is of type { Gray, GrayA }.
|
||||
HELP
|
||||
|
||||
|
@ -381,7 +381,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'is_gray', type => 'boolean',
|
||||
desc => 'non-zero if the drawable is a grayscale type' }
|
||||
desc => 'TRUE if the drawable is a grayscale type' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -397,7 +397,7 @@ sub drawable_is_indexed {
|
|||
$blurb = 'Returns whether the drawable is an indexed type.';
|
||||
|
||||
$help = <<HELP;
|
||||
This procedure returns non-zero if the specified drawable
|
||||
This procedure returns TRUE if the specified drawable
|
||||
is of type { Indexed, IndexedA }.
|
||||
HELP
|
||||
|
||||
|
@ -410,7 +410,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'is_indexed', type => 'boolean',
|
||||
desc => 'non-zero if the drawable is an indexed type' }
|
||||
desc => 'TRUE if the drawable is an indexed type' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -537,7 +537,7 @@ sub drawable_is_layer {
|
|||
$blurb = 'Returns whether the drawable is a layer.';
|
||||
|
||||
$help = <<HELP;
|
||||
This procedure returns non-zero if the specified drawable is a layer.
|
||||
This procedure returns TRUE if the specified drawable is a layer.
|
||||
HELP
|
||||
|
||||
&std_pdb_misc;
|
||||
|
@ -549,7 +549,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'layer', type => 'boolean',
|
||||
desc => 'Non-zero if the drawable is a layer' }
|
||||
desc => 'TRUE if the drawable is a layer' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -565,7 +565,7 @@ sub drawable_is_layer_mask {
|
|||
$blurb = 'Returns whether the drawable is a layer mask.';
|
||||
|
||||
$help = <<HELP;
|
||||
This procedure returns non-zero if the specified drawable is a layer mask.
|
||||
This procedure returns TRUE if the specified drawable is a layer mask.
|
||||
HELP
|
||||
|
||||
&std_pdb_misc;
|
||||
|
@ -577,7 +577,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'layer_mask', type => 'boolean',
|
||||
desc => 'Non-zero if the drawable is a layer mask' }
|
||||
desc => 'TRUE if the drawable is a layer mask' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -593,7 +593,7 @@ sub drawable_is_channel {
|
|||
$blurb = 'Returns whether the drawable is a channel.';
|
||||
|
||||
$help = <<HELP;
|
||||
This procedure returns non-zero if the specified drawable is a channel.
|
||||
This procedure returns TRUE if the specified drawable is a channel.
|
||||
HELP
|
||||
|
||||
&std_pdb_misc;
|
||||
|
@ -605,7 +605,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'channel', type => 'boolean',
|
||||
desc => 'Non-zero if the drawable is a channel' }
|
||||
desc => 'TRUE if the drawable is a channel' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -1086,10 +1086,8 @@ HELP
|
|||
headers => [ qw("core/gimpdrawable-preview.h") ],
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = ((src_x + src_width) <= gimp_item_width (GIMP_ITEM (drawable)) &&
|
||||
(src_y + src_height) <= gimp_item_height (GIMP_ITEM (drawable)));
|
||||
|
||||
if (success)
|
||||
if ((src_x + src_width) <= gimp_item_width (GIMP_ITEM (drawable)) &&
|
||||
(src_y + src_height) <= gimp_item_height (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
TempBuf *buf;
|
||||
|
@ -1117,10 +1115,10 @@ HELP
|
|||
temp_buf_free (buf);
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -1159,11 +1157,11 @@ HELP
|
|||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
gimp_drawable_offset (drawable, context, wrap_around, fill_type,
|
||||
offset_x, offset_y);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -1190,10 +1188,10 @@ HELP
|
|||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = gimp_item_is_floating (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_floating (GIMP_ITEM (drawable)))
|
||||
gimp_item_sink (GIMP_ITEM (drawable));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -1224,10 +1222,10 @@ HELP
|
|||
headers => [ qw("core/gimpdrawable-foreground-extract.h") ],
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
gimp_drawable_foreground_extract (drawable, mode, mask, progress);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
|
|
@ -121,7 +121,7 @@ BLURB
|
|||
This procedure flips the specified drawable if no selection exists. If
|
||||
a selection exists, the portion of the drawable which lies under the
|
||||
selection is cut from the drawable and made into a floating selection
|
||||
which is then flipped. If auto_center is set to true, the flip is
|
||||
which is then flipped. If auto_center is set to TRUE, the flip is
|
||||
around the selection's center. Otherwise, the coordinate of the axis
|
||||
needs to be specified.
|
||||
|
||||
|
@ -204,9 +204,9 @@ HELP
|
|||
{ name => 'y1', type => 'float',
|
||||
desc => 'vert. coord. of other end of axis' },
|
||||
{ name => 'transform_direction', type => 'enum GimpTransformDirection',
|
||||
desc => 'Direction of Transformation: { %%desc%% }' },
|
||||
desc => 'Direction of Transformation: %%desc%%' },
|
||||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation: { %%desc%% }' },
|
||||
desc => 'Type of interpolation: %%desc%%' },
|
||||
{ name => 'supersample', type => 'boolean',
|
||||
desc => 'Whether to perform supersample' },
|
||||
{ name => 'recursion_level', type => '0 < int32',
|
||||
|
@ -324,9 +324,9 @@ HELP
|
|||
desc => 'The new y coordinate of lower-right corner of original
|
||||
bounding box' },
|
||||
{ name => 'transform_direction', type => 'enum GimpTransformDirection',
|
||||
desc => 'Direction of Transformation: { %%desc%% }' },
|
||||
desc => 'Direction of Transformation: %%desc%%' },
|
||||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation: { %%desc%% }' },
|
||||
desc => 'Type of interpolation: %%desc%%' },
|
||||
{ name => 'supersample', type => 'boolean',
|
||||
desc => 'Whether to perform supersample' },
|
||||
{ name => 'recursion_level', type => '0 < int32',
|
||||
|
@ -501,9 +501,9 @@ HELP
|
|||
{ name => 'center_y', type => 'int32',
|
||||
desc => 'The vert. coordinate of the center of rotation' },
|
||||
{ name => 'transform_direction', type => 'enum GimpTransformDirection',
|
||||
desc => 'Direction of Transformation: { %%desc%% }' },
|
||||
desc => 'Direction of Transformation: %%desc%%' },
|
||||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation: { %%desc%% }' },
|
||||
desc => 'Type of interpolation: %%desc%%' },
|
||||
{ name => 'supersample', type => 'boolean',
|
||||
desc => 'Whether to perform supersample' },
|
||||
{ name => 'recursion_level', type => '0 < int32',
|
||||
|
@ -605,9 +605,9 @@ HELP
|
|||
desc => 'The new y coordinate of the lower-right corner of the
|
||||
scaled region' },
|
||||
{ name => 'transform_direction', type => 'enum GimpTransformDirection',
|
||||
desc => 'Direction of Transformation: { %%desc%% }' },
|
||||
desc => 'Direction of Transformation: %%desc%%' },
|
||||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation: { %%desc%% }' },
|
||||
desc => 'Type of interpolation: %%desc%%' },
|
||||
{ name => 'supersample', type => 'boolean',
|
||||
desc => 'Whether to perform supersample' },
|
||||
{ name => 'recursion_level', type => '0 < int32',
|
||||
|
@ -709,9 +709,9 @@ HELP
|
|||
{ name => 'magnitude', type => 'float',
|
||||
desc => 'The magnitude of the shear' },
|
||||
{ name => 'transform_direction', type => 'enum GimpTransformDirection',
|
||||
desc => 'Direction of Transformation: { %%desc%% }' },
|
||||
desc => 'Direction of Transformation: %%desc%%' },
|
||||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation: { %%desc%% }' },
|
||||
desc => 'Type of interpolation: %%desc%%' },
|
||||
{ name => 'supersample', type => 'boolean',
|
||||
desc => 'Whether to perform supersample' },
|
||||
{ name => 'recursion_level', type => '0 < int32',
|
||||
|
@ -814,9 +814,9 @@ HELP
|
|||
{ name => 'dest_y', type => 'float',
|
||||
desc => 'Y coordinate of where the center goes' },
|
||||
{ name => 'transform_direction', type => 'enum GimpTransformDirection',
|
||||
desc => 'Direction of Transformation: { %%desc%% }' },
|
||||
desc => 'Direction of Transformation: %%desc%%' },
|
||||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation: { %%desc%% }' },
|
||||
desc => 'Type of interpolation: %%desc%%' },
|
||||
{ name => 'supersample', type => 'boolean',
|
||||
desc => 'Whether to perform supersample' },
|
||||
{ name => 'recursion_level', type => '0 < int32',
|
||||
|
@ -931,9 +931,9 @@ HELP
|
|||
{ name => 'coeff_2_2', type => 'float',
|
||||
desc => 'coefficient (2,2) of the transformation matrix' },
|
||||
{ name => 'transform_direction', type => 'enum GimpTransformDirection',
|
||||
desc => 'Direction of Transformation: { %%desc%% }' },
|
||||
desc => 'Direction of Transformation: %%desc%%' },
|
||||
{ name => 'interpolation', type => 'enum GimpInterpolationType',
|
||||
desc => 'Type of interpolation: { %%desc%% }' },
|
||||
desc => 'Type of interpolation: %%desc%%' },
|
||||
{ name => 'supersample', type => 'boolean',
|
||||
desc => 'Whether to perform supersample' },
|
||||
{ name => 'recursion_level', type => '0 < int32',
|
||||
|
|
|
@ -45,14 +45,14 @@ HELP
|
|||
%invoke = (
|
||||
code => <<CODE
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
non_empty = gimp_edit_cut (image, drawable, context) != NULL;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -86,14 +86,14 @@ HELP
|
|||
%invoke = (
|
||||
code => <<CODE
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
non_empty = gimp_edit_copy (image, drawable, context) != NULL;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -169,17 +169,17 @@ HELP
|
|||
%invoke = (
|
||||
code => <<CODE
|
||||
{
|
||||
success = (gimp_item_is_attached (GIMP_ITEM (drawable)) &&
|
||||
gimp->global_buffer != NULL);
|
||||
|
||||
if (success)
|
||||
if (gimp->global_buffer && gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
floating_sel = gimp_edit_paste (gimp_item_get_image (GIMP_ITEM (drawable)),
|
||||
drawable, gimp->global_buffer,
|
||||
paste_into, -1, -1, -1, -1);
|
||||
|
||||
if (! floating_sel)
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -204,14 +204,15 @@ HELP
|
|||
%invoke = (
|
||||
code => <<CODE
|
||||
{
|
||||
success = (gimp->global_buffer != NULL);
|
||||
|
||||
if (success)
|
||||
if (gimp->global_buffer)
|
||||
{
|
||||
image = gimp_edit_paste_as_new (gimp, NULL, gimp->global_buffer);
|
||||
|
||||
if (! image)
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -243,21 +244,20 @@ HELP
|
|||
%invoke = (
|
||||
code => <<CODE
|
||||
{
|
||||
success = (strlen (buffer_name) > 0 &&
|
||||
gimp_item_is_attached (GIMP_ITEM (drawable)));
|
||||
if (strlen (buffer_name) && gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
real_name = (gchar *) gimp_edit_named_cut (image, buffer_name,
|
||||
drawable, context);
|
||||
|
||||
real_name = (gchar *) gimp_edit_named_cut (image, buffer_name,
|
||||
drawable, context);
|
||||
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -289,21 +289,20 @@ HELP
|
|||
%invoke = (
|
||||
code => <<CODE
|
||||
{
|
||||
success = (strlen (buffer_name) > 0 &&
|
||||
gimp_item_is_attached (GIMP_ITEM (drawable)));
|
||||
if (strlen (buffer_name) && gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
real_name = (gchar *) gimp_edit_named_copy (image, buffer_name,
|
||||
drawable, context);
|
||||
|
||||
real_name = (gchar *) gimp_edit_named_copy (image, buffer_name,
|
||||
drawable, context);
|
||||
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -336,18 +335,18 @@ HELP
|
|||
%invoke = (
|
||||
code => <<CODE
|
||||
{
|
||||
success = (strlen (buffer_name) > 0);
|
||||
if (strlen (buffer_name))
|
||||
{
|
||||
real_name = (gchar *) gimp_edit_named_copy_visible (image, buffer_name,
|
||||
context);
|
||||
|
||||
if (success)
|
||||
{
|
||||
real_name = (gchar *) gimp_edit_named_copy_visible (image, buffer_name,
|
||||
context);
|
||||
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -380,14 +379,10 @@ HELP
|
|||
%invoke = (
|
||||
code => <<CODE
|
||||
{
|
||||
GimpBuffer *buffer;
|
||||
|
||||
buffer = (GimpBuffer *)
|
||||
GimpBuffer *buffer = (GimpBuffer *)
|
||||
gimp_container_get_child_by_name (gimp->named_buffers, buffer_name);
|
||||
|
||||
success = (buffer != NULL && gimp_item_is_attached (GIMP_ITEM (drawable)));
|
||||
|
||||
if (success)
|
||||
if (buffer && gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
floating_sel = gimp_edit_paste (gimp_item_get_image (GIMP_ITEM (drawable)),
|
||||
drawable, buffer,
|
||||
|
@ -395,6 +390,8 @@ HELP
|
|||
if (! floating_sel)
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
)
|
||||
|
@ -423,19 +420,18 @@ HELP
|
|||
%invoke = (
|
||||
code => <<CODE
|
||||
{
|
||||
GimpBuffer *buffer;
|
||||
|
||||
buffer = (GimpBuffer *)
|
||||
GimpBuffer *buffer = (GimpBuffer *)
|
||||
gimp_container_get_child_by_name (gimp->named_buffers, buffer_name);
|
||||
|
||||
success = (buffer != NULL);
|
||||
|
||||
if (success)
|
||||
if (buffer)
|
||||
{
|
||||
image = gimp_edit_paste_as_new (gimp, NULL, buffer);
|
||||
|
||||
if (! image)
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -462,14 +458,14 @@ HELP
|
|||
%invoke = (
|
||||
code => <<CODE
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
success = gimp_edit_clear (image, drawable, context);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -502,15 +498,15 @@ HELP
|
|||
%invoke = (
|
||||
code => <<CODE
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
success = gimp_edit_fill (image, drawable, context,
|
||||
(GimpFillType) fill_type);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -529,7 +525,7 @@ currently active pattern. If there is no selection, a seed fill is
|
|||
executed at the specified coordinates and extends outward in keeping
|
||||
with the threshold parameter. If there is a selection in the target
|
||||
image, the threshold, sample merged, x, and y arguments are unused. If
|
||||
the sample_merged parameter is non-zero, the data of the composite
|
||||
the sample_merged parameter is TRUE, the data of the composite
|
||||
image will be used instead of that for the specified drawable. This
|
||||
is equivalent to sampling for colors after merging all visible
|
||||
layers. In the case of merged sampling, the x and y coordinates are
|
||||
|
@ -543,9 +539,9 @@ HELP
|
|||
{ name => 'drawable', type => 'drawable',
|
||||
desc => 'The affected drawable' },
|
||||
{ name => 'fill_mode', type => 'enum GimpBucketFillMode',
|
||||
desc => 'The type of fill: { %%desc%% }' },
|
||||
desc => 'The type of fill: %%desc%%' },
|
||||
{ name => paint_mode, type => 'enum GimpLayerModeEffects',
|
||||
desc => 'The paint application mode: { %%desc%% }' },
|
||||
desc => 'The paint application mode: %%desc%%' },
|
||||
{ name => 'opacity', type => '0 <= float <= 100',
|
||||
desc => 'The opacity of the final bucket fill (%%desc%%)' },
|
||||
{ name => 'threshold', type => '0 <= float <= 255',
|
||||
|
@ -570,9 +566,7 @@ HELP
|
|||
"core/gimpchannel.h") ],
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
gboolean do_seed_fill;
|
||||
|
@ -585,6 +579,8 @@ HELP
|
|||
FALSE /* don't fill transparent */,
|
||||
threshold, sample_merged, x, y);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -609,11 +605,11 @@ HELP
|
|||
{ name => 'drawable', type => 'drawable',
|
||||
desc => 'The affected drawable' },
|
||||
{ name => 'blend_mode', type => 'enum GimpBlendMode',
|
||||
desc => 'The type of blend: { %%desc%% }' },
|
||||
desc => 'The type of blend: %%desc%%' },
|
||||
{ name => 'paint_mode', type => 'enum GimpLayerModeEffects',
|
||||
desc => 'The paint application mode: { %%desc%% }' },
|
||||
desc => 'The paint application mode: %%desc%%' },
|
||||
{ name => 'gradient_type', type => 'enum GimpGradientType',
|
||||
desc => 'The type of gradient: { %%desc%% }' },
|
||||
desc => 'The type of gradient: %%desc%%' },
|
||||
{ name => 'opacity', type => '0 <= float <= 100',
|
||||
desc => 'The opacity of the final blend (%%desc%%)' },
|
||||
{ name => 'offset', type => '0 <= float',
|
||||
|
@ -621,7 +617,7 @@ HELP
|
|||
specified for the blend. This parameter is mode dependent
|
||||
(%%desc%%)' },
|
||||
{ name => 'repeat', type => 'enum GimpRepeatMode',
|
||||
desc => 'Repeat mode: { %%desc%% }' },
|
||||
desc => 'Repeat mode: %%desc%%' },
|
||||
{ name => 'reverse', type => 'boolean',
|
||||
desc => 'Use the reverse gradient (%%desc%%)' },
|
||||
{ name => 'supersample', type => 'boolean',
|
||||
|
@ -702,9 +698,7 @@ HELP
|
|||
headers => [ qw("core/gimpstrokedesc.h") ],
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
GimpStrokeDesc *desc = gimp_stroke_desc_new (gimp, context);
|
||||
|
@ -716,6 +710,8 @@ HELP
|
|||
|
||||
g_object_unref (desc);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
|
|
@ -119,18 +119,20 @@ HELP
|
|||
headers => [ qw("file/file-open.h") ],
|
||||
code => <<'CODE'
|
||||
{
|
||||
GimpPDBStatusType status;
|
||||
gchar *uri;
|
||||
gchar *uri = file_utils_filename_to_uri (gimp->load_procs, filename, NULL);
|
||||
|
||||
uri = file_utils_filename_to_uri (gimp->load_procs, filename, NULL);
|
||||
if (! uri)
|
||||
if (uri)
|
||||
{
|
||||
GimpPDBStatusType status;
|
||||
|
||||
layer = file_open_layer (gimp, context, progress,
|
||||
image, uri, run_mode, NULL, &status, NULL);
|
||||
|
||||
if (! layer)
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
|
||||
if (success)
|
||||
layer = file_open_layer (gimp, context, progress,
|
||||
image, uri, run_mode, NULL, &status, NULL);
|
||||
|
||||
success = layer != NULL;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -226,7 +228,7 @@ HELP
|
|||
|
||||
@inargs = (
|
||||
{ name => 'filename', type => 'string', no_validate => 1,
|
||||
desc => 'The name of the file that owns the thumbnail to load' },
|
||||
desc => 'The name of the file that owns the thumbnail to load' }
|
||||
);
|
||||
|
||||
@outargs = (
|
||||
|
@ -284,15 +286,11 @@ HELP
|
|||
thumb_data_count);
|
||||
|
||||
g_object_unref (pixbuf);
|
||||
|
||||
success = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
|
||||
g_free (uri);
|
||||
g_free (uri);
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -324,22 +322,13 @@ HELP
|
|||
{
|
||||
const gchar *image_uri = gimp_object_get_name (GIMP_OBJECT (image));
|
||||
|
||||
if (! image_uri)
|
||||
success = FALSE;
|
||||
|
||||
if (success)
|
||||
if (image_uri)
|
||||
{
|
||||
gchar *uri = g_filename_to_uri (filename, NULL, NULL);
|
||||
|
||||
if (! uri)
|
||||
success = FALSE;
|
||||
|
||||
if (success)
|
||||
if (uri)
|
||||
{
|
||||
if (strcmp (uri, image_uri))
|
||||
success = FALSE;
|
||||
|
||||
if (success)
|
||||
if (! strcmp (uri, image_uri))
|
||||
{
|
||||
GimpImagefile *imagefile;
|
||||
|
||||
|
@ -347,10 +336,16 @@ HELP
|
|||
success = gimp_imagefile_save_thumbnail (imagefile, NULL, image);
|
||||
g_object_unref (imagefile);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
|
||||
g_free (uri);
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -563,7 +558,8 @@ HELP
|
|||
|
||||
canonical = gimp_canonicalize_identifier (procedure_name);
|
||||
|
||||
success = (plug_ins_file_register_mime (gimp, canonical, mime_type) != NULL);
|
||||
if (! plug_ins_file_register_mime (gimp, canonical, mime_type))
|
||||
success = FALSE;
|
||||
|
||||
g_free (canonical);
|
||||
}
|
||||
|
@ -598,8 +594,8 @@ HELP
|
|||
|
||||
canonical = gimp_canonicalize_identifier (load_proc);
|
||||
|
||||
success = (plug_ins_file_register_thumb_loader (gimp, canonical,
|
||||
thumb_proc) != NULL);
|
||||
if (! plug_ins_file_register_thumb_loader (gimp, canonical, thumb_proc))
|
||||
success = FALSE;
|
||||
|
||||
g_free (canonical);
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ sub gradient_new {
|
|||
GimpData *data = gimp_data_factory_data_new (gimp->gradient_factory, name);
|
||||
|
||||
if (data)
|
||||
actual_name = g_strdup (GIMP_OBJECT (data)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ sub gradient_duplicate {
|
|||
GIMP_DATA (gradient));
|
||||
|
||||
if (gradient_copy)
|
||||
copy_name = g_strdup (GIMP_OBJECT (gradient_copy)->name);
|
||||
copy_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (gradient_copy)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ sub gradient_is_editable {
|
|||
|
||||
@outargs = (
|
||||
{ name => 'editable', type => 'boolean',
|
||||
desc => 'True if the gradient can be edited' }
|
||||
desc => 'TRUE if the gradient can be edited' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -148,7 +148,7 @@ sub gradient_rename {
|
|||
if (gradient && GIMP_DATA (gradient)->writable)
|
||||
{
|
||||
gimp_object_set_name (GIMP_OBJECT (gradient), new_name);
|
||||
actual_name = g_strdup (GIMP_OBJECT (gradient)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (gradient)));
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
|
@ -786,7 +786,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'blend_func', type => 'enum GimpGradientSegmentType',
|
||||
desc => 'The blending function of the segment: { %%desc%% }',
|
||||
desc => 'The blending function of the segment: %%desc%%',
|
||||
void_ret => 1 }
|
||||
);
|
||||
|
||||
|
@ -828,7 +828,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'coloring_type', type => 'enum GimpGradientSegmentColor',
|
||||
desc => 'The coloring type of the segment: { %%desc%% }',
|
||||
desc => 'The coloring type of the segment: %%desc%%',
|
||||
void_ret => 1 }
|
||||
);
|
||||
|
||||
|
@ -870,7 +870,7 @@ HELP
|
|||
desc => 'The index of the last segment to operate on. If negative,
|
||||
the selection will extend to the end of the string.' },
|
||||
{ name => 'blending_function', type => 'enum GimpGradientSegmentType',
|
||||
desc => 'The Blending Function: { %%desc%% }' }
|
||||
desc => 'The Blending Function: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -915,7 +915,7 @@ HELP
|
|||
desc => 'The index of the last segment to operate on. If negative,
|
||||
the selection will extend to the end of the string.' },
|
||||
{ name => 'coloring_type', type => 'enum GimpGradientSegmentColor',
|
||||
desc => 'The Coloring Type: { %%desc%% }' }
|
||||
desc => 'The Coloring Type: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
|
|
@ -33,7 +33,7 @@ sub gradients_popup {
|
|||
desc => 'The name of the pattern to set as the first selected',
|
||||
null_ok => 1 },
|
||||
{ name => 'sample_size', type => '1 <= int32 <= 10000',
|
||||
desc => 'Size of the sample to return when the gradient is changed
|
||||
desc => 'Size of the sample to return when the gradient is changed:
|
||||
(%%desc%%)',
|
||||
no_success => 1 }
|
||||
);
|
||||
|
|
|
@ -181,7 +181,7 @@ sub gradients_get_gradient_data {
|
|||
desc => 'The gradient name ("" means current active gradient)',
|
||||
null_ok => '1' },
|
||||
{ name => 'sample_size', type => '1 <= int32 <= 10000',
|
||||
desc => 'Size of the sample to return when the gradient is changed
|
||||
desc => 'Size of the sample to return when the gradient is changed:
|
||||
(%%desc%%)',
|
||||
no_success => 1 },
|
||||
{ name => 'reverse', type => 'boolean',
|
||||
|
@ -226,7 +226,7 @@ sub gradients_get_gradient_data {
|
|||
pos = 0.0;
|
||||
delta = 1.0 / (sample_size - 1);
|
||||
|
||||
actual_name = g_strdup (GIMP_OBJECT (gradient)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (gradient)));
|
||||
grad_data = g_new (gdouble, sample_size * 4);
|
||||
width = sample_size * 4;
|
||||
|
||||
|
|
|
@ -305,7 +305,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'style', type => 'enum GimpGridStyle',
|
||||
desc => "The image's grid style" }
|
||||
desc => "The image's grid style: %%desc%%" }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -336,7 +336,7 @@ HELP
|
|||
{ name => 'image', type => 'image',
|
||||
desc => 'The image' },
|
||||
{ name => 'style', type => 'enum GimpGridStyle',
|
||||
desc => "The image's grid style" }
|
||||
desc => "The image's grid style: %%desc%%" }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
|
|
@ -184,7 +184,7 @@ HELP
|
|||
@outargs = (
|
||||
{ name => 'orientation',
|
||||
type => 'enum GimpOrientationType (no GIMP_ORIENTATION_UNKNOWN)',
|
||||
desc => "The guide's orientation: { %%desc%% }",
|
||||
desc => "The guide's orientation: %%desc%%",
|
||||
libdef => 'GIMP_ORIENTATION_UNKNOWN' }
|
||||
);
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ HELP
|
|||
{ name => 'height', type => '0 < int32',
|
||||
desc => 'The height of the image' },
|
||||
{ name => 'type', type => 'enum GimpImageBaseType',
|
||||
desc => 'The type of image: { %%desc%% }' }
|
||||
desc => 'The type of image: %%desc%%' }
|
||||
);
|
||||
|
||||
@outargs = (
|
||||
|
@ -546,7 +546,7 @@ drawables. If the coordinates lie outside of the extents of the
|
|||
specified drawable, then an error is returned. If the drawable has an
|
||||
alpha channel, the algorithm examines the alpha value of the drawable
|
||||
at the coordinates. If the alpha value is completely transparent (0),
|
||||
then an error is returned. If the sample_merged parameter is non-zero,
|
||||
then an error is returned. If the sample_merged parameter is TRUE,
|
||||
the data of the composite image will be used instead of that for the
|
||||
specified drawable. This is equivalent to sampling for colors after
|
||||
merging all visible layers. In the case of a merged sampling, the
|
||||
|
@ -558,7 +558,7 @@ HELP
|
|||
@inargs = (
|
||||
{ name => 'image', type => 'image',
|
||||
desc => 'The image' },
|
||||
{ name => 'drawable', type => 'drawable',
|
||||
{ name => 'drawable', type => 'drawable', no_success => 1,
|
||||
desc => 'The drawable to pick from' },
|
||||
{ name => 'x', type => 'float',
|
||||
desc => 'x coordinate of upper-left corner of rectangle' },
|
||||
|
@ -572,7 +572,6 @@ HELP
|
|||
{ name => 'average_radius', type => '0 < float', no_success => 1,
|
||||
desc => 'The radius of pixels to average' }
|
||||
);
|
||||
$inargs[1]->{no_success} = 1;
|
||||
|
||||
@outargs = (
|
||||
{ name => 'color', type => 'color', void_ret => 1,
|
||||
|
@ -779,7 +778,7 @@ HELP
|
|||
desc => 'The image' },
|
||||
{ name => 'merge_type',
|
||||
type => 'enum GimpMergeType (no GIMP_FLATTEN_IMAGE)',
|
||||
desc => 'The type of merge: { %%desc%% }' }
|
||||
desc => 'The type of merge: %%desc%%' }
|
||||
);
|
||||
|
||||
@outargs = (
|
||||
|
@ -821,7 +820,7 @@ HELP
|
|||
desc => 'The layer to merge down from' },
|
||||
{ name => 'merge_type',
|
||||
type => 'enum GimpMergeType (no GIMP_FLATTEN_IMAGE)',
|
||||
desc => 'The type of merge: { %%desc%% }' }
|
||||
desc => 'The type of merge: %%desc%%' }
|
||||
);
|
||||
|
||||
@outargs = (
|
||||
|
@ -974,7 +973,7 @@ sub image_remove_layer_mask {
|
|||
{ name => 'layer', type => 'layer',
|
||||
desc => 'The layer from which to remove mask' },
|
||||
{ name => 'mode', type => 'enum GimpMaskApplyMode',
|
||||
desc => 'Removal mode: { %%desc%% }' }
|
||||
desc => 'Removal mode: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -1063,10 +1062,10 @@ HELP
|
|||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = gimp_item_is_floating (GIMP_ITEM (channel));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_floating (GIMP_ITEM (channel)))
|
||||
success = gimp_image_add_channel (image, channel, MAX (position, -1));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -1120,7 +1119,10 @@ HELP
|
|||
|
||||
$invoke{code} = <<'CODE';
|
||||
{
|
||||
if (gimp_item_is_floating (GIMP_ITEM (vectors)))
|
||||
success = gimp_image_add_vectors (image, vectors, MAX (position, -1));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
}
|
||||
|
@ -1312,7 +1314,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'base_type', type => 'enum GimpImageBaseType',
|
||||
desc => "The image's base type: { %%desc%% }" }
|
||||
desc => "The image's base type: %%desc%%" }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -1439,7 +1441,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'dirty', type => 'boolean',
|
||||
desc => 'True if the image has unsaved changes.' }
|
||||
desc => 'TRUE if the image has unsaved changes.' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -1790,7 +1792,7 @@ HELP
|
|||
{ name => 'image', type => 'image',
|
||||
desc => 'The image' },
|
||||
{ name => 'component', type => 'enum GimpChannelType',
|
||||
desc => 'The image component: { %%desc%% }' }
|
||||
desc => 'The image component: %%desc%%' }
|
||||
);
|
||||
|
||||
@outargs = (
|
||||
|
@ -1831,7 +1833,7 @@ HELP
|
|||
{ name => 'image', type => 'image',
|
||||
desc => 'The image' },
|
||||
{ name => 'component', type => 'enum GimpChannelType',
|
||||
desc => 'The image component: { %%desc%% }' },
|
||||
desc => 'The image component: %%desc%%' },
|
||||
{ name => 'active', type => 'boolean',
|
||||
desc => 'Component is active (%%desc%%)' }
|
||||
);
|
||||
|
@ -1869,7 +1871,7 @@ HELP
|
|||
{ name => 'image', type => 'image',
|
||||
desc => 'The image' },
|
||||
{ name => 'component', type => 'enum GimpChannelType',
|
||||
desc => 'The image component: { %%desc%% }' }
|
||||
desc => 'The image component: %%desc%%' }
|
||||
);
|
||||
|
||||
@outargs = (
|
||||
|
@ -1910,7 +1912,7 @@ HELP
|
|||
{ name => 'image', type => 'image',
|
||||
desc => 'The image' },
|
||||
{ name => 'component', type => 'enum GimpChannelType',
|
||||
desc => 'The image component: { %%desc%% }' },
|
||||
desc => 'The image component: %%desc%%' },
|
||||
{ name => 'visible', type => 'boolean',
|
||||
desc => 'Component is visible (%%desc%%)' }
|
||||
);
|
||||
|
@ -2394,9 +2396,7 @@ HELP
|
|||
temp_buf_free (buf);
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
|
|
@ -38,13 +38,13 @@ HELP
|
|||
{ name => 'height', type => '0 < int32',
|
||||
desc => 'The layer height: (%%desc%%)' },
|
||||
{ name => 'type', type => 'enum GimpImageType',
|
||||
desc => 'The layer type: { %%desc%% }' },
|
||||
desc => 'The layer type: %%desc%%' },
|
||||
{ name => 'name', type => 'string',
|
||||
desc => 'The layer name', null_ok => 1 },
|
||||
{ name => 'opacity', type => '0 <= float <= 100',
|
||||
desc => 'The layer opacity: (%%desc%%)' },
|
||||
{ name => 'mode', type => 'enum GimpLayerModeEffects',
|
||||
desc => 'The layer combination mode: { %%desc%% }' }
|
||||
desc => 'The layer combination mode: %%desc%%' }
|
||||
);
|
||||
|
||||
@outargs = (
|
||||
|
@ -124,7 +124,7 @@ HELP
|
|||
{ name => 'layer', type => 'layer',
|
||||
desc => 'The layer to which to add the mask' },
|
||||
{ name => 'mask_type', type => 'enum GimpAddMaskType',
|
||||
desc => 'The type of mask: { %%desc%% }' }
|
||||
desc => 'The type of mask: %%desc%%' }
|
||||
);
|
||||
|
||||
@outargs = (
|
||||
|
@ -167,10 +167,10 @@ HELP
|
|||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (layer));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (layer)))
|
||||
gimp_layer_add_mask (layer, mask, TRUE);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -190,16 +190,16 @@ HELP
|
|||
{ name => 'layer', type => 'layer',
|
||||
desc => 'The layer from which to remove mask' },
|
||||
{ name => 'mode', type => 'enum GimpMaskApplyMode',
|
||||
desc => 'Removal mode: { %%desc%% }' }
|
||||
desc => 'Removal mode: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (layer));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (layer)))
|
||||
gimp_layer_apply_mask (layer, mode, TRUE);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -232,12 +232,12 @@ HELP
|
|||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (layer));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (layer)))
|
||||
gimp_item_scale_by_origin (GIMP_ITEM (layer), new_width, new_height,
|
||||
gimp->config->interpolation_type, NULL,
|
||||
local_origin);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -273,11 +273,11 @@ HELP
|
|||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (layer));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (layer)))
|
||||
gimp_item_resize (GIMP_ITEM (layer), context,
|
||||
new_width, new_height, offx, offy);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -301,10 +301,10 @@ HELP
|
|||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (layer));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (layer)))
|
||||
gimp_layer_resize_to_image (layer, context);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -500,7 +500,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'is_floating_sel', type => 'boolean',
|
||||
desc => 'Non-zero if the layer is a floating selection' }
|
||||
desc => 'TRUE if the layer is a floating selection' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -619,7 +619,7 @@ sub layer_get_apply_mask {
|
|||
|
||||
$help = <<'HELP';
|
||||
This procedure returns the specified layer's apply mask setting. If
|
||||
the value is non-zero, then the layer mask for this layer is currently
|
||||
the value is TRUE, then the layer mask for this layer is currently
|
||||
being composited with the layer's alpha channel.
|
||||
HELP
|
||||
|
||||
|
@ -683,8 +683,8 @@ sub layer_get_show_mask {
|
|||
|
||||
$help = <<'HELP';
|
||||
This procedure returns the specified layer's show mask setting. This
|
||||
controls whether the layer or its mask is visible. Non-zero values
|
||||
indicate that the mask should be visible. If the layer has no mask,
|
||||
controls whether the layer or its mask is visible. TRUE indicates
|
||||
that the mask should be visible. If the layer has no mask,
|
||||
then this function returns an error.
|
||||
HELP
|
||||
|
||||
|
@ -748,7 +748,7 @@ sub layer_get_edit_mask {
|
|||
|
||||
$help = <<'HELP';
|
||||
This procedure returns the specified layer's edit mask setting. If
|
||||
the value is non-zero, then the layer mask for this layer is currently
|
||||
the value is TRUE, then the layer mask for this layer is currently
|
||||
active, and not the layer.
|
||||
HELP
|
||||
|
||||
|
@ -867,7 +867,7 @@ sub layer_get_mode {
|
|||
|
||||
@outargs = (
|
||||
{ name => 'mode', type => 'enum GimpLayerModeEffects',
|
||||
desc => 'The layer combination mode' }
|
||||
desc => 'The layer combination mode: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -889,7 +889,7 @@ sub layer_set_mode {
|
|||
{ name => 'layer', type => 'layer',
|
||||
desc => 'The layer' },
|
||||
{ name => 'mode', type => 'enum GimpLayerModeEffects',
|
||||
desc => 'The new layer combination mode (%%desc%%)' }
|
||||
desc => 'The new layer combination mode: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
|
|
@ -58,7 +58,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'handler', type => 'enum GimpMessageHandlerType',
|
||||
desc => 'The current handler type: { %%desc%% }' }
|
||||
desc => 'The current handler type: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -82,7 +82,7 @@ HELP
|
|||
|
||||
@inargs = (
|
||||
{ name => 'handler', type => 'enum GimpMessageHandlerType',
|
||||
desc => 'The new handler type: { %%desc%% }' }
|
||||
desc => 'The new handler type: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
|
|
@ -79,7 +79,7 @@ HELP
|
|||
|
||||
@inargs = (
|
||||
{ name => 'force', type => 'boolean',
|
||||
desc => 'Flag specifying whether to force the gimp to or exit
|
||||
desc => 'Flag specifying whether to force the gimp to or exit
|
||||
normally' }
|
||||
);
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ HELP
|
|||
{ name => 'drawable', type => 'drawable',
|
||||
desc => 'The affected drawable' },
|
||||
{ name => 'pressure', type => '0 <= float <= 100',
|
||||
desc => 'The pressure of the airbrush strokes (%%desc%%)' },
|
||||
desc => 'The pressure of the airbrush strokes: (%%desc%%)' },
|
||||
&stroke_arg
|
||||
);
|
||||
|
||||
|
@ -141,7 +141,7 @@ HELP
|
|||
{ name => 'src_drawable', type => 'drawable',
|
||||
desc => 'The source drawable' },
|
||||
{ name => 'clone_type', type => 'enum GimpCloneType',
|
||||
desc => 'The type of clone: { %%desc%% }' },
|
||||
desc => 'The type of clone: %%desc%%' },
|
||||
{ name => 'src_x', type => 'float',
|
||||
desc => 'The x coordinate in the source image' },
|
||||
{ name => 'src_y', type => 'float',
|
||||
|
@ -283,7 +283,7 @@ HELP
|
|||
{ name => 'pressure', type => '0 <= float <= 100',
|
||||
desc => 'The pressure: %%desc%%' },
|
||||
{ name => 'convolve_type', type => 'enum GimpConvolveType',
|
||||
desc => 'Convolve type: { %%desc%% }' },
|
||||
desc => 'Convolve type: %%desc%%' },
|
||||
&stroke_arg
|
||||
);
|
||||
|
||||
|
@ -607,7 +607,7 @@ HELP
|
|||
{ name => 'drawable', type => 'drawable',
|
||||
desc => 'The affected drawable' },
|
||||
{ name => 'pressure', type => '0 <= float <= 100',
|
||||
desc => 'The pressure of the smudge strokes (%%desc%%)' },
|
||||
desc => 'The pressure of the smudge strokes: (%%desc%%)' },
|
||||
&stroke_arg
|
||||
);
|
||||
|
||||
|
@ -690,11 +690,11 @@ HELP
|
|||
{ name => 'drawable', type => 'drawable',
|
||||
desc => 'The affected drawable' },
|
||||
{ name => 'exposure', type => '0 <= float <= 100',
|
||||
desc => 'The exposer of the strokes (%%desc%%)' },
|
||||
desc => 'The exposure of the strokes: (%%desc%%)' },
|
||||
{ name => 'dodgeburn_type', type => 'enum GimpDodgeBurnType',
|
||||
desc => 'The type either dodge or burn: { %%desc%% }' },
|
||||
desc => 'The type either dodge or burn: %%desc%%' },
|
||||
{ name => 'dodgeburn_mode', type => 'enum GimpTransferMode',
|
||||
desc => 'The mode: { %%desc%% }' },
|
||||
desc => 'The mode: %%desc%%' },
|
||||
&stroke_arg
|
||||
);
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ sub palette_new {
|
|||
GimpData *data = gimp_data_factory_data_new (gimp->palette_factory, name);
|
||||
|
||||
if (data)
|
||||
actual_name = g_strdup (GIMP_OBJECT (data)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ CODE
|
|||
|
||||
sub palette_is_editable {
|
||||
$blurb = "Tests if palette can be edited";
|
||||
$help = "Returns True if you have permission to change the palette";
|
||||
$help = "Returns TRUE if you have permission to change the palette";
|
||||
|
||||
&bill_pdb_misc('2004', '2.4');
|
||||
|
||||
|
@ -65,7 +65,7 @@ sub palette_is_editable {
|
|||
|
||||
@outargs = (
|
||||
{ name => 'editable', type => 'boolean',
|
||||
desc => "True if the palette can be edited" }
|
||||
desc => "TRUE if the palette can be edited" }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -112,7 +112,7 @@ sub palette_duplicate {
|
|||
GIMP_DATA (palette));
|
||||
|
||||
if (palette_copy)
|
||||
copy_name = g_strdup (GIMP_OBJECT (palette_copy)->name);
|
||||
copy_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette_copy)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ sub palette_rename {
|
|||
if (palette && GIMP_DATA (palette)->writable)
|
||||
{
|
||||
gimp_object_set_name (GIMP_OBJECT (palette), new_name);
|
||||
actual_name = g_strdup (GIMP_OBJECT (palette)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette)));
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
|
|
|
@ -86,7 +86,7 @@ sub palettes_get_palette {
|
|||
|
||||
if (palette)
|
||||
{
|
||||
name = g_strdup (GIMP_OBJECT (palette)->name);
|
||||
name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette)));
|
||||
num_colors = palette->n_colors;
|
||||
}
|
||||
else
|
||||
|
@ -137,7 +137,7 @@ sub palettes_get_palette_entry {
|
|||
{
|
||||
GimpPaletteEntry *entry = g_list_nth_data (palette->colors, entry_num);
|
||||
|
||||
actual_name = g_strdup (GIMP_OBJECT (palette)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette)));
|
||||
num_colors = palette->n_colors;
|
||||
color = entry->color;
|
||||
}
|
||||
|
|
|
@ -559,7 +559,7 @@ HELP
|
|||
{ name => 'name', type => 'string',
|
||||
desc => 'The name of the path which should be made into selection.' },
|
||||
{ name => 'op', type => 'enum GimpChannelOps',
|
||||
desc => 'The desired operation with current selection.' },
|
||||
desc => 'The desired operation with current selection: %%desc%%' },
|
||||
{ name => 'antialias', type => 'boolean',
|
||||
desc => 'Antialias selection.' },
|
||||
{ name => 'feather', type => 'boolean',
|
||||
|
|
|
@ -88,7 +88,7 @@ sub patterns_get_pattern {
|
|||
|
||||
if (pattern)
|
||||
{
|
||||
name = g_strdup (GIMP_OBJECT (pattern)->name);
|
||||
name = g_strdup (gimp_object_get_name (GIMP_OBJECT (pattern)));
|
||||
width = pattern->mask->width;
|
||||
height = pattern->mask->height;
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ sub patterns_get_pattern_data {
|
|||
|
||||
if (pattern)
|
||||
{
|
||||
actual_name = g_strdup (GIMP_OBJECT (pattern)->name);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (pattern)));
|
||||
width = pattern->mask->width;
|
||||
height = pattern->mask->height;
|
||||
mask_bpp = pattern->mask->bytes;
|
||||
|
|
|
@ -235,7 +235,7 @@ HELP
|
|||
{ name => 'procedure_name', type => 'string', wrap => 1,
|
||||
desc => 'The procedure for which to install the icon' },
|
||||
{ name => 'icon_type', type => 'enum GimpIconType',
|
||||
desc => 'The type of the icon' },
|
||||
desc => 'The type of the icon: %%desc%%' },
|
||||
{ name => 'icon_data', type => 'int8array',
|
||||
desc => "The procedure's icon. The format depends on the
|
||||
'icon_type' parameter",
|
||||
|
|
|
@ -43,7 +43,7 @@ HELP
|
|||
@outargs = (
|
||||
{ name => "${type}_type",
|
||||
type => 'enum GimpPDBArgType (no GIMP_PDB_END)',
|
||||
desc => "The type of $long_type { %%desc%% }", void_ret => 1 },
|
||||
desc => "The type of $long_type: %%desc%%", void_ret => 1 },
|
||||
{ name => "${type}_name", type => 'string',
|
||||
desc => "The name of the $long_type" },
|
||||
{ name => "${type}_desc", type => 'string',
|
||||
|
@ -237,7 +237,7 @@ HELP
|
|||
{ name => 'date', type => 'string',
|
||||
desc => 'Copyright date' },
|
||||
{ name => 'proc_type', type => 'enum GimpPDBProcType',
|
||||
desc => 'The procedure type: { %%desc%% }' },
|
||||
desc => 'The procedure type: %%desc%%' },
|
||||
{ name => 'num_args', type => 'int32',
|
||||
desc => 'The number of input arguments' },
|
||||
{ name => 'num_values', type => 'int32',
|
||||
|
@ -306,12 +306,13 @@ HELP
|
|||
canonical = gimp_canonicalize_identifier (identifier);
|
||||
|
||||
orig_data = plug_in_data_get (gimp, canonical, &bytes);
|
||||
success = (orig_data != NULL);
|
||||
|
||||
g_free (canonical);
|
||||
|
||||
if (success)
|
||||
if (orig_data)
|
||||
data = g_memdup (orig_data, bytes);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -347,9 +348,12 @@ HELP
|
|||
canonical = gimp_canonicalize_identifier (identifier);
|
||||
|
||||
data = plug_in_data_get (gimp, canonical, &bytes);
|
||||
success = (data != NULL);
|
||||
|
||||
g_free (canonical);
|
||||
|
||||
if (! data)
|
||||
success = FALSE;
|
||||
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
|
|
@ -39,7 +39,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'non_empty', type => 'boolean', void_ret => 1,
|
||||
desc => 'True if there is a selection' },
|
||||
desc => 'TRUE if there is a selection' },
|
||||
{ name => 'x1', type => 'int32',
|
||||
desc => 'x coordinate of upper left corner of selection bounds' },
|
||||
{ name => 'y1', type => 'int32',
|
||||
|
@ -97,7 +97,7 @@ sub selection_is_empty {
|
|||
$blurb = 'Determine whether the selection is empty.';
|
||||
|
||||
$help = <<'HELP';
|
||||
This procedure returns non-zero if the selection for the specified image is not
|
||||
This procedure returns TRUE if the selection for the specified image is not
|
||||
empty.
|
||||
HELP
|
||||
|
||||
|
@ -185,9 +185,7 @@ HELP
|
|||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
success = gimp_item_is_attached (GIMP_ITEM (drawable));
|
||||
|
||||
if (success)
|
||||
if (gimp_item_is_attached (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
|
||||
|
@ -196,6 +194,8 @@ HELP
|
|||
if (! layer)
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -488,7 +488,7 @@ HELP
|
|||
{ name => 'channel', type => 'channel',
|
||||
desc => 'The channel' },
|
||||
{ name => 'operation', type => 'enum GimpChannelOps',
|
||||
desc => 'The selection operation: { %%desc%% }' }
|
||||
desc => 'The selection operation: %%desc%%' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
|
|
@ -31,7 +31,7 @@ sufficiently close to the specified color (as determined by the threshold
|
|||
value) are included in the selection. The antialiasing parameter allows the
|
||||
final selection mask to contain intermediate values based on close misses to
|
||||
the threshold bar. Feathering can be enabled optionally and is controlled with
|
||||
the "feather_radius" parameter. If the sample_merged parameter is non-zero,
|
||||
the "feather_radius" parameter. If the sample_merged parameter is TRUE,
|
||||
the data of the composite image will be used instead of that for the specified
|
||||
drawable. This is equivalent to sampling for colors after merging all visible
|
||||
layers. In the case of a merged sampling, the supplied drawable is ignored.
|
||||
|
@ -45,9 +45,9 @@ HELP
|
|||
{ name => 'color', type => 'color',
|
||||
desc => 'The color to select' },
|
||||
{ name => 'threshold', type => '0 <= int32 <= 255',
|
||||
desc => 'Threshold in intensity levels %%desc%%' },
|
||||
desc => 'Threshold in intensity levels: %%desc%%' },
|
||||
{ name => 'operation', type => 'enum GimpChannelOps',
|
||||
desc => 'The selection operation: { %%desc%% }' },
|
||||
desc => 'The selection operation: %%desc%%' },
|
||||
{ name => 'antialias', type => 'boolean',
|
||||
desc => 'Antialiasing (%%desc%%)' },
|
||||
{ name => 'feather', type => 'boolean',
|
||||
|
@ -106,7 +106,7 @@ HELP
|
|||
{ name => 'height', type => '0 < float',
|
||||
desc => 'The height of the ellipse: %%desc%%' },
|
||||
{ name => 'operation', type => 'enum GimpChannelOps',
|
||||
desc => 'The selection operation: { %%desc%% }' },
|
||||
desc => 'The selection operation: %%desc%%' },
|
||||
{ name => 'antialias', type => 'boolean',
|
||||
desc => 'Antialiasing (%%desc%%)' },
|
||||
{ name => 'feather', type => 'boolean',
|
||||
|
@ -158,7 +158,7 @@ HELP
|
|||
desc => 'Number of points (count 1 coordinate as two
|
||||
points)' } },
|
||||
{ name => 'operation', type => 'enum GimpChannelOps',
|
||||
desc => 'The selection operation: { %%desc%% }' },
|
||||
desc => 'The selection operation: %%desc%%' },
|
||||
{ name => 'antialias', type => 'boolean',
|
||||
desc => 'Antialiasing (%%desc%%)' },
|
||||
{ name => 'feather', type => 'boolean',
|
||||
|
@ -200,7 +200,7 @@ value). This process continues until no more expansion is possible. The
|
|||
antialiasing parameter allows the final selection mask to contain intermediate
|
||||
values based on close misses to the threshold bar at pixels along the seed fill
|
||||
boundary. Feathering can be enabled optionally and is controlled with the
|
||||
"feather_radius" paramter. If the sample_merged parameter is non-zero, the data
|
||||
"feather_radius" paramter. If the sample_merged parameter is TRUE, the data
|
||||
of the composite image will be used instead of that for the specified drawable.
|
||||
This is equivalent to sampling for colors after merging all visible layers. In
|
||||
the case of a merged sampling, the supplied drawable is ignored. If the sample
|
||||
|
@ -220,9 +220,9 @@ HELP
|
|||
desc => 'y coordinate of initial seed fill point: (image
|
||||
coordinates)' },
|
||||
{ name => 'threshold', type => '0 <= int32 <= 255',
|
||||
desc => 'Threshold in intensity levels %%desc%%' },
|
||||
desc => 'Threshold in intensity levels: %%desc%%' },
|
||||
{ name => 'operation', type => 'enum GimpChannelOps',
|
||||
desc => 'The selection operation: { %%desc%% }' },
|
||||
desc => 'The selection operation: %%desc%%' },
|
||||
{ name => 'antialias', type => 'boolean',
|
||||
desc => 'Antialiasing (%%desc%%)' },
|
||||
{ name => 'feather', type => 'boolean',
|
||||
|
@ -279,7 +279,7 @@ HELP
|
|||
{ name => 'height', type => '0 < float',
|
||||
desc => 'The height of the rectangle: %%desc%%' },
|
||||
{ name => 'operation', type => 'enum GimpChannelOps',
|
||||
desc => 'The selection operation: { %%desc%% }' },
|
||||
desc => 'The selection operation: %%desc%%' },
|
||||
{ name => 'feather', type => 'boolean',
|
||||
desc => 'Feather option for selections' },
|
||||
{ name => 'feather_radius', type => '0 <= float',
|
||||
|
|
|
@ -96,7 +96,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'enabled', type => 'boolean',
|
||||
desc => 'True if undo is enabled for this image' }
|
||||
desc => 'TRUE if undo is enabled for this image' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -127,7 +127,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'disabled', type => 'boolean',
|
||||
desc => 'True if the image undo has been disabled' }
|
||||
desc => 'TRUE if the image undo has been disabled' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -157,7 +157,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'enabled', type => 'boolean',
|
||||
desc => 'True if the image undo has been enabled' }
|
||||
desc => 'TRUE if the image undo has been enabled' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -193,7 +193,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'frozen', type => 'boolean',
|
||||
desc => 'True if the image undo has been frozen' }
|
||||
desc => 'TRUE if the image undo has been frozen' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
@ -229,7 +229,7 @@ HELP
|
|||
|
||||
@outargs = (
|
||||
{ name => 'thawed', type => 'boolean',
|
||||
desc => 'True if the image undo has been thawed' }
|
||||
desc => 'TRUE if the image undo has been thawed' }
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
|
|
@ -390,9 +390,7 @@ HELP
|
|||
y_point = valid ? coord.y : 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -580,14 +578,10 @@ HELP
|
|||
num_coords *= 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -669,9 +663,7 @@ HELP
|
|||
gimp_bezier_stroke_lineto (stroke, &coord0);
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -722,9 +714,7 @@ HELP
|
|||
gimp_bezier_stroke_conicto (stroke, &coord0, &coord1);
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -781,9 +771,7 @@ HELP
|
|||
gimp_bezier_stroke_cubicto (stroke, &coord0, &coord1, &coord2);
|
||||
}
|
||||
else
|
||||
{
|
||||
success = FALSE;
|
||||
}
|
||||
success = FALSE;
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue