gimp/app/dialogs
Michael Natterer 1217dc8d07 Allow to initialize a new layer mask with any of the image's channels.
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.
2006-05-14 16:24:31 +00:00
..
.cvsignore configure.in added new directory app/dialogs and link libappdialogs.c into 2004-09-13 15:15:23 +00:00
about-dialog.c app/pdb/Makefile.am app/pdb/pdb-types.h new object GimpPDB which keeps all 2006-04-26 09:13:47 +00:00
about-dialog.h generate a NULL terminated array. 2005-08-19 16:32:01 +00:00
authors.h generate const arrays of const strings. 2006-04-06 12:59:44 +00:00
authors.xsl generate const arrays of const strings. 2006-04-06 12:59:44 +00:00
channel-options-dialog.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
channel-options-dialog.h app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
convert-dialog.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
convert-dialog.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
desaturate-dialog.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
desaturate-dialog.h Applied a patch (with minor modifications) from Karine Delvare that makes 2005-04-16 14:51:49 +00:00
dialogs-constructors.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
dialogs-constructors.h app/actions/dockable-actions.c app/actions/dockable-commands.[ch] 2006-01-17 10:08:50 +00:00
dialogs-types.h app/dialogs/Makefile.am app/dialogs/dialogs-types.h app/dialogs/dialogs.c 2006-03-31 13:36:34 +00:00
dialogs.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
dialogs.h fixed a typo in the double-inclusion guard. 2004-10-09 21:47:26 +00:00
file-open-dialog.c set the alternative button order here... 2006-05-08 15:43:21 +00:00
file-open-dialog.h removed function file_open_dialog_show() and changed internal function 2004-09-13 16:01:52 +00:00
file-open-location-dialog.c app/plug-in/Makefile.am app/plug-in/plug-in-types.h new object which keeps 2006-04-28 22:26:51 +00:00
file-open-location-dialog.h changed file_open_location_dialog_show() to 2004-09-09 09:47:33 +00:00
file-save-dialog.c set the alternative button order here... 2006-05-08 15:43:21 +00:00
file-save-dialog.h app/dialogs/Makefile.am removed these files. 2004-09-13 16:37:01 +00:00
grid-dialog.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
grid-dialog.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
image-merge-layers-dialog.c allow to discard invisible layers as suggested in bug #337557. 2006-04-07 08:01:02 +00:00
image-merge-layers-dialog.h allow to discard invisible layers as suggested in bug #337557. 2006-04-07 08:01:02 +00:00
image-new-dialog.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
image-new-dialog.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
image-properties-dialog.c app/actions/image-actions.c app/actions/view-actions.c use new stock icons 2005-12-30 01:45:40 +00:00
image-properties-dialog.h More unfinished replacement for the info window: 2005-04-04 22:34:29 +00:00
image-scale-dialog.c did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
image-scale-dialog.h did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
keyboard-shortcuts-dialog.c app/dialogs/dialogs-constructors.c include a check button for the 2005-10-05 23:01:45 +00:00
keyboard-shortcuts-dialog.h app/dialogs/dialogs-constructors.c include a check button for the 2005-10-05 23:01:45 +00:00
layer-add-mask-dialog.c Allow to initialize a new layer mask with any of the image's channels. 2006-05-14 16:24:31 +00:00
layer-add-mask-dialog.h Allow to initialize a new layer mask with any of the image's channels. 2006-05-14 16:24:31 +00:00
layer-options-dialog.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
layer-options-dialog.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
Makefile.am app/dialogs/Makefile.am app/dialogs/dialogs-types.h app/dialogs/dialogs.c 2006-03-31 13:36:34 +00:00
makefile.msc updated dont include "config/gimpbaseconfig.c", it gives an redefinition 2006-05-13 17:05:15 +00:00
module-dialog.c app/dialogs/module-dialog.c use GimpDialog instead of a GimpViewableDialog 2006-04-23 02:15:16 +00:00
module-dialog.h configure.in added new directory app/dialogs and link libappdialogs.c into 2004-09-13 15:15:23 +00:00
offset-dialog.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
offset-dialog.h
palette-import-dialog.c app/dialogs/module-dialog.c use GimpDialog instead of a GimpViewableDialog 2006-04-23 02:15:16 +00:00
palette-import-dialog.h
preferences-dialog.c Applied modified patch from Michael J. Hammel which allows to remove all 2006-05-11 12:29:57 +00:00
preferences-dialog.h
print-size-dialog.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
print-size-dialog.h app/dialogs/Makefile.am new files for the Print Size dialog that is still 2004-11-13 22:27:39 +00:00
quit-dialog.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
quit-dialog.h Applied (slightly modified) patch from Sylvain Foret which adds "Close 2005-09-24 19:30:08 +00:00
resize-dialog.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
resize-dialog.h app/actions/image-commands.c app/actions/layers-commands.c 2005-08-24 17:22:07 +00:00
resolution-calibrate-dialog.c app/dialogs/module-dialog.c use GimpDialog instead of a GimpViewableDialog 2006-04-23 02:15:16 +00:00
resolution-calibrate-dialog.h
scale-dialog.c added a GtkSizeGroup member and put all labels into the group. 2005-11-02 09:27:15 +00:00
scale-dialog.h added a resolution label similar to one in the template editor. Prepared 2004-10-26 23:31:34 +00:00
stroke-dialog.c use gtk_object_sink() to destroy a floating widget. 2005-09-06 16:00:36 +00:00
stroke-dialog.h added labels ("_Stroke") to the SLEECTION_STROKE and PATH_STROKE stock 2004-10-23 10:28:56 +00:00
template-options-dialog.c app/actions/tool-options-commands.c app/core/gimp.c 2006-04-07 10:51:22 +00:00
template-options-dialog.h app/dialogs/Makefile.am the new/edit template dialog. 2004-10-22 18:13:46 +00:00
tips-dialog.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
tips-dialog.h
tips-parser.c new file holding the opaque typedefs for libgimpconfig. Includes 2005-01-25 20:30:20 +00:00
tips-parser.h
user-install-dialog.c code cleanup, rephrased radio button labels. 2006-05-02 14:12:30 +00:00
user-install-dialog.h app/core/Makefile.am new files based on code that used to live in 2006-04-29 00:24:48 +00:00
vectors-export-dialog.c Use the canonical form for signal names. 2005-05-27 16:51:39 +00:00
vectors-export-dialog.h app/dialogs/Makefile.am app/dialogs/vectors-export-dialog.[ch] new files. 2004-10-23 22:54:41 +00:00
vectors-import-dialog.c app/dialogs/vectors-import-dialog.c (vectors_import_dialog_new) fixed 2006-03-03 22:46:01 +00:00
vectors-import-dialog.h app/dialogs/Makefile.am app/dialogs/vectors-export-dialog.[ch] new files. 2004-10-23 22:54:41 +00:00
vectors-options-dialog.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
vectors-options-dialog.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00