script-fu: fix calls to gimp-context-set-[pattern/brush]

Like in e31de151fa
these now need to work on an object rather than a name.
This commit is contained in:
Anders Jonsson 2024-04-19 11:08:12 +02:00
parent 97d6aa5904
commit 70b8e49e01
3 changed files with 6 additions and 6 deletions

View file

@ -55,7 +55,7 @@
(gimp-context-pop)
(gimp-brushes-refresh)
(gimp-context-set-brush name)
(gimp-context-set-brush (car (gimp-brush-get-by-name name)))
)
)
@ -125,7 +125,7 @@
(gimp-context-pop)
(gimp-brushes-refresh)
(gimp-context-set-brush name)
(gimp-context-set-brush (car (gimp-brush-get-by-name name)))
)
)
@ -181,7 +181,7 @@
(gimp-context-pop)
(gimp-brushes-refresh)
(gimp-context-set-brush name)
(gimp-context-set-brush (car (gimp-brush-get-by-name name)))
)
)
@ -250,7 +250,7 @@
(gimp-context-pop)
(gimp-brushes-refresh)
(gimp-context-set-brush name)
(gimp-context-set-brush (car (gimp-brush-get-by-name name)))
)
)

View file

@ -53,7 +53,7 @@
(gimp-image-delete brush-image)
(gimp-brushes-refresh)
(gimp-context-set-brush name)
(gimp-context-set-brush (car (gimp-brush-get-by-name name)))
)
(gimp-message _"There is no image data in the clipboard to paste.")
)

View file

@ -41,7 +41,7 @@
(gimp-image-delete pattern-image)
(gimp-patterns-refresh)
(gimp-context-set-pattern name)
(gimp-context-set-pattern (car (gimp-pattern-get-by-name name)))
)
(gimp-message _"There is no image data in the clipboard to paste.")
)