1. 24 Feb, 2002 2 commits
    • Michael Natterer's avatar
      app/undo.[ch] added undo stuff for GimpVectors. · 76913601
      Michael Natterer authored
      2002-02-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/undo.[ch]
      	* app/undo_types.h: added undo stuff for GimpVectors.
      
      	* app/core/gimimage.c: use the new undo functions. Still unused
      	and untested.
      76913601
    • Michael Natterer's avatar
      added parasite undo groups. · ab0c8fe2
      Michael Natterer authored
      2002-02-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-types.h: added parasite undo groups.
      
      	* app/undo.c: added assertions to make undo_push_group_start()
      	accept only "UndoType" values and undo_push() only "UndoImplType".
      
      	* app/core/gimpdrawable.c: use the new undo group and don't
      	include "undo_types.h".
      ab0c8fe2
  2. 23 Feb, 2002 4 commits
    • Michael Natterer's avatar
      app/undo_types.h added new undo type IMAGE_TYPE_UNDO along with · 78317432
      Michael Natterer authored
      2002-02-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/undo_types.h
      	* app/undo.[ch]: added new undo type IMAGE_TYPE_UNDO along with
      	undo_push_image_type(), removed undoing the base_type from
      	IMAGE_SIZE_UNDO. Hacked the undo_names a bit.
      
      	* app/core/gimpimage-convert.c: call undo_push_image_type().
      
      	This removes lots of unneeded invalidations on type/size undo.
      78317432
    • Sven Neumann's avatar
      include undo_types.h to fix the build. · bd795672
      Sven Neumann authored
      2002-02-23  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable.c: include undo_types.h to fix the build.
      bd795672
    • Michael Natterer's avatar
      General undo cleanup: · a3c3e7d3
      Michael Natterer authored
      2002-02-23  Michael Natterer  <mitch@gimp.org>
      
      	General undo cleanup:
      
      	* app/undo.[ch]: made all undo structs private. Changed all
      	undo_push_foo() functions to take useful parameters instead of
      	"gpointer foo_ptr" and create the undo structs internally.
      	Renamed lots of functions so they are more self-explanatory
      	(like undo_push_gimage_mod -> undo_push_image_size). Added some
      	undo functions (channel reordering is undoable now).  Never pass
      	in a UndoType, as they are reseved for groups now (see below).
      	Lots of cleanup and stuff...
      
      	* app/undo_types.h: is a private header now which defines "enum
      	UndoImplType" which is reserved for actual undo operations.
      	All enum values are named "FOO_UNDO".
      
      	* app/core/core-types.h: added the "UndoType" enum here and don't
      	include "undo_types.h" any more. The UndoType values are all
      	named "FOO_UNDO_GROUP" and are reserved for undo groups.
      
      	The ID space of actual undo operations and undo groups
      	is now strictly disjunct.
      
      	* app/core/gimpchannel.h
      	* app/core/gimpimage.h
      	* app/core/gimplayer.h
      	* app/core/gimplayermask.h
      	* app/paint/gimppaintcore.h
      	* app/tools/gimptransformtool.h: removed undo stuct definitions.
      
      	* app/undo_history.c
      	* app/path_transform.h
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/channels-commands.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/paths-dialog.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/undo.pdb: changed accordingly.
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
      
      	* app/core/gimpimage.[ch]: added infrastructure for holding a
      	GimpList of GimpVectors objects. The API is the same as for layers
      	and channels. Not used yet.
      a3c3e7d3
    • Sven Neumann's avatar
      forgot to commit this yesterday · b414ec7c
      Sven Neumann authored
      b414ec7c
  3. 22 Feb, 2002 5 commits
    • Sven Neumann's avatar
      HACKING Makefile.am autogen.sh depend on intltool for handling i18n stuff. · 9bc726a0
      Sven Neumann authored
      2002-02-22  Sven Neumann  <sven@gimp.org>
      
      	* HACKING
      	* Makefile.am
      	* autogen.sh
      	* configure.in: depend on intltool for handling i18n stuff. This
      	means that you need intltool to compile The GIMP from CVS. Grab
      	it from ftp://ftp.gnome.org/pub/GNOME/stable/sources/intltool/
      	or out of gnomecvs module intltool. You shouldn't need it if you
      	compile The GIMP from tarball.
      
      	* data/misc/Makefile.am
      	* data/misc/gimp.desktop.in.in: merge translations into the desktop
      	file.
      9bc726a0
    • Sven Neumann's avatar
      INSTALL cleaned up --with-sendmail, --enable-threads and --enable-mp · 239e53e7
      Sven Neumann authored
      2002-02-22  Sven Neumann  <sven@gimp.org>
      
      	* INSTALL
      	* configure.in: cleaned up --with-sendmail, --enable-threads and
      	--enable-mp options. Added --with-gnome-desktop=PATH option.
      
      	* data/misc/Makefile.am
      	* data/misc/gimp.desktop.in.in: install a GNOME desktop file for
      	The GIMP and create a link so GNOME-2.0 should be able to find it.
      	Use --with-gnome-desktop=PATH to override the link location.
      
      	* data/images/Makefile.am
      	* data/images/wilber-icon.png: new file to serve as application icon.
      
      	* plug-ins/script-fu/script-fu-scripts.c: register script-fu
      	SF_ADJUSTMENT parameters as GIMP_PDB_FLOAT (spotted by Masahiro
      	Sakai <zvm01052@nifty.ne.jp>).
      239e53e7
    • Michael Natterer's avatar
      app/Makefile.am removed... · ac0c4af0
      Michael Natterer authored
      2002-02-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimpprogress.[ch]: removed...
      
      	* app/display/Makefile.am
      	* app/display/gimpprogress.[ch]: ...and added here. Prefixed
      	everything with "gimp_".
      
      	* app/gui/image-commands.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      ac0c4af0
    • Michael Natterer's avatar
      app/vectors/Makefile removed. · a4550e9c
      Michael Natterer authored
      2002-02-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/vectors/Makefile
      	* app/vectors/Makefile.in: removed.
      a4550e9c
    • Simon Budig's avatar
      app/vectors/Makefile app/vectors/Makefile.am app/vectors/Makefile.in · a7fcc25f
      Simon Budig authored
      2002-02-22  Simon Budig  <simon@gimp.org>
      
              * app/vectors/Makefile
              * app/vectors/Makefile.am
              * app/vectors/Makefile.in
              * app/vectors/gimpanchor.h
              * app/vectors/gimpbezier.c
              * app/vectors/gimpbezier.h
              * app/vectors/gimpvectors.c
              * app/vectors/gimpvectors.h
              * app/vectors/vectors-types.h: new files, the beginning
              of a new vector infrastructure for gimp.
      
              * configure.in
              * app/Makefile.am
              * app/core/core-types.h: changed accordingly.
      
              * app/tools/Makefile.am
              * app/tools/gimpvectortool.c
              * app/tools/gimpvectortool.h
              * app/tools/tools.c: New tool without practical use (yet),
              using the new infrastructure.
      
              to be continued...
      a7fcc25f
  4. 21 Feb, 2002 5 commits
    • Michael Natterer's avatar
      app/Makefile.am removed... · 9f9fa587
      Michael Natterer authored
      2002-02-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/floating_sel.[ch]: removed...
      
      	* app/core/Makefile.am
      	* app/core/gimplayer-floating-sel.[ch]: ...and added here.
      
      	* app/undo.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer.c
      	* app/gui/layers-commands.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* plug-ins/tools/common/gimpbrushselecttool.c
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed includes accordingly.
      
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/layer_cmds.c: regenerated.
      9f9fa587
    • Michael Natterer's avatar
      Made the paint tool PDB wrappers work again (a bit at least...) · 9c510759
      Michael Natterer authored
      2002-02-21  Michael Natterer  <mitch@gimp.org>
      
      	Made the paint tool PDB wrappers work again (a bit at least...)
      
      	* app/Makefile.am: changed linking order. libtool sucks.
      
      	* app/undo.c: check if active_tool is a GimpPaintTool before
      	casting it.
      
      	* app/paint/Makefile.am
      	* app/paint/paint-types.h: added new files/types.
      
      	* app/paint/gimppaintoptions.[ch]: new files cut out of
      	tools/paint_options.h. Prefixed everything with "Gimp". There is
      	still GtkWidget* cruft hanging around in the structs...
      
      	* app/paint/gimppaintcore-stroke.[ch]: utility function
      	which paints a stroke array. Needed for the PDB wrappers.
      
      	* 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.[ch]
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.[ch]: added *_options_new() functions which
      	create correctly initialized options structures without widgets.
      
      	* app/tools/paint_options.[ch]: removed the options struct
      	definitions and value initialisations.
      
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpsmudgetool.c: changed all paint_options functions
      	accordingly, s/PaintOptions/GimpPaintOptions/g etc., removed all
      	#if 0'ed non_gui functions.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: use gimp_paint_core_stroke().
      	We currently leak all paint_options structs created by the PDB
      	wrappers, more stuff to come...
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      9c510759
    • Sven Neumann's avatar
      code cleanup based on a patch from Maurits Rijk <lpeek.mrijk@consunet.nl> · 9e2f55bc
      Sven Neumann authored
      2002-02-21  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/common/glasstile.c: code cleanup based on a patch from
      	Maurits Rijk <lpeek.mrijk@consunet.nl> (#72051).
      9e2f55bc
    • Michael Natterer's avatar
      Implemented #66921 (needs gimp-*-refresh in PDB) · 41e2a325
      Michael Natterer authored
      2002-02-21  Michael Natterer  <mitch@gimp.org>
      
      	Implemented #66921 (needs gimp-*-refresh in PDB)
      
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/patterns.pdb: added gimp_*_refresh() procedures.
      
      	* tools/pdbgen/pdb/palette.pdb: typo: s/patterns/palettes/
      
      	* app/pdb/gradients_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/patterns_cmds.c
      	* libgimp/gimpgradients_pdb.[ch]
      	* libgimp/gimppalette_pdb.c: regenerated.
      41e2a325
    • Michael Natterer's avatar
      return the corrent value in g_retuen_val_if_fail(). · 5153abaf
      Michael Natterer authored
      2002-02-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpdrawtool.c: return the corrent value in
      	g_retuen_val_if_fail().
      
      	* app/tools/gimppainttool.c: removed some more painting logic...
      
      	* app/paint/gimppaintcore.[ch]: ...and added it here so the PDB
      	wrappers can use it too. Added "gboolean use_pressure" which needs
      	to be set by GimpPaintTool so we don't need access to GdkDevices.
      5153abaf
  5. 20 Feb, 2002 4 commits
    • Sven Neumann's avatar
      optimization and cleanup based on a patch from Maurits Rijk · 6537ee98
      Sven Neumann authored
      2002-02-20  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/common/colortoalpha.c: optimization and cleanup based
      	on a patch from Maurits Rijk <lpeek.mrijk@consunet.nl> (#72044).
      6537ee98
    • Michael Natterer's avatar
      Implemented #7100 (initialize layer mask with a copy of the image) · bc7c7f32
      Michael Natterer authored
      2002-02-20  Michael Natterer  <mitch@gimp.org>
      
      	Implemented #7100 (initialize layer mask with a copy of the image)
      
      	* app/core/core-types.h: added ADD_COPY_MASK and ADD_INV_COPY_MASK
      	enum values.
      
      	* app/pdb/layer_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/core/gimplayer.c (gimp_layer_create_mask): implement
      	the new layer mask add modes.
      
      	* app/gui/layers-commands.c (layers_add_mask_query): added radio
      	buttons for the new modes.
      
      	* app/paint-funcs/paint-funcs.c (flatten_region): this function
      	was never needed so nobody noticed that it never worked. Fixed now.
      
      	* app/undo.c
      	* app/core/gimplayermask.h
      	* app/core/gimpimage.c: the "mode" field of LayerMaskUndo is
      	obsolete since some earlier 1.3 layer mask change. Removed it.
      	(Makes mask undos work again)
      bc7c7f32
    • Michael Natterer's avatar
      Implemented #10125 ("quick" colour picker does not honour "sample merged") · a49635e2
      Michael Natterer authored
      2002-02-20  Michael Natterer  <mitch@gimp.org>
      
      	Implemented #10125 ("quick" colour picker does not honour
      	"sample merged")
      
      	* app/tools/gimpcolorpickertool.[ch]: made definition of
      	GimpColorPickerToolOptions public.
      
      	* app/tools/gimppainttool.c: get the color picker's tool_options
      	and pick colors accordingly. Also draw a rectangle for
      	"sample_average".
      a49635e2
    • Michael Natterer's avatar
      Oops, yesterday's "fix" for #10466 made it even worse :) · ad067c73
      Michael Natterer authored
      2002-02-20  Michael Natterer  <mitch@gimp.org>
      
      	Oops, yesterday's "fix" for #10466 made it even worse :)
      
      	* app/core/gimpdrawable-transform.c: need the 0.5 offset to
      	the pixel's center only for INTERPOLATION_NONE, as the LINEAR
      	and CUBIC algorithms already know about their errors.
      
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c: some more s/gint/gdouble/ so the
      	tools can detect pointer motions again...
      ad067c73
  6. 19 Feb, 2002 3 commits
    • Sven Neumann's avatar
      applied a patch with some optimizations from Maurits Rijk · 84426ce4
      Sven Neumann authored
      2002-02-19  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/common/vinvert.c: applied a patch with some optimizations
      	from Maurits Rijk <lpeek.mrijk@consunet.nl> (#71955).
      84426ce4
    • Michael Natterer's avatar
      Fixed #10466 (disappearing pixels when rotating by 90 deg): · 8d0af04c
      Michael Natterer authored
      2002-02-19  Michael Natterer  <mitch@gimp.org>
      
      	Fixed #10466 (disappearing pixels when rotating by 90 deg):
      
      	* app/core/gimpdrawable-transform.c: when transforming backwards
      	to find the destination line's sub-pixel source coordinates, we
      	need to transform the pixels _center_, not it's upper left corner.
      
      	* app/core/gimpdrawable-transform-utils.[ch]: added
      	gimp_drawable_transform_matrix_rotate_center() which takes double
      	center coordinates instead of an integer pixel bounding box.
      
      	* app/tools/gimptransformtool.[ch]: use double instead of int for
      	all coordinates except the original bounding box.
      
      	* app/tools/gimprotatetool.c: use double whenever touching the
      	"center" value, so it can be sub-pixel positioned.
      8d0af04c
    • Sven Neumann's avatar
      code cleanup based on a patch from Maurits Rijk <lpeek.mrijk@consunet.nl> · f17c891b
      Sven Neumann authored
      2002-02-19  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/pagecurl/pagecurl.c: code cleanup based on a patch from
      	Maurits Rijk <lpeek.mrijk@consunet.nl> (#71866).
      f17c891b
  7. 18 Feb, 2002 5 commits
    • Sven Neumann's avatar
      removed INIT_LOCALE() macro. Error out if config.h wasn't included before. · d3f6ad09
      Sven Neumann authored
      2002-02-18  Sven Neumann  <sven@gimp.org>
      
      	* libgimp/gimpintl.h: removed INIT_LOCALE() macro. Error out if
      	config.h wasn't included before.
      
      	* app/main.c: directly call the appropriate functions to set up I18N.
      
      	* libgimp/libgimp-intl.h: error out if config.h wasn't included.
      
      	* plug-ins/script-fu/script-fu-intl.h: set codeset to UTF-8.
      d3f6ad09
    • Michael Natterer's avatar
      app/tools/tools-types.h chain up unconditionally in control(), · bec4c725
      Michael Natterer authored
      2002-02-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tools-types.h
      	* app/tools/*.[ch]: chain up unconditionally in control(),
      	s/ToolAction/GimpToolAction/g, s/ToolState/GimpToolState/g.
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppainttool.c: don't touch tool->paused_count
      	(setting it to 0 was a hack which should no longer be needed).
      
      	* app/tools/gimpdrawtool.c: check if the draw tool has actually
      	been started (draw_tool->gdisp != NULL) before calling it's
      	draw() function.
      
      	* app/tools/tool_manager.c: simplified tool_manager_control_active():
      	simply call gimp_tool_control() if gdisp == tool->gdisp.
      
      	* app/tools/gimptool.[ch]: gimp_tool_control(): do all the PAUSE,
      	RESUME and HALT voodoo here.
      
      	* app/tools/gimppainttool.c: implemented #9902 (Drawing straight
      	lines does not work between different views). It's an evil hack,
      	but clearly marked in the source.
      bec4c725
    • Sven Neumann's avatar
      app/app_procs.c app/base/temp-buf.c app/core/gimpmodules.c · fe2c9e8b
      Sven Neumann authored
      2002-02-18  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.c
      	* app/base/temp-buf.c
      	* app/core/gimpmodules.c
      	* app/plug-in/plug-in.c
      	* libgimpbase/gimpenv.c
      	* libgimpwidgets/gimpfileselection.c
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/FractalExplorer/FractalExplorer.c
      	* plug-ins/flame/flame.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gflare/gflare.c
      	* plug-ins/gimpressionist/gimpressionist.[ch]: use g_file_test()
      	instead of stat() whereever possible. Improves code readability.
      fe2c9e8b
    • Sven Neumann's avatar
      require latest glib and gtk+ releases (1.3.14). Bumped our version number · fb8c94c0
      Sven Neumann authored
      2002-02-18  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: require latest glib and gtk+ releases (1.3.14).
      	Bumped our version number to 1.3.4.
      fb8c94c0
    • Sven Neumann's avatar
      implemented thumbnail loading according to the latest version of the · ad12cbf3
      Sven Neumann authored
      2002-02-18  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimagefile.c: implemented thumbnail loading according
      	to the latest version of the Thumbnail Managing standard.
      
      	* app/widgets/gimpimagefilepreview.[ch]: draw a GTK_DIALOG_QUESTION
      	pixbuf when no preview is available. The implementation is a bit ugly
      	but we can improve this later when GimpPreview has been generalized
      	to accept pixbufs also.
      
      	* themes/Default/gtkrc: register the icons for GtkWidget instead of
      	GtkImage so they can be used from other widgets too.
      
      	* plug-ins/common/zealouscrop.c: merged fix for bug #71795 from
      	stable branch.
      ad12cbf3
  8. 17 Feb, 2002 7 commits
    • Sven Neumann's avatar
      code cleanup based on a patch from Maurits Rijk <lpeek.mrijk@consunet.nl>. · 0dc57c67
      Sven Neumann authored
      2002-02-17  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/common/aa.c: code cleanup based on a patch from
      	Maurits Rijk <lpeek.mrijk@consunet.nl>.
      0dc57c67
    • Manish Singh's avatar
      add a -DGIMP_COMPILATION so cpercep can optionally include glib.h. This · 193ff9d3
      Manish Singh authored
      2001-02-17  Manish Singh  <yosh@gimp.org>
      
              * app/core/Makefile.am: add a -DGIMP_COMPILATION so cpercep can
              optionally include glib.h. This needs to be done in the makefile.msc
              too, but I'm unsure on the right way to do that.
      
              * app/core/cpercep.c: guard #include <glib.h> in GIMP_COMPILATION.
              cbrt() is a GNU extension, so define in terms of pow if we aren't
              on glibc. Guard CLAMP against redefinition.
      
              * plug-ins/gfig/gfig.c
              * plug-ins/gflare/gflare.c
              * plug-ins/gimpressionist/gimpressionist.c: make them build again
      193ff9d3
    • 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
  9. 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
  10. 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
  11. 13 Feb, 2002 2 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