1. 14 Dec, 2001 1 commit
    • Michael Natterer's avatar
      added GIMP_IMAGE_TYPE_IS_[RGB|GRAY|INDEXED]() and · 37269769
      Michael Natterer authored
      2001-12-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.[ch]: added
      	GIMP_IMAGE_TYPE_IS_[RGB|GRAY|INDEXED]() and
      	GIMP_IMAGE_TYPE_BASE_TYPE() macros.
      
      	* app/plug-in/plug-in.[ch]: new enum PlugInImageType instead of
      	multiple #defines.
      
      	* app/gui/file-dialog-utils.[ch]: file_dialog_update_menus(): take
      	a GimpImageType instead of the PlugInImageType.
      
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimplayermask.c
      	* app/core/gimppalette-import.c
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/file-save-dialog.c
      	* app/gui/toolbox.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/image.pdb: use the new macros, cleanups like
      	storing GimpImageType in GimpImageType variables, not just gint.
      
      	* app/pdb/convert_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      
      	* app/widgets/gimpdialogfactory.c: save the state of the "Auto"
      	button in sessionrc.
      37269769
  2. 13 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/config/gimpconfig-deserialize.h fixed typos. · 94e7e1e5
      Sven Neumann authored
      2001-12-13  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-deserialize.h
      	* app/config/gimpconfig-serialize.c: fixed typos.
      
      	* app/core/core-enums.h
      	* app/core/core-types.h: converted ChannelType enum to GimpChannelType
      	and moved it to core-enums.h.
      
      	* app/core/gimpimage.[ch]
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpcomponentlistitem.[ch]
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      
      	* app/pdb/image_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      94e7e1e5
  3. 12 Dec, 2001 2 commits
    • Michael Natterer's avatar
      made gimp->global_buffer a GimpBuffer, not TileManager. · 9b8bf8de
      Michael Natterer authored
      2001-12-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp.[ch]: made gimp->global_buffer a GimpBuffer,
      	not TileManager.
      
      	* app/core/gimpbuffer.[ch]: added a "gboolean copy_pixels" to
      	gimp_buffer_new().
      
      	* app/core/gimpimage-new.c
      	* app/core/gimpedit.[ch]
      	* app/core/gimpimage-qmask.c
      	* app/widgets/gimpbufferpreview.c
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcontainerview-utils.c: chaned accordingly, don't
      	include "base/tile-manager.h".
      
      	* app/core/gimpdrawable.[ch]: added gimp_drawable_copy().
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimplayermask.[ch]: use it in
      	gimp_[channel|layer|layer_mask]_copy(), added "GType new_type" as
      	paramater to all of them.
      
      	* app/core/gimpimage-duplicate.c
      	* app/gui/channels-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/layers-commands.c
      	* app/widgets/gimpchannellistview.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      
      	* app/core/gimplayer.[ch]: removed the "layer_type" parameter from
      	gimp_layer_new_from_tiles() because it always needed to be equal
      	to gimp_image_base_type_with_alpha() of the passed image.
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c: cahanged accordingly.
      
      	* app/core/gimpimage.[ch]: added some new GIMP_IMAGE_TYPE_FOO()
      	marcos to get rid of magic values like "pixels = 3" all over the
      	place.
      
      	* app/core/gimplayer.[ch]: added gimp_layer_new_from_drawable()
      	which creates a layer from an other image's drawable.
      
      	* app/core/gimpimage-convert.[ch]: made the RGB and GRAY converters
      	public to use them above, use the new GIMP_IMAGE_TYPE() macros.
      
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/toolbox.c: removed tile manager stuff and use the new
      	functions.
      
      	* app/widgets/gimpdrawablelistview.[ch]: added a
      	"convert_drawable_func" which is used to handle drops from other
      	images.
      
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplistitem.[ch]: implemented DND of layers between
      	images using gimp_layer_new_from_drawable().
      
      	* app/gui/dialogs-constructors.c: changed accordingly.
      9b8bf8de
    • Michael Natterer's avatar
      app/core/Makefile.am new files. · 1bc1419e
      Michael Natterer authored
      2001-12-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-pick-color.[ch]: new files.
      
      	gimp_image_pick_color() doesn't set the FG or BG color and doesn't
      	touch the current palettte.
      
      	* app/tools/gimpcolorpickertool.[ch]: removed the actual picking
      	code, set the user_context's FG or BG color here.
      
      	* app/gui/palette-editor.[ch]:
      	s/palette_set_active_color/palette_editor_update_color/, don't set
      	the FG and BG color here. The function is still #if 0'ed.
      
      	* app/gui/toolbox.c: fixed WM resize hints in toolbox_style_set(),
      	code cleanup.
      
      	* app/tools/gimppainttool.[ch]: some cleanup before chopping.
      
      	* app/tools/gimpsmudgetool.c: changed accordingly.
      
      	* tools/pdbgen/pdb/misc_tools.pdb: removed the possibility to set
      	the FG or BG color or add the picked color to the active palette
      	bacause it doesn't belong here. Palette PDB wrappers are on the
      	TODO anyway.
      
      	* app/pdb/misc_tools_cmds.c
      	* libgimp/gimpmisctools_pdb.[ch]: regenerated.
      
      	* plug-ins/perl/examples/image_tile
      	* plug-ins/perl/examples/logulator
      	* plug-ins/script-fu/scripts/hsv-graph.scm
      	* plug-ins/script-fu/scripts/title-header.scm: changed accordingly.
      1bc1419e
  4. 11 Dec, 2001 3 commits
    • Sven Neumann's avatar
      app/core/core-enums.h moved gradient enums to core-enums.h and · c44fe725
      Sven Neumann authored
      2001-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.h
      	* app/core/core-types.h: moved gradient enums to core-enums.h and
      	namespaceified them.
      
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpgradient.c
      	* app/gui/gradient-editor-commands.c
      	* app/pdb/misc_tools_cmds.c
      	* app/tools/gimpblendtool.c
      	* tools/pdbgen/pdb/misc_tools.pdb: changed accordingly.
      
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      c44fe725
    • Sven Neumann's avatar
      app/base/base-enums.h moved all remaining enums to base-enums.h · 03a6c044
      Sven Neumann authored
      2001-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/base/base-enums.h
      	* app/base/base-types.h: moved all remaining enums to base-enums.h
      
      	* app/core/core-enums.h
      	* app/core/core-types.h: moved GimpImageType to core-enums.h and
      	changed the values from RGB_GIMAGE to GIMP_RGB_IMAGE and the like.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimppalette-import.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/file-save-dialog.c
      	* app/gui/toolbox.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpdodgeburntool.c: changed accordingly.
      
      	* tools/pdbgen/Makefile.am: no need to parse app/base/base-types.h
      	any longer.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* tools/pdbgen/enums.pl: regenerated.
      03a6c044
    • 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.
      a611f063
  5. 10 Dec, 2001 1 commit
  6. 09 Dec, 2001 1 commit
    • Sven Neumann's avatar
      introduced new trigraph keyword /*< pdb-skip >*/ used to skip enums for · 002ac38a
      Sven Neumann authored
      2001-12-08  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/enumgen.pl: introduced new trigraph keyword
      	/*< pdb-skip >*/ used to skip enums for inclusion in libgimp when
      	parsing headers. The keyword /*< skip >*/ is still used to skip
      	enum values. This change is necessary since glib-mkenums also uses
      	/*< skip >*/.
      
      	* app/base/base-types.h * app/base/base-enums.h: moved
      	GimpCheckType and GimpCheckSize to base-enums.h so they get
      	registered with the type system, marked them as /*< pdb-skip >*/.
      
      	* app/core/core-types.h * app/display/display-types.h *
      	app/paint-funcs/paint-funcs-types.h * app/tools/gimppainttool.h *
      	app/tools/tools-types.h: changed /*< skip >*/ to /*< pdb-skip >*/.
      002ac38a
  7. 08 Dec, 2001 2 commits
    • Sven Neumann's avatar
      app/core/Makefile.am new file that holds enums that are registered with · a65e1a39
      Sven Neumann authored
      2001-12-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-enums.h: new file that holds enums that are registered
      	with the type system and is used to generate core-enums.c.
      
      	* app/core/core-types.h: include core-enums.h
      
      	* app/base/base-types.h: namespace cleanup. Prefix all enumeration
      	types with Gimp and their values with GIMP. Moved GimpLayerModeEffects
      	enum ...
      
      	* app/base/base-enums.h: ... here.
      
      	* app/image_map.c
      	* app/base/temp-buf.c
      	* app/core/gimpcontext.[ch]
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/brush-select.c
      	* app/gui/layers-commands.c
      	* app/gui/preferences-dialog.c
      	* app/gui/toolbox.c
      	* app/paint-funcs/paint-funcs.[ch]
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimptexttool.c
      	* app/tools/paint_options.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimpwidgets-constructors.[ch]
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/tools.pdb: changed accordingly.
      
      	* libgimpbase/gimpbasetypes.h: no need to chop GIMP prefix off the
      	enums any longer.
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/gimprc.c: removed code to parse for "plug_in" keyword which was
      	left over from some very early gimp days.
      
      	* app/plug-in/plug-in.[ch]: removed now unused function plug_in_add().
      a65e1a39
    • Sven Neumann's avatar
      fixed build rules for gimpmarshal.[ch]. · 00011779
      Sven Neumann authored
      2001-12-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am: fixed build rules for gimpmarshal.[ch].
      00011779
  8. 07 Dec, 2001 2 commits
    • Michael Natterer's avatar
      app/Makefile.am removed, chopped... · bcd208d9
      Michael Natterer authored
      2001-12-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/devices.[ch]: removed, chopped...
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/gui/Makefile.am
      
      	* app/widgets/gimpdeviceinfo.[ch]
      	* app/widgets/gimpdevices.[ch]
      	* app/gui/device-status-dialog.[ch]
      	* app/gui/input-dialog.[ch]: ...and added here.
      
      	Made GimpToolInfo a GimpContext subclass. Create a GimpDeviceManager
      	struct in gimpdevices.c and attach it to the Gimp instance.
      
      	* app/core/gimp.[ch]: removed gimp_create_context(). It was a bad
      	idea in the first place beause it prevented GimpContext subclasses
      	from being be properly registered with their Gimp instance.
      
      	* app/core/gimpcontext.c: moved the stuff which used to be in
      	gimp_create_context() back here. Added a "gimp" property which
      	must be set on construction. Added a "dispose" implementation
      	which removes the context from it's Gimp's context_list.
      
      	* app/gimprc.c
      	* app/core/gimptoolinfo.[ch]
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/gui/brush-select.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/palette-editor.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c
      	* app/gui/toolbox.c
      	* app/tools/gimppainttool.c
      	* app/tools/tool_manager.c
      	* app/widgets/gimpimagedock.c: changed accordingly.
      
      	* app/gui/tools-commands.[ch]: made all callback signatures
      	the same.
      
      	* app/gui/preferences-dialog.c: cleaned up the
      	display_format_string GtkCombo code.
      bcd208d9
    • Sven Neumann's avatar
      removed from CVS, they are generated. · d4829df4
      Sven Neumann authored
      2001-12-07  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpmarshal.[ch]: removed from CVS, they are generated.
      
      	* app/base/Makefile.am
      	* app/base/base-enums.h: new file defining enums that are to be
      	registered. Used to build app/base/base-enums.c.
      
      	* app/base/base-types.h: include base-enums.h.
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/enumcode.pl
      	* tools/pdbgen/enums.pl: parse the new base-enums.h file and modified
      	the perl voodoo so it doesn't prefix enums with GIMP_ that are already
      	properly namespaced.
      
      	* app/core/core-types.h: don't need to chop GIMP from enum.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c: regenerated.
      
      	* app/config/gimpconfig-deserialize.[ch]
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimpconfig.[ch]: made GimpConfig an interface including
      	a reasonable default implementation that works on object properties.
      
      	* app/config/Makefile.am
      	* app/config/gimpbaseconfig.[ch]: new GimpBaseConfig using the
      	GimpConfig interface. Yet only used for testing from app/main.c.
      
      	* app/main.c: test the new GimpBaseConfig object.
      
      	* app/gimprc.c
      	* app/base/base-config.h
      	* app/base/*.c
      	* app/core/gimpdatafiles.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimppreviewcache.c
      	* app/gui/preferences-dialog.c
      	* app/paint-funcs/paint-funcs.c
      	* app/xcf/xcf-seek.c: need to include glib-object.h since base-config
      	contains registered enums now. Follow name change of InterpolationType
      	to GimpInterpolationType.
      d4829df4
  9. 03 Dec, 2001 2 commits
    • Sven Neumann's avatar
      Michael Natterer <mitch@gimp.org> · 4ba6db4e
      Sven Neumann authored
      2001-12-03  Sven Neumann  <sven@gimp.org>
      	    Michael Natterer <mitch@gimp.org>
      
      	* app/paint-funcs/paint-funcs-mmx.h: removed redefiniton of HAS_ALPHA
      	macro.
      
      	* app/core/gimp.c: reverted Daniel's change; it doesn't make the code
      	simpler, only more error-prone.
      
      	* app/gui/info-dialog.h
      	* app/gui/resize-dialog.h
      	* app/core/gimp.h
      	* app/core/gimpbrushgenerated.h
      	* app/core/gimpbrushpipe.h
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpcontainer.h
      	* app/core/gimpcoreconfig.h
      	* app/core/gimpdata.h
      	* app/core/gimpdatafactory.[ch]
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage.h
      	* app/core/gimpimagefile.h
      	* app/core/gimplayer.h
      	* app/core/gimplayermask.h
      	* app/core/gimpmoduleinfo.h
      	* app/core/gimppalette.h
      	* app/core/gimpundo.h
      	* app/widgets/gimpbrushfactoryview.h
      	* app/widgets/gimpconstrainedhwrapbox.h
      	* app/widgets/gimpcontainermenu.h
      	* app/widgets/gimpcontainerview.h
      	* app/widgets/gimpdialogfactory.h
      	* app/widgets/gimpimagedock.h
      	* app/widgets/gimplistitem.h
      	* app/widgets/gimpmenuitem.h
      	* app/widgets/gimpnavigationpreview.h
      	* app/widgets/gimppreview.h
      	* app/gimprc.h
      	* app/pathP.h
      	* app/tools/gimpbezierselecttool.h
      	* app/tools/gimpcolorbalancetool.h
      	* app/tools/gimpcurvestool.h
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpfreeselecttool.h
      	* app/tools/gimphuesaturationtool.h
      	* app/tools/gimpinktool-blob.h
      	* app/tools/gimpinktool.h
      	* app/tools/gimpiscissorstool.h
      	* app/tools/gimpmagnifytool.h
      	* app/tools/gimpmeasuretool.h
      	* app/tools/gimppainttool.h
      	* app/tools/gimppathtool.h
      	* app/tools/gimprectselecttool.h
      	* app/tools/gimpthresholdtool.h
      	* app/tools/gimptool.h
      	* app/tools/gimptransformtool.h
      	* app/base/base-config.h
      	* app/base/gimplut.[ch]
      	* app/base/pixel-region.h
      	* app/base/pixel-surround.[ch]
      	* app/base/temp-buf.[ch]
      	* app/base/tile-manager-private.h
      	* app/base/tile-manager.[ch]
      	* app/base/tile-private.h
      	* app/base/tile.[ch]
      	* app/display/gimpdisplay.h
      	* app/display/gimpdisplayshell-selection.h
      	* app/display/gimpdisplayshell.h
      	* app/gui/brush-select.h
      	* app/gui/gradient-editor.h
      	* app/gui/gradient-select.h: reverted most of Daniel's changes.
      
      	There's no reason to use unsigned integers here and in lots of places
      	it is even wrong.
      
      	Then it's way too early to convert gbooleans into bitfields. This
      	change may make sense in a few places but can happen later when the
      	API has settled and the code is more stable.
      
      	* app/gimprc.c: reverted Daniel's change. This is a GCC-ism and this
      	code is about to die soon anyway.
      4ba6db4e
    • Daniel Egger's avatar
      Simplified logic thanks to bitfields. · e319f588
      Daniel Egger authored
      2001-12-03  Daniel Egger  <degger@fhm.edu>
      
      	* app/core/gimp.c: Simplified logic thanks to bitfields.
      e319f588
  10. 02 Dec, 2001 1 commit
    • Daniel Egger's avatar
      Convert ugly comments into named structure fields. Much cleaner and less · 1ed91801
      Daniel Egger authored
      2001-12-02  Daniel Egger  <degger@fhm.edu>
      
      	* app/gimprc.c: Convert ugly comments into named structure fields.
      	Much cleaner and less errorprone though may cause troubles on
      	older compilers and then needs to be reverted. Please report!
      
      	* app/base/base-types.h: Add FIXME reminder.
      
      	* app/base/gimplut.c: Use CLAMP macro instead of if-cascade.
      
      	* app/base/temp-buf.c: Remove duplicated calculations and simplify
      	checks.
      
      	* app/base/tile-manager.c:
      	- (tile_manager_get_tile_num): Return success and take an additional
      	  pointer for the tilenumber.
      	- Simplify logic in the rest of the file as a result.
      	- Remove rotten debugging cruft.
      
      	* app/core/gimpbrushgenerated.c: Fix two stylistic nits.
      
      	* app/app_procs.c: Include <stdlib.h> for exit () prototype.
      
      	* app/core/gimpdrawable-blend.c: Include <stdlib.h> for abs ()
      	prototype.
      
      	* app/display/gimpdisplay.c: Include <string.h> for memcpy ()
      	prototype.
      
      	* app/core/gimpimage-convert.c: (HIST_RGB): First parameter is
      	not const. Fixes a gcc warning for a wrong return value.
      
      	* libgimpwidgets/gimpunitmenu.c
      	* app/core/gimpunit.c: Add suggested (by gcc 3.1 cvs) parentheses
      	to group correct logic tests together.
      
      	* app/paint-funcs/paint-funcs-generic.h: Fix my HAS_ALPHA macro
      	to avoid gcc 3.1 cvs warning.
      
      	* app/gimprc.h
      	* pathP.h
      	* base-config.h
      	* app/base/boundary.h
      	* app/base/gimplut.[ch]
      	* app/base/pixel-region.h
      	* app/base/pixel-surround.[ch]
      	* app/base/temp-buf.[ch]
      	* app/base/tile-manager-private.h
      	* app/base/tile-manager.c
      	* app/base/tile-private.h
      	* app/base/tile.[ch]
      	* app/core/gimp.h
      	* app/core/gimpbrushgenerated.h
      	* app/core/gimpbrushpipe.h
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpcontainer.h
      	* app/core/gimpcoreconfig.h
      	* app/core/gimpdata.h
      	* app/core/gimpdatafactory.[ch]
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage.h
      	* app/core/gimpimagefile.h
      	* app/core/gimplayer.h
      	* app/core/gimplayermask.h
      	* app/core/gimpmoduleinfo.h
      	* app/core/gimppalette.h
      	* app/core/gimpundo.h
      	* app/display/gimpdisplay.h
      	* app/display/gimpdisplayshell-selection.h
      	* app/display/gimpdisplayshell.h
      	* app/gui/brush-select.h
      	* app/gui/gradient-editor.h
      	* app/gui/gradient-select.h
      	* app/gui/info-dialog.h
      	* app/gui/resize-dialog.h
      	* app/tools/gimpbezierselecttool.h
      	* app/tools/gimpcolorbalancetool.h
      	* app/tools/gimpcolorpickertool.h
      	* app/tools/gimpcurvestool.h
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpfreeselecttool.h
      	* app/tools/gimpfuzzyselecttool.h
      	* app/tools/gimphuesaturationtool.h
      	* app/tools/gimpinktool-blob.h
      	* app/tools/gimpinktool.h
      	* app/tools/gimpiscissorstool.h
      	* app/tools/gimpmagnifytool.h
      	* app/tools/gimpmeasuretool.h
      	* app/tools/gimppainttool.h
      	* app/tools/gimppathtool.h
      	* app/tools/gimprectselecttool.h
      	* app/tools/gimpthresholdtool.h
      	* app/tools/gimptool.h
      	* app/tools/gimptransformtool.h
      	* app/tools/path_toolP.h
      	* app/widgets/gimpbrushfactoryview.h
      	* app/widgets/gimpconstrainedhwrapbox.h
      	* app/widgets/gimpcontainermenu.h
      	* app/widgets/gimpcontainerview.h
      	* app/widgets/gimpdialogfactory.h
      	* app/widgets/gimpimagedock.h
      	* app/widgets/gimplistitem.h
      	* app/widgets/gimpmenuitem.h
      	* app/widgets/gimpnavigationpreview.h
      	* app/widgets/gimppreview.h: Unsignify lots of variables and
      	parameters and use bitfields in structs where possible. First
      	part of a huge cleanup all over the code...
      1ed91801
  11. 01 Dec, 2001 4 commits
    • Michael Natterer's avatar
      forgot a "return". · 6d0e5c34
      Michael Natterer authored
      2001-12-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/errors.c: forgot a "return".
      
      	* app/gui/error-console-dialog.c: the menu item signals were
      	connected "swapped", which is wrong.
      
      	* app/tools/gimperasertool.c: added a cursor_update_func(), update
      	the "toggled" state there and chain up. Fixes wrong cursor
      	updating.
      
      	Made brush_pipe slection work again, removed the #warnings:
      
      	* app/core/gimpbrush.[ch]
      	* app/core/gimpbrushpipe.c: changed brush_class->select_brush()
      	and brush_class->want_null_motion() to be proper virtual
      	functions. Pass last_coords and cur_coords to them.
      
      	* app/tools/gimppainttool.c: call the functions again.
      6d0e5c34
    • Michael Natterer's avatar
      app/main.c moved "message_handler" from here... · f77c7ade
      Michael Natterer authored
      2001-12-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/main.c
      	* app/appenv.h: moved "message_handler" from here...
      
      	* app/core/gimp.[ch]: ...to here. Added gimp_message() and a
      	"gui_message_func" pointer...
      
      	* app/gui/gui.c: ...which gets set here to gui_message().
      
      	* app/errors.c: don't include any gui stuff but simply call
      	gimp_message().
      
      	* app/app_procs.c: don't set "message_handler" here, it's done in
      	gui.c now.
      
      	* app/gui/error-console-dialog.[ch]: use gimp->message_handler.
      
      	* app/gui/dialogs-constructors.c: pass a Gimp pointer to
      	error_console_create().
      
      	* app/widgets/gimpwidgets-utils.[ch]: made the "message" parameter
      	of gimp_message_box() a const gchar*, not just gchar*.
      
      	* tools/pdbgen/pdb/message.pdb: use gimp->message_handler, don't
      	include "appenv.h".
      
      	* app/pdb/message_cmds.c: regenerated.
      
      	* app/devices.[ch]: cleanup before chopping: removed global
      	variable "current_device", added devices_get_current(), pass lots
      	of Gimp pointers around.
      
      	* app/gimprc.c: pass a Gimp pointer to devices_rc_update().
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/gui/toolbox.c
      	* app/tools/gimppainttool.c: use devices_get_current(), pass Gimp
      	pointers to all devices_foo() functions.
      
      	* app/core/gimpimage-mask.c: no need to include "pdb/pdb-types.h".
      f77c7ade
    • Daniel Egger's avatar
      app/core/Makefile.am libgimp/Makefile.am libgimpbase/Makefile.am · d214dbdb
      Daniel Egger authored
      2001-12-01  Daniel Egger  <degger@fhm.edu>
      
      	* app/core/Makefile.am
      	* libgimp/Makefile.am
      	* libgimpbase/Makefile.am
      	* libgimpcolor/Makefile.am
      	* libgimpmath/Makefile.am
      	* libgimpwidgets/Makefile.am
      	* modules/Makefile.am
      	* themes/Default/Makefile.am: Don't try to concatenate something
      	to a variable not used before but simply assign it. Shuts up
      	annoying automake warnings for me.
      d214dbdb
    • Michael Natterer's avatar
      app/Makefile.am removed... · 77863d88
      Michael Natterer authored
      2001-11-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/plug_in.[ch]: removed...
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-types.h
      	* app/plug-in/plug-in.[ch]: ...and added here.
      
      	* app/appenv.h: removed StackTraceMode and MessageHandlerType...
      
      	* libgimpbase/gimpbasetypes.h: ...and added them here.
      
      	* tools/pdbgen/Makefile.am: don't scan "app/apptypes.h" for enums.
      
      	* tools/pdbgen/enumcode.pl: added a general check to prevent
      	enums which are defined in libgimp* from being written to
      	"libgimp/gimpenums.c".
      
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/core/core-types.h: include "pdb/pdb-types.h" so including
      	"core/core-types.h" gets the whole core type space.
      
      	* app/core/gimp.[ch]: added a "stack_trace_mode" parameter to the
      	constructor and store it in the Gimp struct because the value is
      	also passed to plug-ins and nobody should include "appenv.h".
      
      	* app/gimprc.[ch]: pass the alternate_system_gimprc and
      	alternate_gimprc filenames from the command line to gimprc_prase()
      	so we don't need to include "appenv.h".
      
      	* app/batch.[ch]: pass the "batch_cmds" as parameter, don't
      	include "append.h".
      
      	* app/app_procs.c: pass more parameters around.
      
      	* app/devices.c
      	* app/errors.c
      	* app/gimphelp.c
      	* app/main.c
      	* app/core/gimpgradient.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/file/file-utils.c
      	* app/gui/commands.c
      	* app/gui/error-console-dialog.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/user-install-dialog.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/xinput_airbrush.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly:
      
      	- changed "plug-in.h" include where needed.
      	- don't call gimp_fatal_error() directly, it's called via the log
      	  handler when calling g_error().
      	- don't incude "errors.h" except from main.c.
      	- changed stack_trace and message_handler enum names.
      	- get "stack_trace_mode" from Gimp.
      	- removed many inclusions of "appenv.h".
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/help_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db.c: regenerated.
      77863d88
  12. 30 Nov, 2001 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am new files: the QMask stuff stripped from GUI code. · bba84137
      Michael Natterer authored
      2001-11-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-qmask.[ch]: new files: the QMask stuff
      	stripped from GUI code. Added gimp_image_qmask_invert().
      
      	* app/core/gimpimage.[ch]: removed the QMask functions.
      
      	* app/display/Makefile.am
      	* app/display/gimpdisplayshell-qmask.[ch]: removed.
      
      	* app/gui/Makefile.am
      	* app/gui/qmask-commands.[ch]: new files for the new QMask item
      	factory callbacks and the qmask query dialog.
      
      	* app/gui/menus.c: added a context menu for the QMask button.
      
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpdisplayshell-handlers.c: don't include the qmask
      	stuff.
      
      	* app/display/gimpdisplayshell-callbacks.[ch]: Moved the 2 qmask
      	callbacks here. Don't popup the dialog on double_click. Show
      	the contect menu on right-click.
      
      	* app/display/gimpdisplayshell-callbacks.[ch]:
      	gimp_display_shell_canvas_events(): removed the hack of
      	conntecting "key_press_event" to gtk_true() while a tool is
      	active. Instead, check for (event & GDK_BUTTON1_MASK) in the
      	key_press and key_release handlers and stop signal emission. Save
      	the modifier state on "button_press" and restore it after
      	"button_release".
      
      	Changed the way context menus are updated/shown:
      
      	- removed GimpContainerContextFunc.
      	- pass around item factory identifiers (e.g. "<Brushes>")
      	- added voodoo to update the menus before showing them.
      
      	* app/widgets/gimpitemfactory.[ch]: gimp_item_factory_new(): take
      	a GimpItemFactoryUpdateFunc parameter, attach it as data to the
      	factory and use it to update the menu in
      	gimp_item_factory_popup_with_date().
      
      	* app/widgets/gimpwidgets-utils.[ch]: removed
      	gimp_item_factory_popup_with_data() here.
      
      	* app/widgets/gimpbrushfactoryview.[ch]
      	* app/widgets/gimpbufferview.[ch]
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpdatafactoryview.[ch]
      	* app/widgets/gimpdocumentview.[ch]
      	* app/widgets/gimpdrawablelistview.[ch]: use item_factory
      	identifier strings all over the place.
      
      	* app/widgets/gimpdockbook.c: removed the menu update code, it's
      	now in gui/dialogs-commands.c.
      
      	* app/gui/brushes-commands.[ch]
      	* app/gui/buffers-commands.[c]
      	* app/gui/channels-commands.[ch]
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/documents-commands.[ch]
      	* app/gui/gradient-editor-commands.[ch]
      	* app/gui/gradients-commands.[ch]
      	* app/gui/layers-commands.[ch]
      	* app/gui/palettes-commands.[ch]
      	* app/gui/patterns-commands.[ch]: removed all show_context_menu()
      	functions and made the update functions public. Changed all
      	update functions to use the gimp_item_factory_set_foo() methods
      	instead of gimp_menu_item_set_foo().
      
      	* app/gui/menus.c: pass the update functions to the
      	gimp_item_factory_new().
      
      	* app/gui/dialogs-constructors.c: pass item factory identifiers to
      	all view constructors.
      
      	* app/gui/gradient-editor.c: show the context menu using the new
      	method.
      
      	* app/gui/toolbox.c: no need to include "dialogs-commands.h".
      bba84137
  13. 29 Nov, 2001 2 commits
    • Michael Natterer's avatar
      replaced the QMask radio buttons ba a single check button. Still needs · bf6e5a4b
      Michael Natterer authored
      2001-11-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.[ch]: replaced the QMask radio
      	buttons ba a single check button. Still needs some tuning.
      
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-qmask.[ch]: changed accordingly.
      
      	* app/tools/gimptool.[ch]: added "gboolean handle_empty_image" to
      	the GimpTool structure.
      
      	* app/tools/gimpmovetool.c: set it to TRUE.
      
      	* app/tools/gimpfuzzyselecttool.c: don't gimp_[set|unset]_busy()
      	while calculating the selection but set the busy cursor on the
      	display manually (we have the pointer grabbed anyway).
      
      	* app/display/gimpdisplayshell-callbacks.c: don't check for
      	GIMP_IS_MODE_TOOL(active_tool) but look at
      	active_tool->handle_empty_image. Removed the checks for
      	GIMP_IS_FUZZY_SELECT_TOOL(active_tool) because fuzzy_select
      	doesn't set GIMP busy while it's active any more.
      
      	* app/tools/transform_options.[ch]
      	* app/tools/gimptransformtool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c: added widgets for the transform tools'
      	constraints (one more #51108 issue fixed).
      
      	* app/tools/gimperasertool.c: cosmetic.
      
      	* app/widgets/gimpdockbook.c: don't hardcode GtkNotebook's
      	tab_border to 0 but add a style property for it...
      
      	* themes/Default/gtkrc: ...and set it to 0 here.
      bf6e5a4b
    • Kelly Martin's avatar
      Fixed another use of array of gpointer in place of a proper struct, this · 56f849d9
      Kelly Martin authored
      	* app/undo.c: Fixed another use of array of gpointer in place of a
      	proper struct, this time in undo_(push|pop)_channel_mod.
      
      	* base/base-types.h
      	* base/tile-manager.h
      	* base/tile-manager-private.h
      	* base/tile-manager.c: added PixelDataHandle as an abstraction
      	on top of tiles.  PixelDataHandles either return a pointer into
      	the tile data, or create a temporary buffer so the calling
      	function can access data from disparate tiles using a single
      	buffer.  This is a step in reducing the dependence of core
      	image functions being aware of tiles as well as a step toward
      	having a single abstraction for pixel data.
      
      	* app/image_map.c: changed to use read_pixel_data_1
      	* app/pixel-region.c: changed to use the read_pixel_data and
      	write_pixel_data where practical.
      56f849d9
  14. 28 Nov, 2001 4 commits
    • Michael Natterer's avatar
      s/gimage_mask/gimp_image_mask/g · f7bbdc3e
      Michael Natterer authored
      2001-11-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch]: s/gimage_mask/gimp_image_mask/g
      
      	* app/floating_sel.c
      	* app/undo.c
      	* app/undo_history.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask-select.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/display/gimpdisplayshell-qmask.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/select-commands.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpchannellistview.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      f7bbdc3e
    • Michael Natterer's avatar
      include the new "paint-funcs/paint-funcs-types.h". · 6cf34005
      Michael Natterer authored
      2001-11-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/base-types.h: include the new
      	"paint-funcs/paint-funcs-types.h".
      
      	* app/paint-funcs/Makefile.am
      	* app/paint-funcs/paint-funcs-types.h: new file. Includes
      	"base/base-types.h".
      
      	* app/paint-funcs/paint-funcs.[ch]: removed the enums here,
      	include "paint-funcs-types.h".
      
      	* app/widgets/widgets-types.h: include "display/display-types.h"
      
      	* app/display/display-types.h: include "widgets/widgets-types.h".
      
      	* app/tools/tools-types.h: include "display/display-types.h"
      
      	* app/gui/gui-types.h: include "tools/tools-types.h".
      
      	The order of namespaces/dependencies should be (but is not):
      
      	(base, paint-funcs) -> (core, file, xcf, pdb) ->
      	(widgets, display) -> tools -> gui
      
      	* app/path.c: include "tools/tools-types.h".
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-guides.[ch]
      	* app/core/gimpimage-merge.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-scale.[ch]: new files.
      
      	* app/core/gimpimage.[ch]: removed the stuff which is in the new
      	files. Reordered all functions in both the .h and .c files,
      	commented the groups of functions.
      
      	* app/core/gimpcontainer.c: create the handler_id using a counter,
      	not the address of a pointer, because the address *may* be the
      	same twice, added debugging output.
      
      	* app/core/gimpviewable.[ch]: added primitive support for getting
      	a preview GdkPixbuf.
      
      	* app/nav_window.c
      	* app/undo.c
      	* app/undo_history.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.[ch]
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-import-dialog.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/widgets/gimpcontainerview-utils.c
      	* app/xcf/xcf-load.c: changed accordingly, some cleanup.
      
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/image.pdb: changed accordingly, reordered functions.
      
      	* app/plug_in.c: set the labels of the "Repeat" and "Re-Show" menu
      	items to the name of the last plug-in (Fixes #50986).
      
      	* app/display/gimpdisplayshell.[ch]: set the labels of "Undo" and
      	"Redo" to the resp. undo names. Much simplified the WM icon stuff
      	by removing most code and using gimp_viewable_get_new_preview_pixbuf().
      
      	* app/widgets/gimpbrushfactoryview.c: forgot to assign the GQuark
      	returned by gimp_container_add_handler().
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/image_cmds.c
      	* libgimp/gimpimage_pdb.[ch]: regenerated.
      6cf34005
    • Kelly Martin's avatar
      Fixed evil<tm> double casting of enum to glong to gpointer for layer_mod · 36efb12b
      Kelly Martin authored
      	* app/undo.c: Fixed evil<tm> double casting of enum to glong to
      	gpointer for layer_mod undo by using a struct instead of an array
      	of gpointer (!!!) for storing layer_mod undo data.  Also moved
      	layer offset undo information out of the undo tile manager.
      	* app/image_map.c: Moved layer offset undo information out of the
      	undo tile manager.
      
      	Above changes may break image_map and layer_mod undos, please test
      	as I haven't. :)
      36efb12b
    • Michael Natterer's avatar
      app/core/Makefile.am new files. Changed function names to be consistent. · 9bac8faf
      Michael Natterer authored
      2001-11-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-projection.[ch]: new files. Changed function
      	names to be consistent.
      
      	* app/core/gimpimage.[ch]: removed the projection stuff
      	here. Removed the gimp_image_composite_blah() functions becauee
      	they were just calling the resp. gimp_image_projection ones.
      
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimppalette-import.c
      	* app/undo.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/info-window.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpiscissorstool.c: changed accordingly.
      9bac8faf
  15. 27 Nov, 2001 2 commits
    • Michael Natterer's avatar
      GType is a pointer now, not a guint. · 09a51f21
      Michael Natterer authored
      2001-11-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcontainer.c: GType is a pointer now, not a guint.
      
      	* app/widgets/gimpdock.c: chain up in widget_class->style_set().
      
      	Gradient Editor chopping plus merging of bex' proofreading:
      	(fixes #62278).
      
      	* app/core/core-types.h: moved the gradient related enums here.
      
      	* app/core/gimpgradient.[ch]: removed the enums, added gradient
      	segment utility functions from the gradient_editor.
      
      	* app/gui/gui-types.h: added the GradientEditor typedef here.
      
      	* app/gui/Makefile.am
      	* app/gui/gradient-editor-commands.[ch]: new files implementing
      	callbacks and menu_update stuff for the new gradient_editor
      	item factory.
      
      	* app/gui/gradient-editor.[ch]: removed tons of code, namespace
      	cleanup, stuff...
      
      	* app/gui/menus.[ch]: added the gradient_editor menu stuff here.
      	Added menus_set_color() which creates & updates a color menu item
      	(will soon be used in other places too). Renamed menus_set_state()
      	to menus_set_active().
      
      	The editor's menu code is ugly as before, only different and evil
      	the same way as the rest of the menu stuff, so it's at least
      	consistent :)
      
      	* app/display/gimpdisplayshell.c: changed accordingly.
      
      	* app/gui/test-commands.c: don't include "gradient-editor.h".
      09a51f21
    • Sven Neumann's avatar
      configure.in app/Makefile.am app/config/gimpconfig.[ch] · 19e1acbc
      Sven Neumann authored
      2001-11-27  Sven Neumann  <sven@gimp.org>
      
      	* configure.in
      	* app/Makefile.am
      	* app/config/gimpconfig.[ch]
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimpconfig-deserialize.[ch]: added new base class
      	GimpConfig that knows how to serialize and deserialize it's properties
      	in sexp format. Contains two example properties that will go into
      	derived classes once this is really used.
      
      	* app/main.c: deserialize and serialize the test GimpConfig object to
      	~/.gimp-1.3/foorc (only for debugging).
      
      	* app/widgets/widgets-types.h
      	* app/core/core-types.h: moved GimpPreviewSize enum to core-types.
      
      	* app/core/core-types.h: don't include gdk-pixbuf.h.
      
      	* app/core/gimptoolinfo.h
      	* app/core/gimpimagefile.c: include gdk-pixbuf.h.
      
      	* app/core/gimpimage.[ch]: made construct_flag a gboolean.
      
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpunit.c
      
      	* tools/pdbgen/pdb/plug_in.pdb
      	* app/pdb/plug_in_cmds.c: removed unused variables.
      
      	* app/display/Makefile.am: removed .PHONY and files cruft
      
      	* app/Makefile.am
      	* libgimp/Makefile.am
      	* libgimpbase/Makefile.am
      	* libgimpcolor/Makefile.am
      	* libgimpmath/Makefile.am
      	* libgimpwidgets/Makefile.am
      	* plug-ins/Makefile.am: removed commented out makefile.mingw rules.
      	If we ever need them again, they can easily be resurrected from CVS.
      19e1acbc
  16. 26 Nov, 2001 1 commit
  17. 23 Nov, 2001 2 commits
    • Sven Neumann's avatar
      don't draw resize_grip in status bar (patch from Guillermo S. Romero). · d3047f57
      Sven Neumann authored
      2001-11-23  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell.c: don't draw resize_grip in status bar
      	(patch from Guillermo S. Romero).
      
      	* app/devices.c
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell-qmask.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/color-notebook.c
      	* app/gui/convert-dialog.c
      	* app/gui/error-console-dialog.c
      	* app/gui/file-new-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/layers-commands.c
      	* app/gui/module-browser.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.c
      	* app/gui/resolution-calibrate-dialog.c
      	* app/gui/user-install-dialog.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c
      	* app/widgets/gimpfontselection-dialog.c
      	* libgimpwidgets/gimpquerybox.c
      	* libgimpwidgets/gimpunitmenu.c
      	* modules/cdisplay_gamma.c
      	* modules/cdisplay_highcontrast.c: changed button order to follow the
      	new GTK+ style: confirmative is right-most (for LTR rendering).
      d3047f57
    • Michael Natterer's avatar
      removed a useless g_return_if_fail(). · d463a5ef
      Michael Natterer authored
      2001-11-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcontainer.c: removed a useless g_return_if_fail().
      
      	* app/widgets/gimpcontainereditor.h: removed GimpViewType enum.
      
      	* app/widgets/widgets-types.h: added it here.
      
      	* app/widgets/gimpcontainerview-utils.[ch]: added a utility function
      	which gets the GimpContainerView out of a GimpDockable.
      
      	* app/widgets/gimpdialogfactory.[ch]: added support for saving and
      	loading of each GimpDockable's preview size. Store the dialog's
      	default preview size in the GimpDialogFactoryEntry.  Pass the
      	preview_size to each created dialog.
      
      	* app/gui/menus.c: added menu items for setting the preview_size
      	and switching between list and grid view. Removed the item
      	overkill in the "Add Tab" submenu.
      
      	* app/gui/dialogs-commands.[ch]: added callbacks for the new items.
      
      	* app/widgets/gimpdockbook.c: set the item's state before showing
      	the menu.
      
      	* app/errors.c
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/edit-commands.c
      	* app/gui/gui.c
      	* app/gui/indicator-area.c
      	* app/gui/toolbox.c: changed accordingly.
      
      	* app/tools/selection_options.[ch]: cleaned up the selection
      	options and added some tooltips. Much more to do...
      d463a5ef
  18. 22 Nov, 2001 2 commits
    • Sven Neumann's avatar
      bumped version number to 1.3.1. Require Glib/GTK+-1.3.11 and Pango-0.22. · 757017a8
      Sven Neumann authored
      2001-11-23  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: bumped version number to 1.3.1.
      	Require Glib/GTK+-1.3.11 and Pango-0.22. Removed GDK_DISABLE_COMPAT_H
      	and GTK_DISABLE_COMPAT_H from our default CFLAGS since they don't
      	exist any longer.
      
      	* RELEASE-TO-CVS.patch: removed since the glib/gtk+ API is supposed to
      	be frozen now.
      
      	* HACKING: removed reference to RELEASE-TO-CVS.patch
      
      	* app/gui/menus.c
      	* app/tools/gimptexttool.c: applied RELEASE-TO-CVS.patch to conform
      	to the new GTK+/Pango API.
      
      	* app/core/Makefile.am: generate marshallers with gimp_marshal prefix.
      
      	* app/core/gimpmarshal.list: added all marshallers we use.
      
      	* app/core/gimpmarshal.[ch]: regenerated.
      
      	* app/[lots of .c files]: use gimp_marshal_* for all marshallers.
      
      	* data/images/
      	* app/app_procs.c
      	* app/gui/splash.c:
      
      	* libgimpbase/Makefile.am
      	* libgimpbase/gimpbase.h
      	* libgimpbase/gimputils.[ch]: removed since they are no longer needed.
      
      	* app/gimprc.c
      	* plug-ins/common/ps.c
      	* plug-ins/gdyntext/gdyntext.c
      	* plug-ins/gdyntext/gdyntextcompat.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gflare/gflare.c
      	* plug-ins/script-fu/script-fu-scripts.c: use glib functions instead
      	of gimp_strescape() and gimpstrcompress().
      
      	* cleaned up all header files: use G_BEGIN_DECLS/G_END_DECLS, declared
      	all _get_type function as G_GNUC_CONST.
      
      	* tools/pdbgen/enumcode.pl
      	* tools/pdbgen/lib.pl: make them generate header files using
      	G_BEGIN_DECLS/G_END_DECLS.
      
      	* pixmaps/Makefile.am
      	* pixmaps/wilber3.xpm: removed ...
      	* data/images/tips_wilber.png: ... and added here as PNG
      
      	* app/gui/tips-dialog.c: load the Wilber on demand using GdkPixbuf.
      
      	* data/images/gimp_splash.ppm: removed ...
      	* data/images/gimp_splash.png: ... and added as PNG
      
      	* app/app_procs.c
      	* app/gui/splash.[ch]: load the splash image using GdkPixbuf.
      
      	* app/gui/about-dialog.c: sink the GtkPreview.
      757017a8
    • Michael Natterer's avatar
      made device_status_update() static as declared. · c3c42962
      Michael Natterer authored
      2001-11-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/devices.c: made device_status_update() static as declared.
      
      	* app/core/gimpobject.h: don't include <gobject/gobject.h> as this
      	is forbidden now (doesn't hurt as we need to include glib or gtk+
      	before gimp headers in .c files anyway).
      
      	* app/widgets/gimpcontainerlistview.c: better handling of
      	"button_press" of list items: don't let a selected item being
      	deselected, fixed context menu popup.
      c3c42962
  19. 20 Nov, 2001 4 commits
    • 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
    • David Neary's avatar
      Included errno,h · 82f6bb6b
      David Neary authored
      
      2001-11-20  David Neary <dneary@eircom.net>
      
              * app/core/gimppalette.c: Included errno,h
      82f6bb6b
    • Rebecca Walter's avatar
      app/core/gimpedit.c app/core/gimpimagefile.c app/core/gimpmoduleinfo.c · 57c23b69
      Rebecca Walter authored
      2001-11-20  Rebecca Walter <rjp@mail.tele.dk>
      
      	* app/core/gimpedit.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpmoduleinfo.c
      	* app/core/gimpmodules.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c: More of the extensive proofing. Fun fun fun!
      57c23b69
    • Michael Natterer's avatar
      put a g_object_ref() on a different line. · 625b5c71
      Michael Natterer authored
      2001-11-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp.c: put a g_object_ref() on a different line.
      
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpmodules.c: ne need to #include "core/..." here.
      
      	* app/display/gimpdisplay-handlers.c: added debugging output
      	because we have an image refcounting problem :(
      
      	* app/display/gimpdisplayshell-handlers.c: fixed a signal
      	disconnection.
      
      	* app/tools/gimpbezierselecttool.[ch]
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpellipseselecttool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimpsmudgetool.c: get the tool's options via
      	tool->tool_info->tool_options, not from the local statis pointer.
      	Some minor cleanups & function reordering.
      
      	* app/widgets/gimpdockbook.c: return TRUE from the notebook tabs'
      	"button_press" handler, connect DND before cnnecting to
      	"button_press" because we now stop it's emission.
      625b5c71
  20. 19 Nov, 2001 1 commit
    • Michael Natterer's avatar
      forgot to commit last time. · 57044c2f
      Michael Natterer authored
      2001-11-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplay-foreach.c: forgot to commit last time.
      
      	Transform stuff cleanup:
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpdrawable-transform.[ch]: new files implementing
      	the actual transform functions cut from tools/gimptransformtool.*.
      
      	* app/core/gimpdrawable-transform-utils.[ch]: new files implementing
      	transform matrix assembly utility functions.
      
      	* app/tools/gimptransformtool.[ch]: removed the stuff here. cleanup.
      
      	* app/tools/transform_options.[ch]: removed all stuff which does
      	not belong here, e.g. the transform_tool_* functions and the
      	global "transform_options" variable. Works like all other tool
      	options now.
      
      	* app/tools/gimpfliptool.[ch]
      	* app/tools/gimpperspectivetool.[ch]
      	* app/tools/gimprotatetool.[ch]
      	* app/tools/gimpscaletool.[ch]
      	* app/tools/gimpsheartool.[ch]: massive code removal because
      	we can use core/gimpdrawable-fransform* functions now. cleanup.
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl: added new PDB group "transform_tools".
      
      	* tools/pdbgen/pdb/tools.pdb: removed the transform stuff here...
      
      	* tools/pdbgen/pdb/transform_tools.pdb: and added *much*
      	simplified versions which use the new core/gimpdrawable-transform*
      	utilities.
      
      	* app/pdb/Makefile.am
      	* app/pdb/transform_tools_cmds.c: new file.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/tools_cmds.c: regenerated.
      
      	* libgimp/Makefile.am
      	* libgimp/gimp_pdb.h
      	* libgimp/gimptransformtools_pdb.[ch]: new files.
      
      	* libgimp/gimptools_pdb.[ch]: regenerated.
      57044c2f
  21. 17 Nov, 2001 1 commit
    • Michael Natterer's avatar
      Made --no-interface not calling gtk_init() (and thus not contacting the X · 14098dc0
      Michael Natterer authored
      2001-11-17  Michael Natterer  <mitch@gimp.org>
      
      	Made --no-interface not calling gtk_init() (and thus not
      	contacting the X server) any more. (Fixes #58961).
      
      	* app/core/gimp.[ch]: added two new function pointers
      	"gui_main_loop_func" and "gui_main_loop_quit_func" and an own
      	stack of GMainLoops which is used if they are not set.
      
      	* app/gui/gui.[ch]: added main loop functions here and set them as
      	pointers in the Gimp instance. Separated gui_libs_init() from
      	gui_themes_init() so it can be used as replacement for gtk_init()
      	and be called before command line parsing.
      
      	* app/main.c: check for "--no-interface" before initializing
      	anything. Added a "--g-fatal-warnings" option (cut'n'paste from
      	gtkmain.c). Added a check for "--" (end of options).
      
      	* app/app_procs.c: call the new gimp_main_loop() functions,
      	call gui_themes_init().
      
      	* app/devices.[ch]: reduce usage of "the_gimp" by passing "Gimp"
      	pointers to some functions.
      
      	* app/plug_in.c: some ugly checks for the_gimp->no_interface which
      	will go away once this file is core/ui chopped. Call
      	gimp_main_loop() stuff instead of gtk_main().
      
      	* app/core/gimptoolinfo.c: allow passing a NUL GdkPixbuf pointer.
      14098dc0