
2004-11-18 Michael Natterer <mitch@gimp.org> Script-Fu string cleanup/simplification: apply the same fix for menu path translation that was done for plug-ins a while ago. * plug-ins/script-fu/script-fu.c (script_fu_auxillary_init): use gimp_plugin_menu_register() on the "Refresh" temp_proc. * plug-ins/script-fu/scripts/*.scm: ported all scripts to use script-fu-menu-register and pass just the menu label in script-fu-register. Cleaned up all register calls to share a somewhat similar formatting.
28 lines
788 B
Scheme
28 lines
788 B
Scheme
;; -*-scheme-*-
|
|
|
|
(define (script-fu-guides-remove image
|
|
drawable)
|
|
(let* ((guide-id 0))
|
|
(gimp-image-undo-group-start image)
|
|
|
|
(set! guide-id (car (gimp-image-find-next-guide image 0)))
|
|
(while (> guide-id 0)
|
|
(gimp-image-delete-guide image guide-id)
|
|
(set! guide-id (car (gimp-image-find-next-guide image 0))))
|
|
|
|
(gimp-image-undo-group-end image)
|
|
(gimp-displays-flush)))
|
|
|
|
(script-fu-register "script-fu-guides-remove"
|
|
_"_Remove all Guides"
|
|
"Removes all horizontal and vertical guides."
|
|
"Alan Horkan"
|
|
"Alan Horkan, 2004. Public Domain."
|
|
"April 2004"
|
|
""
|
|
SF-IMAGE "Image" 0
|
|
SF-DRAWABLE "Drawable" 0)
|
|
|
|
(script-fu-menu-register "script-fu-guides-remove"
|
|
"<Image>/Image/Guides")
|