gimp/plug-ins/common
Michael Natterer 88dedcc424 Allow plug-ins to register in <Layers>, <Channels>, <Vectors> and
2006-06-16  Michael Natterer  <mitch@gimp.org>

	Allow plug-ins to register in <Layers>, <Channels>, <Vectors> and
	<ColormapEditor>:

	* app/pdb/gimppluginprocedure.c
	(gimp_plug_in_procedure_add_menu_path): added the argument type
	checks for the new locations. Factored out duplicated code.

	* app/menus/menus.c (menus_init): add the "plug-in" action
	group to the resp. UI managers.

	* app/menus/plug-in-menus.c (plug_in_menus_menu_path_added):
	support them here too.

	* app/widgets/gimpimageeditor.[ch]
	* app/widgets/gimpitemtreeview.[ch]: added get_image() functions.

	* app/actions/plug-in-commands.c: added new utility functions
	which collect plug-in arguments from GimpImageEditor and
	GimpItemTreeView widgets.

	* menus/channels-menu.xml
	* menus/colormap-editor-menu.xml
	* menus/layers-menu.xml
	* menus/vectors-menu.xml: added separators.

	* menus/image-menu.xml.in: added a "Colormap" placeholder in
	Colors/Map

	* plug-ins/common/colormap-remap.c (query): register a menu
	entry in <ColormapEditor> and moved the existing one to the
	"Colormap" placeholder. Also register an icon to make this
	menu item clearly distinct from the others in that menu.

	Unrelated:

	* plug-ins/common/colormap-remap.c (run): cleaned up quite a
	bit. Fixed last-vals code and simplified map handling.

	(remap_swap): removed, folded into run().

	(remap_dialog): use the passed map to initialize the dialog so it
	starts with the last-vals. Tweaked layout to have 16 columns
	and simplified cell renderer creation.
2006-06-16 17:02:14 +00:00
..
.cvsignore plug-ins/common/Makefile.am plug-ins/common/plugin-defs.pl 2006-06-15 22:07:39 +00:00
aa.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
AlienMap2.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
align_layers.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
animationplay.c do not use gtk_menu_attach_to_widget() but gtk_menu_set_screen(). Menus 2006-06-08 12:51:16 +00:00
animoptimize.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
apply_lens.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
autocrop.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
autostretch_hsv.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
blinds.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
blur.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
borderaverage.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
bumpmap.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
c_astretch.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
cartoon.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
ccanalyze.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
CEL.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
channel_mixer.c gimp_drawable_mask_intersect() returns width and height, not x2, y2 2006-06-12 13:04:35 +00:00
checkerboard.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
CML_explorer.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
color_enhance.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
colorify.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
colormap-remap.c Allow plug-ins to register in <Layers>, <Channels>, <Vectors> and 2006-06-16 17:02:14 +00:00
colortoalpha.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
compose.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
compressor.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
convmatrix.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
csource.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
cubism.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
curve_bend.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
decompose.c applied a modified patch from Clarence Risher that adds support for a 2006-06-06 08:39:02 +00:00
deinterlace.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
depthmerge.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
despeckle.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
destripe.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
dicom.c Bill Skaggs <weskaggs@primate.ucdavis.edu> 2006-05-26 16:19:24 +00:00
diffraction.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
displace.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
dog.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
edge.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
emboss.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
engrave.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
exchange.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
film.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
flarefx.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
fp.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
fractaltrace.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
gauss.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
gbr.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
gee.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
gee_zoom.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
gif.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
gifload.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
gih.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
glasstile.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
glob.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
gnomeprint.c Bill Skaggs <weskaggs@primate.ucdavis.edu> 2006-06-12 23:45:43 +00:00
gqbist.c app/errors.c app/main.c app/file/gimprecentlist.c libgimpbase/gimpsignal.c 2006-06-16 16:21:35 +00:00
gradmap.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
grid.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
gtm.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
guillotine.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
header.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
hot.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
illusion.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
iwarp.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
jigsaw.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
laplace.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
lic.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
mail.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
Makefile.am plug-ins/common/Makefile.am plug-ins/common/plugin-defs.pl 2006-06-15 22:07:39 +00:00
mapcolor.c marked blurb for translation. 2006-06-16 08:51:48 +00:00
max_rgb.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
mblur.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
mkgen.pl always look at $plugins{$_}->{cflags}. 2006-06-02 13:33:10 +00:00
mng.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
mosaic.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
neon.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
newsprint.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
nlfilt.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
noisify.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
normalize.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
nova.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
oilify.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
papertile.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
pat.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
pcx.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
photocopy.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
pix.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
pixelize.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
plasma.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
plugin-browser.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
plugin-defs.pl plug-ins/common/Makefile.am plug-ins/common/plugin-defs.pl 2006-06-15 22:07:39 +00:00
png.c Bill Skaggs <weskaggs@primate.ucdavis.edu> 2006-06-08 22:24:43 +00:00
pnm.c applied patch from Martin Collins which adds PBM (bitmap) support. Fixes 2006-05-28 21:29:59 +00:00
polar.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
poppler.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
postscript.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
procedure-browser.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
psd.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
psd_save.c improved error message. 2006-06-16 11:35:24 +00:00
psp.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
randomize.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
raw.c use a GtkFileChooserButton instead of a GimpFileEntry widget. 2006-05-24 14:53:40 +00:00
redeye.c cleanup, use gimp_drawable_mask_intersect(), reduced number of progress 2006-06-12 13:24:35 +00:00
retinex.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
ripple.c Fixes to address -ansi -pedantic compilation (bug #342390). Thanks goes to 2006-05-20 07:18:25 +00:00
rotate.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
sample_colorize.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
scatter_hsv.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
screenshot.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
sel_gauss.c fix the EXPAND macro to make picky compilers happy. Fixes bug #344326, 2006-06-08 21:07:04 +00:00
semiflatten.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
sharpen.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
shift.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
sinus.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
smooth_palette.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
snoise.c cleanup, use gimp_drawable_mask_intersect(), reduced number of progress 2006-06-12 13:17:21 +00:00
sobel.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
softglow.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
sparkle.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
spheredesigner.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
spread.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
struc.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
sunras.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
svg.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
tga.c Bill Skaggs <weskaggs@primate.ucdavis.edu> 2006-05-19 16:10:07 +00:00
threshold_alpha.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
tiff.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
tile.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
tileit.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
tiler.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
uniteditor.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
unsharp.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
video.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
vinvert.c another patch from Mukund that cleans up i18n initialization. 2006-06-14 16:03:09 +00:00
vpropagate.c Bill Skaggs <weskaggs@primate.ucdavis.edu> 2006-05-19 16:31:48 +00:00
warp.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
waves.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
webbrowser.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
whirlpinch.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
wind.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
winprint.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
wmf.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
xbm.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
xpm.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
xwd.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00
zealouscrop.c declared GimpPlugInInfo and GimpParamDef arrays as const. 2006-05-16 12:26:20 +00:00