Commit 03c28ec7 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

app/pdb/pdb-types.h renamed struct Argument to GimpArgument and struct

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

	* app/pdb/pdb-types.h
	* app/pdb/gimpargument.h: renamed struct Argument to GimpArgument
	and struct ProcArg to GimpArgumentSpec.

	* app/batch.c
	* app/actions/plug-in-commands.c
	* app/actions/vectors-commands.c
	* app/core/gimppdbprogress.c
	* app/dialogs/about-dialog.c
	* app/file/file-open.c
	* app/file/file-save.c
	* app/pdb/gimpargument.c
	* app/pdb/gimpprocedure.[ch]
	* app/pdb/procedural-db-query.c
	* app/pdb/procedural_db.[ch]
	* app/plug-in/plug-in-message.c
	* app/plug-in/plug-in-params.[ch]
	* app/plug-in/plug-in-proc-frame.h
	* app/plug-in/plug-in-progress.c
	* app/plug-in/plug-in-rc.c
	* app/plug-in/plug-in-run.[ch]
	* app/plug-in/plug-ins.c
	* app/widgets/gimpbrushselect.c
	* app/widgets/gimpfontselect.c
	* app/widgets/gimpgradientselect.c
	* app/widgets/gimphelp.c
	* app/widgets/gimppaletteselect.c
	* app/widgets/gimppatternselect.c
	* app/widgets/gimppdbdialog.[ch]
	* app/xcf/xcf.c
	* tools/pdbgen/app.pl
	* tools/pdbgen/pdb/fileops.pdb
	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly.

	* app/pdb/*_cmds.c: regenerated.
parent 46a50b7e
2006-03-31 Michael Natterer <mitch@gimp.org>
* app/pdb/pdb-types.h
* app/pdb/gimpargument.h: renamed struct Argument to GimpArgument
and struct ProcArg to GimpArgumentSpec.
* app/batch.c
* app/actions/plug-in-commands.c
* app/actions/vectors-commands.c
* app/core/gimppdbprogress.c
* app/dialogs/about-dialog.c
* app/file/file-open.c
* app/file/file-save.c
* app/pdb/gimpargument.c
* app/pdb/gimpprocedure.[ch]
* app/pdb/procedural-db-query.c
* app/pdb/procedural_db.[ch]
* app/plug-in/plug-in-message.c
* app/plug-in/plug-in-params.[ch]
* app/plug-in/plug-in-proc-frame.h
* app/plug-in/plug-in-progress.c
* app/plug-in/plug-in-rc.c
* app/plug-in/plug-in-run.[ch]
* app/plug-in/plug-ins.c
* app/widgets/gimpbrushselect.c
* app/widgets/gimpfontselect.c
* app/widgets/gimpgradientselect.c
* app/widgets/gimphelp.c
* app/widgets/gimppaletteselect.c
* app/widgets/gimppatternselect.c
* app/widgets/gimppdbdialog.[ch]
* app/xcf/xcf.c
* tools/pdbgen/app.pl
* tools/pdbgen/pdb/fileops.pdb
* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly.
* app/pdb/*_cmds.c: regenerated.
2006-03-31 Michael Natterer <mitch@gimp.org>
* app/pdb/Makefile.am
......
......@@ -68,7 +68,7 @@ plug_in_run_cmd_callback (GtkAction *action,
{
Gimp *gimp;
GimpProcedure *procedure;
Argument *args;
GimpArgument *args;
gint n_args = 0;
GimpDisplay *display = NULL;
......
......@@ -313,7 +313,7 @@ vectors_selection_to_vectors_cmd_callback (GtkAction *action,
{
GimpImage *image;
GimpProcedure *procedure;
Argument *args;
GimpArgument *args;
GimpDisplay *display;
return_if_no_image (image, data);
......
......@@ -131,9 +131,9 @@ batch_run_cmd (Gimp *gimp,
GimpRunMode run_mode,
const gchar *cmd)
{
Argument *args;
Argument *return_vals;
gint n_return_vals;
GimpArgument *args;
GimpArgument *return_vals;
gint n_return_vals;
args = gimp_procedure_get_arguments (procedure);
......
......@@ -245,8 +245,8 @@ gimp_pdb_progress_run_callback (GimpPdbProgress *progress,
if (progress->callback_name && ! progress->callback_busy)
{
Argument *return_vals;
gint n_return_vals;
GimpArgument *return_vals;
gint n_return_vals;
progress->callback_busy = TRUE;
......
......@@ -215,16 +215,16 @@ about_dialog_load_url (GtkAboutDialog *dialog,
const gchar *url,
gpointer data)
{
GimpContext *context = GIMP_CONTEXT (data);
Argument *return_vals;
gint nreturn_vals;
GimpContext *context = GIMP_CONTEXT (data);
GimpArgument *return_vals;
gint n_return_vals;
return_vals = procedural_db_run_proc (context->gimp, context, NULL,
PDB_URL_LOAD,
&nreturn_vals,
&n_return_vals,
GIMP_PDB_STRING, url,
GIMP_PDB_END);
gimp_arguments_destroy (return_vals, nreturn_vals, TRUE);
gimp_arguments_destroy (return_vals, n_return_vals, TRUE);
}
......
......@@ -87,10 +87,10 @@ file_open_image (Gimp *gimp,
const gchar **mime_type,
GError **error)
{
Argument *return_vals;
gint n_return_vals;
gchar *filename;
GimpImage *image = NULL;
GimpArgument *return_vals;
gint n_return_vals;
gchar *filename;
GimpImage *image = NULL;
g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL);
g_return_val_if_fail (GIMP_IS_CONTEXT (context), NULL);
......@@ -215,7 +215,7 @@ file_open_thumbnail (Gimp *gimp,
if (procedure && procedure->num_args >= 2 && procedure->num_values >= 1)
{
GimpPDBStatusType status;
Argument *return_vals;
GimpArgument *return_vals;
gint n_return_vals;
gchar *filename;
GimpImage *image = NULL;
......
......@@ -79,7 +79,7 @@ file_save (GimpImage *image,
gboolean save_a_copy,
GError **error)
{
Argument *return_vals;
GimpArgument *return_vals;
gint n_return_vals;
GimpPDBStatusType status;
gchar *filename;
......
......@@ -647,15 +647,15 @@ register_brush_procs (Gimp *gimp)
}
static Argument *
static GimpArgument *
brush_new_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gchar *actual_name = NULL;
......@@ -700,15 +700,15 @@ static GimpProcedure brush_new_proc =
{ { brush_new_invoker } }
};
static Argument *
static GimpArgument *
brush_duplicate_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gchar *copy_name = NULL;
......@@ -758,15 +758,15 @@ static GimpProcedure brush_duplicate_proc =
{ { brush_duplicate_invoker } }
};
static Argument *
static GimpArgument *
brush_is_generated_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gboolean generated = FALSE;
......@@ -807,15 +807,15 @@ static GimpProcedure brush_is_generated_proc =
{ { brush_is_generated_invoker } }
};
static Argument *
static GimpArgument *
brush_rename_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gchar *new_name;
gchar *actual_name = NULL;
......@@ -861,12 +861,12 @@ static GimpProcedure brush_rename_proc =
{ { brush_rename_invoker } }
};
static Argument *
static GimpArgument *
brush_delete_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
gchar *name;
......@@ -915,15 +915,15 @@ static GimpProcedure brush_delete_proc =
{ { brush_delete_invoker } }
};
static Argument *
static GimpArgument *
brush_is_editable_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gboolean editable = FALSE;
......@@ -964,15 +964,15 @@ static GimpProcedure brush_is_editable_proc =
{ { brush_is_editable_invoker } }
};
static Argument *
static GimpArgument *
brush_get_info_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gint32 width = 0;
gint32 height = 0;
......@@ -1026,15 +1026,15 @@ static GimpProcedure brush_get_info_proc =
{ { brush_get_info_invoker } }
};
static Argument *
static GimpArgument *
brush_get_pixels_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gint32 width = 0;
gint32 height = 0;
......@@ -1105,15 +1105,15 @@ static GimpProcedure brush_get_pixels_proc =
{ { brush_get_pixels_invoker } }
};
static Argument *
static GimpArgument *
brush_get_spacing_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gint32 spacing = 0;
......@@ -1154,12 +1154,12 @@ static GimpProcedure brush_get_spacing_proc =
{ { brush_get_spacing_invoker } }
};
static Argument *
static GimpArgument *
brush_set_spacing_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
gchar *name;
......@@ -1198,15 +1198,15 @@ static GimpProcedure brush_set_spacing_proc =
{ { brush_set_spacing_invoker } }
};
static Argument *
static GimpArgument *
brush_get_shape_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gint32 shape = 0;
......@@ -1247,15 +1247,15 @@ static GimpProcedure brush_get_shape_proc =
{ { brush_get_shape_invoker } }
};
static Argument *
static GimpArgument *
brush_get_radius_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gdouble radius = 0.0;
......@@ -1296,15 +1296,15 @@ static GimpProcedure brush_get_radius_proc =
{ { brush_get_radius_invoker } }
};
static Argument *
static GimpArgument *
brush_get_spikes_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gint32 spikes = 0;
......@@ -1345,15 +1345,15 @@ static GimpProcedure brush_get_spikes_proc =
{ { brush_get_spikes_invoker } }
};
static Argument *
static GimpArgument *
brush_get_hardness_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gdouble hardness = 0.0;
......@@ -1394,15 +1394,15 @@ static GimpProcedure brush_get_hardness_proc =
{ { brush_get_hardness_invoker } }
};
static Argument *
static GimpArgument *
brush_get_aspect_ratio_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gdouble aspect_ratio = 0.0;
......@@ -1443,15 +1443,15 @@ static GimpProcedure brush_get_aspect_ratio_proc =
{ { brush_get_aspect_ratio_invoker } }
};
static Argument *
static GimpArgument *
brush_get_angle_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gdouble angle = 0.0;
......@@ -1492,15 +1492,15 @@ static GimpProcedure brush_get_angle_proc =
{ { brush_get_angle_invoker } }
};
static Argument *
static GimpArgument *
brush_set_shape_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gint32 shape_in;
gint32 shape_out = 0;
......@@ -1547,15 +1547,15 @@ static GimpProcedure brush_set_shape_proc =
{ { brush_set_shape_invoker } }
};
static Argument *
static GimpArgument *
brush_set_radius_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gdouble radius_in;
gdouble radius_out = 0.0;
......@@ -1602,15 +1602,15 @@ static GimpProcedure brush_set_radius_proc =
{ { brush_set_radius_invoker } }
};
static Argument *
static GimpArgument *
brush_set_spikes_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gint32 spikes_in;
gint32 spikes_out = 0;
......@@ -1657,15 +1657,15 @@ static GimpProcedure brush_set_spikes_proc =
{ { brush_set_spikes_invoker } }
};
static Argument *
static GimpArgument *
brush_set_hardness_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gdouble hardness_in;
gdouble hardness_out = 0.0;
......@@ -1712,15 +1712,15 @@ static GimpProcedure brush_set_hardness_proc =
{ { brush_set_hardness_invoker } }
};
static Argument *
static GimpArgument *
brush_set_aspect_ratio_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gdouble aspect_ratio_in;
gdouble aspect_ratio_out = 0.0;
......@@ -1767,15 +1767,15 @@ static GimpProcedure brush_set_aspect_ratio_proc =
{ { brush_set_aspect_ratio_invoker } }
};
static Argument *
static GimpArgument *
brush_set_angle_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gdouble angle_in;
gdouble angle_out = 0.0;
......
......@@ -153,12 +153,12 @@ register_brush_select_procs (Gimp *gimp)
}
static Argument *
static GimpArgument *
brushes_popup_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
gchar *brush_callback;
......@@ -207,12 +207,12 @@ static GimpProcedure brushes_popup_proc =
{ { brushes_popup_invoker } }
};
static Argument *
static GimpArgument *
brushes_close_popup_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
gchar *brush_callback;
......@@ -247,12 +247,12 @@ static GimpProcedure brushes_close_popup_proc =
{ { brushes_close_popup_invoker } }
};
static Argument *
static GimpArgument *
brushes_set_popup_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
gchar *brush_callback;
......
......@@ -217,12 +217,12 @@ register_brushes_procs (Gimp *gimp)
}
static Argument *
static GimpArgument *
brushes_refresh_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gimp_data_factory_data_refresh (gimp->brush_factory);
return gimp_procedure_get_return_values (procedure, TRUE);
......@@ -244,15 +244,15 @@ static GimpProcedure brushes_refresh_proc =
{ { brushes_refresh_invoker } }
};
static Argument *
static GimpArgument *
brushes_get_list_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *filter;
gint32 num_brushes = 0;
gchar **brush_list = NULL;
......@@ -292,15 +292,15 @@ static GimpProcedure brushes_get_list_proc =
{ { brushes_get_list_invoker } }
};
static Argument *
static GimpArgument *
brushes_get_brush_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name = NULL;
gint32 width = 0;
gint32 height = 0;
......@@ -347,15 +347,15 @@ static GimpProcedure brushes_get_brush_proc =
{ { brushes_get_brush_invoker } }
};
static Argument *
static GimpArgument *
brushes_get_spacing_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gint32 spacing = 0;
GimpBrush *brush = gimp_context_get_brush (context);
......@@ -389,12 +389,12 @@ static GimpProcedure brushes_get_spacing_proc =
{ { brushes_get_spacing_invoker } }
};
static Argument *
static GimpArgument *
brushes_set_spacing_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
gint32 spacing;
......@@ -425,15 +425,15 @@ static GimpProcedure brushes_set_spacing_proc =
{ { brushes_set_spacing_invoker } }
};
static Argument *
static GimpArgument *
brushes_get_brush_data_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *name;
gchar *actual_name = NULL;
gdouble opacity = 0.0;
......
......@@ -207,15 +207,15 @@ register_buffer_procs (Gimp *gimp)
}
static Argument *
static GimpArgument *
buffers_get_list_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
Argument *args)
GimpArgument *args)
{
gboolean success = TRUE;
Argument *return_vals;
GimpArgument *return_vals;
gchar *filter;
gint32 num_buffers = 0;
gchar **buffer_list = NULL;
......@@ -255,15 +255,15 @@ static GimpProcedure buffers_get_list_proc =
{ { buffers_get_list_invoker } }