Gimp/app/pdb
Michael Natterer 370a16fafe don't allow to select anything but the floating selection. Fixes bug
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.
2004-01-18 12:16:44 +00:00
..
.cvsignore
brush_select_cmds.c tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/fonts.pdb 2003-12-08 11:58:45 +00:00
brushes_cmds.c tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/fonts.pdb 2003-12-08 11:58:45 +00:00
channel_cmds.c don't allow to select anything but the floating selection. Fixes bug 2004-01-18 12:16:44 +00:00
color_cmds.c removed GimpChannelLutType enum and export GimpHistogramChannel to the 2004-01-13 17:20:17 +00:00
convert_cmds.c renamed gimp_convert_*() functions to gimp_image_convert_*(). 2003-12-04 14:52:24 +00:00
display_cmds.c tools/pdbgen/pdb/channel.pdb tools/pdbgen/pdb/display.pdb 2003-12-08 12:28:29 +00:00
drawable_cmds.c Enabled skipping enum values for either the PDB or GType registration 2004-01-06 14:02:08 +00:00
edit_cmds.c Fixed bug #78732 (don't paste off screen): 2004-01-15 14:36:43 +00:00
fileops_cmds.c tools/pdbgen/pdb/fileops.pdb Make it build. 2004-01-11 01:23:58 +00:00
floating_sel_cmds.c fix spelling of "quality" in comment 2003-07-03 00:47:26 +00:00
font_select_cmds.c tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/fonts.pdb 2003-12-08 11:58:45 +00:00
fonts_cmds.c tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/fonts.pdb 2003-12-08 11:58:45 +00:00
gimp-pdb.c tools/pdbgen/Makefile.am tools/pdbgen/groups.pl removed the "misc tools" 2004-01-05 14:35:19 +00:00
gimp-pdb.h Made 3rd party scripts work again after all that PDB function renaming: 2003-12-05 13:02:18 +00:00
gimppdb.c tools/pdbgen/Makefile.am tools/pdbgen/groups.pl removed the "misc tools" 2004-01-05 14:35:19 +00:00
gimppdb.h Made 3rd party scripts work again after all that PDB function renaming: 2003-12-05 13:02:18 +00:00
gimppluginprocedure.c Completed the new help infrastructure. Needs some polishing but basically 2003-08-28 18:49:11 +00:00
gimppluginprocedure.h Completed the new help infrastructure. Needs some polishing but basically 2003-08-28 18:49:11 +00:00
gimpprocedure.c tools/pdbgen/Makefile.am tools/pdbgen/groups.pl removed the "misc tools" 2004-01-05 14:35:19 +00:00
gimpprocedure.h Made 3rd party scripts work again after all that PDB function renaming: 2003-12-05 13:02:18 +00:00
gimprc_cmds.c removed redundant "success = TRUE" assignments which simplifies the 2004-01-07 13:13:42 +00:00
gradient_select_cmds.c tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/fonts.pdb 2003-12-08 11:58:45 +00:00
gradients_cmds.c plug-ins/common/psd.c app/vectors/gimpvectors-import.c removed more double 2004-01-07 23:18:38 +00:00
guides_cmds.c fix spelling of "quality" in comment 2003-07-03 00:47:26 +00:00
help_cmds.c Completed the new help infrastructure. Needs some polishing but basically 2003-08-28 18:49:11 +00:00
image_cmds.c don't allow to select anything but the floating selection. Fixes bug 2004-01-18 12:16:44 +00:00
internal_procs.c tools/pdbgen/Makefile.am tools/pdbgen/groups.pl removed the "misc tools" 2004-01-05 14:35:19 +00:00
internal_procs.h fix spelling of "quality" in comment 2003-07-03 00:47:26 +00:00
layer_cmds.c tools/pdbgen/pdb/image.pdb (image_add_layer_mask) don't unref the mask 2003-12-16 12:39:47 +00:00
Makefile.am app/pdb/Makefile.am forgot to remove this file. 2004-01-05 17:22:26 +00:00
makefile.msc still unacceptable patched to compile without FT2, see bug #113681 2003-11-16 21:20:14 +00:00
message_cmds.c tools/pdbgen/pdb/brush_select.pdb tools/pdbgen/pdb/brushes.pdb 2003-08-18 18:09:26 +00:00
misc_cmds.c removed the hack that used to call gimp_exit() when the batch command 2003-11-30 16:05:56 +00:00
paint_tools_cmds.c added "gboolean reverse" to gimp_gradient_get_color_at() so all gradients 2003-07-22 14:24:11 +00:00
palette_cmds.c fix spelling of "quality" in comment 2003-07-03 00:47:26 +00:00
palette_select_cmds.c tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/fonts.pdb 2003-12-08 11:58:45 +00:00
palettes_cmds.c tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/fonts.pdb 2003-12-08 11:58:45 +00:00
parasite_cmds.c Fixed bug #79897 for all parasite procedures: 2003-08-17 19:58:59 +00:00
paths_cmds.c added gimp_xml_parser_parse_buffer(). 2003-12-21 00:23:36 +00:00
pattern_select_cmds.c tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/fonts.pdb 2003-12-08 11:58:45 +00:00
patterns_cmds.c tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/fonts.pdb 2003-12-08 11:58:45 +00:00
pdb-types.h added enum GimpPDBCompatMode which can be one of { OFF, ON, WARN }. 2003-12-05 17:08:35 +00:00
pdb_glue.h Some PDB cleanup: 2002-09-10 20:23:00 +00:00
plug_in_cmds.c renamed gimp_temp_PDB_name() to gimp_procedurab_db_temp_name() 2003-12-19 00:00:49 +00:00
procedural_db.c tools/pdbgen/Makefile.am tools/pdbgen/groups.pl removed the "misc tools" 2004-01-05 14:35:19 +00:00
procedural_db.h Made 3rd party scripts work again after all that PDB function renaming: 2003-12-05 13:02:18 +00:00
procedural_db_cmds.c renamed gimp_temp_PDB_name() to gimp_procedurab_db_temp_name() 2003-12-19 00:00:49 +00:00
README
selection_cmds.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
selection_tools_cmds.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
text_tool_cmds.c tools/pdbgen/pdb/brush_select.pdb tools/pdbgen/pdb/brushes.pdb 2003-08-18 18:09:26 +00:00
transform_tools_cmds.c removed... 2003-09-15 17:41:18 +00:00
undo_cmds.c removed gimp_image_undo_*() functions... 2003-12-05 14:18:47 +00:00
unit_cmds.c tools/pdbgen/pdb/brush_select.pdb tools/pdbgen/pdb/brushes.pdb 2003-08-18 18:09:26 +00:00

This directory contains the PDB-wrappers for various internal
Gimp functions.

THESE FILES ARE AUTOGENERATED AND CHANGES HERE ARE USELESS!

If you need to change the code please have a look in ../../tools/pdbgen/pdb.