1. 11 Jul, 2018 1 commit
  2. 19 Nov, 2017 1 commit
    • Ell's avatar
      libgimpmath: add SAFE_CLAMP() macro · e9f45798
      Ell authored
      The SAFE_CLAMP() macro is similar to CLAMP(), however, its result
      is always within the specified range, even if the input is NaN.
      e9f45798
  3. 05 Oct, 2017 2 commits
    • Ell's avatar
      Bug 788461 - Selection with a Fixed size is created with an ... · 80a52686
      Ell authored
      ... off-by one size in special cases
      
      The last commit wasn't drastic enough.  We changed SIGNED_ROUND()
      to use RINT(), which, in turn, may use rint().  However, rint()
      effectively breaks ties to even, so that we get stuff like
      'rint (1.5) - rint (0.5) == 2.0 - 0.0 == 2.0'.  This can't be
      good--it's entirely possible that we're bitten by this in other
      cases without noticing.
      
      Avoid rint() entirely in RINT(), and always use 'floor (x) + 0.5'
      instead, which always breaks ties up.  Hopefully, this doesn't
      break anything else...
      80a52686
    • Ell's avatar
      Bug 788461 - Selection with a Fixed size is created with an ... · e8b37a7a
      Ell authored
      ... off-by one size in special cases
      
      SIGNED_ROUND(), which is used by GimpToolRectangle, among other
      things, used to round negative values which lie exactly between
      two integers, i.e., -foo.5, down.  This could lead to the rectangle
      being one pixel bigger than expected, in either dimension, when one
      of its edges had a negative coordinate, and the opposite edge had a
      positive coordinate.
      
      Fix SIGNED_ROUND() to always round such values up, regardless of
      sign.
      e8b37a7a
  4. 12 Feb, 2013 1 commit
  5. 28 Apr, 2011 1 commit
    • Michael Natterer's avatar
      libgimp*: add guards that #error out if individual files are included · 844df2b4
      Michael Natterer authored
      This only helps to maintain proper includes in app/ and shouldn't
      affect plug-ins at all, because these are supposed to only include the
      main headers from libgimp/ since the beginning of time.
      
      The gimpfootypes.h files do not have these guards, so we can continue
      to maintain app/'s include policy that is very likely to error out if
      wrong things are included.
      844df2b4
  6. 02 Jul, 2010 2 commits
  7. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      
      	* all files with a GPL header and all COPYING files:
      
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      
      
      svn path=/trunk/; revision=27913
      d9b5207a
  8. 05 Dec, 2003 1 commit
    • Michael Natterer's avatar
      libgimp/gimp.h libgimp/gimpbrushmenu.h libgimp/gimpbrushselect.[ch] · 7efa81d1
      Michael Natterer authored
      2003-12-05  Michael Natterer  <mitch@gimp.org>
      
      	* libgimp/gimp.h
      	* libgimp/gimpbrushmenu.h
      	* libgimp/gimpbrushselect.[ch]
      	* libgimp/gimpfontmenu.[ch]
      	* libgimp/gimpfontselect.[ch]
      	* libgimp/gimpgradientmenu.h
      	* libgimp/gimpgradientselect.[ch]
      	* libgimp/gimpmenu.h
      	* libgimp/gimpmisc.[ch]
      	* libgimp/gimpmiscui.[ch]
      	* libgimp/gimppatternmenu.h
      	* libgimp/gimppatternselect.[ch]
      	* libgimp/gimppixelrgn.[ch]
      	* libgimp/gimpproceduraldb.c
      	* libgimp/gimpselection.c
      	* libgimp/gimptile.h
      	* libgimp/gimptypes.h
      	* libgimp/gimpui.h
      	* libgimp/gimpuitypes.h
      	* libgimp/libgimp-intl.h
      	* libgimp/stdplugins-intl.h
      	* libgimpbase/gimpbase.h
      	* libgimpbase/gimpdatafiles.c
      	* libgimpbase/gimpenv.c
      	* libgimpbase/gimpparasite.[ch]
      	* libgimpbase/gimpparasiteio.[ch]
      	* libgimpbase/gimpsignal.[ch]
      	* libgimpbase/gimputils.c
      	* libgimpcolor/gimpadaptivesupersample.[ch]
      	* libgimpcolor/gimpbilinear.[ch]
      	* libgimpmath/gimpmath.h
      	* libgimpmath/gimpmathtypes.h
      	* libgimpwidgets/gimpbutton.[ch]
      	* libgimpwidgets/gimpchainbutton.h
      	* libgimpwidgets/gimpcolorarea.[ch]
      	* libgimpwidgets/gimpcolornotebook.h
      	* libgimpwidgets/gimpcolorscale.[ch]
      	* libgimpwidgets/gimpcolorscales.h
      	* libgimpwidgets/gimpcolorselect.h
      	* libgimpwidgets/gimpoffsetarea.h
      	* libgimpwidgets/gimppixmap.[ch]: removed trailing whitespace.
      7efa81d1
  9. 20 Nov, 2002 1 commit
    • Dave Neary's avatar
      configure.in app/core/gimpbrushpipe.c app/gui/about-dialog.c · cd28dee8
      Dave Neary authored
      
      
      2002-11-20  Dave Neary  <bolsh@gimp.org>
      
              * configure.in
              * app/core/gimpbrushpipe.c
              * app/gui/about-dialog.c
              * app/paint-funcs/paint-funcs-generic.h
              * app/paint-funcs/paint-funcs.c
              * libgimpmath/gimpmath.h
              * libgimpwidgets/gimpwidgets.c
              * plug-ins/common/CML_explorer.c
              * plug-ins/common/blur.c
              * plug-ins/common/cubism.c
              * plug-ins/common/gee.c
              * plug-ins/common/gee_zoom.c
              * plug-ins/common/gqbist.c
              * plug-ins/common/jigsaw.c
              * plug-ins/common/lic.c
              * plug-ins/common/noisify.c
              * plug-ins/common/nova.c
              * plug-ins/common/papertile.c
              * plug-ins/common/plasma.c
              * plug-ins/common/randomize.c
              * plug-ins/common/sample_colorize.c
              * plug-ins/common/scatter_hsv.c
              * plug-ins/common/shift.c
              * plug-ins/common/sinus.c
              * plug-ins/common/smooth_palette.c
              * plug-ins/common/snoise.c
              * plug-ins/common/sparkle.c
              * plug-ins/common/spheredesigner.c
              * plug-ins/common/spread.c
              * plug-ins/common/warp.c
              * plug-ins/common/wind.c
              * plug-ins/flame/cmap.c
              * plug-ins/flame/flame.c
              * plug-ins/flame/libifs.c
              * plug-ins/gflare/gflare.c
              * plug-ins/gimpressionist/gimpressionist.c
              * plug-ins/gimpressionist/gimpressionist.h
              * plug-ins/gimpressionist/plasma.c
              * plug-ins/gimpressionist/repaint.c
              * plug-ins/ifscompose/ifscompose_utils.c
              * plug-ins/maze/algorithms.c
              * plug-ins/maze/maze.c
              * plug-ins/maze/maze.h
              * plug-ins/mosaic/mosaic.c: Change all occurrences of RAND_MAX,
              G_MAXRAND, rand(), srand(), lrand48(), srand48(), random(),
              srandom(), RAND_FUNC and SRAND_FUNC to the appropriate g_rand*
              equivalent. Programs which require seed setting for reproducible
              results, and anything in the core, gets a dedicated GRand * for
              the lifetime required. Programs which only ever used random
              numbers for tossing a coin, rolling a dice, etc use g_random
              functions. For the rest, judgement was used. Where it was easy, a
              GRand * object was used and g_rand_* functions were
              preferred. This fixes bug #67386 in HEAD.
      cd28dee8
  10. 13 May, 2002 1 commit
    • Sven Neumann's avatar
      removed FINITE() macro. · fe0bf162
      Sven Neumann authored
      2002-05-13  Sven Neumann  <sven@gimp.org>
      
      	* libgimpmath/gimpmath.h: removed FINITE() macro.
      
      	* tools/pdbgen/pdb/image.pdb
      	* app/pdb/image_cmds.c: define FINITE() here, where it is used.
      
      	* tools/pdbgen/pdb/lib.pl: add "config.h" to all generated libgimp
      	.c files.
      
      	* libgimp/gimp*_pdb.c: regenerated.
      
      	* libgimp/gimpbrushmenu.c
      	* libgimp/gimpchannel.c
      	* libgimp/gimpdrawable.c
      	* libgimp/gimpgradientmenu.c
      	* libgimp/gimphelp.c
      	* libgimp/gimpimage.c
      	* libgimp/gimplayer.c
      	* libgimp/gimppatternmenu.c
      	* libgimp/gimppixelrgn.c
      	* libgimp/gimpproceduraldb.c
      	* libgimp/gimpselection.c
      	* libgimp/gimptile.c
      	* libgimp/gimpui.c
      	* libgimpmath/gimpmatrix.c
      	* libgimpmath/gimpvector.c
      	* plug-ins/MapObject/arcball.c
      	* plug-ins/fp/fp_gdk.c
      	* plug-ins/fp/fp_misc.c
      	* plug-ins/ifscompose/ifscompose_storage.c
      	* plug-ins/ifscompose/ifscompose_utils.c
      	* plug-ins/maze/handy.c
      	* plug-ins/rcm/rcm_gdk.c
      	* plug-ins/sel2path/edge.c
      	* plug-ins/xjt/xjpeg.c
      	* plug-ins/xjt/xpdb_calls.c: include "config.h".
      fe0bf162
  11. 11 Feb, 2002 1 commit
  12. 22 Nov, 2001 1 commit
    • 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
  13. 22 Jun, 2001 1 commit
    • Sven Neumann's avatar
      do not include math.h conditionally. · 085a16ba
      Sven Neumann authored
      2001-06-22  Sven Neumann  <sven@gimp.org>
      
              * libgimpmath/gimpmath.h: do not include math.h conditionally.
      
              * plug-ins/Lighting/lighting_ui.c
              * plug-ins/MapObject/mapobject_ui.c: ported fix for bug #50715 from
              stable branch.
      085a16ba
  14. 20 Jun, 2001 1 commit
    • David Neary's avatar
      ted · efa76857
      David Neary authored
      2001-06-20  David Neary  <dneary@eircom.net>
      
      	* configure.in
      	* libgimp/gimpmath.h: Imported fix from bug #51822 into 1.3
      	branch. Fix is courtesy of <bugzilla-gnome@thewrittenword.com>.
      efa76857
  15. 23 Jan, 2001 1 commit
    • Michael Natterer's avatar
      Makefile.am configure.in added stuff for the new library below. · cb166972
      Michael Natterer authored
      2001-01-24  Michael Natterer  <mitch@gimp.org>
      
      	* Makefile.am
      	* configure.in
      	* gimptool.in: added stuff for the new library below.
      
      	* libgimpmath/.cvsignore
      	* libgimpmath/Makefile.am
      	* libgimpmath/gimpmath.def
      	* libgimpmath/gimpmath.h
      	* libgimpmath/gimpmathtypes.h
      	* libgimpmath/gimpmatrix.c
      	* libgimpmath/gimpmatrix.h
      	* libgimpmath/gimpvector.c
      	* libgimpmath/gimpvector.h
      	* libgimpmath/makefile.mingw.in
      	* libgimpmath/makefile.msc: new shared library. Depends on glib only.
      
      	* libgimp/Makefile.am
      	* libgimp/gimp.def
      	* libgimp/gimp.h: removed the math stuff.
      
      	* libgimp/gimpmath.h
      	* libgimp/gimpmatrix.[ch]
      	* libgimp/gimpvector.[ch]: removed.
      
      	* app/Makefile.am
      	* plug-ins/Lighting/Makefile.am
      	* plug-ins/MapObject/Makefile.am
      	* plug-ins/pagecurl/Makefile.am: link against libgimpmath.la
      
      	* app/[many files]
      	* libgimpcolor/gimpcolorspace.c
      	* libgimpcolor/gimprgb.c
      	* libgimp/gimpadaptivesupersample.c
      	* libgimp/gimpbilinear.c
      	* libgimp/gimpwidgets.c
      	* modules/colorsel_gtk.c
      	* modules/colorsel_triangle.c
      	* modules/colorsel_water.c
      	* plug-ins/libgck/gck/gckcolor.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/image.pdb: include "libgimpmath/gimpmath.h",
      	removed the remaining includes of the old color stuff.
      cb166972
  16. 30 May, 2000 1 commit
  17. 01 May, 2000 1 commit
    • Tor Lillqvist's avatar
      #elsifdef? · afcd39a4
      Tor Lillqvist authored
      2000-05-02  Tor Lillqvist  <tml@iki.fi>
      
      * libgimp/gimpmath.h: #elsifdef?
      afcd39a4
  18. 30 Apr, 2000 1 commit
  19. 11 Apr, 2000 1 commit
  20. 10 Apr, 2000 1 commit
    • Tor Lillqvist's avatar
      Correct the info about Win32 mailing lists. · 70b1e8da
      Tor Lillqvist authored
      2000-04-10  Tor Lillqvist  <tml@iki.fi>
      
      * README: Correct the info about Win32 mailing lists.
      
      * gimprc.win32: Add perfect-mouse setting.
      
      * libgimp/gimp.h
      * app/main.c: Guard against redefinition of _stdcall.
      
      * libgimp/gimpmath.h: Define macros ISNAN and ISINF. On Win32 use
      _isnan() and _fpclass() from <float.h>, on other platforms use
      isnan() and isinf(). We really should test for isnan and isinf in the
      configure script.
      
      * tools/pdbgen/pdb/gimage.pdb
      * app/gimage_cmds.c: Include gimpmath.h, use above macros instead
      of using the nonportable isnan and isinf.
      
      * app/gdisplay_ops.c: Do use the old gtk_widget_hide/show hack on
      Win32.
      
      * libgimp/makefile.cygwin
      * libgimp/makefile.msc
      * app/makefile.cygwin
      * app/makefile.msc
      * plug-ins/makefile.cygwin
      * plug-ins/makefile.msc: Updates.
      
      * plug-ins/gfig/gfig.c (plug_in_parse_gfig_path): Simplify warning
      message on Win32.  We could use G_DIR_SEPARATOR in the sample
      gimprc line, but then we would have to call g_strescape to quote
      it, argh. Win32 users use prebuilt versions with a correct gimprc
      file anyway.
      
      (create_file_selection): Use g_get_tmp_dir().
      
      (gfig_update_stat_labels): Guard against possibly NULL value from
      g_get_home_dir().
      70b1e8da
  21. 26 Feb, 2000 1 commit
  22. 14 Feb, 2000 1 commit
    • Michael Natterer's avatar
      plug-ins/libgck/gck/Makefile.am plug-ins/libgck/gck/gckcommon.h · 260d7b2d
      Michael Natterer authored
      2000-02-14  Michael Natterer  <mitch@gimp.org>
      
      	* plug-ins/libgck/gck/Makefile.am
      	* plug-ins/libgck/gck/gckcommon.h
      	* plug-ins/libgck/gck/gcklistbox.[ch]
      	* plug-ins/libgck/gck/gckmath.[ch]
      	* plug-ins/libgck/gck/gckvector.[ch]: removed.
      
      	* plug-ins/libgck/gck/gck.h
      	* plug-ins/libgck/gck/gcktypes.h: modified accordingly.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpvector.[ch]: new files. Modified the vector
      	functions from GCK. Changed the licence to LGPL, if there are any
      	objections, please let me know.
      
      	* libgimp/gimp.h: #include "gimpvector.h"
      
      	* libgimp/gimpmath.h: added deg <-> rad conversion macros.
      
      	* libgimp/gimpmatrix.[ch]: added a 4x4 vector to rotation angle
      	function from GCK,
      	s/GimpMatrix,gimp_matrix/GimpMatrix3,gimp_matrix3/
      
      	* plug-ins/Lighting/*
      	* plug-ins/MapObject/*:
      	s/GckVector,gck_vector/GimpVector,gimp_vector/
      
      	* app/pathsP.h
      	* app/paths_dialog.c
      	* app/perspective_tool.[ch]
      	* app/rotate_tool.[ch]
      	* app/scale_tool.[ch]
      	* app/shear_tool.[ch]
      	* app/tools_cmds.c
      	* app/transform_core.[ch]
      	* tools/pdbgen/pdb/tools.pdb:
      	s/GimpMatrix,gimp_matrix/GimpMatrix3,gimp_matrix3/
      260d7b2d
  23. 25 Jan, 2000 1 commit
    • Michael Natterer's avatar
      configure.in po-plug-ins/POTFILES.in plug-ins/common/Makefile.am · fa30ba04
      Michael Natterer authored
      2000-01-25  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in
      	* po-plug-ins/POTFILES.in
      	* plug-ins/common/Makefile.am
      	* plug-ins/common/plugin-defs.pl
      	* plug-ins/megawidget/*: removed. (There were only 3 functions
      	left which were used by ~5 plugins, so I moved the resp. functions
      	to the plugins). More preview stuff to come...
      
      	* app/airbrush_blob.c
      	* modules/colorsel_triangle.c
      	* modules/colorsel_water.c: use G_PI instead of M_PI.
      
      	* app/procedural_db.h
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: new PDB return value STATUS_CANCEL which
      	indicates that "Cancel" was pressed in a plugin dialog. (Useful
      	only for file load/save plugins).
      
      	* app/fileops.[ch]
      	* app/menus.c: changes to handle STATUS_CANCEL correctly. Did some
      	code cleanup in fileops.[ch]. Pop up a warning if File->Save
      	failed.
      
      	* app/plug_in.c: return_val[0] is of type PDB_STATUS, not
      	PDB_INT32.
      
      	* libgimp/gimpmath.h: new constant G_MAXRAND which equals to
      	RAND_MAX if it exists or to G_MAXINT otherwise.
      
      	* libgimp/gimpwidgets.[ch]: new function gimp_random_seed_new()
      	which creates a spinbutton and a "Time" toggle.
      	Call the function which does the "set_sensitive" magic from the
      	radio button callback.
      
      	* plug-ins/[75 plugins]:
      
      	- Return STATUS_CANCEL in all file load/save dialogs if "Cancel"
      	  was pressed.
      	- Standardized the file plugins' "run" functions.
      	- Use G_PI and G_MAXRAND everywhere.
      	- Added tons of scales and spinbuttons instead of text entries.
      	- Applied uniform packing/spacings all over the place.
      	- Reorganized some UIs (stuff like moving the preview to the top
      	  left corner of the dialog).
      	- Removed many ui helper functions and callbacks and use the stuff
      	  from libgimp instead.
      	- I tried not to restrict the range of possible values when I
      	  replaced entries with spinbuttons/scales but may have failed,
      	  though in some cases. Please test ;-)
      	- #include <libgimp/gimpmath.h> where appropriate and use it's
      	  constants.
      	- Indentation, s/int/gint/ et.al., code cleanup.
      
      	RFC: The plugins are definitely not useable with GIMP 1.0 any
      	     more, so shouldn't we remove all the remaining compatibility
      	     stuff ??? (like "#ifdef GIMP_HAVE_PARASITES")
      fa30ba04
  24. 26 Dec, 1999 1 commit
    • Manish Singh's avatar
      added spec file to EXTRA_DIST · b8e03bd1
      Manish Singh authored
      * Makefile.am: added spec file to EXTRA_DIST
      
      * docs/Makefile.am: added undo.txt to EXTRA_DIST
      
      * app/interface.c: removed the DODGY warning, doesn't look dodgy to me
      
      * libgimp/*.h: missed an s/Library/Lesser/
      
      * tools/pdbgen/*: lots of work on the libgimp portion
      
      -Yosh
      b8e03bd1
  25. 17 Nov, 1999 1 commit
  26. 01 Sep, 1999 1 commit