1. 12 Oct, 2003 1 commit
    • Sven Neumann's avatar
      removed function gimp_config_serialize_comment()... · 4ea392ef
      Sven Neumann authored
      2003-10-12  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-serialize.[ch]: removed function
      	gimp_config_serialize_comment()...
      
      	* app/config/gimpconfig-utils.[ch]: removed function
      	gimp_config_string_indent()...
      
      	* app/config/gimpconfigwriter.[ch]: ... and implement both here.
      	Added a comment mode to GimpConfigWriter.
      
      	* app/config/gimpconfig-dump.c: handle GimpConfig properties.
      
      	* doc/gimprc-1.3.5.in
      	* etc/gimprc: regenerated by gimpconfig-dump.
      4ea392ef
  2. 11 Oct, 2003 1 commit
    • Sven Neumann's avatar
      app/widgets/gimpdocked.[ch] renamed GimpDockedIface to · a88e11af
      Sven Neumann authored
      2003-10-11  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpdocked.[ch]
      	* app/widgets/widgets-types.h: renamed GimpDockedIface to
      	GimpDockedInterface.
      
      	* app/display/gimpnavigationview.c
      	* app/widgets/gimpcoloreditor.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainerview.c
      	* app/widgets/gimpeditor.c
      	* app/widgets/gimpimageeditor.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimptooloptionseditor.c: changed accordingly.
      
      	* app/config/config-types.h
      	* app/config/gimpconfig.[ch]
      	* app/config/gimpconfig-deserialize.[ch]
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimpconfig-utils.[ch]: added a GimpConfig typedef and
      	changed the GimpConfig API to take GimpConfig instead of GObject
      	pointers.
      
      	* app/config/gimpconfig-dump.c
      	* app/config/gimprc.c
      	* app/config/test-config.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-parasites.c
      	* app/core/gimp-templates.c
      	* app/core/gimp.[ch]
      	* app/core/gimpcontainer.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdocumentlist.c
      	* app/core/gimpgrid.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage.c
      	* app/core/gimpparasitelist.c
      	* app/core/gimptemplate.c
      	* app/core/gimptooloptions.c
      	* app/core/gimpviewable.c
      	* app/gui/grid-dialog.c
      	* app/gui/preferences-dialog.c
      	* app/gui/stroke-dialog.c
      	* app/gui/templates-commands.c
      	* app/gui/tool-options-commands.c
      	* app/paint/gimppaintcore.c
      	* app/pdb/gimprc_cmds.c
      	* app/text/gimptext-parasite.c
      	* app/text/gimptext.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimp-tools.c
      	* app/tools/gimptexttool.c
      	* app/widgets/gimpdevices.c
      	* app/widgets/gimptemplateeditor.c
      	* app/widgets/gimptemplateview.c
      	* tools/pdbgen/pdb/gimprc.pdb: changed accordingly.
      a88e11af
  3. 05 Mar, 2003 1 commit
    • Sven Neumann's avatar
      app/config/Makefile.am new files featuring a simple config file writer. · d457b9eb
      Sven Neumann authored
      2003-03-05  Sven Neumann  <sven@gimp.org>
      
      	* app/config/Makefile.am
      	* app/config/gimpconfigwriter.[ch]: new files featuring a simple
      	config file writer.
      
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimpconfig.[ch]: changed the serialize routines to
      	use a GimpConfigWriter instead of passing around a file descriptor
      	and the indentation level.
      
      	* app/config/config-types.h
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-dump.c
      	* app/config/gimpconfig-utils.c
      	* app/config/gimprc.c
      	* app/config/gimpscanner.c
      	* app/config/test-config.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-parasites.c
      	* app/core/gimpcontainer.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdocumentlist.c
      	* app/core/gimpparasitelist.c
      	* app/gui/test-commands.c
      	* app/tools/tool_options.c
      	* app/widgets/gimpdevices.c: changed accordingly.
      
      	* libgimpwidgets/gimpwidgets.c: documentation updates.
      
      	* app/core/gimpitem.c: removed a redundant type-check.
      d457b9eb
  4. 28 Feb, 2003 2 commits
    • Sven Neumann's avatar
      app/config/gimpconfig-deserialize.c transparently serialize and · f0509872
      Sven Neumann authored
      2003-02-28  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-serialize.[ch]: transparently serialize
      	and deserialize object properties that implement the
      	GimpConfigInterface.
      
      	* app/config/gimpconfig-utils.c (gimp_config_reset_properties):
      	call reset recursively if properties are itself objects that
      	implement the GimpConfigInterface.
      
      	* app/config/gimpconfig-dump.c: adapt to API changes.
      
      	* app/config/gimpconfig-params.h: made object properties installed
      	using GIMP_CONFIG_INSTALL_PROP_OBJECT() be not writable by default.
      
      	* app/core/gimpcontext.c (gimp_context_class_init): made objects
      	properties explicitely writeable.
      
      	* app/tools/gimptextoptions.c: made the GimpText object a property
      	of GimpTextOptions and removed lots of special handling which is
      	now transparently done by GimpConfigInterface.
      f0509872
    • Sven Neumann's avatar
      renamed gimp_config_serialize_changed_properties() to · 25c715c1
      Sven Neumann authored
      2003-02-28  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-serialize.[ch]: renamed
      	gimp_config_serialize_changed_properties() to
      	gimp_config_serialize_properties_diff() and added a new function
      	gimp_config_serialize_changed_properties() that saves only
      	properties that have been changed from their default values.
      
      	* app/config/gimprc.c: follow the function name change.
      
      	* app/core/gimpcontext.c: override GimpConfigInterface::serialize
      	with gimp_config_serialize_changed_properties() so we store only
      	tool_options that have been changed from their default values.
      25c715c1
  5. 01 Dec, 2002 1 commit
    • Sven Neumann's avatar
      small cleanup. · 62be2fff
      Sven Neumann authored
      2002-12-01  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-blurbs.h: small cleanup.
      
      	* app/config/gimpconfig-serialize.[ch]: export more functionality.
      
      	* app/config/gimpconfig-dump.c: added some code to dump a
      	commented version of the system-wide gimprc with default values.
      
      2002-12-01  Sven Neumann  <neo@wintermute>
      
      	* libgimp/Makefile.am (IGNORE_HFILES): ignore gimpmiscui.h.
      62be2fff
  6. 24 May, 2002 1 commit
    • 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
  7. 15 May, 2002 1 commit
    • 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
  8. 06 May, 2002 1 commit
    • Sven Neumann's avatar
      fixed typo. · 6747ea3f
      Sven Neumann authored
      2002-05-06  Sven Neumann  <sven@gimp.org>
      
      	* autogen.sh: fixed typo.
      
      	* app/config/gimpconfig-serialize.[ch] (gimp_config_serialize_value):
      	allow to specify whether strings should be escaped.
      
      	* app/config/gimprc.c (gimp_rc_query): don't escape string values.
      
      	* app/config/test-config.c: changed accordingly.
      6747ea3f
  9. 23 Mar, 2002 1 commit
    • Sven Neumann's avatar
      app/config/gimpconfig-deserialize.[ch] · d4b90098
      Sven Neumann authored
      2002-03-23  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-deserialize.[ch]
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimpconfig.[ch]
      	* app/config/gimprc.[ch]
      	* app/config/test-config.c: added better error reporting using GError.
      d4b90098
  10. 28 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/config/gimpconfig-serialize.[ch] app/config/gimpconfig.h added new · d2990f2f
      Sven Neumann authored
      2001-12-28  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimpconfig.h
      	* app/config/gimprc.[ch]: added new function to only write changes to
      	the personal gimprc.
      
      	* app/config/test-config.c: test the new functionality.
      
      	* tools/pdbgen/pdb/procedural_db.pdb: the change I did yesterday
      	wasn't overly clever; here's a better one.
      
      	* app/pdb/procedural_db_cmds.c: regenerated.
      d2990f2f
  11. 13 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/config/gimpconfig-deserialize.c app/config/gimpconfig-params.h · 1e5888d4
      Sven Neumann authored
      2001-12-13  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-params.h
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimpconfig-substitute.c
      	* app/config/gimpconfig-types.c
      	* app/config/gimpconfig.[ch]
      	* app/config/test-config.c: code cleanup, I18N
      
      	* app/config/gimpcoreconfig.[ch]: some more properties.
      1e5888d4
  12. 08 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/config/Makefile.am app/config/gimpconfig-params.[ch] new files · 78841f1f
      Sven Neumann authored
      2001-12-08  Sven Neumann  <sven@gimp.org>
      
      	* app/config/Makefile.am
      	* app/config/gimpconfig-params.[ch]
      	* app/config/gimpconfig-types.[ch]: new files implementing special
      	GParamSpecs and GValueTypes needed for GimpConfig.
      
      	* app/config/gimpbaseconfig.c: register tile-cache-size property
      	with GimpParamSpecMemsize.
      
      	* app/config/gimpconfig-deserialize.[ch]
      	* app/config/gimpconfig-serialize.[ch]: enable serialization and
      	deserialization of non-fundamental types.
      78841f1f
  13. 07 Dec, 2001 1 commit
    • Sven Neumann's avatar
      removed from CVS, they are generated. · d4829df4
      Sven Neumann authored
      2001-12-07  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpmarshal.[ch]: removed from CVS, they are generated.
      
      	* app/base/Makefile.am
      	* app/base/base-enums.h: new file defining enums that are to be
      	registered. Used to build app/base/base-enums.c.
      
      	* app/base/base-types.h: include base-enums.h.
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/enumcode.pl
      	* tools/pdbgen/enums.pl: parse the new base-enums.h file and modified
      	the perl voodoo so it doesn't prefix enums with GIMP_ that are already
      	properly namespaced.
      
      	* app/core/core-types.h: don't need to chop GIMP from enum.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c: regenerated.
      
      	* app/config/gimpconfig-deserialize.[ch]
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimpconfig.[ch]: made GimpConfig an interface including
      	a reasonable default implementation that works on object properties.
      
      	* app/config/Makefile.am
      	* app/config/gimpbaseconfig.[ch]: new GimpBaseConfig using the
      	GimpConfig interface. Yet only used for testing from app/main.c.
      
      	* app/main.c: test the new GimpBaseConfig object.
      
      	* app/gimprc.c
      	* app/base/base-config.h
      	* app/base/*.c
      	* app/core/gimpdatafiles.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimppreviewcache.c
      	* app/gui/preferences-dialog.c
      	* app/paint-funcs/paint-funcs.c
      	* app/xcf/xcf-seek.c: need to include glib-object.h since base-config
      	contains registered enums now. Follow name change of InterpolationType
      	to GimpInterpolationType.
      d4829df4
  14. 27 Nov, 2001 1 commit
    • Sven Neumann's avatar
      configure.in app/Makefile.am app/config/gimpconfig.[ch] · 19e1acbc
      Sven Neumann authored
      2001-11-27  Sven Neumann  <sven@gimp.org>
      
      	* configure.in
      	* app/Makefile.am
      	* app/config/gimpconfig.[ch]
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimpconfig-deserialize.[ch]: added new base class
      	GimpConfig that knows how to serialize and deserialize it's properties
      	in sexp format. Contains two example properties that will go into
      	derived classes once this is really used.
      
      	* app/main.c: deserialize and serialize the test GimpConfig object to
      	~/.gimp-1.3/foorc (only for debugging).
      
      	* app/widgets/widgets-types.h
      	* app/core/core-types.h: moved GimpPreviewSize enum to core-types.
      
      	* app/core/core-types.h: don't include gdk-pixbuf.h.
      
      	* app/core/gimptoolinfo.h
      	* app/core/gimpimagefile.c: include gdk-pixbuf.h.
      
      	* app/core/gimpimage.[ch]: made construct_flag a gboolean.
      
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpunit.c
      
      	* tools/pdbgen/pdb/plug_in.pdb
      	* app/pdb/plug_in_cmds.c: removed unused variables.
      
      	* app/display/Makefile.am: removed .PHONY and files cruft
      
      	* app/Makefile.am
      	* libgimp/Makefile.am
      	* libgimpbase/Makefile.am
      	* libgimpcolor/Makefile.am
      	* libgimpmath/Makefile.am
      	* libgimpwidgets/Makefile.am
      	* plug-ins/Makefile.am: removed commented out makefile.mingw rules.
      	If we ever need them again, they can easily be resurrected from CVS.
      19e1acbc
  15. 22 May, 2001 1 commit
    • Michael Natterer's avatar
      app/gimphistogram.[ch] removed. · 0196e83f
      Michael Natterer authored
      2001-05-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimphistogram.[ch]
      	* app/lut_funcs.[ch]: removed.
      
      	* app/base/gimphistogram.[ch]
      	* app/base/lut-funcs.[ch]
      	* app/core/gimpdrawable-histogram.[ch]: added, cleanup.
      
      	* app/Makefile.am
      	* app/appenums.h
      	* app/apptypes.h
      	* app/base/Makefile.am
      	* app/base/base-types.h
      	* app/core/Makefile.am
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-invert.c
      	* app/pdb/color_cmds.c
      	* app/widgets/gimphistogramview.c
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/enums.pl
      	* tools/pdbgen/pdb/color.pdb: changed accordingly.
      0196e83f
  16. 29 Dec, 2000 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/channel_pvt.h app/drawable_pvt.h app/gdisplayF.h · 8d6c335f
      Michael Natterer authored
      2000-12-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/channel_pvt.h
      	* app/drawable_pvt.h
      	* app/gdisplayF.h
      	* app/gimpdrawableP.h
      	* app/gimpimageP.h
      	* app/layer_pvt.h
      	* app/toolsF.h: removed these files.
      
      	* app/apptypes.h
      	* tools/pdbgen/enums.pl: added tons of opaque typedefs and enums.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/tools.pdb
      	* app/*: chainsaw #include cleanup:
      
      	- Never (never!!) include stuff in header files except where we
      	  need access to structures' contents (like derived objects).
      	- Added prototypes and proper formating in many files.
      	- The #include order in *all* *.c files is as follows:
      
      	#include "config.h"
      
      	#include <system stuff>
      
      	#include <gtk/gtk.h>
      
      	#include "apptypes.h"
      
      	#include "gimp stuff"
      
      	#include "libgimp stuff"
      
      	#include "libgimp/gimpintl.h"
      
      	By following this scheme we can easily see a file's dependencies
      	from it's #include's and can grep for the inclusion to find out
      	where a file is used.
      
      	* tools/pdbgen/app.pl: changed to follow the include scheme above.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpuitypes.h: new file, included from libgimp/gimpui.h
      	and from app/apptypes.h.
      
      	* libgimp/gimpcolorbutton.[ch]
      	* libgimp/gimpdialog.[ch]
      	* libgimp/gimphelpui.[ch]
      	* libgimp/gimpparasite.[ch]
      	* libgimp/gimppatheditor.[ch]
      	* libgimp/gimpprotocol.c
      	* libgimp/gimpquerybox.[ch]
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimptypes.h
      	* libgimp/gimpui.h
      	* libgimp/gimpunit.h
      	* libgimp/gimpunitmenu.[ch]
      	* libgimp/gimpwidgets.[ch]: changed accordingly.
      
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/gdyntext/message_window.c
      	* plug-ins/imagemap/imap_default_dialog.c
      	* plug-ins/imagemap/imap_file.c: these files used to include
      	"libgimp/gimpui.h" without including "libgimp/gimp.h". This is
      	no longer possible because the libgimpui headers don't inlcude
      	"libgimp/gimpunit.h" any more.
      8d6c335f
  17. 24 Nov, 1997 1 commit