1. 15 May, 2006 2 commits
  2. 14 May, 2006 2 commits
    • Michael Natterer's avatar
      Allow to initialize a new layer mask with any of the image's channels. · ab274e59
      Michael Natterer authored
      2006-05-14  Michael Natterer  <mitch@gimp.org>
      
      	Allow to initialize a new layer mask with any of the image's
      	channels. Fixes bug #310207.
      
      	* libgimpbase/gimpbaseenums.h (enum GimpAddMaskType): added
      	value GIMP_ADD_CHANNEL_MASK.
      
      	* libgimpbase/gimpbaseenums.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/core/gimplayer.[ch] (gimp_layer_create_mask): added
      	GimpChannel* parameter. Hacked the GIMP_ADD_SELECTION_MASK code a
      	bit so it can handle GIMP_ADD_CHANNEL_MASK too. Cleaned up the
      	function a bit.
      
      	* app/dialogs/layer-add-mask-dialog.[ch]: added a menu of the
      	image's channels.
      
      	* app/actions/layers-commands.c (layers_add_mask_response): pass
      	the channel selected in the menu to gimp_layer_create_mask().
      
      	* tools/pdbgen/pdb/layer.pdb (layer_create_mask): use the image's
      	active channel when GIMP_ADD_CHANNEL_MASK is passed. Fail if there
      	is no active channel.
      
      	* app/pdb/layer_cmds.c: regenerated.
      ab274e59
    • Michael Natterer's avatar
      Allow to initialize a new layer mask with any of the image's channels. · 1217dc8d
      Michael Natterer authored
      2006-05-14  Michael Natterer  <mitch@gimp.org>
      
      	Allow to initialize a new layer mask with any of the image's
      	channels. Fixes bug #310207.
      
      	* libgimpbase/gimpbaseenums.h (enum GimpAddMaskType): added
      	value GIMP_ADD_CHANNEL_MASK.
      
      	* libgimpbase/gimpbaseenums.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/core/gimplayer.[ch] (gimp_layer_create_mask): added
      	GimpChannel* parameter. Hacked the GIMP_ADD_SELECTION_MASK code a
      	bit so it can handle GIMP_ADD_CHANNEL_MASK too. Cleaned up the
      	function a bit.
      
      	* app/dialogs/layer-add-mask-dialog.[ch]: added a menu of the
      	image's channels.
      
      	* app/actions/layers-commands.c (layers_add_mask_response): pass
      	the channel selected in the menu to gimp_layer_create_mask().
      
      	* tools/pdbgen/pdb/layer.pdb (layer_create_mask): use the image's
      	active channel when GIMP_ADD_CHANNEL_MASK is passed. Fail if there
      	is no active channel.
      
      	* app/pdb/layer_cmds.c: regenerated.
      1217dc8d
  3. 13 May, 2006 4 commits
    • Michael Natterer's avatar
      find a suitable display and fully set up the tool (just as the vector tool · 0ee7569d
      Michael Natterer authored
      2006-05-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.c (gimp_text_tool_set_layer): find a
      	suitable display and fully set up the tool (just as the vector
      	tool does). Fixes bug #322182.
      
      	(gimp_text_tool_button_press): chain up to activate the tool.
      
      	(gimp_text_tool_set_drawable): removed redundant check.
      0ee7569d
    • Michael Natterer's avatar
      add an alpha channel if the layer has none and interpolation is requested. · 8ffd5bb0
      Michael Natterer authored
      2006-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.c (gimp_layer_transform): add an alpha
      	channel if the layer has none and interpolation is requested.
      	Works around bug #315048, the real fix would be to implement
      	interpolation on layers without alpha.
      8ffd5bb0
    • Michael Natterer's avatar
      Added some new text layer actions and menu items (bug #316299). · 875af9c5
      Michael Natterer authored
      2006-05-13  Michael Natterer  <mitch@gimp.org>
      
      	Added some new text layer actions and menu items (bug #316299).
      
      	* app/actions/layers-actions.c: added actions for "Text to Path",
      	"Text along Path" and "Text to Selection" (use the alpha to
      	selection callback for text to selection)
      
      	* app/actions/layers-commands.[ch]: added
      	layers_text_to_vectors_cmd_callback() and
      	layers_text_along_vectors_cmd_callback().
      
      	* app/widgets/gimphelp-ids.h: help IDs for the new actions.
      
      	* menus/image-menu.xml.in
      	* menus/layers-menu.xml: added them to the layers menus in the
      	image window and the layers dialog.
      875af9c5
    • Hans Breuer's avatar
      updated dont include "config/gimpbaseconfig.c", it gives an redefinition · 429d71e5
      Hans Breuer authored
      2006-05-13  Hans Breuer  <hans@breuer.org>
      
      	* **/makefile.msc app/gimpcore.def : updated
      	* app/core/gimp-util.c : dont include "config/gimpbaseconfig.c", it
      	gives an redefinition error with msvc. Instead include
      	config/gimpbaseconfig.h and libgimpconfig/gimpconfig-path.h
      
      	* plug-ins/common/psd_save.c : fix c99isms (declarations only at the
      	start of a block)
      429d71e5
  4. 12 May, 2006 4 commits
    • Michael Natterer's avatar
      save 20 bytes per instance by using single bits instead of 6 gbooleans. · 5e24dcf2
      Michael Natterer authored
      2006-05-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpview.h: save 20 bytes per instance by using
      	single bits instead of 6 gbooleans.
      
      	* app/widgets/gimpview.c: some code cleanup.
      
      	* app/widgets/gimpviewrendererbrush.c: don't #include "gimpbrush.h".
      
      	* app/widgets/gimpviewrendererbuffer.c: #include "gimpviewable.h"
      	instead of "gimpbuffer.h".
      
      	* app/widgets/gimpviewrenderergradient.c
      	* app/widgets/gimpviewrendererimagefile.c
      	* app/widgets/gimpviewrendererimagefile.h: micro cosmetics.
      5e24dcf2
    • Michael Natterer's avatar
      save 20 bytes per instance by using single bits instead of 6 gbooleans. · 401b865e
      Michael Natterer authored
      2006-05-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpview.h: save 20 bytes per instance by using
      	single bits instead of 6 gbooleans.
      
      	* app/widgets/gimpview.c: some code cleanup.
      
      	* app/widgets/gimpviewrendererbrush.c: don't #include "gimpbrush.h".
      
      	* app/widgets/gimpviewrendererbuffer.c: don't #include "gimpbuffer.h".
      
      	* app/widgets/gimpviewrenderergradient.c
      	* app/widgets/gimpviewrendererimagefile.c
      	* app/widgets/gimpviewrendererimagefile.h: micro cosmetics.
      401b865e
    • Michael Natterer's avatar
      fix warning about unused return value of g_list_append(). · 67f9321b
      Michael Natterer authored
      2006-05-12  Michael Natterer  <mitch@gimp.org>
      
      	* plug-ins/imagemap/imap_csim.y: fix warning about unused return
      	value of g_list_append().
      
      	* plug-ins/imagemap/imap_csim_parse.[ch]: regenerated (using
      	bison 2.1 instead of 2.0, lots of things changed, please test).
      67f9321b
    • Michael Natterer's avatar
      check for gmodule-no-export-2.0, not for gmodule-2.0. Also removed · f94ec804
      Michael Natterer authored
      2006-05-12  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: check for gmodule-no-export-2.0, not for
      	gmodule-2.0. Also removed gobject-2.0 from the gmodule check, i
      	have no idea why it was there.
      
      	* libgimpmodule/Makefile.am: s/GMODULE/GMODULE_NO_EXPORT/ because
      	we only want to import modules here, not export our own symbols.
      
      	(note that this change is actually useless, because libgimpmodule
      	 exports its symbols anyway, but it's more correct this way).
      f94ec804
  5. 11 May, 2006 7 commits
  6. 10 May, 2006 3 commits
  7. 09 May, 2006 3 commits
    • Simon Budig's avatar
      New icon to reflect the corrected triangular color selector. · a469d08e
      Simon Budig authored
      2006-05-09  Simon Budig  <simon@gimp.org>
      
      	* themes/Default/images/stock-color-triangle-16.png: New icon
      	to reflect the corrected triangular color selector.
      a469d08e
    • Michael Natterer's avatar
      app/core/gimpimage.c (gimp_image_new) app/core/gimpitem.c · 1f61feee
      Michael Natterer authored
      2006-05-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.c (gimp_image_new)
      	* app/core/gimpitem.c (gimp_item_configure)
      	* app/display/gimpdisplay.c (gimp_display_new): make sure IDs wrap
      	correctly at G_MAXINT and skip IDs which are currently in use.
      
      	It makes no sense to treat gimp->image_table and gimp->images
      	differently, since they keep the same set of images. And it makes
      	no sense to treat gimp->displays and gimp->images differently.
      	Moved all container adding into the objects' constructors:
      
      	* app/core/gimp.c (gimp_create_image): don't add the new image
      	to gimp->images here...
      
      	* app/core/gimpimage.c (gimp_image_constructor): ...but here.
      
      	* app/core/gimp-gui.c (gimp_create_display): don't add the new
      	display to gimp->displays here...
      
      	* app/display/gimpdisplay.c (gimp_display_new): ...but here.
      1f61feee
    • Michael Natterer's avatar
      don't #include "pdb/gimppluginprocedure.h". · b436bf2e
      Michael Natterer authored
      2006-05-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/gui-vtable.c: don't #include "pdb/gimppluginprocedure.h".
      b436bf2e
  8. 08 May, 2006 8 commits
  9. 07 May, 2006 1 commit
    • Simon Budig's avatar
      Make the hue angle behave mathematically correct. Fixes bug #141922 · e6c52afb
      Simon Budig authored
      2006-05-07  Simon Budig  <simon@gimp.org>
      
      	* modules/colorsel_triangle.c: Make the hue angle behave
      	mathematically correct. Fixes bug #141922
      
      	* plug-ins/script-fu/scripts/circuit.scm: Fix multi line description.
      
      	* docs/Wilber.svg: Add xmlns attribute to the svg element, so
      	firefox renders it when reading it from disk.
      e6c52afb
  10. 06 May, 2006 6 commits
    • Michael Natterer's avatar
      return early if the shell is already at the requested zoom level. · ab1153cb
      Michael Natterer authored
      2006-05-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-scale.c (gimp_display_shell_scale):
      	return early if the shell is already at the requested zoom level.
      	(paranoia addition for bug #165032, which was already fixed by the
      	fix for bug #164281):
      ab1153cb
    • Michael Natterer's avatar
      hide the button bar, which is useless for the brush editor. Fixes user · bc06f94e
      Michael Natterer authored
      2006-05-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpbrusheditor.c: hide the button bar, which is
      	useless for the brush editor. Fixes user confusion (bug #306704).
      bc06f94e
    • Michael Natterer's avatar
      connect to the context's "brush-changed" signal and update the brush · c2061e29
      Michael Natterer authored
      2006-05-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimppainttool.c: connect to the context's
      	"brush-changed" signal and update the brush core's brush
      	accordingly. Fixes inconsistent brush preview when not moving
      	the mouse while the brush changes (bug #323404).
      c2061e29
    • Michael Natterer's avatar
      added "gboolean none_ok" members to GimpParamSpecImageID, · 549df3a0
      Michael Natterer authored
      2006-05-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: added "gboolean none_ok" members
      	to GimpParamSpecImageID, GimpParamSpecItemID and
      	GimpParamSpecDisplayID.  If none_ok is set, allow '0' and '-1' as
      	valid IDs. Added "none_ok" parameter to all ID param spec
      	constructors.
      
      	* app/xcf/xcf.c: require real image IDs, but allow images without
      	active drawable.
      
      	* app/pdb/gimp-pdb-compat.c: set none_ok to TRUE in all compat
      	param specs, so only IDs that are really random garbage don't pass
      	validation. Fixes validation errors with 0 and -1 IDs.
      
      	* tools/pdbgen/app.pl: set none_ok to FALSE by default. Added
      	support for $arg->{none_ok} to control it.
      
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/progress.pdb
      	* tools/pdbgen/pdb/text_tool.pdb: use none_ok instead of
      	no_success (which disables validation entirely).
      
      	* app/pdb/[many]_cmds.c: regenerated.
      549df3a0
    • Michael Natterer's avatar
      added "gboolean none_ok" members to GimpParamSpecImageID, · 66a66b32
      Michael Natterer authored
      2006-05-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: added "gboolean none_ok" members
      	to GimpParamSpecImageID, GimpParamSpecItemID and
      	GimpParamSpecDisplayID.  If none_ok is set, allow '0' and '-1' as
      	valid IDs. Added "none_ok" parameter to all ID param spec
      	constructors.
      
      	* app/pdb/gimp-pdb-compat.c: set none_ok to TRUE in all compat
      	param specs, so only IDs that are really random garbage don't pass
      	validation. Fixes validation errors with 0 and -1 IDs.
      
      	* tools/pdbgen/app.pl: set none_ok to FALSE by default. Added
      	support for $arg->{none_ok} to control it.
      
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/progress.pdb
      	* tools/pdbgen/pdb/text_tool.pdb: use none_ok instead of
      	no_success (which disables validation entirely).
      
      	* app/pdb/[many]_cmds.c: regenerated.
      66a66b32
    • Manish Singh's avatar
      Revert back to unsigned chars for the buffer, and only cast to gchar if we · 70eeb8ce
      Manish Singh authored
      2006-05-05  Manish Singh  <yosh@gimp.org>
      
              * plug-ins/common/gifload.c (DoExtension): Revert back to unsigned
              chars for the buffer, and only cast to gchar if we know we're dealing
              with a comment. Fixes bug #339865.
      70eeb8ce