[gimp] Don't allow dropping colors and patterns to group layers



commit 13b384e3323a19eda54bf793df2d272ab2d4e2bd
Author: Michael Natterer <mitch gimp org>
Date:   Sat Aug 29 12:27:23 2009 +0200

    Don't allow dropping colors and patterns to group layers

 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 c0bea06..d405d26 100644
--- a/app/widgets/gimpdrawabletreeview.c
+++ b/app/widgets/gimpdrawabletreeview.c
@@ -216,7 +216,8 @@ gimp_drawable_tree_view_drop_possible (GimpContainerTreeView   *tree_view,
           src_type == GIMP_DND_TYPE_PATTERN)
         {
           if (! dest_viewable ||
-              gimp_item_get_lock_content (GIMP_ITEM (dest_viewable)))
+              gimp_item_get_lock_content (GIMP_ITEM (dest_viewable)) ||
+              gimp_viewable_get_children (GIMP_VIEWABLE (dest_viewable)))
             return FALSE;
 
           if (return_drop_pos)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]