1. 27 Jan, 2013 1 commit
  2. 02 May, 2012 1 commit
  3. 23 Jan, 2012 1 commit
    • Michael Natterer's avatar
      app: various tool options and tool preset fixes · 569b262e
      Michael Natterer authored
      - move the code that sets the tool options' "defined" and "serialize"
        properties from GimpToolInto to GimpToolOptions so they are always
        set correctly.
      - make GimpToolOptions fix broken serialized NULL tools automatically.
      - make sure a GimpToolPreset's tool options always has a tool set. If all
        fails, set a NULL tool explicitly and let the logic in GimpToolOptions
        find the right tool.
      - set GimpToolPreset's "use" booleans to FALSE for context properties
        that have no effect on the tool.
      - set GimpToolPresetEditor's toggle insensitive for these properties.
      569b262e
  4. 23 Nov, 2011 1 commit
  5. 24 Jun, 2010 1 commit
  6. 21 Apr, 2010 1 commit
  7. 20 Apr, 2010 1 commit
  8. 29 Aug, 2009 1 commit
    • Martin Nordholts's avatar
      app: Always use gimp_object_get_name() · 957cf2cf
      Martin Nordholts authored
      Begin to consider GimpObject::name as private and always use
      gimp_object_get_name(). Change gimp_object_get_name() to take an
      untyped pointer so we don't have to do so awfully many casts. There is
      a runtime check for the type inside the function anyway.
      957cf2cf
  9. 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
      d9b5207a
  10. 12 Nov, 2008 1 commit
    • Sven Neumann's avatar
      app/core/Makefile.am added GIMP_ERROR as general error domain. · b37c8bcf
      Sven Neumann authored
      2008-11-12  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimperror.[ch]: added GIMP_ERROR as general error 
      domain.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimpselection.c
      	* app/core/gimptooloptions.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpheal.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimpperspectiveclone.c
      	* app/paint/gimpsourcecore.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpdesaturatetool.c
      	* app/tools/gimpgegltool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c
      	* app/vectors/gimpvectors-import.c: use GIMP_ERROR as error 
      domain
      	instead of 0, which is not accepted by g_set_error_literal().
      
      	* app/gui/session.c
      	* app/menus/menus.c
      	* app/vectors/gimpvectors-export.c
      	* app/widgets/gimpdevices.c: use G_FILE_ERROR as error domain 
      for
      	file errors.
      
      
      svn path=/trunk/; revision=27628
      b37c8bcf
  11. 23 Jul, 2008 1 commit
    • Sven Neumann's avatar
      app/core/gimpguideundo.c app/core/gimpitemundo.c · d77ee21b
      Sven Neumann authored
      2008-07-23  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpguideundo.c
      	* app/core/gimpitemundo.c
      	* app/core/gimplayermaskundo.c
      	* app/core/gimppdbprogress.c
      	* app/core/gimpstrokedesc.c
      	* app/core/gimptooloptions.c
      	* app/core/gimptoolpresets.c
      	* app/paint/gimppaintoptions.c
      	* app/text/gimpfont.c
      	* app/tools/gimptool.c
      	* app/widgets/gimpaction.c
      	* app/widgets/gimpcontrollereditor.c: no need to cast the return
      	value of g_value_dup_object().
      
      
      svn path=/trunk/; revision=26289
      d77ee21b
  12. 18 May, 2008 1 commit
    • Michael Natterer's avatar
      add gimp_tool_info_build_options_filename() which creates a filename under · 173905b1
      Michael Natterer authored
      2008-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimptoolinfo.[ch]: add
      	gimp_tool_info_build_options_filename() which creates a filename
      	under $GIMPDIR/tool-options/ with an optional suffix.
      
      	* app/core/gimptooloptions.c
      	* app/core/gimptoolpresets.c: use it and remove own build_filename()
      	functions.
      
      
      svn path=/trunk/; revision=25701
      173905b1
  13. 16 Dec, 2006 1 commit
  14. 11 Dec, 2006 1 commit
    • Sven Neumann's avatar
      added API to delete saved tool-options. · 4fb72eb8
      Sven Neumann authored
      2006-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimptooloptions.[ch]: added API to delete saved
      	tool-options.
      
      	* app/tools/gimp-tools.c: don't deal with saving presets, just
      	load them on startup. Create the tool-options directory when
      	saving tool-options.
      
      	* app/core/gimptoolpresets.[ch]: added new signal that is
      emitted
      	whenever the presets changes. Create the tool-options directory
      	when saving a preset.
      
      	* app/widgets/gimptooloptionseditor.[ch]: listen to the
      "changed"
      	signal of GimpToolPresets and queue an idle save.
      4fb72eb8
  15. 10 Dec, 2006 1 commit
    • Sven Neumann's avatar
      app/core/Makefile.am app/core/core-types.h added GimpToolPresets, derived · df8bf728
      Sven Neumann authored
      2006-12-10  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimptoolpresets.[ch]: added GimpToolPresets, derived
      	from GimpList.
      
      	* app/core/gimptoolinfo.[ch]: use the new type, renamed
      	member "options_presets" to "presets".
      
      	* app/actions/tool-options-actions.c
      	* app/actions/tool-options-commands.c
      	* app/core/gimptooloptions.[ch]
      	* app/menus/tool-options-menu.c
      	* app/widgets/gimptooloptionseditor.c: changed accordingly.
      
      	* app/tools/gimp-tools.c: let the GimpToolPresets object deal
      with
      	loading and saving the presets from ${gimpdir}/tool-options.
      
      	* app/core/gimpcontainer-filter.c
      	* app/core/gimpdocumentlist.c
      	* app/core/gimplist.c
      	* app/text/gimpfontlist.c: use canonical property names.
      df8bf728
  16. 09 Dec, 2006 1 commit
  17. 25 Nov, 2006 1 commit
    • Michael Natterer's avatar
      app/core/gimpbrushclipboard.c app/core/gimppatternclipboard.c · 146e063f
      Michael Natterer authored
      2006-11-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpbrushclipboard.c
      	* app/core/gimppatternclipboard.c
      	* app/core/gimptooloptions.c
      	* app/core/gimpundo.c
      	* app/widgets/gimpdevicestatus.c
      	* app/widgets/gimpdock.c
      	* app/widgets/gimpimageparasiteview.c
      	* app/widgets/gimpimagepropview.c: no need to cast the return
      	value of g_value_get_object(), it's a gpointer.
      146e063f
  18. 15 May, 2006 1 commit
  19. 18 Jan, 2006 1 commit
    • Michael Natterer's avatar
      define GIMP_PARAM_STATIC_STRINGS which is G_PARAM_STATIC_NAME|NICK|BLURB. · e1ceed51
      Michael Natterer authored
      2006-01-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/config-types.c: define GIMP_PARAM_STATIC_STRINGS
      	which is G_PARAM_STATIC_NAME|NICK|BLURB. Also define
      	GIMP_PARAM_READABLE, _WRITABLE and _READWRITE which include
      	GIMP_PARAM_STATIC_STRINGS.
      
      	* app/*/*.c: use them for all object properties so their
      	strings are not copied.
      e1ceed51
  20. 10 Dec, 2005 1 commit
  21. 06 Nov, 2005 1 commit
    • Michael Natterer's avatar
      app/core/gimp-contexts.c app/core/gimp-documents.c · aa80506d
      Michael Natterer authored
      2005-11-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp-contexts.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-parasites.c
      	* app/core/gimp-templates.c
      	* app/core/gimp-units.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimptooloptions.c
      	* app/gui/color-history.[ch]
      	* app/gui/gui.c
      	* app/gui/session.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimp-fonts.c
      	* app/tools/gimp-tools.c
      	* app/widgets/gimpcontrollers.c
      	* app/widgets/gimpdevices.c: when running --verbose, print the
      	name of each config file parsed or written.
      aa80506d
  22. 25 Jan, 2005 1 commit
  23. 03 Jul, 2004 1 commit
    • Michael Natterer's avatar
      added context->serialize_props mask which enables specifying exactly which · 23f6a194
      Michael Natterer authored
      2004-07-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcontext.[ch]: added context->serialize_props mask
      	which enables specifying exactly which properties will be
      	serialized. Also fixes a bug that prevented undefined properties
      	from being serialized, breaking tool_options and device status
      	serialization.
      
      	* app/core/gimptoolinfo.c (gimp_tool_info_new): make only the
      	properties in the tool_info->context_props mask serializable, also
      	configure/initialize tool_info->tool_options.
      
      	* app/tools/gimp-tools.c (gimp_tools_register): removed
      	tool_options initialization that is now done in
      	gimp_tool_info_new().
      
      	* app/widgets/gimpdeviceinfo.c: make only the properties in
      	GIMP_DEVICE_INFO_CONTEXT_MASK serializable.
      
      	* app/widgets/gimpdevicestatus.c: add the device table to its
      	parent container again. Fixes "missing" devices.
      
      	* app/core/gimptooloptions.c
      	* app/widgets/gimpdevices.c: cleanup / code review.
      23f6a194
  24. 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
  25. 29 Sep, 2003 1 commit
    • Michael Natterer's avatar
      added a GimpContainer of tool options presets. · d1ba8704
      Michael Natterer authored
      2003-09-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimptoolinfo.[ch]: added a GimpContainer of tool
      	options presets.
      
      	* app/core/gimptooloptions.[ch] (gimp_tool_options_set_property):
      	silently accept setting the *same* tool_info again.
      
      	(gimp_tool_options_build_filename): is public now.
      
      	* app/tools/gimp-tools.c (gimp_tools_restore,save): load and save
      	the presets container.
      
      	* app/gui/tool-options-dialog.[ch]: removed.
      
      	* app/gui/tool-options-commands.[ch]
      	* app/gui/tool-options-menu.[ch]: new files implementing a menu
      	for the new GimpToolOptionsEditor widget. Has submenus for saving,
      	loading, and deleting tool options to/from the
      	tool_info->options_presets container.
      
      	* app/gui/Makefile.am
      	* app/gui/dialogs-constructors.c
      	* app/gui/menus.c: changed accordingly.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimptooloptionseditor.[ch]: the tool options dialog
      	as proper widget. The "Load" and "Save" buttons still do the same
      	stuff as before. Will make them use the new presets since making
      	them do something useful was the reason for this whole change.
      
      	* app/widgets/gimphelp-ids.h: added missing help IDs for the tool
      	options dialog.
      d1ba8704
  26. 30 Aug, 2003 1 commit
    • Michael Natterer's avatar
      Fixed & cleaned up paint function registration to work without GUI. · c42641fe
      Michael Natterer authored
      2003-08-30  Michael Natterer  <mitch@gimp.org>
      
      	Fixed & cleaned up paint function registration to work without
      	GUI. Finishes core/GUI separation for the paint tools:
      
      	* app/core/gimppaintinfo.[ch]: removed "gchar *pdb_string" all over
      	the place since we don't stroke using the PDB any more.
      	(gimp_paint_info_new): create paint_info->paint_options here so
      	the paint system is fully initialized when there is no GUI.
      
      	* app/paint/paint.c: removed pdb_string stuff here, too.
      
      	* app/core/gimptoolinfo.[ch]: create tool_info->tool_options
      	only if tool_info->tool_options_type is not the same type
      	as paint_info->paint_options_type (if we are no paint tool).
      
      	* app/core/gimptooloptions.c: removed G_PARAM_CONSTRUCT_ONLY from
      	the "tool-info" property. Instead, changed
      	gimp_tool_options_set_property to ensure that it is only set once.
      
      	* app/core/gimp.c (gimp_initialize): moved paint_init() after
      	data_factory creation (was in gimp_init()), since GimpPaintInfo
      	now creates the GimpPaintOptions, which are GimpContexts, which
      	need gimp->*_factory to be constructed.
      
      	* app/tools/tool_manager.c: don't create tool_info->tool_options
      	here (it's not the job of the tool_manager to set up the core
      	paint system correctly, it must be already initialized before any
      	tool_manager function is called).
      
      	Made "Stroke Selection" and "Stroke Path" work the same way:
      
      	* app/paint/gimppaintcore-stroke.[ch]: added new function
      	gimp_paint_core_stroke_boundary() which strokes without using
      	the PDB.
      
      	* app/core/gimpimage-mask.c (gimp_image_mask_stroke): use it
      	instead of using the PDB. Enables all available paint options for
      	stroke operations. Fixes bug #119411.
      
      	* app/gui/vectors-commands.c (vectors_stroke_vectors)
      	* app/core/gimpimage-mask.c (gimp_image_mask_stroke): removed all
      	code which tries to figure how to stroke and simply look at the
      	active tool's tool_info->paint_info, since it is always set up
      	correctly now.
      c42641fe
  27. 24 Jul, 2003 1 commit
  28. 29 Jun, 2003 1 commit
    • Michael Natterer's avatar
      Getting rid of some legacy filenames: · 8dd2e807
      Michael Natterer authored
      2003-06-29  Michael Natterer  <mitch@gimp.org>
      
      	Getting rid of some legacy filenames:
      
      	* app/core/Makefile.am
      	* app/core/gimptooloptions.[ch]: new files.
      
      	* app/paint/gimppaintoptions.h: changed #include accordingly.
      	#define GIMP_PAINT_OPTIONS_CONTEXT_MASK here.
      
      	* app/tools/paint_options.[ch]
      	* app/tools/tool_options.[ch]: removed these files.
      
      	* app/tools/gimppaintoptions-gui.[ch]
      	* app/tools/gimptooloptions-gui.[ch]: new files.
      
      	* app/tools/gimppainttool.h: removed GIMP_PAINT_TOOL_OPTIONS_MASK
      	define again.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendoptions.c
      	* app/tools/gimpbucketfilloptions.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcoloroptions.[ch]
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcropoptions.[ch]
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpflipoptions.[ch]
      	* app/tools/gimpinkoptions.c
      	* app/tools/gimpmagnifyoptions.[ch]
      	* app/tools/gimpmeasureoptions.[ch]
      	* app/tools/gimpmoveoptions.[ch]
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpselectionoptions.[ch]
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptextoptions.[ch]
      	* app/tools/gimptransformoptions.[ch]
      	* app/tools/tool_manager.c
      	* app/gui/tool-options-dialog.c: changed accordingly.
      
      	* app/tools/tools.c: moved the vector tool before iscissors.
      8dd2e807
  29. 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
  30. 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
  31. 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
  32. 26 Feb, 2003 1 commit
    • Sven Neumann's avatar
      don't insert an extra line-break after a serialized property. · b3e58673
      Sven Neumann authored
      2003-02-26  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-serialize.c (gimp_config_serialize_properties):
      	don't insert an extra line-break after a serialized property.
      
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpconfig-dump.c
      	* app/gui/tips-parser.c: use g_string_truncate (str, 0) instead of
      	assigning an empty string.
      
      	* app/tools/gimptextoptions.c: override the serialize and
      	deserialize methods of the GimpConfig interface and save/restore
      	the associated GimpText object instead of GimpTextOptions.
      
      	* app/tools/tool_options.c (gimp_tool_options_build_filename):
      	don't append ".default" if no extension is given.
      b3e58673
  33. 10 Feb, 2003 1 commit
    • Michael Natterer's avatar
      added a "const gchar *extension" parameter to · a071be69
      Michael Natterer authored
      2003-02-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tool_options.[ch]: added a "const gchar *extension"
      	parameter to gimp_tool_options_[de]serialize(). Default to
      	"default" if NULL is passed.
      
      	* app/tools/tool_manager.[ch]: load the tool_options from the
      	default files in tool_manager_restore(), added tool_manager_save()
      	which saves the default files.
      
      	* app/app_procs.c: call tool_manager_save() on app exit.
      
      	* app/gui/tool-options-dialog.c: pass "user" when loading/saving
      	the user defaults. Changed tooltips of the load & save buttons.
      a071be69
  34. 09 Feb, 2003 1 commit
    • Michael Natterer's avatar
      simplified everything a lot by merging the public GimpContextPropType enum · eb6e907b
      Michael Natterer authored
      2003-02-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcontext.[ch]: simplified everything a lot by
      	merging the public GimpContextPropType enum with the internal
      	anonymous object property id enum. Removed the internal copy_prop
      	functions and handle property copying in a big switch() in
      	gimp_context_copy_property(). Removed the separate signal
      	connections for each property of the parent context and do the
      	same using a single "notify" handler. Emit "notify" signals all
      	over the place.  Removed internal arrays which are no longer
      	needed due to enum merge and copy_property simplification.
      	Removed the array of signal names and use g_signal_name().
      	Removed gimp_context_unset_parent() and allow "parent" being NULL
      	in gimp_context_set_parent().
      
      	* app/tools/tool_manager.c
      	* app/widgets/gimpdevices.c: changed accordingly.
      
      	* libgimptool/gimptooltypes.h: changed GimpToolOptionsGUIFunc to
      	return a GtkWidget (the created tool options widget).
      
      	* libgimptool/gimptoolmodule.c: #include <gtk/gtk.h>
      
      	* app/tools/tool_options.[ch]: removed the "main_vbox" from the
      	GimpToolOptions struct. Changed gimp_tool_options_gui() to create
      	and return the main_vbox.
      
      	* app/tools/tool_manager.c: create the "This Tool has no Options"
      	label here if NULL was passed as "options_gui_func". Attach the
      	options widget to the tool_options object using
      	g_object_set_data().
      
      	* app/gui/tool-options-dialog.c: changed accordingly.
      
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendoptions.[ch]
      	* app/tools/gimpbucketfilloptions.[ch]
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickeroptions.[ch]
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcropoptions.[ch]
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpflipoptions.[ch]
      	* app/tools/gimpinkoptions.[ch]
      	* app/tools/gimpmagnifyoptions.[ch]
      	* app/tools/gimpmeasureoptions.[ch]
      	* app/tools/gimpmoveoptions.[ch]
      	* app/tools/gimpselectionoptions.[ch]
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptextoptions.[ch]
      	* app/tools/gimptransformoptions.[ch]
      	* app/tools/gimpvectoroptions.[ch]
      	* app/tools/paint_options.[ch]: return the options vbox from
      	all tool_options_gui functions.
      eb6e907b
  35. 08 Feb, 2003 1 commit
  36. 07 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Added object properties for almost all tool_options values and registered · eeec3ced
      Michael Natterer authored
      2003-02-07  Michael Natterer  <mitch@gimp.org>
      
      	Added object properties for almost all tool_options values
      	and registered lots of enums with the type system:
      
      	Part I (enum and type cleanup):
      
      	* app/core/core-enums.[ch]
      	* app/core/core-types.h: removed InternalOrientaionType and
      	register GimpOrientationType. Register GimpChannelOps.
      	Removed GimpToolOptionsGUIFunc.
      
      	* app/xcf/xcf-private.h: added XcfOrientationType with the
      	same values as the old InternalOrientationType
      
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c: translate between GimpOrientationType and
      	XcfOrientationType.
      
      	* app/core/gimpdrawable-transform-utils.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.h
      	* app/display/gimpdisplayshell.c
      	* tools/pdbgen/stddefs.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: changed accordingly.
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/transform_tools_cmds.c
      	* libgimp/gimpenums.h
      	* libgimpproxy/gimpproxytypes.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* libgimptool/gimptoolenums.[ch]: added GimpTransformGridType.
      
      	* libgimptool/gimptooltypes.h: removed GimpToolOptionsResetFunc,
      	added GimpToolOptionsGUIFunc.
      
      	Part II (tool options changes):
      
      	* app/config/gimpconfig-utils.c (gimp_config_reset_properties):
      	don't reset object properties because they have NULL as default
      	value.
      
      	* app/widgets/gimppropwidgets.[ch]: added
      	gimp_prop_[enum|boolean]_radio_frame_new(),
      	gimp_prop_paint_mode_menu_new() and gimp_prop_scale_entry_new(),
      	which are all needed by the new tool options GUI code.
      
      	* app/tools/tool_options.[ch]: removed the "reset_func" since
      	the virtual reset() method is used now.
      
      	* app/paint/gimpairbrushoptions.[ch]
      	* app/paint/gimpcloneoptions.[ch]
      	* app/paint/gimpconvolveoptions.[ch]
      	* app/paint/gimpdodgeburnoptions.[ch]
      	* app/paint/gimperaseroptions.[ch]
      	* app/paint/gimppaintoptions.[ch]
      	* app/paint/gimpsmudgeoptions.[ch]: added properties all over the
      	place and removed the widget and default_value members from
      	the structs. Renamed some values (e.g. s/type/clone_type/).
      	Don't #include <gtk/gtk.h>.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/paint/paint-types.h
      	* app/paint/paint.c: changed accordingly. Don't #include <gtk/gtk.h>.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: changed accordingly.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* app/tools/gimpblendoptions.[ch]
      	* app/tools/gimpbucketfilloptions.[ch]
      	* app/tools/gimpcolorpickeroptions.[ch]
      	* app/tools/gimpcropoptions.[ch]
      	* app/tools/gimpflipoptions.[ch]
      	* app/tools/gimpinkoptions.c
      	* app/tools/gimpmagnifyoptions.[ch]
      	* app/tools/gimpmeasureoptions.[ch]
      	* app/tools/gimpmoveoptions.[ch]
      	* app/tools/gimptextoptions.c
      	* app/tools/paint_options.[ch]
      	* app/tools/selection_options.[ch]
      	* app/tools/transform_options.[ch]: ditto: added properties and
      	removed widget and default_value stuff. Removed most reset functions.
      	Use gimp_prop widgets all over the place, renamed some values
      	as above.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectoroptions.c: changed accordingly. Ported
      	the paint_options GUI constructors to gimp_prop widgets.
      
      	* app/widgets/gimpselectioneditor.c
      	* app/gui/tool-options-dialog.c: changed accordingly.
      eeec3ced
  37. 05 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Made GimpToolOptions a GimpContext subclass and objectified all tool · aa9f82d1
      Michael Natterer authored
      2003-02-05  Michael Natterer  <mitch@gimp.org>
      
      	Made GimpToolOptions a GimpContext subclass and objectified
      	all tool options types.
      
      	* app/core/core-types.h: replaced GimpToolOptionsNewFunc by
      	GimpToolOptionsGUIFunc.
      
      	* libgimpproxy/gimpproxytypes.h: regenerated.
      
      	* app/core/gimppaintinfo.[ch]: added "GType paint_options_type".
      
      	* app/core/gimptoolinfo.[ch]: added "GType tool_options_type",
      	removed tool_info->context since GimpToolOptions are a GimpContext
      	now. Added "gboolean use_context" as a temp_hack.
      
      	* libgimptool/gimptooltypes.h: added the tool_options_type to
      	the tool registering callback.
      
      	* app/tools/tool_options.[ch]: is a real GimpContext subclass now.
      
      	* app/paint/paint-types.h
      	* app/paint/paint.c: added the paint_options_type to the paint
      	registering stuff.
      
      	* app/paint/gimppaintoptions.[ch]: is a real GimpToolOptions
      	subclass now.
      
      	* app/paint/Makefile.am
      	* app/paint/gimpairbrushoptions.[ch]
      	* app/paint/gimpcloneoptions.[ch]
      	* app/paint/gimpconvolveoptions.[ch]
      	* app/paint/gimpdodgeburnoptions.[ch]
      	* app/paint/gimperaseroptions.[ch]
      	* app/paint/gimpsmudgeoptions.[ch]: new files holding
      	GimpPaintOptions subclasses.
      
      	* app/paint/gimpairbrush.[ch]
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.[ch]
      	* app/paint/gimpsmudge.[ch]: removed paint options stuff, lots
      	of related changed & cleanups.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: changed accordingly.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpblendoptions.[ch]
      	* app/tools/gimpbucketfilloptions.[ch]
      	* app/tools/gimpcolorpickeroptions.[ch]
      	* app/tools/gimpcropoptions.[ch]
      	* app/tools/gimpflipoptions.[ch]
      	* app/tools/gimpinkoptions.[ch]
      	* app/tools/gimpmagnifyoptions.[ch]
      	* app/tools/gimpmeasureoptions.[ch]
      	* app/tools/gimpmoveoptions.[ch]
      	* app/tools/gimptextoptions.[ch]
      	* app/tools/gimpvectoroptions.[ch]: new files holding the various
      	tool options classes.
      
      	* app/tools/selection_options.[ch]
      	* app/tools/transform_options.[ch]: made them objects.
      
      	* app/tools/paint_options.[ch]: contains only the paint_options
      	GUI and reset stuff.
      
      	* app/tools/tools-types.h: removed SelectionOptions typedef for
      	now.
      
      	* app/tools/[all tools]: removed the tool options stuff except
      	some GUI constructors. Tons of related changes.
      
      	* app/tools/tool_manager.[ch]: changed tool registration / restore /
      	switching accordingly.
      
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpselectioneditor.c: changed accordingly.
      aa9f82d1
  38. 20 Nov, 2001 1 commit
    • Michael Natterer's avatar
      added GimpToolRegisterFunc, GimpToolRegisterCallback and · a75c675d
      Michael Natterer authored
      2001-11-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tools-types.h: added GimpToolRegisterFunc,
      	GimpToolRegisterCallback and GimpToolOptionsNewFunc typedefs
      	which are used to register tools.
      
      	* app/tools/tools.c: put the register funcs in an array of
      	GimpToolRegisterFuncs. Pass a Gimp pointer *plus* a
      	GimpToolRegisterCallback (which is tool_manager_register_tool())
      	to the tools' register functions.
      
      	* app/tools/tool_manager.[ch]: added a GimpToolOptionsNewFunc to
      	the parameters of tool_manager_register_tool(). Create the tool
      	options here, not in each tool.
      
      	* app/tools/paint_options.[ch]
      	* app/tools/selection_options.[ch]
      	* app/tools/tool_options.[ch]
      	* app/tools/transform_options.[ch]: all _init() and _new()
      	functions take a GimpToolInfo pointer now. The _reset() func needs
      	to be set manually now.
      
      	* app/tools/[all_tools].[ch]: changed accordingly:
      
      	- pass GimpToolOptionsNewFuncs to the register callback.
      	- don't create the tool options in the tools' _init() function.
      	- removed all static tool options variables.
      	- get the options from the tool system in the cases i missed
      	  in my last commit.
      	- added minor hacks to get rid of the static options pointer
      	  in some pathological cases :) (i.e. the ink tool).
      a75c675d
  39. 17 Jul, 2001 1 commit
    • Michael Natterer's avatar
      removed path_to_beziersel() so this file can be safely included from · b844c985
      Michael Natterer authored
      2001-07-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/path.[ch]: removed path_to_beziersel() so this file can be
      	safely included from core/.
      
      	* app/tools/gimpbezierselecttool.[ch]: added it here.
      
      	* app/core/core-types.h: added a GimpToolOptions typedef. Removes
      	deps into tools/ and will later be a core object anyway.
      
      	* app/tools/tools-types.h: removed the ToolOptions typedef here.
      
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage.c
      	* app/core/gimptoolinfo.[ch]: removed deps into tools/, misc stuff.
      
      	* app/tools/tool_manager.[ch]: some ugly temp hacks. Please ignore.
      
      	* app/widgets/gimpdialogfactory.[ch]: added a "remember_if_open" field
      	to the GimpDialogFactoryEntry so we can manage dialogs which should
      	not be re-opened on startup.
      
      	* app/gui/dialogs-constructors.c
      	* app/gui/dialogs.c: register & create all editor dialog with the
      	"global_dialog_factory".
      
      	* app/gui/tool-options-dialog.c
      	* app/tools/*: s/ToolOptions/GimpToolOptions/
      b844c985
  40. 13 May, 2001 1 commit
    • Michael Natterer's avatar
      removed some forgotten tools types. · 637c714a
      Michael Natterer authored
      2001-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/apptypes.h: removed some forgotten tools types.
      
      	* app/tools/tools-types.h: and added them here.
      
      	* app/interface.c
      	* app/disp_callbacks.[ch]: ported dropping of drawables to the
      	new DND system.
      
      	* app/app_procs.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimptoolinfo.h
      	* app/gui/gui.c
      	* app/tools/tool_options.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimplayerlistview.c: removed/fixed includes.
      
      	* app/gui/brush-select.[ch]
      	* app/gui/pattern-select.[ch]: removed the display of the current
      	name (done by the grid view now).
      
      	* app/gui/palette-select.c: fixed palette preview size.
      
      	* app/gui/dialogs-constructors.c: added get_name() functions for
      	brushes, patterns, images and palettes.
      
      	* app/widgets/gimpcontainergridview.[ch]: added a label for the
      	name of the active item.
      
      	* app/widgets/gimpdnd.[ch]: removed the old drawable DND preview
      	icon code.
      
      	* tools/pdbgen/app.pl: braino: the $tool_eek hack has to be
      	initialized to 0 at the beginning of each file, otherwise we end
      	up including "tools/tools-types.h" everywhere.
      
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/tools.pdb: add "tools/tools-types.h" where needed.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/pattern_select_cmds.c
      	* app/pdb/patterns_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/undo_cmds.c
      	* app/pdb/unit_cmds.c: regenerated.
      637c714a