1. 05 Jul, 2007 1 commit
    • Sven Neumann's avatar
      allow the use of constants when specifying limits for a PDB type. · 933be6a8
      Sven Neumann authored
      2007-07-05  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb.pl (arg_parse): allow the use of constants when
      	specifying limits for a PDB type.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb: use GIMP_MAX_IMAGE_SIZE as limit for
      	image and drawable sizes.
      
      	* tools/pdbgen/pdb/selection_tools.pdb: added missing include.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      
      svn path=/trunk/; revision=22870
      933be6a8
  2. 09 Dec, 2006 1 commit
  3. 14 Jun, 2006 1 commit
    • Michael Natterer's avatar
      in help texts, refer to other procedures using_c_syntax(). This way · e4e581cc
      Michael Natterer authored
      2006-06-14  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/[many].pdb: in help texts, refer to other
      	procedures using_c_syntax(). This way gtk-doc can cross-reference
      	them correctly in libgimp, and app.pl will transform them
      	'to-canonical-names' for PDB registering.
      
      	* app/pdb/[many]_cmds.c
      	* libgimp/[many]_pdb.c: regenerated.
      e4e581cc
  4. 29 May, 2006 1 commit
    • Sven Neumann's avatar
      push a channel undo. Fixes bug #343026. · 6072b099
      Sven Neumann authored
      2006-05-29  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/channel.pdb (channel_combine_masks): push a
      	channel undo. Fixes bug #343026.
      
      	* app/pdb/channel_cmds.c: regenerated.
      6072b099
  5. 18 May, 2006 1 commit
    • Sven Neumann's avatar
      tools/pdbgen/app.pl removed code that used to fiddles with the argument · fae8657c
      Sven Neumann authored
      2006-05-18  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/lib.pl: removed code that used to fiddles with
      the
      	argument descriptions.
      
      	* tools/pdbgen/pdb/*.pdb: removed %%desc%% placeholder, added
      some
      	missing argument descriptions.
      
      	* app/pdb/*_cmds.c
      	* libgimp/gimpdrawabletransform_pdb.c
      	* libgimp/gimpfloatingsel_pdb.c
      	* libgimp/gimpgradient_pdb.c
      	* libgimp/gimppainttools_pdb.c: regenerated.
      
      	* app/core/Makefile.am
      	* app/core/gimpparamspecs-desc.[ch] (gimp_param_spec_get_desc):
      	new function that creates a parameter description for the PDB.
      
      	* app/pdb/gimppdb-query.c
      	* app/pdb/procedural_db_cmds.c: use the new function to create
      the
      	descriptions on the fly.
      fae8657c
  6. 27 Apr, 2006 1 commit
    • Sven Neumann's avatar
      added "has_alpha" to GimpParamSpecRGB. Made the GimpParamSpecRGB struct · e779cf0b
      Sven Neumann authored
      2006-04-27  Sven Neumann  <sven@gimp.org>
      
      	* libgimpcolor/gimprgb.[ch]: added "has_alpha" to GimpParamSpecRGB.
      	Made the GimpParamSpecRGB struct public. When validating a color,
      	only look at the alpha channel if has_alpha is set.
      
      	* libgimpconfig/gimpconfig-params.h: added "has_alpha" to
      	GIMP_CONFIG_INSTALL_PROP_RGB macro definition.
      
      	* libgimpconfig/gimpconfig-serialize.c: serialize color values as
      	"(rgb r g b)" if the param-spec indicates that the alpha channel
      	is meaningless.
      
      	* app/config/gimpconfig-dump.c: take "has_alpha" into account when
      	documenting color properties.
      
      	* app/core/gimpcontext.c
      	* app/core/gimpgrid.c
      	* app/display/gimpdisplayoptions.c
      	* app/text/gimptext.c
      	* app/widgets/gimpaction.c
      	* app/widgets/gimpcolorbar.c
      	* libgimpwidgets/gimpcolorarea.c
      	* libgimpwidgets/gimpcolorbutton.c: specify whether color properties
      	have an alpha channel.
      
      	* tools/pdbgen/app.pl: handle "has_alpha" for color paramaters.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/context.pdb
      	* tools/pdbgen/pdb/grid.pdb
      	* tools/pdbgen/pdb/image.pdb: set the "has_alpha" flag where
      	appropriate.
      
      	* app/pdb/gimp-pdb-compat.c (gimp_pdb_compat_param_spec): set
      	"has_alpha" to TRUE for GIMP_PDB_COLOR.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/context_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/grid_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/palettes_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      
      	* app/config/gimpdisplayconfig.c (gimp_display_config_class_init):
      	removed unused code.
      e779cf0b
  7. 24 Mar, 2006 3 commits
    • Michael Natterer's avatar
      tools/pdbgen/pdb/brush.pdb tools/pdbgen/pdb/brushes.pdb · 0de4f680
      Michael Natterer authored
      2006-03-25  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/context.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb
      	* tools/pdbgen/pdb/text_tool.pdb: removed all ':' before and all
      	'()' around %%desc%%.
      
      	* tools/pdbgen/app.pl: add () to int32, float and boolean
      	descriptions automatically. They all look the same now.
      
      	* tools/pdbgen/lib.pl: tweaked regex so %%desc%% doesn't appear in
      	libgimp API docs.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/context_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* libgimp/gimpedit_pdb.c
      	* libgimp/gimpplugin_pdb.c: regenerated.
      0de4f680
    • Michael Natterer's avatar
      tools/pdbgen/pdb/channel.pdb tools/pdbgen/pdb/color.pdb · 30fb7c01
      Michael Natterer authored
      2006-03-24  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/drawable_transform.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: replace '<' by '<=' in all
      	int32 ranges so they specify min and max values.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/drawable_transform_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db_cmds.c: regenerated.
      30fb7c01
    • Michael Natterer's avatar
      tools/pdbgen/pdb/brush.pdb tools/pdbgen/pdb/brushes.pdb · 328345dc
      Michael Natterer authored
      2006-03-24  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/drawable_transform.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb
      	* tools/pdbgen/pdb/undo.pdb
      	* tools/pdbgen/pdb/vectors.pdb: replaced 'True', 'true' and
      	'non-zero' by 'TRUE' where appropriate. Added %%desc%% to enum arg
      	descriptions where missing. Get object names using
      	gimp_object_get_name(). Set 'success' more consistently. Removed
      	{ } from all enum arg descriptions...
      
      	* tools/pdbgen/app.pl (make_arg_recs): ...and add the { }
      	generically here. Removed some code that replaced the ',' by 'or'
      	for enums without { } so all enums are now documented the same.
      
      	* app/pdb/<some>_cmds.c
      	* libgimp/<some>_pdb.c: regenerated.
      328345dc
  8. 23 Mar, 2006 1 commit
    • Michael Natterer's avatar
      removed std_image_arg(), std_antialias_arg() and std_orientation_enum(). · cfa08678
      Michael Natterer authored
      2006-03-23  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/stddefs.pdb: removed std_image_arg(),
      	std_antialias_arg() and std_orientation_enum().
      
      	* tools/pdbgen/pdb/*.pdb: changed accordingly. Did a global
      	s/gimage/image/. Some more cleanup.
      
      	* tools/pdbgen/pdb/grid.pdb
      	* tools/pdbgen/pdb/guides.pdb: removed utility functions.
      
      	* tools/pdbgen/pdb/vectors.pdb: reordered procedures. Removed
      	obsolete procedure.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/convert_cmds.c
      	* app/pdb/display_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/fileops_cmds.c
      	* app/pdb/grid_cmds.c
      	* app/pdb/guides_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/undo_cmds.c
      	* app/pdb/vectors_cmds.c
      	* libgimp/gimpdrawable_pdb.c
      	* libgimp/gimpimage_pdb.[ch]
      	* libgimp/gimpvectors_pdb.[ch]: regenerated.
      cfa08678
  9. 22 Mar, 2006 1 commit
    • Michael Natterer's avatar
      reordered vectors procedures. · de7546f5
      Michael Natterer authored
      2006-03-22  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/image.pdb: reordered vectors procedures.
      
      	* tools/pdbgen/pdb/parasite.pdb: removed all utility functions
      	and added parasite procedures for vectors.
      
      	* tools/pdbgen/pdb/paths.pdb: removed get_visible() and
      	set_visible(), deprecated all procedures that are already
      	implemented in the vectors namespace.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/vectors.pdb: minor cleanup.
      
      	* libgimp/gimp.def: changed accordingly.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/vectors_cmds.c
      	* libgimp/gimpimage_pdb.[ch]
      	* libgimp/gimpparasite_pdb.[ch]
      	* libgimp/gimppaths_pdb.[ch]
      	* libgimp/gimpvectors_pdb.c: regenerated.
      de7546f5
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 05 Jan, 2003 1 commit
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 22 Feb, 2001 1 commit
  34. 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