1. 17 Feb, 2002 5 commits
    • Hans Breuer's avatar
      a578d9cf
    • Hans Breuer's avatar
      from now on use make.msc from $(TOP)/glib/build/win32; all occurences of · 6cb914db
      Hans Breuer authored
      2001-02-17  Hans Breuer  <hans@breuer.org>
      
      	* */*/makefile.msc */makefile.msc : from now on use
      	make.msc from $(TOP)/glib/build/win32; all occurences
      	of DIRENT removed and general update
      
      	* app/config/makefile.msc app/paint/makefile.msc
      	  app/plug-in/makefile.msc themes/Default/makefile.msc :
      	new files
      
      	* app/base/base.c : ported to GDir usage
      
      	* app/config/gimpconfig-serialize.c :
      	  app/config/gimpconfig-deserialize.c : HAVE_UNISTD_H
      	* app/config/gimpconfig.c :
      	  app/config/gimprc.c : HAVE_UNISTD_H, use <io.h> for
      	open() prototype and merged pmode parameter
      	(_S_IREAD | _S_IWRITE)
      
      	* app/core/cpercep.c : msvc doesn't have cbrt(), provide
      	it via pow(). Also include <glib.h> for painless 'inline'
      	definition.
      
      	* app/core/gimpdatafiles.c : ported to GDir usage
      
      	* app/core/gimpimage-convert.c : work around a msvc compiler
      	limitation (can't convert from uint64 to double)
      
      	* app/file/file-open.c app/file/file-save.c :
      	access() -> _access() for G_OS_WIN32
      
      	* app/plug-in/plug-in.c : HAVE_UNISTD_H and <io.h>
      
      	* libgimpbase/gimpbase.def : updated externals
      
      	* libgimpbase/gimpenv.c : define WIN32_LEAN_AND_MEAN to
      	avoid clashes with incompatible DATADIR definitions
      
      	* libgimpcolor/gimpcolor.def : updated externals
      
      	* lingimpmath/gimpmath.def : updated externals
      
      	* libgimpwidgets/gimpwidgets.def : updated externals
      
      	* libgimpwidgets/libgimp-glue.c : adapt to const changes
      	of some prototypes
      
      	* plug-ins/makefile.msc : disabled gdyntext
      
      	* plug-ins/gap/iter_ALT/*/*.inc : GimpRunModeType -> GimpRunMode
      
      	* plug-ins/FractalExplorer/FractalExplorer.c :
      	* plug-ins/gap/gap_lib.c :
      	* plug-ins/gfig/gfig.c :
      	* plug-ins/gflare/gflare.c :
      	* plug-ins/gimpressionist/gimpressionist.c :
      	replaced DIRENT usage with GDir
      
      	* plug-ins/script-fu/script-fu-scripts.c : #include <windows.h>
      	to get the Sleep() prototype
      6cb914db
    • Michael Natterer's avatar
      made gimp_display_shell_update_icon() public, removed the update_icon · 91ada344
      Michael Natterer authored
      2002-02-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.[ch]: made
      	gimp_display_shell_update_icon() public, removed the update_icon
      	signal handler and idle function.
      
      	* app/display/gimpdisplayshell-handlers.c: added the update_icon
      	stuff here so it get's properly dis- and reconnected.
      91ada344
    • Michael Natterer's avatar
      Fixed #34633 (wheel mouse zooming leaves straigth-line helpline on image) · 2ccbf2a4
      Michael Natterer authored
      2002-02-17  Michael Natterer  <mitch@gimp.org>
      
      	Fixed #34633 (wheel mouse zooming leaves straigth-line helpline on
      	image) and maybe some other stuff caused by the misbehaviour
      	described below:
      
      	* app/tools/tools-types.h
      	* app/tools/tool_manager.c (tool_manager_control_active):
      
      	Removed the "PAUSED" ToolState.
      
      	The possible state transitions were INACTIVE <-> ACTIVE <-> PAUSED,
      	where the ACTIVE <-> PAUSED transition was done only in the
      	tool_manager, causing the tools's control() never to be called
      	when the tool was INACTIVE.
      
      	The GimpPaintTool however wants to draw on the display when it's
      	INACTIVE, and of course wants to be suspended/resumed correctly
      	while fiddling with display repainting/scaling/...
      
      	The PAUSED state was also redundant information, since
      	(tool->paused_count > 0) is the same information (only more
      	correct and independent of tool activity).
      
      	* app/display/gimpdisplayshell-scale.[ch]: suspend/resume the
      	active tool around _all_ changes to the display's "scale" and
      	"offset" fields.  Added new function
      	gimp_display_shell_scale_by_values() which does that and is called
      	from all places which need to change these values.
      
      	* app/tools/gimpmagnifytool.c: changed accordingly.
      
      	Unrelated stuff:
      
      	* app/paint/gimpairbrush.c: added a #warning FIXME.
      
      	* app/tools/gimpdrawtool.c: made a warning more verbose.
      
      	* app/tools/gimppainttool.c: put one more drawable offset
      	calculation in { .. }, will make a utility function out of it...
      2ccbf2a4
    • Manish Singh's avatar
      use new GtkFileSelection multiselect API. · ee2cbb44
      Manish Singh authored
      2002-02-16  Manish Singh  <yosh@gimp.org>
      
              * app/gui/file-open-dialog.c: use new GtkFileSelection multiselect
              API.
      ee2cbb44
  2. 15 Feb, 2002 1 commit
    • Michael Natterer's avatar
      added back the handler which invalidates the display_title on dirty/clean. · 72284d38
      Michael Natterer authored
      2002-02-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-handlers.c: added back the handler
      	which invalidates the display_title on dirty/clean. Removing it
      	was simply wrong.
      
      	* app/display/gimpdisplayshell-scale.c: don't call
      	gimp_display_shell_update_title() directly but set
      	shell->title_dirty to TRUE before calling gdisplays_flush().
      
      	* app/paint/gimppaintcore.[ch]: added gimp_paint_core_constrain()
      	which does the "snap to 15 degrees" stuff formerly done in
      	GimpPaintTool. Call gimp_brush_select_brush() in
      	gimp_paint_core_paint() if paint_state == MOTION, not in several
      	other places.  Reordered functions, added some comments and
      	documentation.
      
      	* 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/gimppencil.c
      	* app/paint/gimpsmudge.c:
      	s/CORE_CAN_HANDLE_CHANGING_BRUSH/CORE_HANDLES_CHANGING_BRUSH/g,
      	minor cleanup.
      
      	* app/pdb/pdb-types.h: include "paint/paint-types.h"
      
      	* app/tools/gimppainttool.[ch]: use gimp_paint_core_constrain(),
      	removed paint_tool->state because it's not needed any more,
      	lots of cleanup.
      
      	* tools/pdbgen/app.pl: another eeky special case for "paint/".
      
      	* tools/pdbgen/pdb/paint_tools.pdb: include stuff from "paint/",
      	not "tools/".
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      72284d38
  3. 14 Feb, 2002 2 commits
    • Manish Singh's avatar
      shut up cvs properly · 7387f8cc
      Manish Singh authored
      7387f8cc
    • Michael Natterer's avatar
      Core/UI separation for the paint tools: · dca988f7
      Michael Natterer authored
      2002-02-14  Michael Natterer  <mitch@gimp.org>
      
      	Core/UI separation for the paint tools:
      
      	* configure.in
      	* app/Makefile.am
      	* app/paint/.cvsignore
      	* app/paint/Makefile.am: added new directory for the paint methods
      	without GUI and tools around them.
      
      	* app/paint/paint-types.h: typedefs for this module.
      
      	* app/paint/gimppaintcore-kernels.h
      	* app/paint/gimppaintcore.[ch]: the general paint logic taken
      	from GimpPaintTool.
      
      	* app/paint/gimpairbrush.[ch]
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.[ch]
      	* app/paint/gimppencil.[ch]
      	* app/paint/gimpsmudge.[ch]: subclasses of GimpPaintCore,
      	implementing their own paint() methods.  Needs more hacking
      	to get the GtkWidget pointers out of the options structs.
      
      	* app/tools/gimppainttool_kernels.h: removed.
      
      	* app/tools/tools-types.h: removed the paint tool enums.
      
      	* app/tools/gimpairbrushtool.[ch]
      	* app/tools/gimpclonetool.[ch]
      	* app/tools/gimpconvolvetool.[ch]
      	* app/tools/gimpdodgeburntool.[ch]
      	* app/tools/gimperasertool.[ch]
      	* app/tools/gimppaintbrushtool.[ch]
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimppenciltool.[ch]
      	* app/tools/gimpsmudgetool.[ch]: all paint tools are pure GUI
      	things now.  PaintOptions and friends still need to be chopped up
      	though...
      
      	* app/undo.c: changed PaintUndo to GimpPaintCoreUndo, some minor
      	cleanup.
      
      	* tools/kernelgen.c: changed accordingly.
      
      	* tools/pdbgen/Makefile.am: scan paint/paint-types.h for enums.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: hardcode "success = FALSE" for
      	all paint PDB wrappers.  The non-gui stuff is completely broken.
      	More commits to come...
      
      	* app/pdb/paint_tools_cmds.c
      	* tools/pdbgen/enums.pl: regenerated.
      dca988f7
  4. 13 Feb, 2002 4 commits
    • Michael Natterer's avatar
      moved all global variables into the GimpPaintTool structure so they have a · dac875d3
      Michael Natterer authored
      2002-02-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimppainttool.[ch]: moved all global variables into
      	the GimpPaintTool structure so they have a proper lifecycle and
      	it's easier to move them to the upcoming GimpPaintCore (??)
      	object.
      
      	* app/tools/gimppainttool_kernels.h
      	* tools/kernelgen.c: s/SUBSAMPLE/KERNEL_SUBSAMPLE/
      dac875d3
    • Michael Natterer's avatar
      moved "Merge Layers" and "Flatten Image" from "Layer/" to "Image/", · 1e9c264a
      Michael Natterer authored
      2002-02-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/menus.c: moved "Merge Layers" and "Flatten Image" from
      	"Layer/" to "Image/", removed them from the "<Layers>" menu
      	entirely, moved "Merge Down" after "Anchor Layer" in both menus.
      
      	* app/gui/image-commands.[ch]: moved callbacks from here...
      
      	* app/gui/layers-commands.[ch]: ...to here.
      
      	* app/gui/layers-commands.[ch]
      	* app/display/gimpdisplayshell.c: changed menu_update functions
      	accordingly.
      1e9c264a
    • Nate Summers's avatar
      that doesn't smell like chicken. · ebc12901
      Nate Summers authored
      ebc12901
    • Nate Summers's avatar
      plug-ins/tools/.cvsignore new directory for tool plug-ins · 4f00ac76
      Nate Summers authored
      
       	* plug-ins/tools/.cvsignore
       	* plug-ins/tools/Makefile.am: new directory for tool plug-ins
      
       	* plug-ins/tools/common/.cvsignore
       	* plug-ins/tools/common/Makefile.am: unified directory for single-file
       	tool plug-ins, just like the "common" subdirectory for plug-ins
      
       	* plug-ins/tools/common/gimpbrushselecttool.[ch]: start of a
       	tool plug-in that uses the current brush to select from the image.
      
      	* configure.in
      	* plug-ins/Makefile.am: changed accordingly
      4f00ac76
  5. 12 Feb, 2002 13 commits
    • Michael Natterer's avatar
      merged partial fix for #62592 from stable branch. · e41ea363
      Michael Natterer authored
      2002-02-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/edit-commands.c: merged partial fix for #62592 from
      	stable branch.
      e41ea363
    • Michael Natterer's avatar
      merged fix for #63741 from stable branch, minor cleanup. · fd30019a
      Michael Natterer authored
      2002-02-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/resize-dialog.c: merged fix for #63741 from stable
      	branch, minor cleanup.
      fd30019a
    • Sven Neumann's avatar
      app/gui/preferences-dialog.c changed "Nearest Neighbor" interpolation to · bc6fd092
      Sven Neumann authored
      2002-02-12  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.c: changed "Nearest Neighbor" interpolation
      	to "None".
      bc6fd092
    • Nate Summers's avatar
      ) · c9ecf767
      Nate Summers authored
      c9ecf767
    • Michael Natterer's avatar
      scale_region_no_resample() no longer needs to be public, as we can call · 12796f2d
      Michael Natterer authored
      2002-02-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint-funcs/paint-funcs.[ch]: scale_region_no_resample() no
      	longer needs to be public, as we can call
      	scale_region(src, dest, GIMP_INTERPOLATION_NONE).
      12796f2d
    • Nate Summers's avatar
      have a smurfy day · e653fcaa
      Nate Summers authored
      e653fcaa
    • Nate Summers's avatar
      Here's the story... · acc13e76
      Nate Summers authored
      acc13e76
    • Nate Summers's avatar
      implement a new pluginrc flag, "has-init", so that only plug-ins with init · e1db698b
      Nate Summers authored
      
       	* app/plug-in/plug-in-rc.c: implement a new pluginrc flag,
       	"has-init", so that only plug-ins with init functions are
       	initialized.
      
      	* app/plug-in/plug-in.ch
       	* libgimp/gimp.c
       	* libgimpbase/gimpprotocol.ch: send a new gimpwire message,
       	GP_HAS_INIT during the query stage if the plug-in needs to be
       	initialized.  Only invoke the plug-in in init mode if the plug-in
       	has an init function.
      e1db698b
    • Sven Neumann's avatar
      renamed GimpInterpolationType values to something sane and unexported it · 04c995fb
      Sven Neumann authored
      2002-02-12  Sven Neumann  <sven@gimp.org>
      
      	* app/base/base-enums.h: renamed GimpInterpolationType values to
      	something sane and unexported it from the PDB since it was never
      	used in any PDB calls.
      
      	* app/gimprc.c
      	* app/config/gimpcoreconfig.c
      	* app/core/gimpcoreconfig.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimplayer.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.c
      	* app/paint-funcs/paint-funcs.c
      	* app/pdb/transform_tools_cmds.c
      	* app/tools/transform_options.c
      	* tools/pdbgen/pdb/transform_tools.pdb: changed accordingly.
      
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      04c995fb
    • Nate Summers's avatar
      6083787b
    • Nate Summers's avatar
      app/plug-in/plug-in.[ch] added support for the init function in plug-ins. · 3d5548b5
      Nate Summers authored
      
       	* app/plug-in/plug-in.[ch]
      	* libgimp/gimp.c: added support for the init function in plug-ins.
      3d5548b5
    • Michael Natterer's avatar
      Made the interpolation type configurable in the scale and transform · 733d6335
      Michael Natterer authored
      2002-02-12  Michael Natterer  <mitch@gimp.org>
      
      	Made the interpolation type configurable in the scale and
      	transform options dialogs (#69251):
      
      	* app/base/base-config.[ch]
      	* app/config/gimpbaseconfig.[ch]: removed interpolation_type here...
      
      	* app/core/gimpcoreconfig.[ch]
      	* app/config/gimpcoreconfig.[ch]: ...and added it here.
      
      	* app/gimprc.c
      	* app/gui/preferences-dialog.c: changed accordingly.
      
      	* app/paint-funcs/paint-funcs.[ch]: scale_region: take an
      	interpolation_type parameter.
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-scale.[ch]
      	* app/core/gimplayer.[ch]: pass interpolation_type parameters to all
      	scale and transform functions.
      
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: changed accordingly.
      
      	* app/gui/resize-dialog.[ch]
      	* app/tools/transform_options.[ch]: added an interpolation_type menu.
      
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      733d6335
    • Sven Neumann's avatar
      s/gdk_image_get/gdk_drawable_get_image/ · 912dc07c
      Sven Neumann authored
      2002-02-12  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/MapObject/mapobject_preview.c:
      	s/gdk_image_get/gdk_drawable_get_image/
      
      	* plug-ins/MapObject/mapobject_ui.c: fixed wrong refcounting of
      	GtkImage.
      912dc07c
  6. 11 Feb, 2002 10 commits
  7. 10 Feb, 2002 5 commits
    • Sven Neumann's avatar
      Made 1.3.3 release. · 6e9ec46f
      Sven Neumann authored
      6e9ec46f
    • Sven Neumann's avatar
      app/batch.c app/general.c app/core/gimpbrushgenerated.c · bda6939c
      Sven Neumann authored
      2002-02-10  Sven Neumann  <sven@gimp.org>
      
      	* app/batch.c
      	* app/general.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpdata.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/file/file-utils.c: don't include ctype.h, use g_ascii_*
      	functions from GLib instead.
      
      	* app/gui/file-open-dialog.c: disabled multiple selection in the
      	file open dialog until this is fixed in GTK+.
      bda6939c
    • Adam D. Moss's avatar
      minor function renaming. · 859829d4
      Adam D. Moss authored
      859829d4
    • Adam D. Moss's avatar
      RGB->Indexed quantizer version 3.0 (the rest of the commit started a year · ee4115a8
      Adam D. Moss authored
      2002-02-10  Adam D. Moss  <adam@gimp.org>
      
      	* app/core/gimpimage-convert.[ch]:
      	RGB->Indexed quantizer version 3.0 (the rest of the commit started
      	a year ago -- whoops).  Divide colours within CIE L*a*b* space using
      	CPercep module (cpercep.[ch]), colour-match and dither likewise,
      	change the underlying box selection criteria and division point
      	logic, bump luminance precision upwards, etc. etc.
      
      	* app/core/cpercep.[ch] (new files): utility module used by
      	quantizer for quantifying perceptual colour distances
      
      	* app/core/gimpimage-convert-data.h (new file): move the big
      	static data arrays out of gimpimage-convert.c
      
      	* app/core/gimpimage-convert-fsdither.h: static-ify data
      
      	* app/core/Makefile.am: add cpercep.[ch] and gimpimage-convert-data.h
      ee4115a8
    • Michael Natterer's avatar
      removed #if 0'ed old display update hackery. Don't flush the displays here · ceed8eae
      Michael Natterer authored
      2002-02-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/undo.c: removed #if 0'ed old display update hackery. Don't
      	flush the displays here at all and include nothing from
      	"display/".
      
      	* app/undo_history.c
      	* app/gui/edit-commands.c: call gdisplays_flush() if undo_pop() or
      	undo_redo() return TRUE.
      
      	* app/core/gimpimage-contiguous-region.[ch]: allow a contiguous
      	transparent region to be selected/filled (#71058).
      
      	* app/core/gimpdrawable-bucket-fill.[ch]
      	* app/core/gimpimage-mask-select.[ch]: take a boolean
      	fill_transparent/select_transparent parameter and pass it to the
      	contiguous region funcion.
      
      	* app/display/gimpdisplayshell-dnd.c: pass
      	fill_transparent == FALSE to bucket_fill_full because we fill the
      	whole drawable anyway here.
      
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/selection_options.[ch]: added toggle buttons to the
      	tool options and pass the value to the fill and select core
      	functions.
      
      	* tools/pdbgen/pdb/misc_tools.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: hardcode
      	"select_transparent" to FALSE to get the old behaviour. Should
      	export the new feature to plug-ins however.
      
      	* app/pdb/misc_tools_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      ceed8eae