1. 04 Feb, 2004 1 commit
    • Sven Neumann's avatar
      added the new function gimp_rc_set_unknown_token() to get autosave working · a4304638
      Sven Neumann authored
      2004-02-04  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimprc.[ch]: added the new function
      	gimp_rc_set_unknown_token() to get autosave working for unknown
      	gimprc tokens.
      
      	* app/config/gimpconfig.c: indentation.
      
      	* tools/pdbgen/pdb/gimprc.pdb: gimp->edit_config was used for a
      	good reason, it's the one that's saved. Reverted a change I did
      	about a month ago. Use gimp_rc_set_unknown_token() so unknown
      	tokens get saved. This really fixes gimp_gimprc_set().
      
      	* app/pdb/gimprc_cmds.c: regenerated.
      a4304638
  2. 15 Oct, 2003 1 commit
    • Michael Natterer's avatar
      app/widgets/gimpdocked.c (gimp_docked_iface_base_init) they are base_init, · b09cadf0
      Michael Natterer authored
      2003-10-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdocked.c (gimp_docked_iface_base_init)
      	* app/config/gimpconfig.c (gimp_config_iface_base_init): they are
      	base_init, not just init functions. Changed implementations to not
      	overwrite the parent class' vtable entries with the default
      	implementations. Fixes derived interface methods and brings
      	back all dockable menus.
      b09cadf0
  3. 14 Oct, 2003 2 commits
    • Sven Neumann's avatar
      app/config/gimpconfig-utils.c (gimp_config_diff) (gimp_config_sync) · cff08b64
      Sven Neumann authored
      2003-10-15  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-utils.c (gimp_config_diff) (gimp_config_sync)
      	* app/config/gimpconfig.c (gimp_config_iface_equal): compare and sync
      	aggregate objects recursively.
      
      	* app/core/gimptemplate.c (gimp_template_finalize): don't leak the
      	filename.
      
      	* app/display/gimpdisplayshell-title.c
      	* app/config/gimpconfig-dump.c: added %L format identifier for
      	verbose layer count. Renamed former %L to %n (layer name).
      
      	* app/config/gimpdisplayconfig.c: changed default image title and
      	image status format strings.
      
      	* app/gui/dialogs-constructors.c: added a blurb for Templates
      	dockables.
      
      	* app/display/gimpdisplayshell.h: fixed typo.
      cff08b64
    • Sven Neumann's avatar
      removed gimp_config_copy_properties() and added the more intelligent · 737da424
      Sven Neumann authored
      2003-10-14  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-utils.[ch]: removed
      	gimp_config_copy_properties() and added the more intelligent
      	gimp_config_sync() instead.
      
      	* app/config/Makefile.am
      	* app/config/config-types.h
      	* app/config/gimpcoreconfig.[ch]
      	* app/config/gimprc-blurbs.h: replaced default image properties
      	with a single GimpTemplate object property. Changed the
      	set_property function to not replace aggregate objects but call
      	gimp_config_sync() instead.
      
      	* app/tools/gimptextoptions.c (gimp_text_options_set_property):
      	same change here.
      
      	* app/config/gimpconfig.[ch]: changed return value of
      	gimp_config_duplicate() to gpointer to avoid some casts that only
      	made the code harder to read.
      
      	* app/widgets/gimptemplateeditor.[ch]: don't keep an internal copy
      	here but edit the GimpTemplate passed when the editor was
      	constructed.
      
      	* app/gui/preferences-dialog.c: use a GimpTemplateEditor to allow
      	editing of the default image paramaters.
      
      	* app/config/gimprc.c
      	* app/core/core-types.h
      	* app/core/gimp.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-grid.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/core/gimptemplate.[ch]
      	* app/gui/file-new-dialog.c
      	* app/gui/grid-dialog.c
      	* app/gui/info-window.c
      	* app/gui/resize-dialog.c
      	* app/gui/templates-commands.[ch]
      	* app/gui/tool-options-commands.c
      	* app/text/gimptextlayer.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimptexttool.c
      	* app/widgets/gimptemplateview.c
      	* app/xcf/xcf-load.c: changed accordingly.
      737da424
  4. 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
  5. 29 Sep, 2003 1 commit
    • Michael Natterer's avatar
      Fixed handling of G_PARAM_CONSTRUCT_ONLY properties: · 017d1839
      Michael Natterer authored
      2003-09-29  Michael Natterer  <mitch@gimp.org>
      
      	Fixed handling of G_PARAM_CONSTRUCT_ONLY properties:
      
      	* app/config/gimpconfig.c (gimp_config_iface_duplicate): build
      	a GParameter array of G_PARAM_CONSTRUCT_ONLY properties and
      	use g_object_newv() instead of g_object_new() to create the
      	copy.
      
      	* app/config/gimpconfig-utils.c
      	(gimp_config_copy_properties)
      	(gimp_consif_reset_properties): don't try to copy/reset
      	G_PARAM_CONSTRUCT_ONLY properties because it is impossible.
      
      	(gimp_config_connect_notify): ditto. Also don't try to read
      	from unreadable or write to unwritable properties.
      017d1839
  6. 08 Aug, 2003 1 commit
    • Sven Neumann's avatar
      app/config/gimpconfig-deserialize.c app/config/gimpconfig-serialize.c · 2dbb3880
      Sven Neumann authored
      2003-08-08  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpconfig.c
      	* app/config/gimprc.c
      	* app/core/gimpitem.[ch]
      	* app/display/gimpprogress.[ch]
      	* app/widgets/gimpdialogfactory.c
      	* app/widgets/gimpenummenu.c
      	* app/widgets/gimpfontselection.c
      	* app/widgets/gimpwidgets-utils.c: documentation fixes.
      2dbb3880
  7. 24 Jul, 2003 1 commit
    • Sven Neumann's avatar
      app/config/Makefile.am moved code from gimpconfig.[ch] to these new files. · d75a2f79
      Sven Neumann authored
      2003-07-24  Sven Neumann  <sven@gimp.org>
      
      	* app/config/Makefile.am
      	* app/config/gimpconfig-error.[ch]: moved code from gimpconfig.[ch]
      	to these new files.
      
      	* app/config/gimpconfig-utils.[ch]: moved gimp_config_string_indent()
      	here from gimpconfig.[ch].
      
      	* app/config/gimpconfig.[ch]
      	* app/config/gimpconfigwriter.c
      	* app/config/gimprc.c
      	* app/config/gimpscanner.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-parasites.c
      	* app/core/gimp-templates.c
      	* app/widgets/gimpdevices.c: changed accordingly.
      d75a2f79
  8. 11 Jul, 2003 1 commit
  9. 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".
      6f83a525
  10. 24 Jun, 2003 1 commit
    • Sven Neumann's avatar
      added new function gimp_config_serialize_to_fd() for the sake of · 7a6a908a
      Sven Neumann authored
      2003-06-24  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig.[ch]: added new function
      	gimp_config_serialize_to_fd() for the sake of completeness and
      	since it's a nice way to generate debugging output.
      
      	* app/text/Makefile.am
      	* app/text/gimptext-xlfd.[ch]: new files with routines to handle X
      	Logical Font Descriptions in an attempt to improve backwards
      	compatibility.
      
      	* app/text/gimptext-parasite.[ch]
      	* app/xcf/xcf-load.c: promote layers with GDynText parasite to
      	GimpTextLayer. Work in progress, we need to improve font matching.
      7a6a908a
  11. 23 Jun, 2003 1 commit
    • Sven Neumann's avatar
      app/config/gimpconfig.[ch] app/config/gimpconfigwriter.[ch] added support · f30586d1
      Sven Neumann authored
      2003-06-23  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig.[ch]
      	* app/config/gimpconfigwriter.[ch]
      	* app/config/gimpscanner.[ch]: added support for serializing to
      	and deserializing from strings. Had to do some smaller changes to
      	the GimpConfig API.
      
      	* app/config/test-config.c: added a simple test for the new
      	functions.
      
      	* app/config/gimpconfig-dump.c
      	* app/config/gimprc.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-parasites.c
      	* app/core/gimp-templates.c
      	* app/core/gimpunits.c
      	* app/gui/session.c
      	* app/plug-in/plug-in-rc.c
      	* app/tools/tool_options.c
      	* app/widgets/gimpdevices.c: follow GimpConfig API changes.
      
      	* libgimpbase/gimpparasite.[ch]: declared the return value of
      	gimp_parasite_data() as gconstpointer.
      f30586d1
  12. 25 Mar, 2003 1 commit
    • Sven Neumann's avatar
      Makefile.am removed this header file. · 28fddfd5
      Sven Neumann authored
      2003-03-25  Sven Neumann  <sven@gimp.org>
      
      	* Makefile.am
      	* gimpintl.h: removed this header file.
      
      	* gimpmiscui.c: include libgimp-intl.h.
      
      	* gimp.c (gimp_main): call setlocale() and bind to the libgimp
      	textdomain so that plug-ins don't need to do that explicitely.
      
      	* libgimp/stdplugins-intl.h: added the functionality that used to
      	live in gimpintl.h and removed the libgimp related stuff. Got rid
      	of the INIT_I18N_UI() macro.
      
      	* plug-ins/*/*.c: removed all occurances of INIT_I18N_UI().
      	Plug-ins simply call INIT_I18N() once in their run() function.
      
      	* plug-ins/script-fu/script-fu-intl.h: added the functionality
      	that used to live in gimpintl.h and removed the libgimp related
      	stuff.
      
      	* app/Makefile.am
      	* app/gimp-intl.h: new file that defines the gettext macros for
      	the GIMP core.
      
      	* app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h.
      
      	* plug-ins/script-fu/scripts/test-sphere.scm: fixed typos.
      28fddfd5
  13. 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
  14. 01 Feb, 2003 1 commit
    • Sven Neumann's avatar
      app/config/gimpconfig.[ch] added a reset method to GimpConfigInterface. · 47f2a7f8
      Sven Neumann authored
      2003-02-01  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig.[ch]
      	* app/config/gimpconfig-utils.[ch]: added a reset method to
      	GimpConfigInterface. Added the new function gimp_config_reset()
      
      	* app/text/gimptext.c: added a GimpConfigInterface to GimpText.
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimptexteditor.[ch]: new files that hold the simple
      	text editor dialog used by the text tool.
      
      	* app/widgets/gimppropwidgets.[ch]: added new widget constructor
      	gimp_prop_scale_entry_new().
      
      	* app/tools/gimptexttool.[ch]: replaced old-style ToolOptions with
      	a GimpText object. Connect text layers to the text tool by means
      	of their GimpText objects. Still work in progress ...
      47f2a7f8
  15. 29 Dec, 2002 1 commit
    • Sven Neumann's avatar
      configure.in etc/Makefile.am etc/gimprc.in removed templates for gimprc · 023c7697
      Sven Neumann authored
      2002-12-29  Sven Neumann  <sven@gimp.org>
      
      	* configure.in
      	* etc/Makefile.am
      	* etc/gimprc.in
      	* etc/gimprc_user.in: removed templates for gimprc files.
      
      	* etc/gimprc: added this file as generated by gimp-config-dump.
      
      	* app/gui/user-install-dialog.c
      	* data/misc/user_install: don't install an empty user gimprc.
      
      	* app/config/Makefile.am
      	* app/config/gimpconfig-substitute.[ch]: removed these files.
      	* app/config/gimpconfig-path.[ch]: and added them again with
      	reduced functionality. Paths found in config files are now
      	basically handled like standard strings by the config system.
      	Users of the GimpConfig path variables need to expand the path
      	themselves.
      
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-dump.c
      	* app/config/gimpconfig-utils.c
      	* app/config/gimpconfig.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimprc.c:
      	* app/base/base.c
      	* app/base/temp-buf.c
      	* app/core/gimp.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpmodules.c
      	* app/gui/user-install-dialog.c
      	* app/plug-in/plug-in.c
      	* app/tools/tools.c
      	* app/widgets/gimppropwidgets.c: changed accordingly.
      023c7697
  16. 20 Dec, 2002 1 commit
  17. 01 Dec, 2002 1 commit
    • Hans Breuer's avatar
      updated · 7c7ff46c
      Hans Breuer authored
      2002-11-30  Hans Breuer  <hans@breuer.org>
      
      	* */makefile.msc */*/makefile.msc : updated
      
      	* themes/Default/images/makefile.msc : new file
      	* themes/Default/makefile.msc : removed
      
      	* libgimpwidgets/gimpwidgets.def : updated
      
      	* app/core/core-types.h : renamed PIXELS and POINTS
      	to SIZE_* to avoid clashes with system headers
      	* app/pdb/text_tool_cmds.c : updated ...
      	* tools/pdbgen/enums.py : ... by renaming here too.
      
      	* app/widgets/gimphistogrambox.c : <string.h> for memcpy()
      	* app/widgets/gimppropwidgets.c : <string.h> for strlen()
      
      	* app/config/gimpconfig.c : on win32 rename always fails
      	if the destination file exists. Delete it first.
      
      	* libgimp/gimp.def : removed all '_'-prefixed exports
      	* plug-ins/common/iwarp.c : replace _gimp_layer_copy()
      	with gimp_layer_copy(), gimp_layer_add_alpha()
      
      	* libgimp/gimpmisc.c : ported gimp_timer funcs to use
      	g_timer to be more portable
      
      	* libgimpbase/gimpdatafiles.c : there are no symlinks on
      	win32, inverted to #ifndef G_OS_WIN32 as it was meant.
      
      	* libgimpbase/gimpbase.def libgimpmodule/gimpmodule.def
      	  libgimpwidgets/gimpwidgets.def : updated externals
      
      	* plug-ins/common/randomize.c plug-ins/common/sinus.c :
      	don't initialize more than the defined struct size
      
      	* plug-ins/common/warp.c : removed unneeded unistd.h and
      	signal.h include
      
      	* regexrepl/regexrepl.def : (new file) needed to build
      	as DLL
      7c7ff46c
  18. 23 Nov, 2002 1 commit
    • Michael Natterer's avatar
      removed gimp_config_values_equal(). · 4ce4adf8
      Michael Natterer authored
      2002-11-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig-utils.[ch]: removed
      	gimp_config_values_equal().
      
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpconfig.c: use g_param_values_cmp() instead so
      	our registered compare methods are used.
      
      	* app/config/gimpdisplayconfig.[ch]: added "canvas_padding_mode"
      	and "canvas_padding_color" properties.
      
      	* app/display/display-enums.[ch]: added enum GimpDisplayPaddingMode
      	which can be one of { theme, light check, dark check, custom }.
      
      	* app/display/gimpdisplay.h
      	* app/display/gimpdisplay-handlers.c: removed cached monitor
      	resolution values...
      
      	* app/display/gimpdisplayshell.[ch]: ...and added them here. Added
      	padding state as in GimpDisplayConfig. Added utility function
      	gimp_display_shell_set_padding() which hides all the details.
      	Added the new padding modes to the padding color button's context
      	menu.
      
      	* app/display/gimpdisplayshell-callbacks.[ch]: don't fiddle
      	with colors manually but use gimp_display_shell_set_padding()
      	in realize() and in the color button callbacks.
      
      	* app/display/gimpdisplayshell-handlers.c: connect to
      	notify::monitor-[xy]resolution and
      	notify::canvas-padding-[mode|color] and update accordingly.
      
      	* app/widgets/gimppropwidgets.[ch]: added
      	gimp_prop_color_button_new().
      
      	* app/widgets/gimpdialogfactory.[ch]: added
      	gimp_dialog_factories_session_clear() (unimplemented).
      
      	* app/gui/preferences-dialog.c: added widgets for padding mode and
      	color. Removed some callbacks by connecting the functions they
      	called directly. Cleanup.
      4ce4adf8
  19. 18 Nov, 2002 1 commit
  20. 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
  21. 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
  22. 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
  23. 28 May, 2002 1 commit
    • 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
  24. 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
  25. 24 May, 2002 3 commits
    • 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
  26. 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
      	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
  27. 21 May, 2002 1 commit
    • 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
  28. 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
  29. 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
  30. 13 May, 2002 1 commit
  31. 05 May, 2002 1 commit
    • Sven Neumann's avatar
      app/config/gimpconfig-serialize.c app/config/gimpconfig-utils.[ch] · 7f6b1d55
      Sven Neumann authored
      2002-05-06  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpconfig-utils.[ch]
      	* app/config/gimpconfig.[ch]
      	* app/config/gimprc.[ch]: added a GimpRc implementation of
      	gimp_config_duplicate() that also copies unknown tokens. Added new
      	function gimp_rc_query().
      
      	* app/config/test-config.c: added tests for gimp_rc_query().
      
      	* app/config/Makefile.am: need to link test app against libappwidgets.
      7f6b1d55
  32. 03 May, 2002 1 commit
    • Sven Neumann's avatar
      app/arch/i386/mmx/detect_mmx.S applied a patch from iccii@hotmail.com that · 43c602dc
      Sven Neumann authored
      2002-05-04  Sven Neumann  <sven@gimp.org>
      
      	* app/arch/i386/mmx/detect_mmx.S
      	* app/arch/i386/mmx/paint_funcs_mmx.S: applied a patch from
      	iccii@hotmail.com that promises to fix build on mingw (bug #80681).
      
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpconfig-utils.[ch]: moved value compare function to
      	gimpconfig-utils.
      
      	* app/config/gimpconfig.[ch]: added duplicate and compare functions
      	to GimpConfigInterface so derived interfaces can override them.
      
      	* app/tools/gimptexttool.c: fixed tool cursor.
      43c602dc
  33. 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