mirror of https://github.com/GNOME/gimp.git
tools/pdbgen/pdbgen.pl allow for array size params to be optional
* tools/pdbgen/pdbgen.pl * tools/pdbgen/pdb/fileops.pdb: allow for array size params to be optional * app/nav_window.c * app/tools.c: a bit of cleanup -Yosh
This commit is contained in:
parent
5135d61119
commit
30cc3739ae
|
@ -1,3 +1,12 @@
|
|||
Tue Dec 14 11:56:15 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* tools/pdbgen/pdbgen.pl
|
||||
* tools/pdbgen/pdb/fileops.pdb: allow for array size params to
|
||||
be optional
|
||||
|
||||
* app/nav_window.c
|
||||
* app/tools.c: a bit of cleanup
|
||||
|
||||
Tue Dec 14 20:37:44 CET 1999 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/Makefile.am
|
||||
|
|
|
@ -490,12 +490,12 @@ nav_window_update_preview (NavWinData *iwd)
|
|||
|
||||
pwidth = iwd->pwidth;
|
||||
pheight = iwd->pheight;
|
||||
src = (guchar *) temp_buf_data (preview_buf_notdot);
|
||||
src = temp_buf_data (preview_buf_notdot);
|
||||
preview_buf_ptr = preview_buf_notdot;
|
||||
}
|
||||
else
|
||||
{
|
||||
src = (guchar *) temp_buf_data (preview_buf);
|
||||
src = temp_buf_data (preview_buf);
|
||||
preview_buf_ptr = preview_buf;
|
||||
}
|
||||
|
||||
|
|
|
@ -490,12 +490,12 @@ nav_window_update_preview (NavWinData *iwd)
|
|||
|
||||
pwidth = iwd->pwidth;
|
||||
pheight = iwd->pheight;
|
||||
src = (guchar *) temp_buf_data (preview_buf_notdot);
|
||||
src = temp_buf_data (preview_buf_notdot);
|
||||
preview_buf_ptr = preview_buf_notdot;
|
||||
}
|
||||
else
|
||||
{
|
||||
src = (guchar *) temp_buf_data (preview_buf);
|
||||
src = temp_buf_data (preview_buf);
|
||||
preview_buf_ptr = preview_buf;
|
||||
}
|
||||
|
||||
|
|
|
@ -490,12 +490,12 @@ nav_window_update_preview (NavWinData *iwd)
|
|||
|
||||
pwidth = iwd->pwidth;
|
||||
pheight = iwd->pheight;
|
||||
src = (guchar *) temp_buf_data (preview_buf_notdot);
|
||||
src = temp_buf_data (preview_buf_notdot);
|
||||
preview_buf_ptr = preview_buf_notdot;
|
||||
}
|
||||
else
|
||||
{
|
||||
src = (guchar *) temp_buf_data (preview_buf);
|
||||
src = temp_buf_data (preview_buf);
|
||||
preview_buf_ptr = preview_buf;
|
||||
}
|
||||
|
||||
|
|
|
@ -1195,7 +1195,3 @@ tool_active_PDB_string (void)
|
|||
|
||||
return toolStr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1195,7 +1195,3 @@ tool_active_PDB_string (void)
|
|||
|
||||
return toolStr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@ HELP
|
|||
{ name => 'height', type => 'int32', init => 1,
|
||||
desc => 'The height of the thumbnail' },
|
||||
{ name => 'thumb_data', type => 'int8array', init => 1,
|
||||
desc => 'The thumbnail data'},
|
||||
desc => 'The thumbnail data', array => undef },
|
||||
);
|
||||
|
||||
%invoke = (
|
||||
|
|
|
@ -127,8 +127,10 @@ sub trimspace { for (${$_[0]}) { s/\s+/ /gs; s/^ //; s/ $//; } }
|
|||
# Trim spaces and escape quotes C-style
|
||||
sub nicetext {
|
||||
my $val = shift;
|
||||
&trimspace($val);
|
||||
$$val =~ s/"/\\"/g;
|
||||
if (defined $$val) {
|
||||
&trimspace($val);
|
||||
$$val =~ s/"/\\"/g;
|
||||
}
|
||||
}
|
||||
|
||||
# Do the same for all the strings in the args, plus expand constraint text
|
||||
|
@ -154,7 +156,7 @@ sub arrayexpand {
|
|||
my $newargs;
|
||||
|
||||
foreach (@$$args) {
|
||||
if (exists $_->{array}) {
|
||||
if (exists $_->{array} && defined $_->{array}) {
|
||||
my $arg = $_->{array};
|
||||
|
||||
$arg->{name} = 'num_' . $_->{name} unless exists $arg->{name};
|
||||
|
|
Loading…
Reference in New Issue