1. 04 Apr, 2006 2 commits
    • Michael Natterer's avatar
      app/pdb/pdb-types.h removed struct GimpArgument, struct GimpArgumentSpec, · 17aada11
      Michael Natterer authored
      2006-04-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/pdb-types.h
      	* app/pdb/gimpargument.[ch]: removed struct GimpArgument, struct
      	GimpArgumentSpec, gimp_argument_init() and
      	gimp_arguments_destroy().
      
      	* app/pdb/gimpprocedure.h (struct GimpProcedure): use arrays of
      	GParamSpec* for kepping proc inargs/outargs.
      
      	* app/pdb/gimpprocedure.[ch]
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-params.[ch]
      	* app/plug-in/plug-in-proc-frame.[ch]
      	* app/plug-in/plug-in-run.[ch]: use GValueArrays for procedure
      	arguments and return values. Removed all n_args and n_return_vals
      	parameters because GValueArrays know their length.
      
      	* 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/procedural-db-query.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-rc.c
      	* 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. Also
      	removed #include "gimpargument.h" from most files.
      
      	* app/pdb/*_cmds.c: regenerated.
      17aada11
    • Sven Neumann's avatar
      moved new code to a utility function. Avoid use of deprecated Pango API. · 645edc9c
      Sven Neumann authored
      2006-04-04  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimpfont.c: moved new code to a utility function. Avoid
      	use of deprecated Pango API. Removed tabs and trailing whitespace.
      645edc9c
  2. 03 Apr, 2006 11 commits
    • Tor Lillqvist's avatar
      Provide script-specific short sample strings instead of "Aa" for fonts · 0cd9648a
      Tor Lillqvist authored
      2006-04-04  Tor Lillqvist  <tml@novell.com>
      
      	* app/text/gimpfont.c (gimp_font_get_new_preview): Provide
      	script-specific short sample strings instead of "Aa" for fonts
      	that seem to be designed for some specific non-Latin
      	script. Pending a complete redesign and reimplementation of
      	font selection, this is at least an improvement, and a partial
      	solution to #137624.
      0cd9648a
    • Michael Natterer's avatar
      don't compare GType with GimpPDBArgType (never "clean up" before · bde662b2
      Michael Natterer authored
      2006-04-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-params.c (plug_in_params_to_args): don't
      	compare GType with GimpPDBArgType (never "clean up" before
      	committing ;)
      bde662b2
    • Michael Natterer's avatar
      added a shitload of new GTypes and corresponding GParamSpecs to use them · 070a3625
      Michael Natterer authored
      2006-04-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: added a shitload of new GTypes and
      	corresponding GParamSpecs to use them as PDB arguments.
      	Each GimpPDBArgType has one or more corresponding GTypes in the
      	core now.
      
      	* app/pdb/gimpargument.[ch] (struct GimpArgument)
      	(struct GimpArgumentSpec): removed "value" member because the
      	GValue's/GParamSpec's GType carries just as much information now.
      
      	(gimp_argument_type_to_pdb_arg_type): new function which maps
      	GTypes to GimpPDBArgType.
      
      	(gimp_pdb_arg_type_to_string): formerly known as
      	procedural_db_type_name().
      
      	* app/pdb/gimpprocedure.[ch]
      	* app/pdb/procedural_db.[ch]: completely switch to GValue. Use the
      	new GParamSpecs for procedure arguments. GimpPDBArgType is only
      	used for adding compat args/values of plug-in procedures.
      
      	(procedural_db_run_proc): the va_list expects a sequence of
      	(GType, value, GType, value, ..., G_TYPE_NONE) now.
      
      	* app/plug-in/plug-in-params.[ch]: changed accordingly.
      
      	(plug_in_param_defs_check): removed this function.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_install): use
      	plug_in_proc_args_check() instead and initialize the GimpProcedure
      	before doing so.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb.pl: use the new param spec types and their
      	utility functions. Changed argument/value registration
      	accordingly.
      
      	* app/pdb/procedural-db-query.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-in-progress.c
      	* app/plug-in/plug-in-rc.c
      	* 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
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      070a3625
    • Michael Natterer's avatar
      remove newline flood. · 810f5dc4
      Michael Natterer authored
      2006-04-03  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/app.pl: remove newline flood.
      
      	* app/pdb/internal_procs.c: regenerated shorter.
      810f5dc4
    • Francisco Javier F. Serrador's avatar
      Updated Spanish translation. · 3d98d2d6
      Francisco Javier F. Serrador authored
      2006-04-03  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>
      
      	* es.po: Updated Spanish translation.
      3d98d2d6
    • Sven Neumann's avatar
      improved API documentation for gimp-drawable-fill (bug #336864). · 318f4ca7
      Sven Neumann authored
      2006-04-03  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/drawable.pdb: improved API documentation for
      	gimp-drawable-fill (bug #336864).
      
      	* app/pdb/drawable_cmds.c
      	* libgimp/gimpdrawable_pdb.c: regenerated.
      318f4ca7
    • Sven Neumann's avatar
      initialize "keep-aspect" to FALSE · a8500052
      Sven Neumann authored
      a8500052
    • Sven Neumann's avatar
      reduced precision of the display of time since the last change. · 03b750a4
      Sven Neumann authored
      2006-04-03  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-close.c: reduced precision of the
      	display of time since the last change.
      03b750a4
    • Sven Neumann's avatar
      added a GimpSizeBox as a replacement for the InfoDialog widgets. Needs · 4a8ee7f3
      Sven Neumann authored
      2006-04-03  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpscaletool.c: added a GimpSizeBox as a replacement
      	for the InfoDialog widgets. Needs more work ...
      4a8ee7f3
    • Sven Neumann's avatar
      5666cd6b
    • Sven Neumann's avatar
      added an install hook that touches the toplevel icon theme directory as · 15118a68
      Sven Neumann authored
      2006-04-03  Sven Neumann  <sven@gimp.org>
      
      	* desktop/Makefile.am: added an install hook that touches the
      	toplevel icon theme directory as required by the spec.
      15118a68
  3. 02 Apr, 2006 10 commits
    • Michael Natterer's avatar
      handle storage of GIMP_PDB_INT32 plug-in params in GValues of type · 51bea46e
      Michael Natterer authored
      2006-04-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-params.c: handle storage of GIMP_PDB_INT32
      	plug-in params in GValues of type G_TYPE_UINT, they are used for
      	guides and tattoos.
      
      	* tools/pdbgen/pdb/guides.pdb (image_find_next_guide): don't
      	validate the "guide" parameter, because 0 is an allowed value
      	here.
      
      	* app/pdb/guides_cmds.c: regenerated.
      51bea46e
    • Karine Delvare's avatar
      square constraint with shift key. · 5e69f1fc
      Karine Delvare authored
      2006-04-02  Karine Delvare  <edhel@gimp.org>
      
      	* app/tools/gimprectangletool.c: square constraint with shift key.
      5e69f1fc
    • Michael Natterer's avatar
      Silence compiler warnings about... · 4d4873a5
      Michael Natterer authored
      2006-04-02  Michael Natterer  <mitch@gimp.org>
      
      	Silence compiler warnings about...
      
      	* app/config/gimprc-unknown.c: ...unused return value of
      	g_slist_concat().
      
      	* app/tools/gimpdrawtool.c: ...uninitialized variabe.
      
      	* app/xcf/xcf-save.c: ...pointer signedness.
      4d4873a5
    • Sven Neumann's avatar
      libgimp/libgimp-sections.txt updated. · e284712c
      Sven Neumann authored
      2006-04-02  Sven Neumann  <sven@gimp.org>
      
      	* libgimp/libgimp-sections.txt
      	* libgimpbase/libgimpbase-sections.txt: updated.
      
      	* libgimp/tmpl/gimpenums.sgml
      	* libgimp/tmpl/gimpproceduraldb.sgml
      	* libgimp/tmpl/gimpvectors.sgml
      	* libgimpbase/tmpl/gimpparasite.sgml: regenerated.
      e284712c
    • Michael Natterer's avatar
      silence warning about unused return value of g_list_concat(). · 15118f18
      Michael Natterer authored
      2006-04-02  Michael Natterer  <mitch@gimp.org>
      
      	* libgimp/gimptile.c (gimp_tile_cache_insert): silence warning
      	about unused return value of g_list_concat().
      15118f18
    • Michael Natterer's avatar
      added a const_type member to all PDB types, Removed casts from all · 20946c66
      Michael Natterer authored
      2006-04-02  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb.pl: added a const_type member to all PDB types,
      	Removed casts from all get_value_funcs which return const
      	pointers, they can stay const now.
      
      	* tools/pdbgen/app.pl: use the const_type to declare input args.
      
      	* app/pdb/gimpprocedure.h: pass const arguments to the internal
      	marshallers.
      
      	* app/xcf/xcf.c: changed accordingly.
      
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/paths.pdb: added some const qualifiers.
      
      	* tools/pdbgen/lib.pl: use the const_type for input args instead
      	of adding the const qualifier based on the type.
      
      	* app/pdb/_cmds.c
      	* libgimp/gimpparasite_pdb.[ch]: regenerated.
      
      	Unrelated:
      
      	* app/pdb/gimpargument.c (gimp_arguments_destroy): no need any
      	more to destroy the argument array in reverse order (we don't need
      	access to the previous element because arrays in GValues memory
      	manage themselves now).
      20946c66
    • Michael Natterer's avatar
      removed the return value again. · 5fb387ea
      Michael Natterer authored
      2006-04-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparasitelist.[ch] (gimp_parasite_list_add): removed
      	the return value again.
      
      	(gimp_parasite_list_find): return a const parasite.
      
      	* app/core/gimp-parasites.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpitem.[ch] (*_parasite_attach): take a const
      	parasite. Make a local copy of the parasite struct because
      	gimp_parasite_shift_parent() changes it.
      
      	(*_parasite_find): return a const parasite.
      
      	* app/core/gimptemplate.c
      	* app/text/gimptextlayer-xcf.c
      	* app/xcf/xcf-load.c: changed accordingly.
      5fb387ea
    • Michael Natterer's avatar
      use "const GimpParasite*" insted of gpointer for the parasite parameter. · 5e28089d
      Michael Natterer authored
      2006-04-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-undo-push.[ch]
      	(gimp_image_undo_push_image,item_parasite): use "const GimpParasite*"
      	insted of gpointer for the parasite parameter.
      
      	* app/core/gimpparasitelist.[ch] (gimp_parasite_list_add): added
      	const to the parasite parameter, return the actually added
      	parasite (which is a copy).
      
      	* app/core/gimpunit.[ch] (_gimp_unit_new): added const to all
      	string parameters.
      5e28089d
    • Michael Natterer's avatar
      use the variable initializer defined with the PDB type instead of figuring · 850dcb48
      Michael Natterer authored
      2006-04-02  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/lib.pl: use the variable initializer defined with
      	the PDB type instead of figuring it manually. Removed a line of
      	code that checked for enums without "Gimp" prefix.
      
      	* libgimp/gimpbrush_pdb.c
      	* libgimp/gimpchannel_pdb.c
      	* libgimp/gimpcontext_pdb.c
      	* libgimp/gimpgradient_pdb.c
      	* libgimp/gimplayer_pdb.c
      	* libgimp/gimpunit_pdb.c
      	* libgimp/gimpvectors_pdb.c: all doubles are initialized with 0.0
      	instead of 0 now.
      850dcb48
    • Michael Natterer's avatar
      removed GIMP_TYPE_PARASITE, GIMP_TYPE_PARAM_PARASITE and the GimpRGB · 8a856045
      Michael Natterer authored
      2006-04-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: removed GIMP_TYPE_PARASITE,
      	GIMP_TYPE_PARAM_PARASITE and the GimpRGB utility functions. Some
      	fixes/cleanup in the new array and string array code.
      
      	* libgimpbase/gimpbase.def
      	* libgimpbase/gimpparasite.[ch]
      	* libgimpcolor/gimpcolor.def
      	* libgimpcolor/gimprgb.[ch]: added the parasite and rgb stuff here.
      
      	* app/pdb/gimpargument.c: #include "libgimpbase/gimpbase.h"
      
      	* app/pdb/procedural_db.c: removed unused variable.
      8a856045
  4. 01 Apr, 2006 3 commits
    • Marco Ciampa's avatar
      Updated italian translation · ee786585
      Marco Ciampa authored
      ee786585
    • Karine Delvare's avatar
      don't automatically auto-shrink. · a10a5713
      Karine Delvare authored
      2006-04-01  Karine Delvare  <edhel@gimp.org>
      
      	* app/tools/gimpnewrectselecttool.c: don't automatically
      	auto-shrink.
      a10a5713
    • Michael Natterer's avatar
      added struct GimpArray which can keep static or allocated data. Added · d05d512d
      Michael Natterer authored
      2006-04-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: added struct GimpArray which can
      	keep static or allocated data. Added boxed types GIMP_TYPE_ARRAY
      	and GIMP_TYPE_STRING_ARRAY. Added GParamSpecs for PDB int32,
      	int16, int8, float and string arrays. Added functions to get, dup,
      	set and set_static the various arrays from/to GValues.
      
      	* app/pdb/gimpprocedure.c
      	* app/pdb/procedural_db.c
      	* app/plug-in/plug-in-params.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb.pl: use the new param pspecs and gimp_value
      	functions to keep arrays in GimpArguments.
      
      	* app/pdb/gimpargument.[ch] (gimp_arguments_destroy): removed
      	parameter "gboolean full_destroy". It's not needed any longer
      	because the GValues fully memory-manage all their data now.
      
      	* app/batch.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimppdbprogress.c
      	* app/dialogs/about-dialog.c
      	* app/dialogs/print-size-dialog.c
      	* app/dialogs/resize-dialog.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-run.c
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppdbdialog.c
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/buffer_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/fileops_cmds.c
      	* app/pdb/fonts_cmds.c
      	* app/pdb/gimpargument.c
      	* app/pdb/gimpargument.h
      	* app/pdb/gimpprocedure.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/palettes_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/pattern_cmds.c
      	* app/pdb/patterns_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/vectors_cmds.c: regenerated.
      
      	... and ported everything to perl btw...
      d05d512d
  5. 31 Mar, 2006 13 commits
    • Michael Natterer's avatar
      app/pdb/pdb-types.h renamed struct Argument to GimpArgument and struct · 03c28ec7
      Michael Natterer authored
      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.
      03c28ec7
    • Michael Natterer's avatar
      app/pdb/Makefile.am moved Argument and ProcArg structs and functions to · 46a50b7e
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/Makefile.am
      	* app/pdb/gimpargument.[ch]: moved Argument and ProcArg structs
      	and functions to these new files. Renamed functions to
      	gimp_argument_foo().
      
      	* app/pdb/procedural_db.[ch]: removed them here.
      
      	* 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/gimpprocedure.c
      	* app/pdb/procedural_db_cmds.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-params.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-run.c
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppdbdialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/fileops.pdb: changed #includes and function
      	calls accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      46a50b7e
    • Michael Natterer's avatar
      app/pdb/pdb-types.h renamed struct ProcRecord to GimpProcedure. Added · fe90ae76
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/pdb-types.h
      	* app/pdb/gimpprocedure.h: renamed struct ProcRecord to
      	GimpProcedure. Added GIMP_IS_PROCEDURE() which checks for != NULL.
      
      	* app/pdb/gimpprocedure.c
      	* app/pdb/procedural-db-query.c
      	* app/pdb/procedural_db.[ch]
      	* app/batch.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/file/file-open.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-proc-def.h
      	* app/plug-in/plug-in-proc-frame.[ch]
      	* 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-in.[ch]
      	* app/plug-in/plug-ins-query.c
      	* app/plug-in/plug-ins.[ch]
      	* app/widgets/gimphelp.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/app.pl: changed accordingly. Renamed 'proc_rec' and
      	similarily named variables and parameters to 'procedure'.
      
      	* tools/pdbgen/pdb/procedural_db.pdb: changed 'procedure'
      	parameters to 'procedure_name'.
      
      	* app/pdb/*_cmds.c
      	* libgimp/gimpproceduraldb_pdb.[ch]: regenerated.
      fe90ae76
    • Michael Natterer's avatar
      added new member "gboolean static_strings", so the ProcRecord struct and · 3cb83051
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/gimpprocedure.h (struct ProcRecord): added new member
      	"gboolean static_strings", so the ProcRecord struct and its
      	strings can be marked as static separately.
      
      	* app/pdb/gimpprocedure.[ch] (gimp_procedure_dispose): removed.
      
      	(gimp_procedure_free): don't free the struct if it's static.
      
      	(gimp_procedure_set_strings)
      	(gimp_procedure_set_static_strings)
      	(gimp_procedure_take_strings): new functions to set a procedure's
      	strings.
      
      	* app/pdb/procedural_db.c (procedural_db_free_entry): simply call
      	gimp_procedure_free() on all procedures, the memory-manage
      	themselves now.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_install): use
      	gimp_procedure_set_strings() instead of setting them manually.
      
      	* app/xcf/xcf.c: register gimp-xcf-load and gimp-xcf-save
      	dynamically so further ProcRecord struct changes don't affect this
      	file.
      
      	* tools/pdbgen/app.pl: set "static_proc" to TRUE for static procs.
      
      	* app/pdb/*_cmds.c: regenerated.
      3cb83051
    • Michael Natterer's avatar
      changed "icon_data" from gchar* to guint8*. · c1475c4a
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-proc-def.h (struct PlugInProcDef)
      	(plug_in_proc_def_set_icon): changed "icon_data" from gchar* to
      	guint8*.
      
      	* app/plug-in/plug-in-proc-def.c
      	* app/plug-in/plug-in-rc.c
      	* app/xcf/xcf.c: cast a bit to the fix resulting warnings. There
      	are less casts needed than before.
      c1475c4a
    • Michael Natterer's avatar
      added new member "gboolean static_proc" which indicates whether a · 8cffac44
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/gimpprocedure.[ch] (struct ProcRecord): added new member
      	"gboolean static_proc" which indicates whether a ProcRecord struct
      	and its strings are static.
      
      	(gimp_procedure_dispose): new function which frees the procedure's
      	args and values, and its strings if it is not static.
      
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl: set "static_proc" to TRUE for static procs.
      
      	* app/pdb/procedural_db.c (procedural_db_free): call
      	gimp_procedure_free() or gimp_procedure_dispose(), depending on
      	procedure->static_proc.
      
      	* app/pdb/procedural_db.h: removed #if 0'ed cruft.
      
      	* app/plug-in/plug-in-proc-def.[ch]: removed
      	plug_in_proc_def_get_proc().
      
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* tools/pdbgen/pdb/fileops.pdb: access proc_def->procedure directly.
      
      	* app/pdb/*_cmds.c: regenerated.
      8cffac44
    • Sven Neumann's avatar
      app/dialogs/Makefile.am app/dialogs/dialogs-types.h app/dialogs/dialogs.c · 9996bb7a
      Sven Neumann authored
      2006-03-31  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/dialogs-types.h
      	* app/dialogs/dialogs.c
      	* app/dialogs/info-dialog.[ch]: good bye InfoDialog.
      
      	* app/tools/gimpperspectivetool.[ch]
      	* app/tools/gimprotatetool.[ch]
      	* app/tools/gimpsheartool.[ch]
      	* app/tools/gimptransformtool.[ch]: use GimpToolDialog instead of
      	InfoDialog and add the widgets manually.
      
      	* app/tools/gimpscaletool.c: commented out use of InfoDialog. This
      	tools still needs to be ported to GimpToolDialog.
      9996bb7a
    • Michael Natterer's avatar
      added gimp_procedure_new() and gimp_procedure_free() functions. · 49da8cb2
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/gimpprocedure.[ch]: added gimp_procedure_new() and
      	gimp_procedure_free() functions.
      
      	* app/plug-in/plug-in-proc-def.h (struct PlugInProcDef): use a
      	ProcRecord pointer instead of including the entire struct.
      
      	* app/plug-in/plug-in-proc-def.c: use the new() and free()
      	functions above to allocate/free the ProcRecord.
      
      	* app/actions/plug-in-actions.c
      	* app/actions/plug-in-commands.c
      	* app/menus/plug-in-menus.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-run.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins-query.c
      	* app/plug-in/plug-ins.c
      	* app/xcf/xcf.c: changed accordingly.
      
      	Unrelated:
      
      	* app/pdb/gimpprocedure.c (gimp_procedure_execute): be more verbose
      	when warning about out-of-bounds parameter values.
      
      	* tools/pdbgen/pdb/fileops.pdb: allow GIMP_RUN_WITH_LAST_VALS for
      	file_save because indirect saving (e.g. remote or compressed)
      	needs it.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      49da8cb2
    • Sven Neumann's avatar
      fixed compiler warning and sprinkled some empty lines for readability. · 20a48412
      Sven Neumann authored
      2006-03-31  Sven Neumann  <sven@gimp.org>
      
      	* app/paint-funcs/scale-funcs.c: fixed compiler warning and
      	sprinkled some empty lines for readability.
      20a48412
    • Michael Natterer's avatar
      always set dockable->blurb to NULL, also if its memory is shared with · 87e7cb1f
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdockable.c (gimp_dockable_destroy): always set
      	dockable->blurb to NULL, also if its memory is shared with
      	dockable->name.
      87e7cb1f
    • Sven Neumann's avatar
      use "gtk-dialog-question" instead of "gimp-wilber-eek" to indicate a · bb28d144
      Sven Neumann authored
      2006-03-31  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimagefile.c (gimp_imagefile_get_new_pixbuf): use
      	"gtk-dialog-question" instead of "gimp-wilber-eek" to indicate a
      	missing thumbnail.
      bb28d144
    • Michael Natterer's avatar
      app/pdb/Makefile.am new files containing the functions operating on *one* · 1dac2783
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/Makefile.am
      	* app/pdb/gimpprocedure.[ch]: new files containing the functions
      	operating on *one* procedure. Factored out of procedural_db.[ch]
      	and renamed to gimp_procedure_foo().
      
      	* app/pdb/procedural_db.[ch]: removed them here.
      
      	* app/pdb/procedural-db-query.c
      	* app/batch.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimppdbprogress.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-proc-def.[ch]
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-run.c
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppdbdialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/app.pl: changed #includes and function calls
      	accordingly. No logic changed.
      
      	* app/pdb/*_cmds.c: regenerated.
      1dac2783
    • Sven Neumann's avatar
      applied a patch from Guillermo S. Romero that adds basic support for · 5e969a4a
      Sven Neumann authored
      2006-03-31  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/common/psd_save.c: applied a patch from Guillermo
      	S. Romero that adds basic support for saving layer masks.
      5e969a4a
  6. 30 Mar, 2006 1 commit
    • Sven Neumann's avatar
      use doubles for src coordinates. Added properties for "src-drawable", · 0b12c776
      Sven Neumann authored
      2006-03-30  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimpclone.[ch]: use doubles for src coordinates. Added
      	properties for "src-drawable", "src-x" and "src-y".
      
      	* tools/pdbgen/pdb/paint_tools.pdb: resurrected cloning from
      	drawables over the PDB. This used to be broken for quite a while.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      0b12c776