[gimp] An item is_content_locked() if its parent item is locked
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] An item is_content_locked() if its parent item is locked
- Date: Sat, 29 Aug 2009 13:29:38 +0000 (UTC)
commit 521e790b77bdea7d08704d373ab3ef75e1956e8b
Author: Michael Natterer <mitch gimp org>
Date: Sat Aug 29 15:10:38 2009 +0200
An item is_content_locked() if its parent item is locked
app/core/gimpitem.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpitem.c b/app/core/gimpitem.c
index 5368176..8cfbd92 100644
--- a/app/core/gimpitem.c
+++ b/app/core/gimpitem.c
@@ -388,6 +388,11 @@ gimp_item_real_visibility_changed (GimpItem *item)
static gboolean
gimp_item_real_is_content_locked (const GimpItem *item)
{
+ GimpViewable *parent = gimp_viewable_get_parent (GIMP_VIEWABLE (item));
+
+ if (parent && gimp_item_is_content_locked (GIMP_ITEM (parent)))
+ return TRUE;
+
return item->lock_content;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]