Commit f1f24289 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

removed support for arg->implicit_fill.

2006-03-26  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/lib.pl: removed support for arg->implicit_fill.

	* tools/pdbgen/pdb/progress.pdb (progress_init): remove it without
	replacement, the generated function on the libgimp side is
	internal anyway.

	* libgimp/gimpprogress_pdb.[ch] (_gimp_progress_init): rgenerated
	with a display_ID parameter.

	* libgimp/gimpprogress.c (gimp_progress_init): pass
	gimp_default_display() to _gimp_progress_init().
parent c82adc22
2006-03-26 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/lib.pl: removed support for arg->implicit_fill.
* tools/pdbgen/pdb/progress.pdb (progress_init): remove it without
replacement, the generated function on the libgimp side is
internal anyway.
* libgimp/gimpprogress_pdb.[ch] (_gimp_progress_init): rgenerated
with a display_ID parameter.
* libgimp/gimpprogress.c (gimp_progress_init): pass
gimp_default_display() to _gimp_progress_init().
2006-03-26 Karine Delvare <edhel@gimp.org>
* app/tools/gimpcropoptions.c
......
......@@ -234,7 +234,7 @@ gimp_progress_init (const gchar *message)
{
gimp_progress_current = 0.0;
return _gimp_progress_init (message);
return _gimp_progress_init (message, gimp_default_display ());
}
/**
......
......@@ -28,7 +28,7 @@
/**
* _gimp_progress_init:
* @message: Message to use in the progress dialog.
* @gdisplay_ID: GimpDisplay to update progressbar in, or -1 for a seperate window.
*
* Initializes the progress bar for the current plug-in.
*
......@@ -38,7 +38,8 @@
* Returns: TRUE on success.
*/
gboolean
_gimp_progress_init (const gchar *message)
_gimp_progress_init (const gchar *message,
gint32 gdisplay_ID)
{
GimpParam *return_vals;
gint nreturn_vals;
......@@ -47,7 +48,7 @@ _gimp_progress_init (const gchar *message)
return_vals = gimp_run_procedure ("gimp-progress-init",
&nreturn_vals,
GIMP_PDB_STRING, message,
GIMP_PDB_DISPLAY, gimp_default_display (),
GIMP_PDB_DISPLAY, gdisplay_ID,
GIMP_PDB_END);
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
......
......@@ -29,7 +29,8 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gboolean _gimp_progress_init (const gchar *message) G_GNUC_INTERNAL;
gboolean _gimp_progress_init (const gchar *message,
gint32 gdisplay_ID) G_GNUC_INTERNAL;
gboolean _gimp_progress_update (gdouble percentage) G_GNUC_INTERNAL;
gboolean gimp_progress_pulse (void);
gboolean gimp_progress_set_text (const gchar *message);
......
......@@ -138,36 +138,26 @@ sub generate {
$usednames{$_->{name}}++;
if (exists $_->{implicit_fill}) {
$privatevars++;
}
else {
if ($type eq 'string' ||
$type eq 'color' ||
$type =~ /array$/) {
$arglist .= 'const '
}
$arglist .= &libtype($_);
$arglist .= $_->{name};
$arglist .= '_ID' if $id;
$arglist .= ', ';
$argdesc .= " * \@$_->{name}";
$argdesc .= '_ID' if $id;
$argdesc .= ": $desc";
if ($type eq 'string' ||
$type eq 'color' ||
$type =~ /array$/) {
$arglist .= 'const '
}
$arglist .= &libtype($_);
$arglist .= $_->{name};
$arglist .= '_ID' if $id;
$arglist .= ', ';
$argdesc .= " * \@$_->{name}";
$argdesc .= '_ID' if $id;
$argdesc .= ": $desc";
# This is what's passed into gimp_run_procedure
$argpass .= "\n\t\t\t\t" . ' ' x 4;
$argpass .= "GIMP_PDB_$arg->{name}, ";
if (exists $_->{implicit_fill}) {
$argpass .= $_->{implicit_fill};
}
else {
$argpass .= "$_->{name}";
$argpass .= '_ID' if $id;
}
$argpass .= "$_->{name}";
$argpass .= '_ID' if $id;
$argpass .= ',';
......
......@@ -32,8 +32,7 @@ HELP
desc => 'Message to use in the progress dialog' },
{ name => 'gdisplay', type => 'display', no_success => 1,
desc => 'GimpDisplay to update progressbar in, or -1 for a seperate
window',
implicit_fill => 'gimp_default_display ()' }
window' }
);
%invoke = (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment