tools/pdbgen/pdb/pattern.pdb tools/pdbgen/pdb/gradients.pdb

2007-04-26  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/pattern.pdb
	* tools/pdbgen/pdb/gradients.pdb
	* tools/pdbgen/pdb/brush_select.pdb
	* tools/pdbgen/pdb/context.pdb
	* tools/pdbgen/pdb/gradient.pdb
	* tools/pdbgen/pdb/palette.pdb
	* tools/pdbgen/pdb/procedural_db.pdb
	* tools/pdbgen/pdb/brushes.pdb
	* tools/pdbgen/pdb/palettes.pdb
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/brush.pdb
	* tools/pdbgen/pdb/gradient_select.pdb: some argument cleanup: use
	"=> 1" instead of "=> '1'" for setting argument flags, also made
	argument property order consistent so flags come before "desc".
	Doesn't affect generated code.


svn path=/trunk/; revision=22348
This commit is contained in:
Michael Natterer 2007-04-26 17:43:18 +00:00 committed by Michael Natterer
parent d6b3b9bb98
commit e8215c6d38
13 changed files with 75 additions and 62 deletions

View File

@ -1,3 +1,21 @@
2007-04-26 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/pattern.pdb
* tools/pdbgen/pdb/gradients.pdb
* tools/pdbgen/pdb/brush_select.pdb
* tools/pdbgen/pdb/context.pdb
* tools/pdbgen/pdb/gradient.pdb
* tools/pdbgen/pdb/palette.pdb
* tools/pdbgen/pdb/procedural_db.pdb
* tools/pdbgen/pdb/brushes.pdb
* tools/pdbgen/pdb/palettes.pdb
* tools/pdbgen/pdb/drawable.pdb
* tools/pdbgen/pdb/brush.pdb
* tools/pdbgen/pdb/gradient_select.pdb: some argument cleanup: use
"=> 1" instead of "=> '1'" for setting argument flags, also made
argument property order consistent so flags come before "desc".
Doesn't affect generated code.
2007-04-26 Sven Neumann <sven@gimp.org> 2007-04-26 Sven Neumann <sven@gimp.org>
* libgimp/gimp.c: document the image_types parameter (bug #326988). * libgimp/gimp.c: document the image_types parameter (bug #326988).

View File

@ -286,7 +286,7 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'width', type => 'int32', void_ret => '1', { name => 'width', type => 'int32', void_ret => 1,
desc => 'The brush width' }, desc => 'The brush width' },
{ name => 'height', type => 'int32', { name => 'height', type => 'int32',
desc => 'The brush height' }, desc => 'The brush height' },
@ -350,9 +350,8 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'spacing', type => '0 <= int32 <= 1000', { name => 'spacing', type => '0 <= int32 <= 1000', void_ret => 1,
desc => 'The brush spacing', desc => 'The brush spacing' }
void_ret => 1 }
); );
%invoke = ( %invoke = (

View File

@ -29,9 +29,8 @@ sub brushes_popup {
made' }, made' },
{ name => 'popup_title', type => 'string', { name => 'popup_title', type => 'string',
desc => 'Title of the brush selection dialog' }, desc => 'Title of the brush selection dialog' },
{ name => 'initial_brush', type => 'string', { name => 'initial_brush', type => 'string', null_ok => 1,
desc => 'The name of the brush to set as the first selected', desc => 'The name of the brush to set as the first selected' },
null_ok => 1 },
{ name => 'opacity', type => '0 <= float <= 100', { name => 'opacity', type => '0 <= float <= 100',
desc => 'The initial opacity of the brush' }, desc => 'The initial opacity of the brush' },
{ name => 'spacing', type => 'int32 <= 1000', { name => 'spacing', type => 'int32 <= 1000',

View File

@ -146,9 +146,8 @@ sub brushes_get_brush_data {
&std_pdb_deprecated ('gimp-brush-get-pixels'); &std_pdb_deprecated ('gimp-brush-get-pixels');
@inargs = ( @inargs = (
{ name => 'name', type => 'string', { name => 'name', type => 'string', null_ok => 1,
desc => 'The brush name ("" means current active brush)', desc => 'The brush name ("" means current active brush)' }
null_ok => '1' }
); );
@outargs = ( @outargs = (

View File

@ -148,8 +148,8 @@ HELP
&pdb_misc; &pdb_misc;
@outargs = ( @outargs = (
{ name => 'foreground', type => 'color', { name => 'foreground', type => 'color', void_ret => 1,
desc => 'The foreground color', void_ret => 1 } desc => 'The foreground color' }
); );
%invoke = ( %invoke = (
@ -174,8 +174,8 @@ HELP
&pdb_misc; &pdb_misc;
@inargs = ( @inargs = (
{ name => 'foreground', type => 'color', { name => 'foreground', type => 'color', void_ret => 1,
desc => 'The foreground color', void_ret => 1 } desc => 'The foreground color' }
); );
%invoke = ( %invoke = (
@ -200,8 +200,8 @@ HELP
&pdb_misc; &pdb_misc;
@outargs = ( @outargs = (
{ name => 'background', type => 'color', { name => 'background', type => 'color', void_ret => 1,
desc => 'The background color', void_ret => 1 } desc => 'The background color' }
); );
%invoke = ( %invoke = (
@ -226,8 +226,8 @@ HELP
&pdb_misc; &pdb_misc;
@inargs = ( @inargs = (
{ name => 'background', type => 'color', { name => 'background', type => 'color', void_ret => 1,
desc => 'The background color', void_ret => 1 } desc => 'The background color' }
); );
%invoke = ( %invoke = (

View File

@ -547,8 +547,8 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'offset_x', type => 'int32', { name => 'offset_x', type => 'int32', void_ret => 1,
desc => "x offset of drawable", void_ret => 1 }, desc => "x offset of drawable" },
{ name => 'offset_y', type => 'int32', { name => 'offset_y', type => 'int32',
desc => "y offset of drawable" } desc => "y offset of drawable" }
); );

View File

@ -348,8 +348,8 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'color', type => 'color', { name => 'color', type => 'color', void_ret => 1,
desc => 'The return color', void_ret => 1 }, desc => 'The return color' },
{ name => 'opacity', type => 'float', { name => 'opacity', type => 'float',
desc => 'The opacity of the endpoint' } desc => 'The opacity of the endpoint' }
); );
@ -392,8 +392,8 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'color', type => 'color', { name => 'color', type => 'color', void_ret => 1,
desc => 'The return color', void_ret => 1 }, desc => 'The return color' },
{ name => 'opacity', type => 'float', { name => 'opacity', type => 'float',
desc => 'The opacity of the endpoint' } desc => 'The opacity of the endpoint' }
); );
@ -518,8 +518,8 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'pos', type => 'float', { name => 'pos', type => 'float', void_ret => 1,
desc => 'The return position', void_ret => 1 } desc => 'The return position' }
); );
%invoke = ( %invoke = (
@ -559,8 +559,8 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'pos', type => 'float', { name => 'pos', type => 'float', void_ret => 1,
desc => 'The return position', void_ret => 1 } desc => 'The return position' }
); );
%invoke = ( %invoke = (
@ -600,8 +600,8 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'pos', type => 'float', { name => 'pos', type => 'float', void_ret => 1,
desc => 'The return position', void_ret => 1 } desc => 'The return position' }
); );
%invoke = ( %invoke = (
@ -647,8 +647,8 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'final_pos', type => 'float', { name => 'final_pos', type => 'float', void_ret => 1,
desc => 'The return position', void_ret => 1 } desc => 'The return position' }
); );
%invoke = ( %invoke = (
@ -694,8 +694,8 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'final_pos', type => 'float', { name => 'final_pos', type => 'float', void_ret => 1,
desc => 'The return position', void_ret => 1 } desc => 'The return position' }
); );
%invoke = ( %invoke = (
@ -741,8 +741,8 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'final_pos', type => 'float', { name => 'final_pos', type => 'float', void_ret => 1,
desc => 'The return position', void_ret => 1 } desc => 'The return position' }
); );
%invoke = ( %invoke = (
@ -784,8 +784,8 @@ HELP
@outargs = ( @outargs = (
{ name => 'blend_func', type => 'enum GimpGradientSegmentType', { name => 'blend_func', type => 'enum GimpGradientSegmentType',
desc => 'The blending function of the segment', void_ret => 1,
void_ret => 1 } desc => 'The blending function of the segment' }
); );
%invoke = ( %invoke = (
@ -826,8 +826,8 @@ HELP
@outargs = ( @outargs = (
{ name => 'coloring_type', type => 'enum GimpGradientSegmentColor', { name => 'coloring_type', type => 'enum GimpGradientSegmentColor',
desc => 'The coloring type of the segment', void_ret => 1,
void_ret => 1 } desc => 'The coloring type of the segment' }
); );
%invoke = ( %invoke = (

View File

@ -29,12 +29,10 @@ sub gradients_popup {
made' }, made' },
{ name => 'popup_title', type => 'string', { name => 'popup_title', type => 'string',
desc => 'Title of the gradient selection dialog' }, desc => 'Title of the gradient selection dialog' },
{ name => 'initial_gradient', type => 'string', { name => 'initial_gradient', type => 'string', null_ok => 1,
desc => 'The name of the gradient to set as the first selected', desc => 'The name of the gradient to set as the first selected' },
null_ok => 1 }, { name => 'sample_size', type => '1 <= int32 <= 10000', no_success => 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',
no_success => 1 }
); );
%invoke = ( %invoke = (

View File

@ -178,9 +178,8 @@ sub gradients_get_gradient_data {
&std_pdb_deprecated ('gimp-gradient-get-uniform-samples'); &std_pdb_deprecated ('gimp-gradient-get-uniform-samples');
@inargs = ( @inargs = (
{ name => 'name', type => 'string', { name => 'name', type => 'string', null_ok => 1,
desc => 'The gradient name ("" means current active gradient)', desc => 'The gradient name ("" means current active gradient)' },
null_ok => '1' },
{ name => 'sample_size', type => '1 <= int32 <= 10000', { 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',
no_success => 1 }, no_success => 1 },

View File

@ -209,7 +209,7 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'num_colors', type => 'int32', void_ret => '1', { name => 'num_colors', type => 'int32', void_ret => 1,
desc => 'The number of colors in the palette' } desc => 'The number of colors in the palette' }
); );
@ -307,14 +307,14 @@ HELP
@inargs = ( @inargs = (
{ name => 'name', type => 'string', { name => 'name', type => 'string',
desc => 'The palette name' }, desc => 'The palette name' },
{ name => 'entry_name', type => 'string', null_ok => '1', { name => 'entry_name', type => 'string', null_ok => 1,
desc => 'The name of the entry' }, desc => 'The name of the entry' },
{ name => 'color', type => 'color', { name => 'color', type => 'color',
desc => 'The new entry\'s color color' } desc => 'The new entry\'s color color' }
); );
@outargs = ( @outargs = (
{ name => 'entry_num', type => 'int32', void_ret => '1', { name => 'entry_num', type => 'int32', void_ret => 1,
desc => 'The index of the added entry' } desc => 'The index of the added entry' }
); );
@ -531,7 +531,7 @@ HELP
desc => 'The palette name' }, desc => 'The palette name' },
{ name => 'entry_num', type => 'int32', { name => 'entry_num', type => 'int32',
desc => 'The entry to retrieve' }, desc => 'The entry to retrieve' },
{ name => 'entry_name', type => 'string', null_ok => '1', { name => 'entry_name', type => 'string', null_ok => 1,
desc => 'The new name' } desc => 'The new name' }
); );

View File

@ -73,8 +73,8 @@ sub palettes_get_palette {
&std_pdb_deprecated ('gimp-context-get-palette'); &std_pdb_deprecated ('gimp-context-get-palette');
@outargs = ( @outargs = (
{ name => 'name', type => 'string', { name => 'name', type => 'string', null_ok => 1,
desc => 'The palette name', null_ok => '1' }, desc => 'The palette name' },
{ name => 'num_colors', type => 'int32', { name => 'num_colors', type => 'int32',
desc => 'The palette num_colors' } desc => 'The palette num_colors' }
); );

View File

@ -33,7 +33,7 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'width', type => 'int32', void_ret => '1', { name => 'width', type => 'int32', void_ret => 1,
desc => "The pattern width" }, desc => "The pattern width" },
{ name => 'height', type => 'int32', { name => 'height', type => 'int32',
desc => "The pattern height" }, desc => "The pattern height" },
@ -79,7 +79,7 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'width', type => 'int32', void_ret => '1', { name => 'width', type => 'int32', void_ret => 1,
desc => "The pattern width" }, desc => "The pattern width" },
{ name => 'height', type => 'int32', { name => 'height', type => 'int32',
desc => "The pattern height" }, desc => "The pattern height" },

View File

@ -214,7 +214,8 @@ HELP
@outargs = ( @outargs = (
{ name => 'arg_type', type => 'enum GimpPDBArgType (no GIMP_PDB_END)', { name => 'arg_type', type => 'enum GimpPDBArgType (no GIMP_PDB_END)',
desc => "The type of argument", void_ret => 1 }, void_ret => 1,
desc => "The type of argument" },
{ name => 'arg_name', type => 'string', { name => 'arg_name', type => 'string',
desc => 'The name of the argument' }, desc => 'The name of the argument' },
{ name => 'arg_desc', type => 'string', { name => 'arg_desc', type => 'string',
@ -281,7 +282,8 @@ HELP
@outargs = ( @outargs = (
{ name => 'val_type', type => 'enum GimpPDBArgType (no GIMP_PDB_END)', { name => 'val_type', type => 'enum GimpPDBArgType (no GIMP_PDB_END)',
desc => "The type of return value", void_ret => 1 }, void_ret => 1,
desc => "The type of return value" },
{ name => 'val_name', type => 'string', { name => 'val_name', type => 'string',
desc => 'The name of the return value' }, desc => 'The name of the return value' },
{ name => 'val_desc', type => 'string', { name => 'val_desc', type => 'string',
@ -343,9 +345,8 @@ HELP
); );
@outargs = ( @outargs = (
{ name => 'data', type => 'int8array', { name => 'data', type => 'int8array', wrap => 1, void_ret => 1,
desc => 'A byte array containing data', wrap => 1, desc => 'A byte array containing data',
void_ret => 1,
array => { name => 'bytes', type => '1 <= int32', array => { name => 'bytes', type => '1 <= int32',
desc => 'The number of bytes in the data' } } desc => 'The number of bytes in the data' } }
); );