[gimp] Don't allow to drop stuff to locked drawables
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Don't allow to drop stuff to locked drawables
- Date: Fri, 21 Aug 2009 12:10:44 +0000 (UTC)
commit b929a7a67c5e9b39dcc154c6301b7c79e931ddd0
Author: Michael Natterer <mitch gimp org>
Date: Fri Aug 21 14:10:22 2009 +0200
Don't allow to drop stuff to locked drawables
app/widgets/gimpdrawabletreeview.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpdrawabletreeview.c b/app/widgets/gimpdrawabletreeview.c
index 35013cf..c0bea06 100644
--- a/app/widgets/gimpdrawabletreeview.c
+++ b/app/widgets/gimpdrawabletreeview.c
@@ -215,7 +215,8 @@ gimp_drawable_tree_view_drop_possible (GimpContainerTreeView *tree_view,
if (src_type == GIMP_DND_TYPE_COLOR ||
src_type == GIMP_DND_TYPE_PATTERN)
{
- if (! dest_viewable)
+ if (! dest_viewable ||
+ gimp_item_get_lock_content (GIMP_ITEM (dest_viewable)))
return FALSE;
if (return_drop_pos)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]