1. 20 Nov, 2002 2 commits
    • Michael Natterer's avatar
      added GIMP_PARAM_RESTART and GIMP_PARAM_CONFIRM flags and changed all · 8b6ec3b3
      Michael Natterer authored
      2002-11-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig-params.h: added GIMP_PARAM_RESTART and
      	GIMP_PARAM_CONFIRM flags and changed all param spec macros
      	to have a "flags" parameter.
      
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpdisplayconfig.c
      	* app/config/gimpguiconfig.c: tag the values which need restart or
      	confirmation with the resp. flags. Changed all macro calls
      	accordingly.
      
      	* app/core/gimpcontext.c
      	* app/widgets/gimpdeviceinfo.c: changed macro calls accordingly.
      8b6ec3b3
    • Michael Natterer's avatar
      s/gimp_config_equal/gimp_config_is_equal_to/ to match the implementation. · c3391322
      Michael Natterer authored
      2002-11-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig.h:
      	s/gimp_config_equal/gimp_config_is_equal_to/ to match the
      	implementation.
      c3391322
  2. 19 Nov, 2002 1 commit
  3. 18 Nov, 2002 4 commits
    • Sven Neumann's avatar
      Finally landed the new GimpConfig based gimprc parser. It's not finished · 073e533a
      Sven Neumann authored
      2002-11-18  Sven Neumann  <sven@gimp.org>
      
      	Finally landed the new GimpConfig based gimprc parser. It's not
      	finished yet but we need to start somewhere. This release removes
      	the old gimprc.[ch] files. The gimprc format changes slightly, but
      	the changes are minimal. The Preferences dialog is temporarily
      	disabled since it still needs to be ported. If you are are afraid,
      	stay away from CVS for a few days ;-)
      
      	* app/Makefile.am
      	* app/gimprc.[ch]: removed the old gimprc system.
      
      	* app/base/Makefile.am
      	* app/base/base-config.[ch]: removed these files in favor of
      	config/gimpbaseconfig.[ch].
      
      	* app/core/Makefile.am
      	* app/core/gimpcoreconfig.[ch]: removed these files in favor of
      	config/gimpcoreconfig.[ch].
      
      	* app/config/Makefile.am
      	* app/config/config-types.h: moved typedefs into this new file.
      
      	* app/config/gimpbaseconfig.[ch]
      	* app/config/gimpcoreconfig.[ch]
      	* app/config/gimpdisplayconfig.[ch]
      	* app/config/gimpguiconfig.[ch]
      	* app/config/gimprc.[ch]
      	* app/config/test-config.c: brought into shape for real use.
      
      	* app/base/base-types.h: include config/config-types.h here. Added
      	a global GimpBaseConfig *base_config variable to ease migration.
      
      	* app/gui/Makefile.am: temporarily disabled the preferences dialog.
      
      	* app/app_procs.c
      	* app/undo.c
      	* app/undo_history.c
      	* app/base/base.[ch]
      	* app/base/gimphistogram.c
      	* app/base/pixel-processor.c
      	* app/base/temp-buf.c
      	* app/base/tile-cache.c
      	* app/core/core-types.h
      	* app/core/gimp-documents.c
      	* app/core/gimp.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpmodules.c
      	* app/core/gimppattern.c
      	* app/display/Makefile.am
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/display/gimpnavigationview.c
      	* app/file/file-save.c
      	* app/gui/device-status-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/paths-dialog.c
      	* app/gui/resize-dialog.c
      	* app/gui/session.c
      	* app/gui/test-commands.c
      	* app/gui/tips-dialog.c
      	* app/gui/tips-dialog.h
      	* app/gui/user-install-dialog.c
      	* app/gui/view-commands.c
      	* app/paint/gimppaintcore.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimptexttool.[ch]
      	* app/tools/selection_options.c
      	* app/tools/tools.c
      	* app/tools/transform_options.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpitemfactory.c
      	* app/widgets/gimpselectioneditor.c
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gimprc.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: use the new config system
      	instead of the old gimprc stuff.
      
      	* etc/gimprc.in
      	* etc/gimprc_user.in: adapted to the new gimprc format. Will update
      	the man-page later...
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/gimprc_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/transform_tools_cmds.c
      	* libgimp/gimpgimprc_pdb.c: regenerated.
      073e533a
    • Sven Neumann's avatar
      improved error message for the special case of store_unknown_tokens == · 6e5f6a0b
      Sven Neumann authored
      2002-11-18  Sven Neumann  <neo@wintermute>
      
      	* app/config/gimpconfig-deserialize.c
      	(gimp_config_deserialize_properties): improved error message for
      	the special case of store_unknown_tokens == TRUE.
      6e5f6a0b
    • Sven Neumann's avatar
      try to substitute paths of the form ${foo} in the unknown token value. · 79101957
      Sven Neumann authored
      2002-11-18  Sven Neumann  <neo@wintermute>
      
      	* app/config/gimpconfig.c (gimp_config_add_unknown_token): try to
      	substitute paths of the form ${foo} in the unknown token value.
      
      	* data/environ/Makefile.am: fixed a comment.
      79101957
    • Sven Neumann's avatar
      allow numbers when deserializing enum values. · e90728cf
      Sven Neumann authored
      2002-11-18  Sven Neumann  <neo@wintermute>
      
      	* app/config/gimpconfig-deserialize.c (gimp_config_deserialize_enum):
      	allow numbers when deserializing enum values.
      e90728cf
  4. 12 Nov, 2002 1 commit
    • Manish Singh's avatar
      don't say "Now type 'make'" if configure failed. · 2eef2afb
      Manish Singh authored
      2002-11-11  Manish Singh  <yosh@gimp.org>
      
              * autogen.sh: don't say "Now type 'make'" if configure failed.
      
              * app/core/Makefile.am
              * app/core/core-types.h
              * app/core/gimpenvirontable.[ch]: Implemented GimpEnvironTable,
              keeps an envp array built from system environment and *.env files.
      
              * app/core/gimp.[ch]: keep a GimpEnvironTable around.
      
              * app/gimprc.c
              * app/config/gimpcoreconfig.[ch]
              * app/core/gimpcoreconfig.h
              * app/gui/preferences-dialog.c
              * app/gui/user-install-dialog.c: environ-path config stuff
      
              * themes/Default/images/preferences/Makefile.am
              * themes/Default/images/preferences/folder-environ.png: just copied
              folder.png here, need a better one.
      
              * app/plug-in/plug-in.c: quick hack to use the envp in the
              GimpEnvironTable. Only on unix now, should really port the
              code to use g_spawn_*.
      
              * data/misc/user_install
              * etc/gimprc.in: add environ-path stuff
      
              * data/environ/Makefile: creates system environ directory.
      
              * data/environ/default.env: sample env file info.
      
              * data/Makefile.am
              * configure.in: added data/environ dir
      
              * plug-ins/pygimp/Makefile.am: python module files get put in
              $(gimpplugindir)/python now, install pygimp.env to point to it.
      
              * plug-ins/pygimp/doc/Makefile.am: minor clean up.
      2eef2afb
  5. 10 Oct, 2002 1 commit
  6. 21 Sep, 2002 1 commit
    • Sven Neumann's avatar
      fixed some macros that were never used. · cf656483
      Sven Neumann authored
      2002-09-21  Sven Neumann  <sven@gimp.org>
      
              * app/config/gimpconfig-params.h: fixed some macros that were never used.
      
              * data/images/gimp_splash.png: flattened the splash image. The alpha channel
              crashed servers with buggy XRender extension (#93841) (and should have never
              been there anyway).
      cf656483
  7. 06 Sep, 2002 1 commit
    • Hans Breuer's avatar
      updated · e17baf71
      Hans Breuer authored
      2002-09-06  Hans Breuer  <hans@breuer.org>
      
      	* */*/makefile.msc : updated
      
      	* libgimptool/makefile.msc : new file, libgimptool
      	is currently build as static lib due to references
      	into app/core
      
      	* themes/Default/makefile.msc : removed
      	* themes/Default/images/makefile.msc : new file
      
      	* libgimpwidgets/makefile.msc libgimpwidgets/gimpwidgets.c
      	updated (externals)
      
      	* app/paint-funcs.c : replaced gccism varibale size array on
      	stack with portable alloca, removed sizeof(buf) check which
      	must fail now.
      
      	* app/config/gimpconfig.c : get write/close protos
      	on win32 from io.h
      	* app/config/gimprc.c : dito and <string.h>
      	* app/config/gimpscanner.c : <string.h> only
      
      	* app/core/gimpcontainer.c : workaround for clumsy
      	compilers not supporting vararg macros
      
      	* app/core/gimpdocumentlist.c app/core/gimpparasitelist.c
      	include <io.h> on win32
      
      	* app/widgets/gimpdocumentview.c
      	  app/widgets/gimpimagedock.c
      	  app/widgets/gimppreview.c : add #ifdef __GNUC__
      	to avoid breaking on non standard pragma #warning.
      
      	* app/gui/session.c : include <string.h>
      
      	* regexrepl/makefile.msc : build as dll
      
      	* plug-ins/makefile.msc : updated
      
      	* plug-ins/common/pix.c : open file binary
      
      	* plug-ins/common/spheredesigner.c : avoid error
      	'incompatible types' while assigning, use memcpy()
      e17baf71
  8. 17 Jun, 2002 1 commit
    • Sven Neumann's avatar
      Obviously I disagree with Tim about the symbol_name parameter in · c5859647
      Sven Neumann authored
      2002-06-17  Sven Neumann  <sven@gimp.org>
      
      	Obviously I disagree with Tim about the symbol_name parameter in
      	g_scanner_unexp_token(). As it seems it's not supposed to be used
      	to tell the user about the expected symbol (see bug #81850):
      
      	* gimpconfig.[ch] (gimp_config_deserialize_return): removed the
      	symbol_name parameter.
      
      	* app/config/gimpconfig-deserialize.c
      	* app/core/gimpcontainer.c
      	* app/core/gimpdocumentlist.c
      	* app/core/gimpparasitelist.c: changed the callers accordingly.
      
      	* app/core/gimpunits.c (gimp_unitrc_load): pass NULL as symbol_name
      	to g_scanner_unexp_token().
      c5859647
  9. 09 Jun, 2002 1 commit
    • Sven Neumann's avatar
      app/undo.c app/config/gimpconfig-deserialize.c app/core/gimpbrushpipe.c · fd21daeb
      Sven Neumann authored
      2002-06-09  Sven Neumann  <sven@gimp.org>
      
      	* app/undo.c
      	* app/config/gimpconfig-deserialize.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpcontainer.c
      	* app/core/gimpimagefile.c
      	* app/gui/paths-dialog.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpgradienteditor.c: unified translatable strings
      	and unmarked a few for translation since they should never be seen.
      
      2002-06-09  Sven Neumann  <sven@gimp.org>
      
      	* POTFILES.in: updated.
      
      	* de.po: updated german translation.
      fd21daeb
  10. 07 Jun, 2002 1 commit
    • Sven Neumann's avatar
      app/base/Makefile.am automake-1.6 seems to use yet another variable to · 3aae3940
      Sven Neumann authored
      2002-06-08  Sven Neumann  <sven@gimp.org>
      
      	* app/base/Makefile.am
      	* app/paint-funcs/Makefile.am: automake-1.6 seems to use yet another
      	variable to pass flags to the assembler (bug #84514). Define
      	AM_CCASFLAGS like AM_ASFLAGS to satisfy all versions of automake.
      
      	* configure.in
      	* all Makefiles: removed STRIP_BEGIN and STRIP_END since it's a
      	GNU make extension that we don't really need and newer versions of
      	automake don't seem to like it.
      3aae3940
  11. 06 Jun, 2002 1 commit
  12. 02 Jun, 2002 1 commit
    • Michael Natterer's avatar
      parse sessionrc using GScanner. · 110efe52
      Michael Natterer authored
      2002-06-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/session.c: parse sessionrc using GScanner.
      
      	* app/config/gimpscanner.[ch]: added utility function
      	gimp_scanner_parse_string_list(). Fixed the color parser's parse
      	error detection.
      
      	* app/gimprc.c: removed the sessionrc parsing stuff.
      
      	* app/config/gimpconfig-params.c (gimp_param_spec_color): no need
      	to set the param_spec's value_type, it already gets set by it's
      	base class' instance_init() function.
      110efe52
  13. 31 May, 2002 1 commit
    • Michael Natterer's avatar
      configure the scanner the same way GimpConfig did (scanner->user_data is, · c6948e6e
      Michael Natterer authored
      2002-05-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpscanner.[ch]: configure the scanner the same
      	way GimpConfig did (scanner->user_data is, if set, a GError).
      	Added gimp_scanner_parse_color(). Added "GError **error" to
      	gimp_scanner_new().
      
      	* app/config/gimpconfig.c: use gimp_scanner_new().
      
      	* app/config/gimpconfig-deserialize.c: use gimp_scanner_parse_color().
      
      	* app/core/gimpunits.c
      	* app/plug-in/plug-in-rc.c: changed accordingly.
      
      	* app/plug-in/plug-in-rc.c: made the main parse loops consistent
      	with the other places using GScanner.
      c6948e6e
  14. 29 May, 2002 1 commit
    • Sven Neumann's avatar
      renamed gimp_mem_size_entry_new() to gimp_memsize_entry_new() for · 4c55933d
      Sven Neumann authored
      2002-05-29  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/gimpwidgets.[ch]: renamed gimp_mem_size_entry_new()
      	to gimp_memsize_entry_new() for consistency. Rewrote using bitshifts.
      	Should work correctly for sizeof (gulong) > 32 now. Added new unit
      	GigaBytes.
      
      	* app/gui/preferences-dialog.c
      	* app/gui/user-install-dialog.c: changed accordingly.
      
      	* app/config/gimpconfig-types.[ch]: added new function
      	gimp_memsize_set_from_string() that allows to check if the
      	conversion succeeded.
      
      	* app/config/gimpconfig-deserialize.c
      	(gimp_config_deserialize_memsize): use gimp_memsize_set_from_string().
      4c55933d
  15. 28 May, 2002 4 commits
    • Sven Neumann's avatar
      app/base/base-config.[ch] use a gulong for the tile_cache_size. · d453d023
      Sven Neumann authored
      2002-05-28  Sven Neumann  <sven@gimp.org>
      
      	* app/base/base-config.[ch]
      	* app/gui/user-install-dialog.c: use a gulong for the tile_cache_size.
      
      	* app/base/tile-cache.c: cleanup, no changes.
      
      	* app/config/gimpconfig-types.c (string_to_memsize): avoid overflows.
      d453d023
    • Sven Neumann's avatar
      app/config/test-config.c use g_error_free() so we crash if our GimpConfig · 89585b4c
      Sven Neumann authored
      2002-05-28  Sven Neumann  <sven@gimp.org>
      
      	* app/config/test-config.c
      	* app/gui/test-commands.c: use g_error_free() so we crash if our
      	GimpConfig functions return FALSE and don't set an error.
      
      	* app/widgets/gimpdevices.c: don't warn if devicerc was not found.
      
      	* app/gui/preferences-dialog.c: use G_MAXULONG as upper limit for
      	the mem_size entries.
      
      	* libgimpwidgets/gimpwidgets.c (gimp_mem_size_entry): use gulong
      	and set the range of the spinbutton's adjustment properly.
      89585b4c
    • Sven Neumann's avatar
      derive GIMP_TYPE_MEMSIZE from G_TYPE_ULONG. Should probably be even · a98306ef
      Sven Neumann authored
      2002-05-28  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-types.c: derive GIMP_TYPE_MEMSIZE from
      	G_TYPE_ULONG. Should probably be even G_TYPE_UINT64 but we use
      	strtol which can only handles unsigned long int.
      
      	* app/config/gimpbaseconfig.[ch]
      	* app/config/gimpguiconfig.[ch]: changed accordingly.
      
      	* app/config/test-config.c: use gimp_config_serialize_value() to
      	dump changed values to stdout.
      a98306ef
    • Michael Natterer's avatar
      override GObjectClass->constructor() and do the setup stuff there, not in · b7e3c716
      Michael Natterer authored
      2002-05-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcontext.c: override GObjectClass->constructor() and
      	do the setup stuff there, not in gimp_context_new(). This way we
      	can create properly initialized contexts with g_object_new().
      
      	* app/widgets/gimpdeviceinfo.c: Removed the "gimp" property
      	again. Added a constructor() implementation and moved stuff there
      	from gimp_device_info_set_property(PROP_GIMP).
      
      	* app/config/gimpconfig-deserialize.c: made deserialization of
      	value arrays work by actually using the array any not just leaking
      	it ;)
      
      	* app/core/gimpcontainer.c: removed debugging output. Call
      	config_iface->deserialize(child, ...) again instead of calling
      	gimp_config_deserialize_properties() directly.
      
      	* app/widgets/gimpdevices.c: switch to using the new stuff for
      	devicerc.
      
      	* app/widgets/gimpdeviceinfo.[ch]
      	* app/widgets/gimpdevices.[ch]
      	* app/gimprc.c: removed all old gimprc-style devicerc stuff.
      
      	* app/gui/menus.c
      	* app/gui/test-commands.[ch]: removed devicerc testing entries
      	and callbacks.
      b7e3c716
  16. 27 May, 2002 3 commits
    • Sven Neumann's avatar
      oops · 0c87d88d
      Sven Neumann authored
      0c87d88d
    • Sven Neumann's avatar
      fixed error code and improved error messages. · 93799415
      Sven Neumann authored
      2002-05-27  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig.c (gimp_config_serialize): fixed error code
      	and improved error messages.
      93799415
    • Michael Natterer's avatar
      added "gint nest_level" to the deserialization functions, so nested calls · dbc8aeb4
      Michael Natterer authored
      2002-05-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig.[ch]: added "gint nest_level" to the
      	deserialization functions, so nested calls to deserialize()
      	don't error on the trailing ')'. Made the scanner config parse
      	one-character identifiers and allow G_CSET_A_2_Z for all
      	identifiers.
      	Added gimp_config_deserialize_return() because returning the
      	correct return value from a deserialize() function is not
      	trivial any more with nested calls.
      
      	* app/config/gimpconfig-deserialize.[ch]
      	* app/config/gimprc.c
      	* app/core/gimpdocumentlist.c
      	* app/core/gimpparasitelist.c: use the new return value utility
      	function and made the main parsing loops simpler.
      
      	* app/core/gimpunits.c: made the main parsing loops consistent
      	with the stuff that uses GimpConfig.
      
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-serialize.c: call the
      	(de)serialize_property() functions only if the property's class
      	implements the method itself (does *not* inherit it from one of
      	it's parents).
      
      	* app/core/gimpcontainer.c: implemented deserialization of
      	containers. For each child entry encountered in the input, check
      	if it's already contained in the container and create it if not.
      	If a "gimp" pointer is passed as user_data pass it as construct
      	property to g_object_new() when creating the object.
      
      	* app/core/gimpcontext.c: changed deserialization of brush,
      	pattern etc. to honor "no_data".
      
      	* app/widgets/gimpdeviceinfo.c: added a "gimp" construct_only
      	property which overrides GimpContext's "gimp" property. Moved all
      	initialisation code from gimp_device_info_new() to
      	gimp_device_info_set_property(PROP_GIMP) so it is properly
      	performed if the object is created by GimpContainer's
      	deserialize() implementation.
      
      	* app/widgets/gimpdevices.c: made gimp_devices_restore_test() work.
      dbc8aeb4
  17. 24 May, 2002 4 commits
    • Michael Natterer's avatar
      added deserialization of GValueArrays (untested). Added · 40caeab1
      Michael Natterer authored
      2002-05-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig-deserialize.c: added deserialization of
      	GValueArrays (untested). Added gimp_config_deserialize_value()
      	which is factored out from gimp_config_deserialize_property().
      40caeab1
    • Sven Neumann's avatar
      write newline after serializing the properties. · b5d2dd08
      Sven Neumann authored
      2002-05-24  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimprc.c (gimp_rc_serialize): write newline after
      	serializing the properties.
      
      	* app/config/gimpconfig.c (gimp_config_string_indent): tiny
      	optimization.
      b5d2dd08
    • Michael Natterer's avatar
      fixed assertion which did not check for indent_level >= 0 but > 0. · 708059e4
      Michael Natterer authored
      2002-05-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig.c (gimp_config_string_indent): fixed assertion
      	which did not check for indent_level >= 0 but > 0.
      
      	* app/config/gimpconfig-serialize.c (gimp_config_serialize_value):
      	serialize floats with g_ascii_formatd() to be locale independed,
      	added serialization of GValueArrays.
      
      	* app/widgets/gimpdeviceinfo.c: added properties for "mode",
      	"axes" and "keys". Their set_property() implementations are
      	untested.
      708059e4
    • Michael Natterer's avatar
      app/config/gimpconfig.[ch] added "gint indent_level" to all serialization · b10ade1a
      Michael Natterer authored
      2002-05-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig.[ch]
      	* app/config/gimpconfig-serialize.[ch]: added "gint indent_level"
      	to all serialization functions. Added gimp_config_string_indent()
      	which indents a GString.
      
      	* app/config/gimprc.c
      	* app/core/gimpdocumentlist.c
      	* app/core/gimpparasitelist.c: changed accordingly.
      
      	* app/core/gimpcontext.c: don't crash when serializing NULL object
      	properties.
      
      	* app/config/gimpscanner.[ch]: added gimp_scanner_parse_identifier().
      
      	* app/core/gimpcontainer.c: implement GimpConfigInterface.
      	Container serialization works, deserialization is not implemented yet.
      
      	* app/widgets/gimpdevices.[ch]: made
      	GimpDeviceManager->device_info_list a GimpList, not GList, added
      	testing functions for (de)serializing it.
      
      	* app/gui/menus.c
      	* app/gui/test-commands.[ch]: call the new test functions from
      	the <Toolbox>/File/Debug menu.
      b10ade1a
  18. 22 May, 2002 2 commits
    • Sven Neumann's avatar
      check for GIMP_PARAM_SERIALIZE. · e0294ab3
      Sven Neumann authored
      2002-05-22  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimprc.c (gimp_rc_query): check for GIMP_PARAM_SERIALIZE.
      e0294ab3
    • Michael Natterer's avatar
      added virtual interface methods serialize_property() and · 42f8ae15
      Michael Natterer authored
      2002-05-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig.[ch]: added virtual interface methods
      	serialize_property() and deserialize_property() which can be used
      	to implement (de)serialization of special properties or to
      	override the default implementation.
      
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-serialize.c: for each property, check if
      	the class which added it implements the virtual functions and call
      	them before trying the default implementations.
      
      	* app/config/gimpconfig-params.h: added new macro
      	GIMP_CONFIG_INSTALL_PROP_OBJECT().
      
      	* app/core/gimpcontext.c: declare the "tool", "brush", "pattern",
      	"gradient" and "palette" properties as serializable and added
      	implementations of (de)serialize_property().
      42f8ae15
  19. 21 May, 2002 2 commits
    • Sven Neumann's avatar
      need to link test-config against libgimpcolor now. · 3553cf90
      Sven Neumann authored
      2002-05-21  Sven Neumann  <sven@gimp.org>
      
      	* app/config/Makefile.am: need to link test-config against
      	libgimpcolor now.
      
      	* app/config/gimpconfig.c (gimp_config_serialize): write newlines
      	after header and before footer.
      
      	* app/config/test-config.c
      	* app/config/gimprc.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-parasites.c
      	* app/gui/test-commands.c: removed the newlines here.
      
      	* app/config/gimpconfig-params.h: define GIMP_PARAM_SERIALZE flag
      	which can be used to mark an object property as serializable.
      	Make the GIMP_CONFIG_INSTALL_PROP_* macros set it.
      
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-serialize.c: check the GIMP_PARAM_SERIALIZE
      	flag.
      
      	* app/config/gimpconfig-params.c (gimp_param_color_set_default):
      	fixed.
      
      	* app/core/gimpcontext.c: install serializable properties using the
      	GIMP_CONFIG_INSTALL_PROP_* macros.
      3553cf90
    • Michael Natterer's avatar
      added GIMP_TYPE_COLOR as boxed type encapsulating GimpRGB. · 292ec087
      Michael Natterer authored
      2002-05-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig-types.[ch]: added GIMP_TYPE_COLOR as boxed
      	type encapsulating GimpRGB.
      
      	* app/config/gimpconfig-params.[ch]: added GimpParamSpecColor
      	which is derived from GParamSpecBoxed and adds a default value.
      
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-serialize.c: added generic
      	(de)serialization of the new property type.
      
      	* app/core/gimpcontext.c: implement the config interface, changed
      	signal parameters and property types to use the new
      	GIMP_TYPE_COLOR.
      
      	* app/core/gimpmarshal.list: added a VOID__BOXED marshaller.
      
      	* app/gui/menus.c
      	* app/gui/test-commands.[ch]: some test code which (de)serializes
      	the user context.
      292ec087
  20. 15 May, 2002 3 commits
    • Sven Neumann's avatar
      fixed documentation. · 6c913460
      Sven Neumann authored
      2002-05-15  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig.c: fixed documentation.
      
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpsheartool.c: assign shortcuts that don't collide with
      	other tools.
      6c913460
    • Sven Neumann's avatar
      added user_data pointer to serialize and deserialize methods. · 394d4aed
      Sven Neumann authored
      2002-05-15  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig.[ch]: added user_data pointer to serialize
      	and deserialize methods.
      
      	* app/config/gimprc.[ch]: implement gimp_rc_save() using
      	gimp_config_serialize() so it can take advantage of the file
      	handling magic implemented there.
      
      	* app/config/test-config.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-parasites.c
      	* app/core/gimpdocumentlist.c
      	* app/core/gimpparasitelist.c: changed accordingly.
      394d4aed
    • Sven Neumann's avatar
      added a return value to indicate success of · 9b6ef261
      Sven Neumann authored
      2002-05-15  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig.[ch]: added a return value to indicate
      	success of GimpConfigInterface::serialize. Added a GimpConfigError
      	value for write errors and check the return value of all write()
      	calls. Allow to specify file header and footer when calling
      	gimp_config_serialize().
      
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimprc.c: changed accordingly.
      
      	* app/core/gimp-documents.[ch]: new files with functions to handle
      	gimp->documents.
      
      	* app/core/gimpdocuments.[ch]: removed ...
      
      	* app/core/gimpdocumentlist.[ch]: ... and added under this name.
      	Implements a generic document list.
      
      	* app/core/gimp-parasites.[ch]: new files with functions to handle
      	gimp->parasites.
      
      	* app/core/gimpparasite.[ch]: removed.
      
      	* app/core/gimpparasitelist.[ch]: nothing more than a generic
      	parasite list.
      
      	* app/undo.c
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimp.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage.c
      	* app/core/gimpitem.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/gui/file-open-dialog.c
      	* app/pdb/parasite_cmds.c
      	* tools/pdbgen/pdb/parasite.pdb: changed accordingly.
      9b6ef261
  21. 14 May, 2002 1 commit
    • Sven Neumann's avatar
      fixed error messages. · c347f148
      Sven Neumann authored
      2002-05-14  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig.c: fixed error messages.
      
      	* plug-ins/common/ps.c: applied a patch from Raphael Quinet that
      	fixes bug #81606 (special-case recent Illustrator EPS brain damage).
      c347f148
  22. 13 May, 2002 1 commit
  23. 10 May, 2002 1 commit
    • Hans Breuer's avatar
      add appconfig.lib. Statically link libgimptool/gimptool.lib. · 8522a847
      Hans Breuer authored
      2001-05-11  Hans Breuer  <hans@breuer.org>
      
      	* app/makefile.msc : add appconfig.lib. Statically
      	link libgimptool/gimptool.lib.
      
      	* app/main.c : use gimp_locale_directory()
      
      	* app/config/gimpconfig-utils.c : <string.h>
      
      	* app/config/makefile.msc : add gimpscanner
      
      	* app/core/gimpimagefile.c : some G_OS_WIN32 mess to get
      	mkdir() and chmod()
      
      	* app/display/gimpdisplayshell.c
      	  app/plug-in/plug-in-progrss.c
      	  app/tool/gimpcolorpickertool.c
      	  app/tool/gimpcroptool.c
      	  app/tool/gimpmeasuretool.c
      	  app/tool/gimpperspectivetool.c
      	  app/tool/gimprotatetool.c
      	  app/tool/gimpscaletool.c
      	  app/tool/gimpsheartool.c
      	  app/tool/gimptransformtool.c
      	  app/widgets/gimpcolormapeditor.c
      	  app/widgets/gimpcolorpanel.c
      	  app/widgets/gimptoolbox-color-area.c
      	add #ifdef __GNUC__ to avoid breaking on non standard
      	pragma #warning
      
      	* app/tools/makefile.msc : add gimptoolcontrol remove
      	tools-enum
      
      	* app/tools/tool_manager.c : need to include
      	libgimptool/gimptoolcontrol.h after core includes
      	otherwise we would compile without prototypes or
      	break miserably
      
      	* app/gui/plug-in-menus.c : replace LOCALEDIR with
      	gimp_locale_directory ()
      
      	* app/gui/preferences-dialog.c (prefs_notebook_append_page) :
      	only try to gdk_pixbuf_new_from_file() with a valid filename.
      	It should simply return NULL otherwise, but fails if the
      	filename is an empty string.
      
      	* app/paint-funcs/makefile.msc : add -FImsvc_recommended_pragmas.h
      
      	* app/widgets/gimpcolormapeditor.c : the 'row'
      	allocated needs to be 'xn * cellsize * 2' (to avoid
      	accessing unowned memory) not only width, which has
      	become allocation.width by someone commenting out
      	the correct size calculation
      
      	* app/widgets/gimpdialogfactory.c : varargs to macros
      	are GCCism or at least non standard. #define DEBUG
      	to g_print or nothing - without arguments - does fix
      	it somewhat dirty as the compiler needs to tolerate
      	the '(blah, foo, bar);' statement than
      
      	* app/widgets/makefile.msc : updated
      
      	* app/xcf/makefile.msc : add -FImsvc_recommended_pragmas.h
      
      	* etc/gimprc.win32 : use ';' to separate theme-path
      
      	* libgimpbase/gimpenv.c : #include <stdio.h>
      	for sprintf()
      
      	* app/widgets/gimpdnd.c (gimp_dnd_set_file_data) :
      	the passed in vals chunk is not always null-terminated
      	(at least not on win32). Use the length parameter too
      	to avoid reading junk filenames.
      
      	* libgimp/gimp.def : export gimp_image_get_name()
      
      	* libgimpbase/gimpbase.def : export gimp_locale_directory()
      	* libgimpbase/gimpenv.[ch] : added gimp_locale_directory ()
      
      	* libgimpbase/makefile.msc : define DATADIR and SYSCONFDIR
      	to empty string to let gimp find its files in the common
      	place (win32: relative to the top level gimp dir)
      
      	* plug-ins/common/pixelize.c : <string.h>
      
      	* plug-ins/flame/cmap.c : #include <glib.h> for g_random_int()
      
      	* plug-ins/makefile.msc : -FImsvc_recommended_pragams.h
      	and a little hack to give imagemap the prototypes it
      	desires without changing the lexed source
      
      	* themes/Default/images/makefile.msc : now added (see below)
      
      	* themes/Default/images/stock-button-reset.png : made it binary
      8522a847
  24. 07 May, 2002 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · b6c56ff9
      Michael Natterer authored
      2002-05-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/nav_window.[ch]: removed.
      
      	* app/display/Makefile.am
      	* app/display/display-types.h
      	* app/display/gimpnavigationview.[ch]: new widget partially based
      	on the removed nav_window.
      
      	* libgimpproxy/gimpproxytypes.h: regnenerated.
      
      	* app/display/gimpdisplay-foreach.[ch]: removed
      	gdisplays_nav_preview_resized(). The new config system will allow
      	us to get notified of changes.
      
      	* app/display/gimpdisplayshell.[ch]: added "scaled" and "scrolled"
      	signals.
      
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c: emit "scaled" and
      	"scrolled" appropriately. Removed nav_window stuff.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c: changed accordingly.
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/menus.c: made the navigation dialog dockable.
      
      	* app/gui/view-commands.c: changed the nav_dialog callback accordingly.
      
      	* app/gui/preferences-dialog.c
      	* app/gimprc.[ch]
      	* app/config/gimpguiconfig.[ch]: removed "nav_window_per_display"
      	as it's now a dockable and it's state is saved in sessionrc.
      
      	* app/widgets/gimpnavigationpreview.[ch]: added context sensitive
      	mouse cursors.
      
      	* app/widgets/gimpimagedock.c: made it capable of holding
      	display-related dialogs (like GimpNavigationView) by connecting
      	to the context's "display_changed" signal.
      
      	* app/widgets/widgets-types.h: removed inclusion of
      	"display/display-types.h".
      
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpitemlistitem.c
      	* app/widgets/gimpitemlistview.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimppreview.c
      	* app/widgets/gimpvectorslistview.c: warn about inclusion of
      	"display/display-types.h".
      b6c56ff9