1. 09 Jan, 2001 1 commit
    • Sven Neumann's avatar
      app/apptypes.h app/brush_select_cmds.c app/brushes_cmds.c app/layer_cmds.c · 99e80ca5
      Sven Neumann authored
      2001-01-09  Sven Neumann  <sven@gimp.org>
      
      	* app/apptypes.h
      	* app/brush_select_cmds.c
      	* app/brushes_cmds.c
      	* app/layer_cmds.c
      	* app/layers_dialog.c
      	* app/paint_funcs.c
      	* app/tool_options.c
      	* app/tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: applied patch from <oliver@zeroknowledge.com>
      	that adds new blending modes (Dodge/Burn/Hardlight). Please play with
      	these new modes and check if they are useful and well-implemented.
      99e80ca5
  2. 29 Dec, 2000 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/channel_pvt.h app/drawable_pvt.h app/gdisplayF.h · 8d6c335f
      Michael Natterer authored
      2000-12-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/channel_pvt.h
      	* app/drawable_pvt.h
      	* app/gdisplayF.h
      	* app/gimpdrawableP.h
      	* app/gimpimageP.h
      	* app/layer_pvt.h
      	* app/toolsF.h: removed these files.
      
      	* app/apptypes.h
      	* tools/pdbgen/enums.pl: added tons of opaque typedefs and enums.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/tools.pdb
      	* app/*: chainsaw #include cleanup:
      
      	- Never (never!!) include stuff in header files except where we
      	  need access to structures' contents (like derived objects).
      	- Added prototypes and proper formating in many files.
      	- The #include order in *all* *.c files is as follows:
      
      	#include "config.h"
      
      	#include <system stuff>
      
      	#include <gtk/gtk.h>
      
      	#include "apptypes.h"
      
      	#include "gimp stuff"
      
      	#include "libgimp stuff"
      
      	#include "libgimp/gimpintl.h"
      
      	By following this scheme we can easily see a file's dependencies
      	from it's #include's and can grep for the inclusion to find out
      	where a file is used.
      
      	* tools/pdbgen/app.pl: changed to follow the include scheme above.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpuitypes.h: new file, included from libgimp/gimpui.h
      	and from app/apptypes.h.
      
      	* libgimp/gimpcolorbutton.[ch]
      	* libgimp/gimpdialog.[ch]
      	* libgimp/gimphelpui.[ch]
      	* libgimp/gimpparasite.[ch]
      	* libgimp/gimppatheditor.[ch]
      	* libgimp/gimpprotocol.c
      	* libgimp/gimpquerybox.[ch]
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimptypes.h
      	* libgimp/gimpui.h
      	* libgimp/gimpunit.h
      	* libgimp/gimpunitmenu.[ch]
      	* libgimp/gimpwidgets.[ch]: changed accordingly.
      
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/gdyntext/message_window.c
      	* plug-ins/imagemap/imap_default_dialog.c
      	* plug-ins/imagemap/imap_file.c: these files used to include
      	"libgimp/gimpui.h" without including "libgimp/gimp.h". This is
      	no longer possible because the libgimpui headers don't inlcude
      	"libgimp/gimpunit.h" any more.
      8d6c335f
  3. 18 Dec, 2000 1 commit
    • Sven Neumann's avatar
      Jens Lautenbacher <jtl@gimp.org> · 3cff8419
      Sven Neumann authored
      2000-12-18  Sven Neumann  <sven@gimp.org>
      	    Jens Lautenbacher <jtl@gimp.org>
      
      	* app/Makefile.am
      
      	* app/gimpbrushlistP.h
      	* app/gimpbrushpipeP.h
      	* app/gimpobjectP.h: removed these three files
      
      	* app/parasitelistP.h
      	* app/channels_dialog.c
      	* app/docindex.c
      	* app/gimpdrawable.c
      	* app/gimpdrawableP.h
      	* app/gimpimage.c
      	* app/gimpimageP.h
      	* app/gimplist.[ch]
      	* app/gimpobject.c
      	* app/gimpobject.h
      	* app/gimpsetP.h: changed according to header removal
      
      	* app/airbrush.c
      	* app/brush_select.[ch]
      	* app/brushes_cmds.c
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.[ch]
      	* app/gimpbrushlist.[ch]
      	* app/gimpbrushpipe.[ch]
      	* app/gimpcontextpreview.c
      	* app/paint_core.c
      	* app/paintbrush.c
      	* app/pencil.c
      	* tools/pdbgen/pdb/brushes.pdb: Big Brushes Cleanup.
      
      	The GimpBrush* object hierarchy and the file formats were broken by
      	"design". This made it overly difficult to read and write pixmap
      	brushes and brush pipes, leading to the situation that The GIMP was
      	not able to read it's very own file formats. Since the GimpBrush
      	format did support arbitrary color depths, the introduction of a
      	file format for pixmap brushes was unnecessary.
      
      	The GimpBrushPixmap object is dead. GimpBrush has an additional
      	pixmap temp_buf and handles pixmap brushes transparently. The file
      	format of pixmap brushes is not any longer a grayscale brush plus
      	a pattern, but a simple brush with RGBA data. The old brushes can
      	still be loaded, but the .gpb format is deprecated.
      
      	GimpBrushPipe derives from GimpBrush. The fileformat is still a text
      	header, followed by a number of brushes, but those brushes are stored
      	in the new GimpBrush format (no pattern anymore). The pipe does not
      	care about the depth of the contained GimpBrushes, so we get
      	grayscale BrushPipes for free. Since the brush loader still loads the
      	old format, old .gih files can also still be loaded.
      
      	Since the brushes in the GimpBrushPipe do not any longer contain a
      	pointer to the pipe object, we do only temporarily switch brushes
      	in the paint_core routines. This is not very elegant, but the best
      	we can do without a major redesign.
      
      	* app/patterns.[ch]: changed the loader to work with a filedescriptor
      	instead of a filehandle to make it work with the new brush loading
      	code.
      
      	* plug-ins/common/.cvsignore
      	* plug-ins/common/Makefile.am
      	* plug-ins/common/plugin-defs.pl
      	* plug-ins/common/gih.c: new plug-in that saves GIH files in the
      	new format (loader will follow soon)
      
      	* plug-ins/common/gpb.c: removed since Pixmap Brushes are no longer
      	supported as a special file format.
      
      	* plug-ins/common/gbr.c: load and save brushes in the new brush format
      	which allows RGBA brushes too.
      
      	* plug-ins/common/pat.c: load and save grayscale patterns too
      3cff8419
  4. 17 Feb, 2000 1 commit
    • Manish Singh's avatar
      added 2000 to the copyrights · 45842e26
      Manish Singh authored
      * tools/pdbgen/*.pl: added 2000 to the copyrights
      
      * tools/pdbgen/lib.pl: it's foo_pdb.[ch] now
      
      * tools/pdbgen/pdb/drawable.pdb
      * tools/pdbgen/pdb/parasite.pdb: reenabled sanity checks for the
      drawable IDs and the parasite names
      
      * app/drawable.c
      * app/gimpdrawable.c: added a bunch of g_return_if_fail's, instead
      of the silent check and return in many functions. This should also
      be done in gimpimage.c and the like too.
      
      * app/gimpdrawable.h
      * app/layer.c: cosmetic code fix
      
      -Yosh
      45842e26
  5. 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
      	brushes/patterns/gradients.
      
      	* 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
      	"Standard".
      
      	* 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
      	"no_data").
      	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.
      0c922cd3
  6. 09 Nov, 1999 1 commit
  7. 26 Oct, 1999 1 commit
  8. 19 Aug, 1999 1 commit
  9. 28 Jul, 1999 1 commit
    • Manish Singh's avatar
      add sample_colorize and curve_bend defs · 7cb07a90
      Manish Singh authored
      * plug-ins/common/plugin-defs.pl: add sample_colorize and
      curve_bend defs
      
      * libgimp/color_selector.h: minor consistency cleanup
      
      * libgimp/gimpchainbutton.[ch]: use new style gtk object helper macros
      
      * libgimp/gimpfileselection.c
      * libgimp/gimpmatrix.h: minor cleanup
      
      * libgimp/gimpintl.h: resync with gnome-i18n.h
      
      
      * libgimp/color_display.h
      * app/gimp.sym
      * app/gdisplay_color.[ch]
      * app/app_procs.c
      * app/gdisplay.h
      * app/image_render.c: color display transformation code. Still
      unfinished, so it's not activated yet.
      
      * app/buildmenu.h: remove unused defines (PULLDOWN, POPUP, OPTION)
      
      * app/colormaps.[ch]
      * app/image_render.c: remove vestigal dithering stuff
      
      * app/convolve.h
      * app/gimpdrawable.h
      * app/gimpimage.h
      * app/lut_funcs.h
      * app/paint_funcs.h
      * app/plug_in.h: enum nick changes from Marc
      
      * app/channel_ops.c
      * app/crop.c
      * app/gdisplay.c
      * app/gimpimage.[ch]
      * app/move.c: s/([A-Z]+)_GUIDE/ORIENTATION_$1/
      
      * app/flip_tool.[ch]
      * app/shear_tool.[ch]: use ORIENTATION_* constants instead of our own
      
      * app/disp_callbacks.c: remove HORIZONTAL and VERTICAL #defines
      
      * app/general.h: enumified TOKEN_* symbols
      
      * app/lc_dialog.c
      * app/paint_funcs.c: remove unused variables
      
      * tools/pdbgen/lib.pl: autogen gimpenums.h (unfinished)
      
      * tools/pdbgen/stddefs.pdb: new std_orientation_enum, remove
      layer_mode shortcut since we've skipped it in app/
      
      * tools/pdbgen/pdb/brush_select.pdb
      * tools/pdbgen/pdb/brushes.pdb
      * tools/pdbgen/pdb/drawable.pdb
      * tools/pdbgen/pdb/gimage.pdb
      * tools/pdbgen/pdb/guides.pdb
      * tools/pdbgen/pdb/layer.pdb
      * tools/pdbgen/pdb/tools.pdb: reflect above enum changes, whitespace
      cleanups
      
      * tools/pdbgen/enums.pl
      * app/brush_select_cmds.c
      * app/brushes_cmds.c
      * app/color_cmds.c
      * app/drawable_cmds.c
      * app/gimage_cmds.c
      * app/layer_cmds.c
      * app/procedural_db_cmds.c
      * app/tools_cmds.c: reflect pdb and enum nick changes above
      
      -Yosh
      7cb07a90
  10. 06 Jul, 1999 1 commit
    • Michael Natterer's avatar
      app/airbrush.c app/blend.c app/bucket_fill.c app/clone.c app/convolve.c · 1058f41d
      Michael Natterer authored
      1999-07-06  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
              * app/airbrush.c
              * app/blend.c
              * app/bucket_fill.c
              * app/clone.c
              * app/convolve.c
              * app/dodgeburn.c
              * app/eraser.c
              * app/ink.c
              * app/paintbrush.c
              * app/pencil.c
              * app/smudge.c: get opacity/paint mode from the current context
              (currently always the user context).
      
              * app/gimage_mask.c: the "stroke" command uses the paintbrush's
              settings if the current context is the user context and we are in
              per-tool paint options mode.
      
              * app/context_manager.[ch]
              * app/paint_options.h
              * app/preferences_dialog.c
              * app/tool_options.c
              * app/tools.c: moved the global/per-tool paint options switching
              to the context manager. The tool options themselves only contain
              the widgets for them now. This should fix the segfaults happening
              in per-tool mode.
      	Removed the disclaimer from the prefs. dlg. as it seems to work
      	now. The impl. in the context manager however is still a hack.
      
              * app/brush_select.c
              * app/brushes_cmds.c
              * tools/pdbgen/pdb/brushes.pdb: same as above.
      
              * app/lc_dialog.c: minimal code reduction. No functionality changed.
      1058f41d
  11. 30 Apr, 1999 1 commit
    • Manish Singh's avatar
      listed tools first in SUBDIRS, so xgettext can grab the autogenned files · 8b11c6c1
      Manish Singh authored
      * Makefile.am: listed tools first in SUBDIRS, so xgettext can grab
      the autogenned files
      
      * acconfig.h: removed unused HAVE_XSHM_H
      
      * tools/pdbgen/app.pl: added proc invoke method, nicer header
      formatting
      
      * tools/pdbgen/pdb/layer.pdb: use layer_mask type for return value
      for layer_create_mask
      
      * tools/pdbgen/pdb/misc.pdb: added quit proc
      
      * tools/pdbgen/pdb/tools.pdb: added ink proc, but not added to @procs
      since it's incomplete
      
      * tools/pdbgen/pdb/fileops.pdb: new file
      
      * app/Makefile.am: added fileops_cmds.c
      
      * app/app_procs.c
      * app/fileops.c
      * app/ink.c: removed PDB procs (the one in ink.c was incomplete)
      
      * app/fileops.h: exported load_procs, save_procs, and file_proc_find()
      
      * app/plug_in.h: exported enum, #include <sys/types.h>
      
      * app/brushes_cmds.c
      * app/fileops_cmds.c
      * app/layer_cmds.c
      * app/misc_cmds.c
      * app/parasite_cmds.c
      * app/patterns_cmds.c
      * app/procedural_db_cmds.c
      * app/text_tool_cmds.c
      * app/internal_procs.c: pdbgen updates
      
      * app/paint_funcs.c: the glibc 2.1 docs say using SVID threadsafe
      random functions are preferable to rand_r, so use them instead of
      a mutex
      
      -Yosh
      8b11c6c1
  12. 27 Apr, 1999 1 commit
    • Manish Singh's avatar
      app/gimage_cmds.c pdbgenned files · 80de6ea7
      Manish Singh authored
      * app/gimage_cmds.c
      * app/guides_cmds.c: pdbgenned files
      
      * app/parasite_cmds.c: added image parasite cmds
      
      * app/gimpimage.h: capitalized ChannelType and MergeType enums,
      made HORIZONTAL_GUIDE and VERTICAL_GUIDE an enum
      
      * app/layer.h: made APPLY and DISCARD an enum
      
      * app/internal_procs.[ch]: finally pdbgenned
      
      * app/channels_dialog.c
      * app/fileops.c
      * app/gimpimage.c
      * app/layers_dialog.c: ChannelType, MergeType enum changes
      
      * app/commands.c: remove gimage_cmds.h #include
      
      * app/cursorutil.h: #include <gdk/gdktypes.h>
      
      * app/paint_funcs.h: cosmetic change for PDB help
      
      * app/brush_select_cmds.c
      * app/brushes_cmds.c
      * app/layer_cmds.c
      * app/tools_cmds.c: pdbgen updates
      
      * app/Makefile.am: removed gimage_cmds.h, added guides_cmds.c
      
      * plug-ins/Lighting/lighting_main.c
      * plug-ins/MapObject/mapobject_main.c
      * plug-ins/rcm/rcm.c
      * plug-ins/xbm/xbm.c: removed trailing ";" from MAIN ()
      
      -Yosh
      80de6ea7
  13. 24 Apr, 1999 1 commit
    • Manish Singh's avatar
      pdbgened, header file removed · 107038e5
      Manish Singh authored
      * app/layer_cmds.[ch]: pdbgened, header file removed
      
      * app/internal_procs.c: use pdbgen register for layer funcs
      
      * app/*_cmds.c: various pdbgen formatting fixes
      
      * app/Makefile.am: removed layer_cmds.h
      
      * app/layer.c
      * app/layerF.h: changed AddMaskType enum to capitals
      
      -Yosh
      107038e5
  14. 23 Apr, 1999 1 commit
    • Manish Singh's avatar
      gave parasite undo a MISC_UNDO class for now so it compiles · b8c19394
      Manish Singh authored
      * app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
      so it compiles
      
      * app/tools_cmds.c: fix crop invoker to give correct args to
      crop_image
      
      * app/color_cmds.c: s/GRAY/GRAY_LUT/g;
      
      * app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
      brush_select_dialog, s/active_dialogs/brush_active_dialogs/
      
      * app/gimage_cmds.[ch]
      * app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
      function from gimage_cmds to channel_ops, export offset and duplicate
      
      * app/gimpbrushlist.[ch]: removed PDB procs
      
      * app/gradient.[ch]: removed PDB procs,
      
      * app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
      grad_active_dialogs, gradient_select_dialog
      
      * app/gradient_select.c: removed PDB procs,
      s/active_dialogs/grad_active_dialogs/
      
      * app/patterns.[ch]: removed PDB procs
      
      * app/pattern_select.[ch]: removed PDB procs,
      s/active_dialogs/pattern_active_dialogs/
      
      * app/procedural_db.c: removed PDB procs and supporting functions
      
      * app/procedrual_db.h: fiddled with enums
      
      * app/channel_cmds.[ch]
      * app/drawable_cmds.[ch]
      * app/parasite_cmds.[ch]: pdbgenned now, removed header files
      
      * app/gimpparasite.c: minor cleanup
      
      * app/internal_procs.c: use pdbgen stuff
      
      * app/tools_cmds.c
      * app/text_tool_cmds.c: updated from pdbgen
      
      * app/brushes_cmds.c
      * app/brush_select_cmds.c
      * app/gradient_cmds.c
      * app/gradient_select_cmds.c
      * app/patterns_cmds.c
      * app/pattern_select_cmds.c
      * app/procedural_db_cmds.c: new pdbgen files
      
      * app/Makefile.am: file shuffle (see above)
      
      -Yosh
      b8c19394