Updated all scripts to use script-fu-menu-register and pass just the menu

2004-11-22  Kevin Cozens  <kcozens@cvs.gimp.org>

	* scripts/*.sct: Updated all scripts to use script-fu-menu-register
	and pass just the menu label in script-fu-register.

	Updates based on changes made by Michael Natterer to Script-Fu.

	* tiny-fu/tiny-fu-scripts.c: Pass untranslated menu_paths to the
	core, not translated ones. Don't store the scripts directly in the
	"script_list" tree but use a list of scripts per key because there
	can be identical keys for different scripts now. Renamed variable
	"script_list" to "script_tree" because it's a GTree. Sort the SFMenu
	structs by their menu_paths *and* the procedure's menu_labels. Fixes
	menu item sorting after "Refresh".
This commit is contained in:
Kevin Cozens 2004-11-23 04:01:41 +00:00 committed by Kevin Cozens
parent e995d8d6e7
commit d4120fe1ab
3 changed files with 18 additions and 9 deletions

View file

@ -272,7 +272,7 @@
)
(tiny-fu-register "tiny-fu-contactsheet"
_"<Toolbox>/Xtns/Tiny-Fu/Utils/Contact Sheet"
_"Contact Sheet"
"Create a series of images containing thumbnail sized versions
of all of the images contained in a specified directory."
"Kevin Cozens <kcozens@interlog.com>"
@ -280,12 +280,15 @@
"July 19, 2004"
""
SF-DIRNAME _"Directory" "/tmp/test"
SF-OPTION _"Sheet Size" '("640 x 480"
SF-OPTION _"Sheet size" '("640 x 480"
"800 x 600"
"1024 x 768"
"1280 x 1024")
SF-FONT _"Title Font" "Helvetica Bold Italic"
SF-FONT _"Legend Font" "Helvetica Bold"
SF-COLOR _"Text Color" '(255 255 255)
SF-FONT _"Title font" "Helvetica Bold Italic"
SF-FONT _"Legend font" "Helvetica Bold"
SF-COLOR _"Text color" '(255 255 255)
SF-COLOR _"Background color" '(0 0 0)
)
(tiny-fu-menu-register "tiny-fu-contactsheet"
_"<Toolbox>/Xtns/Tiny-Fu/Utils")

View file

@ -54,7 +54,7 @@
)
(tiny-fu-register "tiny-fu-set-cmap"
_"<Image>/Tiny-Fu/Utils/Set Colormap"
_"Set Colormap"
"Change the colourmap of an image to the colours in a specified palette."
"Kevin Cozens <kcozens@interlog.com>"
"Kevin Cozens"
@ -64,3 +64,6 @@
SF-DRAWABLE "Drawable" 0
SF-PALETTE _"Palette" "Default"
)
(tiny-fu-menu-register "tiny-fu-set-cmap"
_"<Image>/Tiny-Fu/Utils")

View file

@ -51,14 +51,17 @@
)
(tiny-fu-register "tiny-fu-helloworld"
"<Toolbox>/Xtns/Tiny-Fu/Test/Hello World"
_"Hello World"
"Creates an image with a user specified text string."
"Kevin Cozens <kcozens@interlog.com>"
"Kevin Cozens"
"February 29, 2004"
""
SF-STRING _"Text String" _"Hello, World!"
SF-STRING _"Text string" "Hello, World!"
SF-FONT _"Font" "Sans"
SF-ADJUSTMENT _"Font Size (pixels)" '(100 2 1000 1 10 0 1)
SF-ADJUSTMENT _"Font size (pixels)" '(100 2 1000 1 10 0 1)
SF-COLOR _"Color" '(0 0 0)
)
(tiny-fu-menu-register "tiny-fu-helloworld"
_"<Toolbox>/Xtns/Tiny-Fu/Test")