Gimp/app/dialogs
Michael Natterer afd88f0bf4 replace the value union by a GValue.
2006-03-30  Michael Natterer  <mitch@gimp.org>

	* app/pdb/procedural_db.[ch] (struct Argument): replace the value
	union by a GValue.

	(procedural_db_argument_init)
	(procedural_db_compat_arg_init): new functions to initialize
	an Argument. They call g_value_init() on the Argument's value.

	(procedural_db_arguments)
	(procedural_db_return_values): initialize the returned Argument
	arrays so their GValues are ready to use. Allow to get the
	(unsuccessful) return values of a NULL ProcRecord.

	(procedural_db_destroy_args): g_value_unset() the values. Added a
	"gboolean full_destroy" parameter. Its only effect is to destroy
	PDB arrays, everything else is nicely memory managed by GValue.

	(procedural_db_execute)
	(procedural_db_run_proc): do GValue stuff. Added n_args and
	n_return_vals parameters to execute().

	(procedural_db_execute_proc): private function to execute a
	procedure. Validates the passed in arguments using the registered
	GParamSpecs before passing them to the resp. exec method.

	* app/plug-in/plug-in-params.[ch] (plug_in_params_to_args): needs
	an array of ProcArgs now in order to initialize the Arguments'
	GValues correctly. Passing NULL ProcArgs uses
	procedural_db_compat_arg_init(), so procedures (plug-ins)
	returning more values than expected work.

	(plug_in_args_to_params): do GValue stuff here too.

	(plug_in_args_destroy): removed this function,
	procedural_db_destroy_args() does the same now.

	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run):
	simplified quite a bit because everything returns n_return_values
	now. Call plug_in_params_to_args() only of the procedure was found.

	(plug_in_handle_proc_return_priv): pass ProcRecs to
	plug_in_params_to_args().

	* 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/plug-in/plug-ins.c
	* app/plug-in/plug-in-progress.c
	* app/plug-in/plug-in-run.[ch]
	* app/widgets/gimphelp.c
	* app/widgets/gimppdbdialog.c
	* app/xcf/xcf.c
	* tools/pdbgen/pdb/fileops.pdb: changed accordingly: don't
	g_new/g_free Argument arrays, always use procedural_db_foo()
	functions. Use GValue functions to get/set Arguments.

	* tools/pdbgen/pdb.pl: added get_value_func and set_value_func to
	all PDB types. Removed id_func, id_ret_func and check_func. Added
	flags which indicated that a type is an ID. Removed unused utility
	functions.

	* tools/pdbgen/lib.pl: use the flag instead of looking at
	functions and value types.

	* tools/pdbgen/app.pl: use the get_value_func and set_value_func
	to marshal inargs and outargs. Removed all checks performed on
	inargs because that's done by GParamSpec validation now. Added the
	missing bits to register excluded values with GimpParamSpecEnum.

	* app/pdb/*_cmds.c: regenerated.
2006-03-29 23:56:07 +00:00
..
.cvsignore configure.in added new directory app/dialogs and link libappdialogs.c into 2004-09-13 15:15:23 +00:00
about-dialog.c replace the value union by a GValue. 2006-03-29 23:56:07 +00:00
about-dialog.h generate a NULL terminated array. 2005-08-19 16:32:01 +00:00
authors.h AUTHORS regenerated. 2005-09-02 11:14:40 +00:00
authors.xsl expemplary added artist and documenter roles to some contributors. 2005-08-20 02:28:29 +00:00
channel-options-dialog.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
channel-options-dialog.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
convert-dialog.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
convert-dialog.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
desaturate-dialog.c applied patch from Alexandre Prokoudine that adds a missing mnemonic (bug 2006-02-17 07:15:52 +00:00
desaturate-dialog.h Applied a patch (with minor modifications) from Karine Delvare that makes 2005-04-16 14:51:49 +00:00
dialogs-constructors.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
dialogs-constructors.h app/actions/dockable-actions.c app/actions/dockable-commands.[ch] 2006-01-17 10:08:50 +00:00
dialogs-types.h removed ColorDialog typedef. 2004-10-11 15:02:12 +00:00
dialogs.c app/actions/dockable-actions.c app/actions/dockable-commands.[ch] 2006-01-17 10:08:50 +00:00
dialogs.h fixed a typo in the double-inclusion guard. 2004-10-09 21:47:26 +00:00
file-open-dialog.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
file-open-dialog.h removed function file_open_dialog_show() and changed internal function 2004-09-13 16:01:52 +00:00
file-open-location-dialog.c introduced variants of file_utils_uri_to_utf8_filename() and 2005-10-01 22:43:22 +00:00
file-open-location-dialog.h changed file_open_location_dialog_show() to 2004-09-09 09:47:33 +00:00
file-save-dialog.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
file-save-dialog.h app/dialogs/Makefile.am removed these files. 2004-09-13 16:37:01 +00:00
grid-dialog.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
grid-dialog.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
image-merge-layers-dialog.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
image-merge-layers-dialog.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
image-new-dialog.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
image-new-dialog.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
image-properties-dialog.c app/actions/image-actions.c app/actions/view-actions.c use new stock icons 2005-12-30 01:45:40 +00:00
image-properties-dialog.h More unfinished replacement for the info window: 2005-04-04 22:34:29 +00:00
image-scale-dialog.c did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
image-scale-dialog.h did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
info-dialog.c unset focus-on-map for info dialogs. 2006-02-15 14:03:42 +00:00
info-dialog.h renamed info_dialog_popdown() to info_dialog_hide() and 2004-01-21 11:16:57 +00:00
keyboard-shortcuts-dialog.c app/dialogs/dialogs-constructors.c include a check button for the 2005-10-05 23:01:45 +00:00
keyboard-shortcuts-dialog.h app/dialogs/dialogs-constructors.c include a check button for the 2005-10-05 23:01:45 +00:00
layer-add-mask-dialog.c app/dialogs/convert-dialog.c app/dialogs/image-merge-layers-dialog.c 2005-09-02 12:09:32 +00:00
layer-add-mask-dialog.h app/dialogs/Makefile.am one more dialog split out of actions/. 2004-10-23 14:02:53 +00:00
layer-options-dialog.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
layer-options-dialog.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
Makefile.am app/dialogs/Makefile.am app/dialogs/keyboard-shortcuts-dialog.[ch] 2005-09-30 00:07:21 +00:00
makefile.msc updated 2006-02-26 19:00:33 +00:00
module-dialog.c applied capitalization patches contributed by Stephan Binner. Fixes bug 2005-08-23 00:18:08 +00:00
module-dialog.h configure.in added new directory app/dialogs and link libappdialogs.c into 2004-09-13 15:15:23 +00:00
offset-dialog.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
offset-dialog.h renamed convert_to_indexed() to convert_dialog_new() and return the 2004-04-20 13:44:19 +00:00
palette-import-dialog.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
palette-import-dialog.h added -DGDK_PIXBUF_DISABLE_DEPRECATED to CPPFLAGS. 2001-12-17 23:41:01 +00:00
preferences-dialog.c factored out some code to a utility function. 2006-03-10 16:40:09 +00:00
preferences-dialog.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
print-size-dialog.c go back to using dpi as the default resolution unit. 2005-08-18 15:08:49 +00:00
print-size-dialog.h app/dialogs/Makefile.am new files for the Print Size dialog that is still 2004-11-13 22:27:39 +00:00
quit-dialog.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
quit-dialog.h Applied (slightly modified) patch from Sylvain Foret which adds "Close 2005-09-24 19:30:08 +00:00
resize-dialog.c app/actions/data-commands.c app/actions/file-commands.c 2005-09-27 18:51:44 +00:00
resize-dialog.h app/actions/image-commands.c app/actions/layers-commands.c 2005-08-24 17:22:07 +00:00
resolution-calibrate-dialog.c fix for setups with multiple monitors on the same screen. 2005-02-14 13:51:02 +00:00
resolution-calibrate-dialog.h removed the monitor calibration from the user installation process. It's 2004-06-09 23:51:06 +00:00
scale-dialog.c added a GtkSizeGroup member and put all labels into the group. 2005-11-02 09:27:15 +00:00
scale-dialog.h added a resolution label similar to one in the template editor. Prepared 2004-10-26 23:31:34 +00:00
stroke-dialog.c use gtk_object_sink() to destroy a floating widget. 2005-09-06 16:00:36 +00:00
stroke-dialog.h added labels ("_Stroke") to the SLEECTION_STROKE and PATH_STROKE stock 2004-10-23 10:28:56 +00:00
template-options-dialog.c Applied a patch from Patrice Tremblay that makes (almost) all dialogs obey 2005-02-08 20:40:33 +00:00
template-options-dialog.h app/dialogs/Makefile.am the new/edit template dialog. 2004-10-22 18:13:46 +00:00
tips-dialog.c applied capitalization patches contributed by Stephan Binner. Fixes bug 2005-08-23 00:18:08 +00:00
tips-dialog.h Finally landed the new GimpConfig based gimprc parser. It's not finished 2002-11-18 20:50:31 +00:00
tips-parser.c new file holding the opaque typedefs for libgimpconfig. Includes 2005-01-25 20:30:20 +00:00
tips-parser.h updated 2002-02-25 18:36:03 +00:00
user-install-dialog.c app/Makefile.am new file collecting some strings about the app. 2005-12-28 20:45:52 +00:00
user-install-dialog.h Cleaned up the app init and exit stuff even more. Also reduces the number 2003-10-02 11:26:26 +00:00
vectors-export-dialog.c Use the canonical form for signal names. 2005-05-27 16:51:39 +00:00
vectors-export-dialog.h app/dialogs/Makefile.am app/dialogs/vectors-export-dialog.[ch] new files. 2004-10-23 22:54:41 +00:00
vectors-import-dialog.c app/dialogs/vectors-import-dialog.c (vectors_import_dialog_new) fixed 2006-03-03 22:46:01 +00:00
vectors-import-dialog.h app/dialogs/Makefile.am app/dialogs/vectors-export-dialog.[ch] new files. 2004-10-23 22:54:41 +00:00
vectors-options-dialog.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
vectors-options-dialog.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00