[gimp/gimp-2-10] tools: Made 'Crop tool' aware of color or pattern changes
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] tools: Made 'Crop tool' aware of color or pattern changes
- Date: Thu, 11 Mar 2021 14:19:12 +0000 (UTC)
commit 6770f19e01426d23be97e0348f31660a51ebfd0c
Author: Stanislav Grinkov <43956-stanislavgrinkov users noreply gitlab gnome org>
Date: Thu Mar 11 13:31:12 2021 +0600
tools: Made 'Crop tool' aware of color or pattern changes
Crop tool used stale color / pattern values when performed crop with
'Allow growing' option. Its context was not notified when fg/bg/pattern
value was changed.
Closes: #4103
app/tools/gimpcroptool.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/app/tools/gimpcroptool.c b/app/tools/gimpcroptool.c
index 9e103a86b4..1803d0088a 100644
--- a/app/tools/gimpcroptool.c
+++ b/app/tools/gimpcroptool.c
@@ -114,7 +114,9 @@ gimp_crop_tool_register (GimpToolRegisterCallback callback,
(* callback) (GIMP_TYPE_CROP_TOOL,
GIMP_TYPE_CROP_OPTIONS,
gimp_crop_options_gui,
- 0,
+ GIMP_CONTEXT_PROP_MASK_FOREGROUND |
+ GIMP_CONTEXT_PROP_MASK_BACKGROUND |
+ GIMP_CONTEXT_PROP_MASK_PATTERN,
"gimp-crop-tool",
_("Crop"),
_("Crop Tool: Remove edge areas from image or layer"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]