1. 16 Apr, 2016 1 commit
  2. 09 Feb, 2016 1 commit
    • Michael Natterer's avatar
      libgimpconfig: add a new set of macros to register serialitable properties · a3f127bf
      Michael Natterer authored
      The old GIMP_CONFIG_INSTALL_PROP_FOO() have the problem of always
      passing NULL as the GParamSpec's "nick". I have no clue what we were
      thinking back then, but this has always been a major design flaw
      because (among other problems) it makes it impossible to fully
      auto-generate GUIs based on properties.
      Added GIMP_CONFIG_PROP_FOO() macros which do have a "nick" parameter,
      will deprecate the old macros as soon as everything is ported.
  3. 28 Apr, 2011 1 commit
    • Michael Natterer's avatar
      libgimp*: add guards that #error out if individual files are included · 844df2b4
      Michael Natterer authored
      This only helps to maintain proper includes in app/ and shouldn't
      affect plug-ins at all, because these are supposed to only include the
      main headers from libgimp/ since the beginning of time.
      The gimpfootypes.h files do not have these guards, so we can continue
      to maintain app/'s include policy that is very likely to error out if
      wrong things are included.
  4. 29 Jun, 2010 1 commit
  5. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      	* all files with a GPL header and all COPYING files:
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      svn path=/trunk/; revision=27913
  6. 24 Sep, 2006 1 commit
    • Michael Natterer's avatar
      Some more proper typing instead of using pointers: · 8e04fb1b
      Michael Natterer authored
      2006-09-24  Michael Natterer  <mitch@gimp.org>
      	Some more proper typing instead of using pointers:
      	* libgimpconfig/gimpconfig-params.h: added macro
      	* app/core/gimpcontainer.c: made "children-type" a GParamSpecGType.
      	* app/widgets/gimpcontrollerinfo.c: made "mapping" a
      	GParamSpecBoxed and use g_hash_table_unref() instead of destroy().
      	* app/widgets/gimppdbdialog.c: made "select-type" a GParamSpecGType.
      	* app/dialogs/module-dialog.c
      	* app/widgets/gimpcolordisplayeditor.c
      	* app/widgets/gimpcontrollerlist.c
      	* app/widgets/gimpfileprocview.c
      	* app/widgets/gimppluginaction.c: use proper object types, boxed
      	types and G_TYPE_GTYPE instead of G_TYPE_POINTER for various list
      	stores and signal signatues.
  7. 27 Apr, 2006 1 commit
    • Sven Neumann's avatar
      added "has_alpha" to GimpParamSpecRGB. Made the GimpParamSpecRGB struct · e779cf0b
      Sven Neumann authored
      2006-04-27  Sven Neumann  <sven@gimp.org>
      	* libgimpcolor/gimprgb.[ch]: added "has_alpha" to GimpParamSpecRGB.
      	Made the GimpParamSpecRGB struct public. When validating a color,
      	only look at the alpha channel if has_alpha is set.
      	* libgimpconfig/gimpconfig-params.h: added "has_alpha" to
      	GIMP_CONFIG_INSTALL_PROP_RGB macro definition.
      	* libgimpconfig/gimpconfig-serialize.c: serialize color values as
      	"(rgb r g b)" if the param-spec indicates that the alpha channel
      	is meaningless.
      	* app/config/gimpconfig-dump.c: take "has_alpha" into account when
      	documenting color properties.
      	* app/core/gimpcontext.c
      	* app/core/gimpgrid.c
      	* app/display/gimpdisplayoptions.c
      	* app/text/gimptext.c
      	* app/widgets/gimpaction.c
      	* app/widgets/gimpcolorbar.c
      	* libgimpwidgets/gimpcolorarea.c
      	* libgimpwidgets/gimpcolorbutton.c: specify whether color properties
      	have an alpha channel.
      	* tools/pdbgen/app.pl: handle "has_alpha" for color paramaters.
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/context.pdb
      	* tools/pdbgen/pdb/grid.pdb
      	* tools/pdbgen/pdb/image.pdb: set the "has_alpha" flag where
      	* app/pdb/gimp-pdb-compat.c (gimp_pdb_compat_param_spec): set
      	"has_alpha" to TRUE for GIMP_PDB_COLOR.
      	* app/pdb/channel_cmds.c
      	* app/pdb/context_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/grid_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/palettes_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      	* app/config/gimpdisplayconfig.c (gimp_display_config_class_init):
      	removed unused code.
  8. 22 Jun, 2005 1 commit
    • Michael Natterer's avatar
      libgimpconfig/gimpconfig-deserialize.h libgimpconfig/gimpconfig-error.h · ff7343ee
      Michael Natterer authored
      2005-06-22  Michael Natterer  <mitch@gimp.org>
      	* libgimpconfig/gimpconfig-deserialize.h
      	* libgimpconfig/gimpconfig-error.h
      	* libgimpconfig/gimpconfig-iface.h
      	* libgimpconfig/gimpconfig-params.h
      	* libgimpconfig/gimpconfig-path.h
      	* libgimpconfig/gimpconfig-serialize.h
      	* libgimpconfig/gimpconfig-utils.h: added G_BEGIN_DECLS/G_END_DECLS.
  9. 03 Mar, 2005 1 commit
  10. 05 Feb, 2005 1 commit
    • Sven Neumann's avatar
      renamed GIMP_PARAM_ #defines to GIMP_CONFIG_PARAM_. · 692669f4
      Sven Neumann authored
      2005-02-05  Sven Neumann  <sven@gimp.org>
      	* libgimpconfig/gimpconfig-params.h: renamed GIMP_PARAM_ #defines
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpconfig-dump.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpdisplayconfig.c
      	* app/config/gimpguiconfig.c
      	* app/config/gimprc-deserialize.c
      	* app/config/gimprc-serialize.c
      	* app/config/gimprc.c
      	* app/core/gimp.c
      	* app/core/gimpstrokedesc.c
      	* app/dialogs/preferences-dialog.c
      	* app/text/gimptext.c
      	* app/tools/gimptextoptions.c
      	* libgimpconfig/gimpconfig-deserialize.c
      	* libgimpconfig/gimpconfig-iface.c
      	* libgimpconfig/gimpconfig-serialize.c
      	* libgimpconfig/gimpconfig-utils.c: changed accordingly.
      	* libgimpmodule/gimpmoduletypes.h: deprecate the
      	should be used instead.
      	* modules/controller_linux_input.c
      	* modules/controller_midi.c: changed accordingly.
  11. 25 Jan, 2005 2 commits
    • Sven Neumann's avatar
      libgimpbase/Makefile.am removed these two files again. · 4aa2bf93
      Sven Neumann authored
      2005-01-26  Sven Neumann  <sven@gimp.org>
      	* libgimpbase/Makefile.am
      	* libgimpbase/gimppath.[ch]: removed these two files again.
      	* libgimpconfig/gimpconfig-path.[ch]: merged the path type and
      	param spec here. Renamed to GimpConfigPath and GimpParamConfigPath.
      	* libgimpbase/gimpbase.h
      	* libgimpbase/gimpbasetypes.[ch]
      	* libgimpconfig/gimpconfig-deserialize.c
      	* libgimpconfig/gimpconfig-params.h
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpconfig-dump.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpguiconfig.c
      	* app/config/gimppluginconfig.c
      	* app/widgets/gimppropwidgets.c: changed accordingly.
      	* libgimpbase/gimpbase.def: updated.
    • William Skaggs's avatar
      continuing commit after broken pipe · 1cee9b72
      William Skaggs authored
  12. 22 Jan, 2005 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · c9926ee1
      William Skaggs authored
      	* app/config/gimpconfig-types.c
      	* app/config/gimpconfig-types.h: removed...
      	* libgimpbase/gimpbasetypes.c
      	* libgimpbase/gimpbasetypes.h: and contents merged
      	into here.
      	* app/config/gimpconfig-params.c: removed...
      	* libgimpbase/gimpbaseparams.c
      	* libgimpcolor/gimprgb.c
      	* libgimpmath/gimpmatrix.c: and contents merged
      	into here.
      	* app/config/gimpconfig-params.h: part removed...
      	* libgimpbase/gimpbaseparams.h
      	* libgimpcolor/gimprgb.h
      	* libgimpmath/gimpmatrix.h: and merged into here
      	* libgimpbase/Makefile.am
      	* libgimpbase/gimpbase.h
      	* libgimpcolor/gimpbilinear.c
      	* libgimpcolor/gimpcmyk.c
      	* libgimpmath/gimpvector.c
      	* app/config/Makefile.am
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-dump.c
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpguiconfig.c
      	* app/config/gimppluginconfig.c
      	* app/core/gimp-utils.c
      	* app/core/gimpcontext.c
      	* app/tools/tools-utils.c
      	* app/widgets/gimpaction.c
      	* plug-ins/gimpressionist/utils.c: dependencies changed
      	First step in config migration out of core.  Need to fix
      	devel-docs to reflect these changes.
  13. 26 Jul, 2004 1 commit
    • Michael Natterer's avatar
      removed GIMP_TYPE_COLOR. · caabe7f3
      Michael Natterer authored
      2004-07-26  Michael Natterer  <mitch@gimp.org>
      	* app/config/gimpconfig-types.h: removed GIMP_TYPE_COLOR.
      	* app/config/gimpconfig-params.[ch]: renamed GimpParamSpecColor
      	to GimpParamSpecRGB.
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-dump.c
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpscanner.c
      	* app/core/gimp-utils.c
      	* app/core/gimpcontext.c
      	* app/core/gimpgrid.c
      	* app/display/gimpdisplayoptions.c
      	* app/text/gimptext.c
      	* app/tools/gimpcolortool.c
      	* app/widgets/gimpaction.c
      	* app/widgets/gimpcolorbar.c
      	* app/widgets/gimppropwidgets.c: changed accordingly.
  14. 16 Jun, 2004 1 commit
    • Michael Natterer's avatar
      added #define GIMP_CONTROLLER_PARAM_SERIALIZE. Made all properties · 3a7f7d54
      Michael Natterer authored
      2004-06-16  Michael Natterer  <mitch@gimp.org>
      	* libgimpwidgets/gimpcontroller.[ch]: added #define
      	GIMP_CONTROLLER_PARAM_SERIALIZE. Made all properties serializable.
      	* modules/controller_linux_input.c: made "device-name"
      	* app/config/gimpconfig-params.h: added macro
      	GIMP_CONFIG_INSTALL_PROP_POINTER() which needs to be handled
      	by custom (de)serialize_property() implementations.
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-serialize.c: made object (de)serialization
      	work for object properties which are *not* GIMP_PARAM_AGGREGATE.
      	Write/parse the exact type of the object to create to enable this.
      	* app/core/gimpmarshal.list: new marshaller for GimpControllerInfo.
      	* app/widgets/gimpcontrollerinfo.[ch]: implement GimpConfigInterface
      	and add "controller" and "mapping" properties. Add "event-mapped"
      	signal which carries the action_name.
      	* app/widgets/gimpcontrollers.c: removed all deserialization code
      	and simply (de)serialize the controller container. Install a
      	container handler for "event-mapped" and do the action_name ->
      	action mapping in the callback.
      	* etc/controllerrc: regenerated with new syntax. Delete your old one!
  15. 14 Nov, 2003 1 commit
    • Sven Neumann's avatar
      app/config/gimpscanner.c configured the scanner to use 64bit integers. · f98c0013
      Sven Neumann authored
      2003-11-14  Sven Neumann  <sven@gimp.org>
      	* app/config/gimpscanner.c
      	* app/config/gimpconfig-deserialize.c: configured the scanner to
      	use 64bit integers. This means you must now access value.v_int64
      	instead of value.v_int. Fortunately gimp_scanner_parse_int() hides
      	this ugly detail from you.
      	* app/config/gimpconfig-params.[ch]
      	* app/config/gimpconfig-types.c: derive GimpMemsize from guint64
      	now that support for 64bit integers is guaranteed by glib.
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpguiconfig.[ch]
      	* app/widgets/gimppropwidgets.c: changed accordingly.
      	* app/gui/preferences-dialog.c: changed a label.
  16. 26 Oct, 2003 1 commit
    • Sven Neumann's avatar
      handle negative float and double values similar to how this is done for · d533104d
      Sven Neumann authored
      2003-10-26  Sven Neumann  <sven@gimp.org>
      	* app/config/gimpconfig-deserialize.c
      	(gimp_config_deserialize_fundamental): handle negative float and
      	double values similar to how this is done for integers and the
      	* app/config/gimpconfig-params.h: added two new param flags and
      	documented all flags in the header file (for now).
      	* app/config/gimpconfig-serialize.h: handle the new param flags
      	* app/text/text-enums.[ch]
      	* app/text/gimptext.[ch]: added some properties that we will need
      	sooner or later. Mark the new properties and a lot of the existing
      	ones as GIMP_PARAM_DEFAULTS so that their values are not
      	serialized unless changed from the default value.
      	* app/text/gimptextlayout.c
      	* app/tools/gimptextoptions.c: made all length properties in
      	GimpText depend on a single unit.
  17. 24 Oct, 2003 1 commit
    • Sven Neumann's avatar
      themes/Default/images/Makefile.am · f299ada6
      Sven Neumann authored
      2003-10-24  Sven Neumann  <sven@gimp.org>
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-histogram-linear-16.png
      	* themes/Default/images/stock-histogram-logarithmic-16.png:
      	added placeholders for new icons.
      	* libgimpwidgets/gimpstock.[ch]: register the new icons.
      	* app/tools/gimphistogramtool.c: made the dialog more compact by
      	using a stock-box for the histogram scale.
      	* app/widgets/gimphistogramview.c (gimp_histogram_view_expose):
      	don't invert the histogram view if the full range is selected.
      	* app/widgets/gimphistogrambox.c: moved the range widgets below
      	the histogram.
      	* app/config/gimpconfig-params.h: added macro
      	GIMP_CONFIG_INSTALL_PROP_RESOLUTION() that installs a double
      	property with the suitable range.
      	* app/core/gimptemplate.c
      	* app/config/gimpdisplayconfig.c: use it here.
  18. 17 Jul, 2003 1 commit
    • Michael Natterer's avatar
      added "gboolean allow_percent" to gimp_param_spec_unit() and to the · 486aed8e
      Michael Natterer authored
      2003-07-17  Michael Natterer  <mitch@gimp.org>
      	* app/config/gimpconfig-params.[ch]: added "gboolean allow_percent"
      	to gimp_param_spec_unit() and to the GIMP_CONFIG_INSTALL_PROP_UNIT()
      	macro. Changed value validation accordingly.
      	* app/config/gimpconfig-types.c (string_to_unit): parse "percent"
      	* app/widgets/gimppropwidgets.c (gimp_prop_unit_menu_new): show
      	the "Percent" menu entry if the param_spec allows percent.
      	* app/config/gimpcoreconfig.c
      	* app/core/gimpgrid.c
      	* app/core/gimptemplate.c
      	* app/text/gimptext.c: pass FALSE to disallow percent.
      	* app/paint/gimppaintoptions.c
      	* app/tools/gimpselectionoptions.c: pass TRUE. Brings back the
      	percent feature for fade_length, gradient_length and fixed_size
      	rect/ellipse select.
      	* app/tools/gimpbucketfilloptions.c
      	* app/tools/gimpmagnifyoptions.c
      	* app/tools/gimpselectionoptions.c
      	* app/tools/gimptransformoptions.c: don't call the the reset()
      	functions from the GUI constructors (and reset the options just
      	deserialized from disk). Instead, added set_defaults() functions
      	which do everything the old reset() functions did (except
      	upchaining) and call set_defaults() from reset() and from the GUI
  19. 07 Jul, 2003 1 commit
    • Sven Neumann's avatar
      include <libgimpmath/gimpmathtypes.h>. · 6f83a525
      Sven Neumann authored
      2003-07-07  Sven Neumann  <sven@gimp.org>
      	* libgimpbase/gimpbasetypes.h: include <libgimpmath/gimpmathtypes.h>.
      	* libgimpmath/gimpmathtypes.h
      	* libgimpmath/gimpmatrix.[ch]: added GimpMatrix2 struct definition
      	and new function gimp_matrix2_identity().
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-params.[ch]
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpconfig-types.[ch]
      	* app/config/gimpconfig.c
      	* app/config/gimpscanner.[ch]: added a boxed type around GimpMatrix2.
      	* app/text/gimptext.[ch]: added new property "transformation".
  20. 12 Apr, 2003 1 commit
    • Michael Natterer's avatar
      made object properties G_PARAM_READWRITE by default. Added flag · f82440ff
      Michael Natterer authored
      2003-04-12  Michael Natterer  <mitch@gimp.org>
      	* app/config/gimpconfig-params.h: made object properties
      	G_PARAM_READWRITE by default. Added flag GIMP_PARAM_AGGREGATE
      	which indicates that an object property is not a reference but a
      	real part of its owner.
      	* app/config/gimpconfig-deserialize.c: g_object_set_property()
      	object properties only if they are not GIMP_PARAM_AGGREGATE.
      	* app/config/gimpconfig-utils.c (gimp_config_copy_properties,
      	gimp_config_reset_properties): copy and reset GIMP_PARAM_AGGREGATE
      	object properties correctly.
      	* app/config/gimpconfig-serialize.c: don't call
      	gimp_config_writer_open/close() for properties which are handled
      	by a GimpConfigIface::serialize_property() implementation.
      	* app/core/gimpcontext.c: removed exlicit G_PARAM_WRITABLE from
      	object properties since that's the default now. Call
      	gimp_config_writer_open/close() when serializing properties.
      	* app/core/gimpviewable.c (gimp_viewable_get_property): use
      	(gimp_viewable_set_stock_id): set stock_id to NULL if the new
      	stock_id is the same as viewable_class->default_stock_id.
      	Added serialize_property() which skips stock_id serialization
      	if it is NULL.
      	* app/tools/gimptextoptions.c: made the "text" property
      	GIMP_PARAM_AGGREGATE. Added gimp_text_options_set_property()
      	(which does nothing).
      	* app/widgets/gimptemplateeditor.[ch]: added an optional
      	GimpViewableButton to change the template's icon.
      	* app/gui/file-new-dialog.c: create it with the icon button so it
      	gets some testing.
  21. 28 Feb, 2003 1 commit
    • 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
      	* 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.
  22. 31 Jan, 2003 1 commit
    • Sven Neumann's avatar
      app/config/gimpconfig-params.h · 27698a2b
      Sven Neumann authored
      2003-01-31  Sven Neumann  <sven@gimp.org>
      	* app/config/gimpconfig-params.h
      	* app/config/gimpcoreconfig.c: added a pixels parameter to the
      	* app/core/Makefile.am
      	* app/core/gimpimage-text.[ch]: removed these two files.
      	* app/text/Makefile.am
      	* app/text/gimptext-compat.[ch]: new files with compatibility
      	routines that provide the old text API (solely for PDB calls).
      	* app/text/gimptext-render.[ch]: new files with text rendering
      	routines (not much yet).
      	* app/text/text-types.h
      	* app/text/gimptextlayer.[ch]: new object derived from GimpLayer.
      	* app/text/gimptext.[ch]: prepared for future improvements.
      	* app/pdb/text_tool_cmds.c
      	* app/tools/gimptexttool.c
      	* tools/pdbgen/pdb/text_tool.pdb: changed accordingly.
  23. 11 Jan, 2003 1 commit
    • Sven Neumann's avatar
      always build gimpconfig-dump. · bf12a078
      Sven Neumann authored
      2003-01-11  Sven Neumann  <sven@gimp.org>
      	* app/config/Makefile.am: always build gimpconfig-dump.
      	* app/config/gimpconfig-params.[ch]: added an enum to specify the
      	type of path with GIMP_PARAM_SPEC_PATH.
      	* app/config/gimpconfig-dump.c: document the different types of
      	paths differently.
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpguiconfig.c
      	* app/config/gimppluginconfig.c: register the path types.
      	* etc/gimprc: generated a new system gimprc.
      	* plug-ins/common/tiff.c: added missing spaces in warning and
      	removed trailing newlines in strings passed to g_message().
  24. 28 Nov, 2002 1 commit
    • Sven Neumann's avatar
      app/config/Makefile.am removed ... ... and readded under this name. · b92d38ce
      Sven Neumann authored
      2002-11-28  Sven Neumann  <sven@gimp.org>
      	* app/config/Makefile.am
      	* app/config/gimpconfig-params-blurbs.h: removed ...
      	* app/config/gimpconfig-blurbs.h: ... and readded under this name.
      	Defined all missing blurb definitions to NULL.
      	* app/config/gimpconfig-params.h: added a blurb parameter to all
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpdisplayconfig.c
      	* app/config/gimpguiconfig.c: register blurbs with the GimpRc
      	* app/config/gimpconfig-serialize.c: do proper line-breaking for
      	* app/core/gimpcontext.c
      	* app/widgets/gimpdeviceinfo.c: register NULL blurbs here.
  25. 20 Nov, 2002 1 commit
    • 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
      	* app/core/gimpcontext.c
      	* app/widgets/gimpdeviceinfo.c: changed macro calls accordingly.
  26. 19 Nov, 2002 1 commit
  27. 10 Oct, 2002 1 commit
  28. 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).
  29. 22 May, 2002 1 commit
    • 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
      	* app/core/gimpcontext.c: declare the "tool", "brush", "pattern",
      	"gradient" and "palette" properties as serializable and added
      	implementations of (de)serialize_property().
  30. 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
      	* app/config/gimpconfig-params.c (gimp_param_color_set_default):
      	* app/core/gimpcontext.c: install serializable properties using the
    • 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
      	* 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.
  31. 16 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/config/gimpconfig-params.[ch] added support for GimpUnit type. · efe8f6db
      Sven Neumann authored
      2001-12-16  Sven Neumann  <sven@gimp.org>
      	* app/config/gimpconfig-params.[ch]
      	* app/config/gimpconfig-types.[ch]: added support for GimpUnit type.
      	* app/config/gimpbaseconfig.[ch]
      	* app/config/gimpcoreconfig.[ch]
      	* app/config/test-config.c: cleaned up includes. Added more properties
      	to GimpCoreConfig.
      	* app/libgimp_glue.h
      	* libgimpbase/gimpunit.h:
      	declared gimp_unit_get_number_of_built_in_units() G_GNUC_CONST.
      	* app/core/gimpunit.[ch]: internal GimpUnit functions return const
      	* app/xcf/xcf-save.c: changed accordingly.
  32. 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.
  33. 11 Dec, 2001 1 commit
    • Sven Neumann's avatar
      removed GimpImageBaseType enum ... · a611f063
      Sven Neumann authored
      2001-12-11  Sven Neumann  <sven@gimp.org>
      	* app/core/core-types.h: removed GimpImageBaseType enum ...
      	* app/core/core-enums.h: and added it here with proper namespace
      	(enum values prefixed with GIMP_).
      	* app/gimprc.c
      	* app/core/gimpcoreconfig.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer.c
      	* app/core/gimppalette-import.c
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell.c
      	* app/file/file-utils.c
      	* app/gui/colormap-dialog.c
      	* app/gui/convert-dialog.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/preferences-dialog.c
      	* app/gui/toolbox.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimppainttool.c
      	* app/widgets/gimpchannellistview.c
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      	* tools/pdbgen/enums.pl
      	* app/pdb/convert_cmds.c
      	* app/pdb/image_cmds.c
      	* libgimp/gimpconvert_pdb.c
      	* libgimp/gimpimage_pdb.c: regenerated.
      	* app/config/Makefile.am
      	* app/config/gimpconfig-params.h
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpcoreconfig.[ch]: added more stuff to GimpCoreConfig.
  34. 10 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/config/Makefile.am new files with code to do substitution magic on · ad6d670b
      Sven Neumann authored
      2001-12-10  Sven Neumann  <sven@gimp.org>
      	* app/config/Makefile.am
      	* app/config/gimpconfig-substitute.[ch]: new files with code to do
      	substitution magic on path strings. Similar to the code in gimprc.c
      	but UTF8 safe.
      	* app/config/gimpconfig-params.h
      	* app/config/gimpbaseconfig.c: added a bunch of convenience macros
      	to register config properties and use them for GimpBaseConfig.
      	* app/config/gimpconfig-types.h: added missing GIMP_VALUE_HOLDS_FOO()
      	* app/config/gimpconfig-deserialize.c: UTF8-validate all strings.
      	* app/config/gimpconfig-serialize.c: some code reorganisation.
  35. 09 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/config/gimpconfig-params.[ch] added new param_spec GIMP_PARAM_PATH · 85783edf
      Sven Neumann authored
      2001-12-09  Sven Neumann  <sven@gimp.org>
      	* app/config/gimpconfig-params.[ch]
      	* app/config/gimpconfig-types.[ch]: added new param_spec
      	GIMP_PARAM_PATH with value_type GIMP_PATH_TYPE.
      	* app/config/gimpconfig.[ch]: added code to store and lookup unknown
      	* app/config/gimpconfig-deserialize.c: improved logic, prepared for
      	special handling of GIMP_PATH_TYPE; still work in progress...
      	* app/config/gimpbaseconfig.c: register temp-path and swap-path as
      	GIMP_PARAM_PATH properties.
  36. 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.
  37. 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.
  38. 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.