Rod wrote:
... and also a list of all the deprecated PDB calls.
Run the following code in your Script-fu console:
(let ((all-procs (cadr (gimp-procedural-db-query ".*" ".*" ".*" ".*" ".*" ".*" ".*" ))))
(map (lambda (proc-name)
(let ((blurb (car (gimp-procedural-db-proc-info proc-name))))
(when (and (>= (string-length blurb) 28)
(string=? (substring blurb 0 28) "This procedure is deprecated") )
(display proc-name)
(newline) )))
all-procs )
#t )
For example, for 2.6 the following list of deprecated procedures is generated:
gimp-image-free-shadow gimp-shear gimp-text-get-extents gimp-path-set-locked gimp-palettes-get-palette-entry gimp-palettes-get-palette gimp-flip gimp-path-get-points gimp-path-get-current gimp-path-get-tattoo gimp-gradients-sample-uniform gimp-gradients-get-gradient-data script-fu-copy-visible gimp-brushes-set-spacing gimp-levels-auto gimp-path-stroke-current gimp-drawable-set-image gimp-path-set-points gimp-text gimp-path-import gimp-path-set-tattoo gimp-brushes-get-brush gimp-image-add-layer-mask gimp-gradients-sample-custom gimp-path-to-selection gimp-path-delete gimp-perspective gimp-brushes-get-brush-data gimp-transform-2d gimp-path-get-point-at-dist gimp-path-set-current gimp-brushes-get-spacing gimp-patterns-get-pattern-data gimp-patterns-get-pattern gimp-path-get-locked gimp-path-list gimp-image-remove-layer-mask gimp-rotate gimp-scale gimp-get-path-by-tattoo gimp-palettes-set-palette gimp-palette-refresh gimp-image-floating-selection gimp-color-picker gimp-channel-get-name gimp-brushes-get-paint-mode gimp-layer-set-name gimp-undo-push-group-start gimp-gradients-get-active gimp-drawable-image gimp-drawable-bytes gimp-layer-set-preserve-trans gimp-channel-ops-duplicate gimp-brushes-list gimp-gradients-set-active gimp-brushes-set-brush gimp-convert-rgb gimp-gradients-get-gradient gimp-blend gimp-crop gimp-undo-push-group-end gimp-channel-set-name gimp-channel-ops-offset gimp-image-set-cmap gimp-palette-get-foreground gimp-bucket-fill gimp-patterns-set-pattern gimp-brushes-set-opacity gimp-palette-get-background gimp-brushes-set-paint-mode gimp-palette-set-default-colors gimp-selection-clear gimp-brushes-get-opacity gimp-channel-set-tattoo gimp-gradients-set-gradient gimp-image-get-cmap gimp-layer-get-preserve-trans gimp-palette-swap-colors gimp-convert-grayscale gimp-palette-set-background gimp-temp-PDB-name gimp-layer-get-name gimp-channel-get-tattoo gimp-layer-mask gimp-layer-set-tattoo gimp-image-active-drawable gimp-channel-delete gimp-layer-set-linked gimp-channel-set-visible gimp-patterns-list gimp-convert-indexed gimp-layer-delete gimp-layer-get-tattoo gimp-layer-set-visible gimp-layer-get-visible gimp-channel-get-visible gimp-layer-get-linked gimp-palette-set-foreground