1. 29 Sep, 2000 1 commit
    • Michael Natterer's avatar
      app/brush_edit.[ch] app/brush_header.h app/gimpbrush.[ch] · f38cdf12
      Michael Natterer authored
      2000-09-29  Michael Natterer  <mitch@gimp.org>
      	* app/brush_edit.[ch]
      	* app/brush_header.h
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.[ch]
      	* app/gimpbrushlist.[ch]
      	* app/gimpbrushpipe.[ch]
      	* app/gimpcontext.h
      	* app/gimplist.[ch]
      	* app/gimpobject.[ch]
      	* app/gimpset.[ch]
      	* app/gimpsignal.[ch]
      	* app/parasitelist.h: Lotsa fixes in the brush referencing code
      	and cleanups in many GtkObjects:
      	- Reference brushes correctly (call gtk_object_sink() after adding
      	  them to the brush list). Don't crash when renaming a brush
      	  multiple times.
      	- Replaced all gtk_object_destroy() with gtk_object_unref|sink().
      	- Removed the "Fake Gimp object system" (gimp_object_destroy() et.al.)
      	  all over the place (while it's a good idea to have a common Gimp
      	  base object, it's totally useless to try to imitate Gtk's object
      	- s/sz_BrushHeader/sizeof(BrushHeader)/g
      	- And of course various indentation and coding style paranoia changes
      	  in all files I visited.
  2. 27 May, 2000 1 commit
    • Michael Natterer's avatar
      Libgimp cleanup part II (with a little help from Yosh who moved the CVS · 6fa33d68
      Michael Natterer authored
      2000-05-27  Michael Natterer  <mitch@gimp.org>
      	Libgimp cleanup part II (with a little help from Yosh
      	who moved the CVS files).
      	* libgimp/Makefile.am
      	* libgimp/gimpchannel_pdb.c
      	* libgimp/gimpdisplay_pdb.c
      	* libgimp/gimpdrawable_pdb.c
      	* libgimp/gimpgradient_pdb.c
      	* libgimp/gimphelp_pdb.c
      	* libgimp/gimpimage_pdb.c
      	* libgimp/gimplayer_pdb.c
      	* libgimp/gimppalette_pdb.c
      	* libgimp/gimpparasite_pdb.c
      	* libgimp/gimpselection_pdb.c
      	* libgimp/gimpunit_pdb.c: new names of all files which contain
      	PDB wrappers.
      	* modules/Makefile.am
      	* libgimp/gimpcolordisplay.h
      	* libgimp/gimpcolorselector.h
      	* modules/gimpmodregister.[ch]: renamed.
      	* libgimp/gimpparasiteF.h
      	* libgimp/gimpparasiteP.h: removed because gimp.h had to include
      	the private header anyway.
      	* app/color_notebook.c
      	* app/color_select.c
      	* app/gdisplay_color.[ch]
      	* app/gdisplay_color_ui.c
      	* app/gimpbrushpipe.c
      	* app/gimpdrawable.[ch]
      	* app/gimpimage.c
      	* app/gimpimage.h
      	* app/gimpparasite.[ch]
      	* app/gimprc.c
      	* app/image_new.c
      	* app/layer.c
      	* app/parasite_cmds.c
      	* app/parasitelist.[ch]
      	* app/plug_in.c
      	* app/procedural_db.c
      	* app/undo.c
      	* app/xcf.c
      	* libgimp/gimp.[ch]
      	* libgimp/gimpcolordisplay.h
      	* libgimp/gimpparasite.[ch]
      	* modules/cdisplay_gamma.c
      	* modules/cdisplay_highcontrast.c
      	* modules/colorsel_gtk.c
      	* modules/colorsel_triangle.c
      	* modules/colorsel_water.c
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/FractalExplorer/Events.c
      	* plug-ins/Lighting/lighting_apply.c
      	* plug-ins/Lighting/lighting_shade.c
      	* plug-ins/MapObject/mapobject_image.c
      	* plug-ins/common/gpb.c
      	* plug-ins/common/psp.c
      	* plug-ins/sel2path/sel2path.c
      	* po-libgimp/POTFILES.in
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/parasite.pdb: changed includes accordingly.
  3. 26 May, 2000 1 commit
    • Michael Natterer's avatar
      Final (1.2) libgimp namespace cleanup part I: · 863f7e1c
      Michael Natterer authored
      2000-05-26  Michael Natterer  <mitch@gimp.org>
      	Final (1.2) libgimp namespace cleanup part I:
      	* app/gimpbrushpipe.c
      	* app/gimpdrawable.[ch]
      	* app/gimpimage.[ch]
      	* app/gimpparasite.[ch]
      	* app/gimprc.c
      	* app/image_new.c
      	* app/parasite_cmds.c
      	* app/parasitelist.[ch]
      	* app/parasitelistP.h
      	* app/plug_in.c
      	* app/undo.c
      	* app/xcf.c
      	* libgimp/color_display.h
      	* libgimp/gimp.[ch]
      	* libgimp/gimpdrawable.c
      	* libgimp/gimpimage.c
      	* libgimp/gimpparasite.c
      	* libgimp/gimpprotocol.c
      	* libgimp/parasite.[ch]
      	* libgimp/parasiteF.h
      	* libgimp/parasiteP.h
      	* libgimp/parasiteio.[ch]
      	* modules/cdisplay_gamma.c
      	* modules/cdisplay_highcontrast.c
      	* plug-ins/common/csource.c
      	* plug-ins/common/gif.c
      	* plug-ins/common/gpb.c
      	* plug-ins/common/jpeg.c
      	* plug-ins/common/psp.c
      	* plug-ins/common/tiff.c
      	* plug-ins/common/xbm.c
      	* plug-ins/gap/gap_exchange_image.c
      	* plug-ins/gdyntext/gdyntext.c
      	* plug-ins/ifscompose/ifscompose.c
      	* plug-ins/xjt/xjt.c: s/Parasite/GimpParasite/g,
      	* libgimp/gimpcompat.h: added the old names.
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/parasite.pdb: dito and an ugly perl hack to work
      	around a substitution clash. Perl gurus, feel free to fix it.
  4. 24 Feb, 2000 2 commits
    • Michael Natterer's avatar
      app/gimpbrush.[ch] app/gimpbrushgenerated.[ch] app/gimpbrushlist.[ch] · 8f4adbad
      Michael Natterer authored
      2000-02-24  Michael Natterer  <mitch@gimp.org>
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.[ch]
      	* app/gimpbrushlist.[ch]
      	* app/gimpbrushlistP.h
      	* app/gimpbrushpipe.[ch]
      	* app/gimpbrushpipeP.h: did a brushes code-review: indentation,
      	removed some includes, didn't find a bug :-)
      	* app/gradient.c
      	* app/palette.c: we were leaking all gradient and palette preview
      	pixmaps as well as all lists of palette colors on each refresh.
      	* libgimp/gimpenv.c: updated documentation.
    • Michael Natterer's avatar
      fixed a memleak. · 868888fe
      Michael Natterer authored
      2000-02-24  Michael Natterer  <mitch@gimp.org>
      	* app/datafiles.c: fixed a memleak.
      	* app/gimpbrushlist.c
      	* app/gradient.c
      	* app/palette.c: use the gimp_path_* functions, cleanups.
      	* app/gimpbrushpipe.c: call the "destroy" function of the parent
      	class, not of the object class. Fixes a huge memleak on each
      	* app/gimpbrushpipeP.h
      	* app/gimplist.c
      	* app/gimpbrush.c: did some cleanups while searching the brush
      	* libgimp/gimpenv.c: gimp_path_get_user_writable_dir(): return a
      	copy of the string.
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gflare/gflare.c: g_free() the string returned by
  5. 01 Feb, 2000 2 commits
  6. 25 Jan, 2000 1 commit
    • Michael Natterer's avatar
      removed BOUNDS, MINIMUM and MAXIMUM. No need to include both <glib.h> and · 49230471
      Michael Natterer authored
      2000-01-25  Michael Natterer  <mitch@gimp.org>
      	* app/appenv.h: removed BOUNDS, MINIMUM and MAXIMUM. No need to
      	include both <glib.h> and <gtk/gtk.h>.
      	* app/*
      	* tools/pdbgen/pdb/text_tool.pdb: s/BOUNDS/CLAMP/,
      	same for MIN and MAX.
      	* app/preferences_dialog.c: the "Check Size" widget was connected
      	to the transparency_type variable.
      	* plug-ins/common/sobel.c: removed definitions of MIN and ROUND.
      	* libgimp/gimp.h: #include "gimplimits.h" and "gimpcolorspace.h".
      	* plug-ins/*: don't include the two files.
  7. 24 Jan, 2000 1 commit
    • Manish Singh's avatar
      acconfig.h configure.in libgimp/Makefile.am libgimp/gimpregex.h · 81c1e886
      Manish Singh authored
      * acconfig.h
      * configure.in
      * libgimp/Makefile.am
      * libgimp/gimpregex.h
      * libgimp/regex.c
      * app/Makefile.am
      * app/regex.[ch]
      * plug-ins/script-fu/Makefile.am
      * plug-ins/script-fu/regex.[ch]
      * plug-ins/script-fu/interp_regex.c
      * tools/pdbgen/pdb/plug_in.pdb
      * tools/pdbgen/pdb/procedural_db.pdb: reverted previous regex move
      patch. This does *not* belong in libgimp and is just bloat. We'll
      use the regex functionality in glib once it has it.
      * acinclude.m4
      * config.guess
      * config.sub
      * ltconfig
      * ltmain.sh: upgrade to libtool 1.3.4
      * app/convert.c
      * app/gimpbrushpipe.c: minor cleanups
  8. 06 Dec, 1999 1 commit
  9. 14 Nov, 1999 1 commit
    • Michael Natterer's avatar
      app/airbrush.c app/apptypes.h app/brushes_cmds.c · 0c922cd3
      Michael Natterer authored
      1999-11-14  Michael Natterer  <mitch@gimp.org>
      	* app/airbrush.c
      	* app/apptypes.h
      	* app/brushes_cmds.c
      	* tools/pdbgen/pdb/brushes.pdb
      	* app/bucket_fill.c
      	* app/clone.c
      	* app/gimpbrushpipe.c
      	* app/paint_core.c
      	* app/patterns.h
      	* app/patterns_cmds.c
      	* tools/pdbgen/pdb/patterns.pdb: removed the GimpBrushP and
      	GPatternP types and use ordinary pointers instead.
      	The following stuff makes the "no_data" behaviour consistent. As a
      	side-effect it should make the gimp work when there are _really_ no
      	* app/brush_select.c
      	* app/pattern_select.c: set the initial brush/pattern name to "No
      	Brushes/Patterns available" instead of "Active".
      	* app/devices.c: set the device contexts' brush/pattern/gradient
      	names if we started with no_data, so we find them on refresh.
      	* app/gimpbrushlist.c: set the name of the standard_brush to
      	* app/gimpcontext.c: don't replace the current
      	brush/pattern/gradient's name if the new one to be set is the
      	standard one. Together with the change in devices.c, this ensures
      	that we get what is set in devicerc. Minor fixes.
      	* app/gradient.c: changed gradients_init() to work like the other
      	data init functions. Only insert a default gradient in the
      	gradients list when the editor is opened (this means that the
      	gradients now behave like brushes/patterns when we start with
      	New function gradient_update() avoids tons of useless redraws of
      	all clist gradient previews whenever the gradient editor wants to
      	update it's large preview.
      	* app/gradient_select.c: don't segfault when the user tries to
      	drag from an empty gradient list.
      	* app/patterns.c: set the index of the standard_pattern to -1 to
      	indicate that it's not part of the pattern list.
  10. 04 Nov, 1999 2 commits
    • Sven Neumann's avatar
      get rid of compiler warnings · 84984285
      Sven Neumann authored
              * app/channel.c: get rid of compiler warnings
              * app/histogram_tool.c
              * app/histogram_tool.h: added a gradient below the histogram so
              it looks more like the curves and levels tool
              * app/gimpbrushpipe.c
              * libgimp/parasiteio.c
              * libgimp/parasiteio.h: plugged another mem-leaks. At least
              The GIMP now starts without leaking memory...
    • Sven Neumann's avatar
      Oh, how I love memprof !! · aa2358fb
      Sven Neumann authored
  11. 26 Oct, 1999 1 commit
  12. 29 Sep, 1999 1 commit
  13. 09 Sep, 1999 1 commit
  14. 02 Sep, 1999 1 commit
    • Tor Lillqvist's avatar
      New files. Types and functions related to "standard" parasite types. Used · 5475ff08
      Tor Lillqvist authored
      1999-09-02  Tor Lillqvist  <tml@iki.fi>
      * libgimp/parasiteio.[ch]: New files. Types and functions related
      to "standard" parasite types. Used for the
      gimp-brush-pipe-parameters parasite that the gpb and psp plug-ins
      handle, and the value of which is stored in gih files, from
      which gimpbrushpipe.c parses it.
      * libgimp/{Makefile.am,makefile.{cygwin,msc}}: Add new files.
      * libgimp/gimp.def: Add its entry points.
      * libgimp/gimp.h: Fix cosmetic argument name error.
      * app/gimpbrushpipe.c: Remove code that previously
      was copied here, use functions from parasiteio.c.
      * plug-ins/common/gpb.c: Ditto. Add brush cell width and height
      fields to the gih save dialog. Add cleverness to update rows and
      columns as cell size is changes. (Still too easy for the user to
      get confused, though.) Display corresponding guide grid on the
      image. Unfortunately updating the guidelines doesn't seem to work.
      * plug-ins/common/psp.c: Use functions from parasiteio.c.
  15. 01 Sep, 1999 2 commits
    • Tor Lillqvist's avatar
      app/appenv.h New file. Includes <math.h>. Move G_PI, RINT(), ROUND() etc · 6ef23d98
      Tor Lillqvist authored
      1999-09-01  Tor Lillqvist  <tml@iki.fi>
      * app/appenv.h
      * libgimp/gimpmath.h: New file. Includes <math.h>. Move G_PI,
      RINT(), ROUND() etc from app/appenv.h here, so plug-ins can
      use them, too. Remove some commented-out old stuff in appenv.h.
      * libgimp/gimp.h: Include gimpmath.h.
      * libgimp/gimp.c (gimp_main): Win32: Don't install signal
      handlers, we can't do anything useful in the handler ourselves
      anyway (it would be nice to print out a backtrace, but that seems
      pretty hard to do, even if not impossible). Let Windows inform the
      user about the crash. If the plug-in was compiled with MSVC, and
      the user also has it, she is offered a chance to start the
      debugger automatically anyway.
      * app/*several*.c: Include gimpmath.h for G_PI etc. Don't include
      <math.h>, as gimpmath.h includes it.
      * plug-ins/*/*many*.c: Include config.h. Don't include <math.h>.
      Remove all the duplicated definitions of G_PI and rint(). Use
      RINT() instead of rint().
      * app/app_procs.[ch]: app_exit() takes a gboolean.
      * app/batch.c
      * app/commands.c
      * app/interface.c: Call app_exit() with FALSE or TRUE.
      * app/main.c (on_error): Call gimp_fatal_error. (main): Don't
      install any signal handler on Win32 here, either.
      * app/errors.c (gimp_fatal_error, gimp_terminate): Win32: Format
      the message and call MessageBox with it.  g_on_error_query doesn't
      do anything useful on Win32, and printf'ing a message to stdout or
      stderr doesn't do anything, either, in a windowing application.
    • EDT 1999 Adrian Likins's avatar
      app/gimpbrushpip.[ch] app/airbrush.c app/pencil.c fix pencil tool for use · 5e64804c
      EDT 1999 Adrian Likins authored
      Wed Sep  1 00:56:37 EDT 1999 Adrian Likins <adrian@gimp.org>
              * app/gimpbrushpip.[ch]
              * app/airbrush.c
              * app/pencil.c
              * app/paintbrush.c: fix pencil tool for use with
                 pixmaps again
  16. 30 Aug, 1999 1 commit
    • Tor Lillqvist's avatar
      Add a new method, gboolean want_null_motion(), that tells if the brush · 26b70edd
      Tor Lillqvist authored
      1999-08-30  Tor Lillqvist  <tml@iki.fi>
      * app/gimpbrush.h (GimpBrushClass): Add a new method, gboolean
      want_null_motion(), that tells if the brush wants to be painted
      when we don't know the direction yet. This is needed (so far) by
      brush pipes that select the brush based on direction.
      * app/gimpbrush.c: Implement above method returning always TRUE.
      * app/gimpbrushpipe.c: Here, implement it returning FALSE or TRUE
      on whether the brush pipe has any angular (direction) dependent
      dimension or not.
      * app/paint_core.c (paint_core_button_press): Call the method
      if current point == last point.
  17. 28 Aug, 1999 2 commits
    • Tor Lillqvist's avatar
      In the case of angular selection, offset angle with G_PI/2 to be · 34f76ba3
      Tor Lillqvist authored
      1999-08-28  Tor Lillqvist  <tml@iki.fi>
      * app/gimpbrushpipe.c (gimp_brush_pixmap_select_brush): In the
      case of angular selection, offset angle with G_PI/2 to be
      compatible with PSP tubes. Restrict the index of each dimension
      separately to the appropriate range.
      * plug-ins/common/gpb.c (gih_save_dialog): Must not free the combo
      box string list, the strings are not strdup'ed by the combo box.
    • Tor Lillqvist's avatar
      Implement the selection of brush based on cursor direction, pressure, · 70fca093
      Tor Lillqvist authored
      1999-08-28  Tor Lillqvist  <tml@iki.fi>
      * app/gimpbrushpipe.c: Implement the selection of brush based on
      cursor direction, pressure, tilt, or a random value. (Hmm, forgot
      velocity, later.) (In addition to just incrementally stepping.)
      Read the brush pipe parameters from the gih file's second line.
      There is no way to tune the parameters in the GIMP, they must
      currently be set when saving the gih file (in the gpb plug-in).
      * app/gimpbrushpipe.h
      * app/gimpbrushpipeP.h: Move the PipeSelectModes enum to the
      "private" header. Add a stride array to GimpBrushPipe to make
      indexing easier.
      * plug-ins/common/gpb.c: Add selection mode fields to the dialog.
      Attach the pipe parameters entered as a parasite, too.
      * docs/parasites.txt
      * plug-ins/common/psp.c: Use "placement", not "spacing" (which
      means another thing).
  18. 27 Aug, 1999 2 commits
    • Manish Singh's avatar
      user_install added gimpressionist, levels, and curves dirs · 4a9ae946
      Manish Singh authored
      * user_install
      * user_install.bat: added gimpressionist, levels, and curves dirs
      * app/color_panel.c
      * app/color_select.c
      * app/colormaps.[ch]
      * app/palette.c
      * app/selection.c: remove vestigal colormap code; use get_color
      directly now
      * libgimp/color_display.h
      * app/gdisplay_color.c: bugfixes, added state load/save hooks,
      redid the interface to work on blocks, removed dummy default
      handler, work on gamma correction stuff
      * app/gimpbrushpipe.c: #include <stdlib.h>
      * app/gximage.c: minor cleanups
      * app/levels.c: default to ~/.gimp-1.1/levels for load/save; minor
      gui prettification
      * app/main.c
      * app/menus.c: plug-in menu translation patch from SHIRASAKI Yasuhiro
      * libgimp/stdplugins-intl.h: add INIT_I18N_UI() for calling
      * plug-ins/Lighting/lightin_main.c: use INIT_I18N_UI()
    • EDT 1999 Adrian Likins's avatar
      paint_line_pixmap_mask, finally composite alpha correctly, or at least · 1d7e543d
      EDT 1999 Adrian Likins authored
      Fri Aug 27 02:16:02 EDT 1999 Adrian Likins <alikins@redhat.com>
              * app/gimpbrushpipe.c: paint_line_pixmap_mask, finally
              composite alpha correctly, or at least closer. Should
              get rid of those annoying artifacts.
  19. 26 Aug, 1999 1 commit
    • Tor Lillqvist's avatar
      Overhaul of pixmap brushes and pipes: No separate pixmap pipe · 868bdfff
      Tor Lillqvist authored
      brush tool any longer. The paintbrush, airbrush and pencil
      tools, which already knew how to handle the single-pixmap
      brushes now also handle the pipes as well.
      * app/pixmapbrush.{h,c}
      * app/gimpbrushpixmap.{h,c}: Removed these files.
      * app/Makefile.am
      * app/makefile.{cygwin,msc}: Remove from here, too.
      * app/gimpbrushpipe.{h,c}: Total overhaul.
      * app/paint_core.h
      * app/apptypes.h: Some more types moved to apptypes.h
      * app/context_manager.c
      * app/tool_options.c
      * app/tools.c
      * app/toolsF.h: Remove PIXMAPBRUSH tool.
      * app/gimpbrush.h: New method: select_brush. Used to change the
      brush in paint_core, for pipe brushes.
      * app/gimpbrush.c: Add gimp_brush_select_brush, which is dummy for
      the normal brushes (returns the same brush).
      * app/paint_core.c: Call the brush's select_brush method to get a
      potential new brush before calling the paint_func.
      * app/gimpbrushlist.c: Various changes related to the pixmap and
      pipe overhaul.
      * app/airbrush.c
      * app/pencil.c: Reorder code a bit in the tool motion function to
      avoid executing unnecessary code in the case of a pixmap brush.
      Other changes in the same commit:
      * app/install.c: Make quote_spaces extern.
      * app/appenv.h: Declare it.
      * libgimp/gimpui.def: Add missing entry points.
      * libgimp/makefile.{cygwin,msc}: Add missing objects to gimpui.
  20. 23 Aug, 1999 1 commit
    • EDT 1999 Adrian Likins's avatar
      app/gimpbrushhose.c removed. app/gimpbrushpipe.c New files to replace the · 5c61305f
      EDT 1999 Adrian Likins authored
      Mon Aug 23 00:56:59 EDT 1999 Adrian Likins <alikins@redhat.com>
              * app/gimpbrushhose.c
              * app/gimpbrushhose.h:
              * app/gimpbrushpipe.c
              * app/gimpbrushpipe.h:
                      New files to replace the above
              * app/gimpbrushlist.c
              * app/paintbrush.c
              * app/pixmapbrush.c
              * app/Makefile.am:
                      s/hose/pipe. Seems someone else uses that name,
              so change it to pipe.
              * app/gimpbrush.c
              * app/gimpbrush.h
              * app/gimpbrushpixmap.c
              * app/patterns.c
              * app/patterns.h
              * app/pixmapbrush.c:
                      Added functions to do the actual loading of
              brush/pattern data. Use them where approriate instead
              of cut&pasting the same code all over the place.
              * app/pixmapbrush.c: Fix the bug where masks and brush
              data werent aligned. I didnt quite notice that
              paint_core_get_paint_area returns an area with a 1 pixel
              border larger than the brush. Ooops.
              * TODO: just update a few things while I'm at it
              (pixmap/pipe stuff in particular)