1. 15 Mar, 2006 2 commits
    • Michael Natterer's avatar
      tools/pdbgen/pdb/channel.pdb removed dim(), accessors(), get_prop() and · 711c191f
      Michael Natterer authored
      2006-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb: removed dim(), accessors(),
      	get_prop() and set_prop() utility functions and expand everything
      	to pdbgen boilerplate code. Use the real layer mask API instead of
      	the crap from pdb_glue.h. Fixed some API docs.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* libgimp/gimplayer_pdb.c: regenerated.
      
      	* app/pdb/Makefile.am
      	* app/pdb/pdb_glue.h: bye bye uglyness.
      711c191f
    • Michael Natterer's avatar
      define init values for all pdb types. · 04bf6d04
      Michael Natterer authored
      2006-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb.pl: define init values for all pdb types.
      
      	* tools/pdbgen/app.pl: unconditionally initialize all return
      	values, and no parameter.
      
      	* tools/pdbgen/pdb/*.pdb: removed init => 1 from all arguments
      	and return values.
      
      	* app/pdb/*_cmds.c: regenerated.
      04bf6d04
  2. 14 Mar, 2006 1 commit
    • Michael Natterer's avatar
      remove lots of perl crack: - create almost all parameter arrays manually · 2ff56f8d
      Michael Natterer authored
      2006-03-14  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/*.pdb: remove lots of perl crack:
      	- create almost	all parameter arrays manually instead of
      	  generating them from utility functions
      	- removed lots of other utility functions
      	- moved variable declarations into the enclosed code snippets
      	  where possible
      	- some cleanup and API doc fixes
      
      	* tools/pdbgen/stddefs.pdb: added some perl crack:
      	define utility functions for all contributors which own more than
      	some functions, so they can change their names and email addresses
      	at a central place.
      
      	* app/pdb/[many].c: regenerated.
      
      	* libgimp/gimpcolor_pdb.c
      	* libgimp/gimpdrawabletransform_pdb.c
      	* libgimp/gimptransformtools_pdb.c
      	* libgimp/gimpvectors_pdb.c: ditto. Changed affect only API docs.
      2ff56f8d
  3. 22 Feb, 2005 1 commit
    • Shlomi Fish's avatar
      add the gimp_channel_new_from_component() PDB function. · 6c659592
      Shlomi Fish authored
      2005-02-22  Shlomi Fish  <shlomif@iglu.org.il>
      
      	* tools/pdbgen/pdb/channel.pdb: add the
      	gimp_channel_new_from_component() PDB function.
      
      	* libgimp/gimpchannel_pdb.c
      	* app/pdb/channel_cmds.c: resultant files.
      
      	* libgimp/gimp.def: add the new function to the def file
      
      	* devel-docs/libgimp/libgimp-sections.txt: add the new function
      	to devel-docs
      6c659592
  4. 18 Jan, 2004 1 commit
    • Michael Natterer's avatar
      don't allow to select anything but the floating selection. Fixes bug · 370a16fa
      Michael Natterer authored
      2004-01-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.c (gimp_image_set_active_layer): don't allow
      	to select anything but the floating selection. Fixes bug #128025.
      
      	(gimp_image_set_active_layer,channel,vectors): allow to pass NULL
      	to unselect the active item. Removed the silly feature that
      	passing some random item of another image would select the first
      	item in the list (was unused anyway).
      
      	(gimp_image_unset_active_channel): use gimp_image_set_active_channel()
      	now that it accepts NULL.
      
      	(gimp_image_add_layer,channel,vectors): cleaned up / simplified.
      
      	(gimp_image_remove_layer,channel,vectors): cleanup,
      	simplification, use gimp_image_set_active_layer,channel,vectors()
      	now that they accept NULL, make sure the item next to the removed
      	item becomes the active one (and not the first in the list, which
      	was a severe usability problem in the dialogs).
      
      	* app/core/gimpimage-undo-push.c (undo_pop_layer,channel): pass
      	NULL to the set_active functions, cleanup.
      
      	* app/core/gimpimage-duplicate.c: attach the floating selection
      	before setting the active layer. Code relied on broken
      	gimp_image_set_active_layer() behaviour before.
      
      	* app/core/gimplayer-floating-sel.c: no need to set
      	gimage->floating_sel before calling gimp_image_add_layer(). The
      	weird GUI mentioned in the comment existed in 1.2 only.
      
      	* app/display/gimpdisplayshell-layer-select.c (layer_select_advance):
      	don't assume that setting the active_layer always succeeds.
      
      	* tools/pdbgen/pdb/image.pdb: behave as the documentation says
      	and return an execution error if setting the active layer or
      	channel failed.
      
      	Unrelated:
      
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb: removed leftover cruft from the old
      	guchar based color API.
      
      	* tools/pdbgen/pdb/channel.pdb: simplified code which handles the
      	channel's color.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      370a16fa
  5. 08 Dec, 2003 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/pdb/channel.pdb tools/pdbgen/pdb/display.pdb · ad5e1cd0
      Michael Natterer authored
      2003-12-08  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/image.pdb: don't use "alias"es just to rename
      	variables, they just clutter the code and there is no reason why
      	e.g. a GimpDisplay variable must be called "gdisp" instead of
      	"display". Cleanup.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/display_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      ad5e1cd0
  6. 03 Dec, 2003 2 commits
    • Michael Natterer's avatar
      tools/pdbgen/pdb/channel.pdb removed gimp_layer_delete() and · f2e227e2
      Michael Natterer authored
      2003-12-03  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb: removed gimp_layer_delete() and
      	gimp_channel_delete() PDB wrappers...
      
      	* tools/pdbgen/pdb/drawable.pdb: ...added gimp_drawable_delete().
      
      	* libgimp/gimpdrawable.[ch]: removed gimp_drawable_delete()
      	(having this function work on the GimpDrawable wrapper and not on
      	the drawable_id was more than questionable anyway).
      
      	* libgimp/gimpcompat.h: added gimp_layer_delete and
      	gimp_channel_delete cruft #defines.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/layer_cmds.c
      	* libgimp/gimpchannel_pdb.[ch]
      	* libgimp/gimpdrawable_pdb.[ch]
      	* libgimp/gimplayer_pdb.[ch]: regenerated.
      
      	* plug-ins/script-fu/scripts/add-bevel.scm
      	* plug-ins/xjt/xjt.c: changed accordingly.
      
      	* plug-ins/imagemap/imap_main.c: just removed the call to
      	gimp_channel_delete(), it was wrong anyway.
      
      2003-12-03  Michael Natterer  <mitch@gimp.org>
      
      	* libgimp/libgimp-sections.txt
      	* libgimp/tmpl/gimpchannel.sgml
      	* libgimp/tmpl/gimpdrawable.sgml
      	* libgimp/tmpl/gimplayer.sgml: updated again.
      f2e227e2
    • Michael Natterer's avatar
      tools/pdbgen/pdb/channel.pdb removed duplicated APIs for "name", "visible" · a1f064c2
      Michael Natterer authored
      2003-12-03  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb: removed duplicated APIs for "name",
      	"visible" and "tattoo"...
      
      	* tools/pdbgen/pdb/drawable.pdb: ...and added them as drawable APIs.
      
      	* libgimp/gimpdrawable.[ch]: removed faked layer/channel
      	polymorphisms, the functions are real drawable functions now.
      
      	* libgimp/gimpcompat.h: added the old cruft here.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/layer_cmds.c
      	* libgimp/gimpchannel_pdb.[ch]
      	* libgimp/gimpdrawable_pdb.[ch]
      	* libgimp/gimplayer_pdb.[ch]: regenerated.
      
      	* libgimp/gimpexport.c
      	* libgimp/gimpmenu.c
      	* plug-ins/common/align_layers.c
      	* plug-ins/common/animationplay.c
      	* plug-ins/common/animoptimize.c
      	* plug-ins/common/curve_bend.c
      	* plug-ins/common/gbr.c
      	* plug-ins/common/gif.c
      	* plug-ins/common/gih.c
      	* plug-ins/common/iwarp.c
      	* plug-ins/common/mng.c
      	* plug-ins/common/psd.c
      	* plug-ins/common/psd_save.c
      	* plug-ins/common/psp.c
      	* plug-ins/xjt/xjt.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/script-fu/scripts/*.scm: changed accordingly.
      
      2003-12-03  Michael Natterer  <mitch@gimp.org>
      
      	* libgimp/libgimp-sections.txt: updated.
      a1f064c2
  7. 11 Sep, 2003 1 commit
    • Michael Natterer's avatar
      removed "visible" and all its API... · 7cf4eb46
      Michael Natterer authored
      2003-09-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: removed "visible" and all its API...
      
      	* app/core/gimpitem.[ch]: ...and added it here.
      
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo-push.[ch]: changed the drawable
      	visibility undo to be an item visibility undo.
      
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c: save it in PROP_VECTORS and changed channel
      	and layer loading/saving accordingly.
      
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/text/gimptextlayer.c
      	* app/gui/channels-commands.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c: regenerated.
      
      	* app/widgets/gimpdrawabletreeview.[ch]: removed the eye icon...
      
      	* app/widgets/gimpitemtreeview.[ch]: ...and added it here.
      7cf4eb46
  8. 04 Sep, 2003 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am new files split out of gimpchannel.[ch]. · 3911d511
      Michael Natterer authored
      2003-09-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpchannel-combine.[ch]: new files split out of
      	gimpchannel.[ch].
      
      	* app/core/gimpchannel.[ch]: removed the combine functions here.
      
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpimage-mask-select.c
      	* tools/pdbgen/pdb/channel.pdb: changed #includes accordingly.
      
      	* app/pdb/channel_cmds.c: regenerated.
      3911d511
  9. 19 Aug, 2003 1 commit
    • Manish Singh's avatar
      Default all strings to validate UTF-8, use no_validate to disable. Also · 78071018
      Manish Singh authored
      2003-08-18  Manish Singh  <yosh@gimp.org>
      
              * tools/pdbgen/app.pl: Default all strings to validate UTF-8, use
              no_validate to disable. Also added a null_ok parameter which does
              validate UTF-8, but allows NULL.
      
              * tools/pdbgen/pdb/brush_select.pdb
              * tools/pdbgen/pdb/brushes.pdb
              * tools/pdbgen/pdb/channel.pdb
              * tools/pdbgen/pdb/convert.pdb
              * tools/pdbgen/pdb/fileops.pdb
              * tools/pdbgen/pdb/font_select.pdb
              * tools/pdbgen/pdb/gimprc.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/message.pdb
              * tools/pdbgen/pdb/palette_select.pdb
              * tools/pdbgen/pdb/palettes.pdb
              * tools/pdbgen/pdb/parasite.pdb
              * tools/pdbgen/pdb/paths.pdb
              * tools/pdbgen/pdb/pattern_select.pdb
              * tools/pdbgen/pdb/patterns.pdb
              * tools/pdbgen/pdb/plug_in.pdb
              * tools/pdbgen/pdb/procedural_db.pdb
              * tools/pdbgen/pdb/text_tool.pdb
              * tools/pdbgen/pdb/unit.pdb: removed utf8, added no_validate and
              null_ok where appropriate.
      
              * app/pdb/brush_select_cmds.c
              * app/pdb/font_select_cmds.c
              * app/pdb/gradient_select_cmds.c
              * app/pdb/layer_cmds.c
              * app/pdb/palette_select_cmds.c
              * app/pdb/pattern_select_cmds.c
              * app/pdb/plug_in_cmds.c: regenerated.
      78071018
  10. 18 Aug, 2003 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/pdb/brush_select.pdb tools/pdbgen/pdb/brushes.pdb · db2db08f
      Michael Natterer authored
      2003-08-18  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/gimprc.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/unit.pdb: UTF-8 validate all strings except
      	filenames. Does not work yet for string params which may be NULL.
      	They currently don't get checked because I still don't understand
      	pdbgen enough :)
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/convert_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/fileops_cmds.c
      	* app/pdb/font_select_cmds.c
      	* app/pdb/gimprc_cmds.c
      	* app/pdb/gradient_select_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/palette_select_cmds.c
      	* app/pdb/palettes_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/pattern_select_cmds.c
      	* app/pdb/patterns_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/unit_cmds.c: regenerated.
      db2db08f
  11. 17 Mar, 2003 3 commits
    • Michael Natterer's avatar
      Made drawable/layer properties (visibility, opacity etc.) undoable (fixes · 884b3aa7
      Michael Natterer authored
      2003-03-17  Michael Natterer  <mitch@gimp.org>
      
      	Made drawable/layer properties (visibility, opacity etc.)
      	undoable (fixes bug #73893).
      
      	* app/core/core-enums.[ch]: added undo types/groups for
      	visibility, mode, opacity, linked and preserve_trans.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
      	ref'ed GimpItem pointer so (1) this doesn't need to be done by all
      	undo steps related to an item and (2) the item the undo step is
      	for can be determined from outside the undo system.
      
      	* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
      	which returns a new GimpItemUndo.
      
      	* app/core/gimpimage-undo-push.[ch]: use it for all item related
      	undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
      	and GimpVectors pointers from the private undo structs. Added
      	undo push functions for the new undo types added above.
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
      	"gboolean push_undo" parameter.
      
      	* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
      	_preserve_trans, _linked): added "gboolean push_undo" parameters.
      
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimplayer-floating-sel.c
      	* app/tools/gimpmovetool.c
      	* app/xcf/xcf-load.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplayerlistview.c: changed accordingly.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
      	the foo_accessors() functions. Removed $func from foo_accesors()
      	because we don't manipulate items without using getters/setters
      	any longer.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c: regenerated.
      
      	* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
      	which carries an additional "GdkModifierType state" parameter as
      	in GimpCellRendererViewable .
      
      	* app/widgets/gimpcontainertreeview.c: emit "clicked" from
      	the toggle renderer, not "toggled" so the callbacks get the
      	modifier state.
      
      	* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
      	visible by <shift>+click" feature as in 1.2.
      
      	* app/widgets/gimplayertreeview.c: compress layer opacity undos by
      	looking at the top of the undo stack and not pushing an undo if
      	there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
      	layer.
      884b3aa7
    • Michael Natterer's avatar
      added GIMP_UNDO_CHANNEL_COLOR. · b417203a
      Michael Natterer authored
      2003-03-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]: added GIMP_UNDO_CHANNEL_COLOR.
      
      	* app/core/gimpchannel.[ch]: added "gboolean push_undo" to
      	gimp_channel_set_color().
      
      	* app/core/gimpimage-undo-push.[ch]: added
      	gimp_image_undo_push_channel_color().
      
      	* app/core/gimpimage-qmask.c
      	* app/gui/qmask-commands.c
      	* app/widgets/gimpchannellistitem.c
      	* tools/pdbgen/pdb/channel.pdb: changed accordingly.
      
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/vectors-commands.c: ditto. Use gimp_item_rename().
      
      	* app/pdb/channel_cmds.c: regenerated.
      b417203a
    • Manish Singh's avatar
      tools/pdbgen/pdb/channel.pdb use gimp_item_rename for set_name. · 6e41b136
      Manish Singh authored
      2003-03-17  Manish Singh  <yosh@gimp.org>
      
              * tools/pdbgen/pdb/channel.pdb
              * tools/pdbgen/pdb/layer.pdb: use gimp_item_rename for set_name.
      
              * app/pdb/channel_cmds.c
              * app/pdb/layer_cmds.c: regenerated
      
              * libgimpproxy/Makefile.am: use $(top_srcdir)
      6e41b136
  12. 11 Feb, 2003 1 commit
    • Michael Natterer's avatar
      added new virtual function duplicate() as replacement for all · 436ed648
      Michael Natterer authored
      2003-02-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: added new virtual function duplicate()
      	as replacement for all gimp_*_copy() functions.
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimplayermask.[ch]
      	* app/vectors/gimpvectors.[ch]: replaced public copy() functions
      	by duplicate() implementations.
      
      	* app/text/gimptextlayer.c: added a duplicate() implementation.
      
      	* app/widgets/gimpitemlistview.[ch]: removed the "copy_item_func"
      	and simply call gimp_item_duplicate().
      
      	* app/undo.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-qmask.c
      	* app/gui/channels-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/layers-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      436ed648
  13. 05 Jan, 2003 1 commit
  14. 18 Sep, 2002 1 commit
    • Manish Singh's avatar
      use X_CFLAGS when checking for Xmu headers too · b800763e
      Manish Singh authored
      2002-09-18  Manish Singh  <yosh@gimp.org>
      
              * configure.in: use X_CFLAGS when checking for Xmu headers too
      
              * tools/pdbgen/pdb/channel.pdb
              * tools/pdbgen/pdb/layer.pdb: slight tweak to mitch's change
              to have default parameters for the common case
      b800763e
  15. 10 Sep, 2002 1 commit
    • Michael Natterer's avatar
      Some PDB cleanup: · 451d392a
      Michael Natterer authored
      2002-09-10  Michael Natterer  <mitch@gimp.org>
      
      	Some PDB cleanup:
      
      	* tools/pdbgen/pdb/procedural_db.pdb: removed the get_data() and
      	set_data() implementations and the global "data_list" variable.
      	Cleaned up the dump() stuff (pass the FILE pointer around instead
      	of having a global variable for it). Fixed output_string() so it
      	does not crash on NULL strings.
      
      	* app/core/gimp.[ch]: added gimp->procedural_db_data_list.
      
      	* app/pdb/procedural_db.[ch]: added procedural_db_[set|get]_data().
      	Don't leak data identifiers when overwriting an already existing
      	entry. Added g_return_if_fail() stuff to all public functions.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/parasite.pdb: tweaked some helper functions to
      	take parameters which make them aware of the real type of the
      	objects they handle (e.g. the PDB function gimp_layer_set_name()
      	matches the core function gimp_object_get_name()).
      
      	* app/pdb/pdb_glue.h: removed ugly CPP-level workarounds for the
      	issue mentioned above.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/procedural_db_cmds.c: regenerated.
      451d392a
  16. 20 Aug, 2002 1 commit
    • Michael Natterer's avatar
      Make sure the selection (gimpimage-mask.c) functionality is really built · 33bba657
      Michael Natterer authored
      2002-08-20  Michael Natterer  <mitch@gimp.org>
      
      	Make sure the selection (gimpimage-mask.c) functionality is really
      	built *on top* of the GimpChannel functionality:
      
      	* app/undo.[ch]: renamed undo_push_image_mask() to
      	undo_push_mask() and generalized it's API to take a GimpChannel
      	param so undos can be pushed for channels which are not the
      	image's selection. Simplified the API and added code which copies
      	the region of interest instead of leaving this to callers.
      
      	* app/undo_types.h: s/IMAGE_MASK_UNDO/MASK_UNDO/
      
      	* app/undo_history.c: changed accordingly.
      
      	* app/core/gimpchannel.[ch]: don't #include "gimpimage-mask.h".
      	Changed gimp_channel_push_undo() to really push a channel undo,
      	not a selection undo. Added "gboolean push_undo" params to all
      	functions which are called from gimpimage-mask.c. Various cleanups
      	and optimizations. Added /*< proxy-foo >*/ stuff to the header so
      	we export just the struct itself to libgimpproxy. Added accessors
      	gimp_channel_[get|set]_show_masked().
      
      	* app/core/gimpimage-mask.[ch]: renamed gimp_image_mask_undo() to
      	gimp_image_mask_push_undo(). Call it before calling GimpChannel
      	functions which modify the mask, also call all GimpChannel
      	functions with push_undo = FALSE. Emit gimp_image_mask_changed()
      	after each operation instead of calling it in
      	gimp_image_mask_invalidate(). Removed gimp_image_mask_none()
      	because it is the same as gimp_image_mask_clear().
      	General cleanup.
      
      	* app/core/gimpimage-mask-select.c
      	* app/core/gimpimage-qmask.c: changed accordingly.
      
      	* app/core/gimpedit.c: call gimp_image_mask_clear(), not
      	gimp_channel_clear (gimp_image_get_mask()).
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c: call gimp_image_mask_changed()
      
      	* app/gui/channels-commands.c
      	* app/gui/select-commands.c
      	* app/tools/gimptexttool.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/selection.pdb: follow GimpChannel and
      	gimp_image_mask* API changes.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/selection_cmds.c
      	* libgimpproxy/gimpchannel.h: regenerated.
      
      	Unrelated:
      
      	* app/core/gimpimage.c: call gimp_drawable_push_undo() instead of
      	undo_push_image() directly.
      33bba657
  17. 18 Mar, 2002 1 commit
    • Sven Neumann's avatar
      app/core/core-enums.h more enum cleanup (ChannelOps this time). · d68b730a
      Sven Neumann authored
      2002-03-18  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.h
      	* app/core/core-types.h: more enum cleanup (ChannelOps this time).
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpimage-mask-select.[ch]
      	* app/gui/channels-commands.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/tools-types.h
      	* app/widgets/gimpchannellistview.[ch]
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: changed accordingly.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      d68b730a
  18. 25 Feb, 2002 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new base class for something · cdf2a90b
      Michael Natterer authored
      2002-02-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpitem.[ch]: new base class for something which is a
      	child of an image, has a PDB ID, a tattoo, parasites and emits
      	a "removed" signal.
      
      	* app/core/gimpdrawable.[ch]
      	* app/vectors/gimpvectors.[ch]: derive from GimpItem. Removed
      	lots of stuff from GimpDrawable.
      
      	* app/core/gimp.[ch]: changed gimp->drawable_table and
      	gimp->next_drawable_ID to gimp->item_table and gimp->next_item_id.
      
      	* app/undo.[ch]: s/undo_push_drawable_parasite/undo_push_item_parasite/,
      	minor cleanups.
      
      	* app/core/gimplayer.[ch]: changed gimp_layer_new_from_tiles() and
      	gimp_layer_new_from_drawable() to take the "dest_gimage" as
      	second, not first parameter.
      
      	* app/image_map.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-pick-color.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-save-dialog.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/toolbox.c
      	* 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/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppainttool.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/widgets/gimpdrawablepreview.c: changed accordingly.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpitemlistview.[ch]: new widget implementing most
      	of the stuff formerly done by GimpDrawableListView.
      
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimplayerlistview.c: changed accordingly.
      
      	* app/widgets/gimpdnd.[ch]: added a vectors DND type.
      
      	* app/gui/menus.c
      	* app/gui/dialogs.c
      	* app/gui/dialogs-constructors.[ch]: added a vectors dialog and
      	a vectors item_factory.
      
      	* app/gui/Makefile.am
      	* app/gui/vectors-commands.[ch]: new files implementing the
      	callbacks for the new vectors dialog and item_factory.
      
      	* app/pdb/pdb_glue.h: some more ugly hacks to keep intermediate
      	perl code working...
      
      	* tools/pdbgen/pdb.pl: added a vectors type, use GimpItem for all
      	ID lookups.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/misc_tools.pdb
      	* tools/pdbgen/pdb/parasite.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: misc changes according to
      	stuff above.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/misc_tools_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      cdf2a90b
  19. 12 Dec, 2001 1 commit
    • Michael Natterer's avatar
      made gimp->global_buffer a GimpBuffer, not TileManager. · 9b8bf8de
      Michael Natterer authored
      2001-12-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp.[ch]: made gimp->global_buffer a GimpBuffer,
      	not TileManager.
      
      	* app/core/gimpbuffer.[ch]: added a "gboolean copy_pixels" to
      	gimp_buffer_new().
      
      	* app/core/gimpimage-new.c
      	* app/core/gimpedit.[ch]
      	* app/core/gimpimage-qmask.c
      	* app/widgets/gimpbufferpreview.c
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcontainerview-utils.c: chaned accordingly, don't
      	include "base/tile-manager.h".
      
      	* app/core/gimpdrawable.[ch]: added gimp_drawable_copy().
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimplayermask.[ch]: use it in
      	gimp_[channel|layer|layer_mask]_copy(), added "GType new_type" as
      	paramater to all of them.
      
      	* app/core/gimpimage-duplicate.c
      	* app/gui/channels-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/layers-commands.c
      	* app/widgets/gimpchannellistview.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      
      	* app/core/gimplayer.[ch]: removed the "layer_type" parameter from
      	gimp_layer_new_from_tiles() because it always needed to be equal
      	to gimp_image_base_type_with_alpha() of the passed image.
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c: cahanged accordingly.
      
      	* app/core/gimpimage.[ch]: added some new GIMP_IMAGE_TYPE_FOO()
      	marcos to get rid of magic values like "pixels = 3" all over the
      	place.
      
      	* app/core/gimplayer.[ch]: added gimp_layer_new_from_drawable()
      	which creates a layer from an other image's drawable.
      
      	* app/core/gimpimage-convert.[ch]: made the RGB and GRAY converters
      	public to use them above, use the new GIMP_IMAGE_TYPE() macros.
      
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/toolbox.c: removed tile manager stuff and use the new
      	functions.
      
      	* app/widgets/gimpdrawablelistview.[ch]: added a
      	"convert_drawable_func" which is used to handle drops from other
      	images.
      
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplistitem.[ch]: implemented DND of layers between
      	images using gimp_layer_new_from_drawable().
      
      	* app/gui/dialogs-constructors.c: changed accordingly.
      9b8bf8de
  20. 17 Aug, 2001 1 commit
    • Michael Natterer's avatar
      added app/display/ and app/plug-in/. Empty for now except for the types · 01b780d6
      Michael Natterer authored
      2001-08-17  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: added app/display/ and app/plug-in/. Empty for
      	now except for the types files.
      
      	* app/Makefile.am
      	* app/appenums.h
      	* app/apptypes.h: removed.
      
      	* app/display/Makefile.am
      	* app/display/display-types.h
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-types.h
      	* app/gui/Makefile.am
      	* app/gui/gui-types.h
      	* app/pdb/Makefile.am
      	* app/pdb/pdb-types.h: new files for typedefs.
      
      	* app/appenv.h: added MessageHandlerType and StackTraceMode here.
      
      	* app/undo_types.h: moved undo struct typedefs here.
      
      	* app/tools/tools-types.h
      	* app/core/core-types.h: added some enums and Tattoo here
      	(renamed to GimpTattoo).
      
      	* app/gdisplay.h: temp_hack: #include "display/display-types.h"
      
      	* app/gimphelp.c: s/gtk_idle_add/g_idle_add/
      
      	* app/gimprc.c: don't use "gimprc" in token handlers but the
      	passed "val1p" and "val2p".
      
      	* app/image_map.[ch]: cleanup in preparation of making a GObject
      	out of it.
      
      	* app/base/pixel-region.[ch]: no need to pass the
      	PixelRegionIterator around as void pointer.
      
      	* app/core/gimp.[ch]
      	* app/core/gimpcontext.[ch]
      	* app/core/gimptoolinfo.[ch]
      	* app/tools/tool_manager.c
      	* app/widgets/gimpdnd.c: added the standard_tool_info to the Gimp
      	object.
      
      	* app/batch.c
      	* app/file-open.c
      	* app/file-save.c
      	* app/file-utils.c
      	* app/interface.c
      	* app/main.c
      	* app/path.[ch]
      	* app/pathP.h
      	* app/plug_in.h
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.c
      	* app/gui/color-area.c
      	* app/gui/color-notebook.c
      	* app/gui/colormap-dialog.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/error-console-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/indicator-area.c
      	* app/gui/info-dialog.c
      	* app/gui/palette-editor.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c
      	* app/gui/session.c
      	* app/gui/splash.c
      	* app/gui/view-commands.c
      	* app/tools/gimpinktool-blob.c
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimpdockbook.c
      	* app/widgets/gimppreview.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/xcf/xcf.c: changed accordingly: s/Tattoo/GimpTattoo/, include
      	the new types files, include <glib-object.h> instead of >gtk/gtk.h>.
      	Bad hacks to get rid of SELECTION_OFF and friends in core/ (will
      	be replaced ba a signal soon).
      
      	* tools/pdbgen/Makefile.am: changed list of headers scanned for
      	enums accordingly.
      
      	* app/pdb/procedural_db.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb: same fixes as above, added
      	hacks to ensure that all foo-types.h files are included before all
      	other gimp internal includes, include "pdb-types.h" unconditionally.
      
      	* tools/pdbgen/enums.pl
      	* app/pdb/*_cmds.c: regenerated.
      01b780d6
  21. 09 May, 2001 1 commit
    • Michael Natterer's avatar
      configure.in added new directory app/core/ for the core object system. · 8985b107
      Michael Natterer authored
      2001-05-09  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in
      	* app/Makefile.am: added new directory app/core/ for the core
      	object system.
      
      	* app/gimage_mask.[ch]
      	* app/gimpbrush-header.h
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.[ch]
      	* app/gimpbrushpipe.[ch]
      	* app/gimpchannel.[ch]
      	* app/gimpcontainer.[ch]
      	* app/gimpcontext.[ch]
      	* app/gimpdata.[ch]
      	* app/gimpdatafactory.[ch]
      	* app/gimpdatalist.h
      	* app/gimpdrawable-desaturate.[ch]
      	* app/gimpdrawable-equalize.[ch]
      	* app/gimpdrawable-invert.[ch]
      	* app/gimpdrawable-offset.[ch]
      	* app/gimpdrawable-preview.[ch]
      	* app/gimpdrawable.[ch]
      	* app/gimpgradient.[ch]
      	* app/gimpimage-convert.[ch]
      	* app/gimpimage-duplicate.[ch]
      	* app/gimpimage-undo.[ch]
      	* app/gimpimage.[ch]
      	* app/gimplayer.[ch]
      	* app/gimplayermask.[ch]
      	* app/gimplist.[ch]
      	* app/gimpmarshal.[ch]
      	* app/gimpobject.[ch]
      	* app/gimppalette-import.[ch]
      	* app/gimppalette.[ch]
      	* app/gimppattern-header.h
      	* app/gimppattern.[ch]
      	* app/gimpundo.[ch]
      	* app/gimpundostack.[ch]
      	* app/gimpviewable.[ch]: removed these files...
      
      	* app/core/*: ...and added them here.
      
      	* app/*.c
      	* app/gui/*.c
      	* app/pdb/*.c
      	* app/tools/*.c
      	* app/widgets/*.c
      	* plug-ins/common/gbr.c
      	* plug-ins/common/gih.c
      	* plug-ins/common/pat.c
      	* po/POTFILES.in
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/enums.pl
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/*.pdb: changed accordingly.
      8985b107
  22. 06 Mar, 2001 1 commit
    • Michael Natterer's avatar
      removed the layer mask functions. · af76f2bb
      Michael Natterer authored
      2001-03-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimage.[ch]: removed the layer mask functions.
      
      	* app/gimpchannel.[ch]: added a boolean "dummy" parameter to
      	gimp_channel_copy() so it has the same signature as
      	gimp_layer_copy() and can be used by the GimpDrawableListView to
      	generically duplicate drawables.
      
      	* app/gimpcontainerview.c: call "select_item" with a NULL item
      	before changing the underlying GimpContainer so subclasses have
      	a chance to update (e.g. set button sensitivity).
      
      	* app/gimpdnd.c: folded all the GtkType comparing code into a
      	utility function (much more readable now).
      
      	* app/gimpdrawablelistview.[ch]: activated the "raise", "lower",
      	"duplicate" and "delete". I'm not really happy with all those
      	function pointers passed to the constructor (and the dummy
      	parameters I've added to some GimpChannel functions) -- OTOH the
      	generic view maybe worth the "gboolean dummy" cruft hanging around
      	in the channel class.
      
      	* app/gimplayer.[ch]: removed the "apply_mask", "edit_mask" and
      	"show_mask" booleans ...
      
      	* app/gimplayermask.[ch]: .. and added them here together with
      	proper accessors and "*_changed" signals.
      
      	This also makes the layer mask undo code much clearer as we don't
      	have to store the booleans separately.
      
      	* app/gimplayerlistitem.c: badly hacked to acheive the correct
      	indicator being drawn around the active drawable. This needs
      	a new GimpPreview function for setting the border color.
      
      	* app/gimplistitem.c: smaller horizontal spacing.
      
      	* app/gimppreview.[ch]: added the "border_width" parameter also to
      	gimp_preview_set_size() so we can modify all previews the same way
      	after creation.
      
      	* app/layers_dialog.c: no need to push an undo group around
      	the "duplicate layer" code. Was this an artefact or did I miss
      	something here ???
      
      	* app/channel_ops.c
      	* app/channels_dialog.c
      	* app/gimage_mask.c
      	* app/gimpcontainergridview.c
      	* app/gimpcontainerlistview.c
      	* app/gimpdrawablelistitem.c
      	* app/gimpimage.[ch]
      	* app/qmask.c
      	* app/test_commands.c
      	* app/undo.c
      	* app/xcf.c
      	* app/pdb/channel_cmds.c
      	* tools/pdbgen/pdb/channel.pdb
      	* app/pdb/selection_cmds.c
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/layer_cmds.c
      	* libgimp/gimplayer_pdb.[ch]
      	* tools/pdbgen/pdb/layer.pdb: commented out the layer mask accessors
      	from the perl code, so the functions temporarily disappeared all
      	over the place.
      
      	* plug-ins/Makefile.am: don't build XJT until the layer mask stuff
      	is back.
      
      	* pixmaps/eye.xpm: cropped it to it's minimal size.
      af76f2bb
  23. 04 Mar, 2001 1 commit
    • Michael Natterer's avatar
      new function gimp_drawable_set_visible(). Renamed gimp_drawable_visible() · 65235b91
      Michael Natterer authored
      2001-03-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpdrawable.[ch]: new function gimp_drawable_set_visible().
      	Renamed gimp_drawable_visible() to gimp_drawable_get_visible().
      	Added a "visibility_changed" signal.
      
      	* app/gimplistitem.[ch]: new virtual function "set_viewable"
      	which allows subclasses to connect to the viewable's signals.
      
      	* app/gimpdrawablelistitem.[ch]: added an eye button. Implement
      	"set_viewable" to connect to the "visibility_changed" signal.
      
      	* app/gimpchannel.[ch]: removed unused function
      	gimp_channel_toggle_visibility().
      
      	* app/channels_dialog.c
      	* app/floating_sel.c
      	* app/gimage_mask.c
      	* app/gimpimage.c
      	* app/gimplayer.c
      	* app/layers_dialog.c
      	* app/xcf.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/pdb_glue.h
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb: removed direct access of
      	drawable->visible and use the functions instead. Also makes PDB
      	code generation nicer.
      
      	* pixmaps/eye.xpm: cropped it a bit.
      65235b91
  24. 22 Feb, 2001 1 commit
  25. 01 Feb, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/gimpchannel.[ch] new files moved here by Yosh. · dde74f97
      Michael Natterer authored
      2001-02-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimpchannel.[ch]
      	* app/gimplayer.[ch]: new files moved here by Yosh.
      
      	* app/channel.[ch]
      	* app/layer.[ch]: removed.
      
      	* app/gdisplay.c: cleanup stuff.
      
      	* app/[lotsa files].c
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed includes accordingly.
      dde74f97
  26. 29 Jan, 2001 3 commits
    • Michael Natterer's avatar
      app/Makefile.am new file. · 227eea67
      Michael Natterer authored
      2001-01-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/undo_history.h: new file.
      
      	* app/apptypes.h: removed the "Channel" typedef.
      
      	* app/channel.[ch]: renamed all functions to gimp_channel_*()
      
      	* app/channel_ops.c
      	* app/channels_dialog.c
      	* app/commands.c
      	* app/disp_callbacks.c
      	* app/gdisplay.c
      	* app/gimage_mask.[ch]
      	* app/gimpdnd.c
      	* app/gimphistogram.c
      	* app/gimpimage.[ch]
      	* app/global_edit.c
      	* app/layer.c
      	* app/layers_dialog.c
      	* app/qmask.c
      	* app/scan_convert.c
      	* app/scan_convert.h
      	* app/toolbox.c
      	* app/undo.[ch]
      	* app/undo_history.c
      	* app/xcf.[ch]
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/pdb_glue.h
      	* app/pdb/selection_cmds.c
      	* app/pdb/tools_cmds.c
      	* app/tools/bezier_select.c
      	* app/tools/bezier_selectP.h
      	* app/tools/blend.c
      	* app/tools/bucket_fill.c
      	* app/tools/by_color_select.c
      	* app/tools/crop.c
      	* app/tools/ellipse_select.c
      	* app/tools/free_select.c
      	* app/tools/fuzzy_select.c
      	* app/tools/fuzzy_select.h
      	* app/tools/iscissors.c
      	* app/tools/rect_select.c
      	* app/tools/text_tool.c
      	* app/tools/transform_core.c
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/tools.pdb: changed accordingly.
      227eea67
    • Michael Natterer's avatar
      app/pdb/Makefile.am new file which contains the stuff that makes PDB code · d3dcfadc
      Michael Natterer authored
      2001-01-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/Makefile.am
      	* app/pdb/pdb_glue.h: new file which contains the stuff that makes
      	PDB code generation easier but is ugly when used in the app
      	(see my comment in the log below).
      
      	Contains:
      	gimp_drawable_[layer|layer_mask|channel]()
      	[channel|gimp_layer]_[set|get]_[name|tattoo]()
      
      	* app/channel.[ch]
      	* app/channels_dialog.c
      	* app/gimpdrawable.h
      	* app/gimpimage.c
      	* app/gimplayermask.h
      	* app/layer.c
      	* app/layer.h
      	* app/toolbox.c
      	* app/undo.c
      	* app/xcf.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/tools/bezier_select.c
      	* app/tools/bucket_fill.c
      	* app/tools/by_color_select.c
      	* app/tools/ellipse_select.c
      	* app/tools/free_select.c
      	* app/tools/fuzzy_select.c
      	* app/tools/iscissors.c
      	* app/tools/rect_select.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      d3dcfadc
    • Sven Neumann's avatar
      AUTHORS app/authors.h app/pdb/channel_cmds.c app/pdb/internal_procs.c · fe53c66c
      Sven Neumann authored
      2001-01-29  Sven Neumann  <sven@gimp.org>
      
      	* AUTHORS
      	* app/authors.h
      	* app/pdb/channel_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/selection_cmds.c
      	* libgimp/gimpchannel_pdb.c
      	* libgimp/gimpchannel_pdb.h
      	* libgimp/gimpselection_pdb.c
      	* libgimp/gimpselection_pdb.h
      	* tools/authorsgen/contributors
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/selection.pdb: applied a patch from Adam Spiers
      	<adam@spiers.net> which adds two new PDB functions: selection_combine
      	and channel_combine_masks.
      fe53c66c
  27. 25 Jan, 2001 3 commits
    • Manish Singh's avatar
      Resurrected channel_set_color · 67b845bc
      Manish Singh authored
      -Yosh
      67b845bc
    • Sven Neumann's avatar
      cleanup · e8c74bb6
      Sven Neumann authored
      2001-01-25  Sven Neumann  <sven@gimp.org>
      
      	* app/libgimp_glue.[ch]: cleanup
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/tools_cmds.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/lib.pl
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/tools.pdb: fixed pdbgen code for color type. Seems
      	to actually work now.
      
      	* TODO.xml: updated
      
      	* plug-ins/Makefile.am: disabled build of gimp-perl until it has
      	catched up with the API changes in libgimp
      e8c74bb6
    • Sven Neumann's avatar
      tools/pdbgen/lib.pl tools/pdbgen/pdb.pl tools/pdbgen/pdb/channel.pdb · 0d533abb
      Sven Neumann authored
      2001-01-25  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/lib.pl
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/tools.pdb: changed these with the help of
      	Yosh. PDB functions take GimpRGB as color type now.
      
      	* app/plug_in.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/procedural_db.[ch]
      	* app/pdb/tools_cmds.c
      	* libgimp/gimp.[ch]
      	* libgimp/gimpchannel.[ch]
      	* libgimp/gimpchannel_pdb.[ch]
      	* libgimp/gimppalette_pdb.[ch]
      	* libgimp/gimpprotocol.[ch]
      	* libgimp/gimptools_pdb.[ch]: incremented Gimp protocol version
      	and changed color type from array of chars to GimpRGB.
      
      	* libgimp/Makefile.am
      	* libgimp/gimppalette.[ch]: removed these files again
      
      	* app/libgimp_glue.[ch]
      	* libgimpwidgets/gimpcolorbutton.c
      	* plug-ins/Lighting/lighting_main.c
      	* plug-ins/Lighting/lighting_preview.c
      	* plug-ins/MapObject/mapobject_image.c
      	* plug-ins/MapObject/mapobject_main.c
      	* plug-ins/MapObject/mapobject_preview.c
      	* plug-ins/common/apply_lens.c
      	* plug-ins/common/blinds.c
      	* plug-ins/common/borderaverage.c
      	* plug-ins/common/checkerboard.c
      	* plug-ins/common/colorify.c
      	* plug-ins/common/colortoalpha.c
      	* plug-ins/common/cubism.c
      	* plug-ins/common/exchange.c
      	* plug-ins/common/film.c
      	* plug-ins/common/gif.c
      	* plug-ins/common/grid.c
      	* plug-ins/common/mapcolor.c
      	* plug-ins/common/mblur.c
      	* plug-ins/common/nova.c
      	* plug-ins/common/papertile.c
      	* plug-ins/common/png.c
      	* plug-ins/common/polar.c
      	* plug-ins/common/psd.c
      	* plug-ins/common/semiflatten.c
      	* plug-ins/common/sinus.c
      	* plug-ins/common/sparkle.c
      	* plug-ins/common/tiff.c
      	* plug-ins/common/vpropagate.c
      	* plug-ins/common/warp.c
      	* plug-ins/common/whirlpinch.c
      	* plug-ins/gap/gap_filter_iterators.c
      	* plug-ins/gap/gap_mov_dialog.c
      	* plug-ins/gdyntext/gdyntext.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gfli/gfli.c
      	* plug-ins/ifscompose/ifscompose.c
      	* plug-ins/maze/handy.c
      	* plug-ins/mosaic/mosaic.c
      	* plug-ins/pagecurl/pagecurl.c
      	* plug-ins/script-fu/script-fu-scripts.c
      	* plug-ins/script-fu/script-fu.c
      	* plug-ins/xjt/xjt.c: changed accordingly. A few plug-ins need
      	to be looked at more closely after this change. I tried to put
      	FIXME comments into those.
      0d533abb
  28. 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
  29. 15 Jan, 2001 1 commit
    • Michael Natterer's avatar
      app/channel.[ch] app/gimpimage.[ch] use GimpRGB for the Channel's, the · d8228390
      Michael Natterer authored
      2001-01-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/channel.[ch]
      	* app/gimpimage.[ch]
      	* app/layer.[ch]: use GimpRGB for the Channel's, the QuickMask's
      	and the LayerMask's color.
      
      	* app/channel_cmds.c
      	* app/channel_ops.c
      	* app/channels_dialog.c
      	* app/qmask.c
      	* app/xcf.c
      	* tools/pdbgen/pdb/channel.pdb: changed accordingly.
      d8228390
  30. 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
  31. 27 Dec, 2000 1 commit
    • Sven Neumann's avatar
      app/channel_cmds.c app/layer_cmds.c libgimp/gimpchannel_pdb.c · 243c5f49
      Sven Neumann authored
      2000-12-28  Sven Neumann  <sven@gimp.org>
      
      	* app/channel_cmds.c
      	* app/layer_cmds.c
      	* libgimp/gimpchannel_pdb.c
      	* libgimp/gimplayer_pdb.c
      	* plug-ins/common/warp.c
      	* plug-ins/gap/gap_exchange_image.c
      	* plug-ins/gap/gap_range_ops.c
      	* plug-ins/perl/examples/bricks
      	* plug-ins/perl/examples/glowing_steel
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb:
      
      	Two of the gimp-perl scripts used to call gimp_layer_delete() after
      	gimp_image_remove_layer(). This will fail since the layer is already
      	scheduled for destruction by removing it from the associated image or
      	by deleting that image. It is thus dangerous and superfluous to export
      	this feature through the PDB. The gimp_layer_delete() is hereby
      	obsolete and does nothing any longer. I have removed the code calling
      	it from all over the place (it was commented out in almost all places).
      
      	The PDB help for gimp_channel_delete() now explicetly tells the user
      	about the proper usage of the procedure.
      243c5f49
  32. 22 Jun, 2000 1 commit