[gimp] Bug 638042 - Undo/Redo name for toggling "Disable Layer Mask" is incorrect
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 638042 - Undo/Redo name for toggling "Disable Layer Mask" is incorrect
- Date: Sun, 9 Jan 2011 20:44:46 +0000 (UTC)
commit 292ac61056f4a732f7633f442fe9b07df8b1d348
Author: Michael Natterer <mitch gimp org>
Date: Sun Jan 9 21:42:51 2011 +0100
Bug 638042 - Undo/Redo name for toggling "Disable Layer Mask" is incorrect
Apply modified patch from Andrew Church which says "Enable" or
"Disable" and not always "Apply" in the undo description.
app/core/gimplayermask.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimplayermask.c b/app/core/gimplayermask.c
index a0f9a2a..ce17dd7 100644
--- a/app/core/gimplayermask.c
+++ b/app/core/gimplayermask.c
@@ -256,7 +256,10 @@ gimp_layer_mask_set_apply (GimpLayerMask *layer_mask,
GimpImage *image = gimp_item_get_image (GIMP_ITEM (layer_mask));
if (push_undo)
- gimp_image_undo_push_layer_mask_apply (image, C_("undo-type", "Apply Layer Mask"),
+ gimp_image_undo_push_layer_mask_apply (image,
+ apply ?
+ C_("undo-type", "Enable Layer Mask") :
+ C_("undo-type", "Disable Layer Mask"),
layer_mask);
layer_mask->apply_mask = apply ? TRUE : FALSE;
@@ -317,7 +320,8 @@ gimp_layer_mask_set_show (GimpLayerMask *layer_mask,
GimpImage *image = gimp_item_get_image (GIMP_ITEM (layer_mask));
if (push_undo)
- gimp_image_undo_push_layer_mask_show (image, C_("undo-type", "Show Layer Mask"),
+ gimp_image_undo_push_layer_mask_show (image,
+ C_("undo-type", "Show Layer Mask"),
layer_mask);
layer_mask->show_mask = show ? TRUE : FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]