[gimp/wip/Jehan/layers-dockable-refresh: 43/58] plug-ins: update more script-fu scripts.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/Jehan/layers-dockable-refresh: 43/58] plug-ins: update more script-fu scripts.
- Date: Fri, 22 Oct 2021 21:36:50 +0000 (UTC)
commit f0c549c49b9a378faa0f900fad23a4f4a2953baa
Author: Jehan <jehan girinstud io>
Date: Sun Jun 20 13:18:42 2021 +0200
plug-ins: update more script-fu scripts.
(gimp-image-get|set-active-layer) now ported into calls to
(gimp-image-get|set-selected-layers).
plug-ins/script-fu/scripts/distress-selection.scm | 4 ++--
plug-ins/script-fu/scripts/drop-shadow.scm | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/script-fu/scripts/distress-selection.scm
b/plug-ins/script-fu/scripts/distress-selection.scm
index afcd1bff8b..45376bb3a3 100644
--- a/plug-ins/script-fu/scripts/distress-selection.scm
+++ b/plug-ins/script-fu/scripts/distress-selection.scm
@@ -35,7 +35,7 @@
(theHeight (car (gimp-image-get-height inImage)))
(theLayer 0)
(theMode (car (gimp-image-get-base-type inImage)))
- (prevLayer (car (gimp-image-get-active-layer inImage)))
+ (prevLayers (gimp-image-get-selected-layers inImage))
)
(gimp-context-push)
@@ -93,7 +93,7 @@
)
(gimp-image-undo-group-end theImage)
- (gimp-image-set-active-layer theImage prevLayer)
+ (gimp-image-set-selected-layers theImage (car prevLayers) (cadr prevLayers))
(gimp-displays-flush)
(gimp-context-pop)
diff --git a/plug-ins/script-fu/scripts/drop-shadow.scm b/plug-ins/script-fu/scripts/drop-shadow.scm
index 886847ffad..5d0acecb5b 100644
--- a/plug-ins/script-fu/scripts/drop-shadow.scm
+++ b/plug-ins/script-fu/scripts/drop-shadow.scm
@@ -58,7 +58,7 @@
(gimp-context-push)
(gimp-context-set-defaults)
- (gimp-image-set-active-layer image drawable)
+ (gimp-image-set-selected-layers image 1 (make-vector 1 drawable))
(gimp-image-undo-group-start image)
@@ -128,7 +128,7 @@
"Drop Shadow"
shadow-opacity
LAYER-MODE-NORMAL)))
- (gimp-image-set-active-layer image drawable)
+ (gimp-image-set-selected-layers image 1 (make-vector 1 drawable))
(gimp-image-insert-layer image shadow-layer 0 -1)
(gimp-layer-set-offsets shadow-layer
shadow-offset-x
@@ -158,7 +158,7 @@
(= from-selection FALSE))
(gimp-image-raise-item image drawable))
- (gimp-image-set-active-layer image drawable)
+ (gimp-image-set-selected-layers image 1 (make-vector 1 drawable))
(gimp-image-undo-group-end image)
(gimp-displays-flush)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]