[gimp] Some group layer fixes
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Some group layer fixes
- Date: Mon, 3 Aug 2009 22:15:59 +0000 (UTC)
commit ea7c07647b7f01ebbee13ffac4f3093f27e7c769
Author: Michael Natterer <mitch gimp org>
Date: Tue Aug 4 00:14:53 2009 +0200
Some group layer fixes
- call new group layers "Group Layer" by default.
- when duplicating, don't forget to set the duplicated childrens'
parent viewable.
app/core/gimpgrouplayer.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpgrouplayer.c b/app/core/gimpgrouplayer.c
index 54cd739..c1c432e 100644
--- a/app/core/gimpgrouplayer.c
+++ b/app/core/gimpgrouplayer.c
@@ -143,6 +143,9 @@ gimp_group_layer_duplicate (GimpItem *item,
new_child = gimp_item_duplicate (child, G_TYPE_FROM_INSTANCE (child));
+ gimp_viewable_set_parent (GIMP_VIEWABLE (new_child),
+ GIMP_VIEWABLE (new_layer));
+
gimp_container_insert (new_layer->children,
GIMP_OBJECT (new_child),
position);
@@ -165,7 +168,7 @@ gimp_group_layer_new (GimpImage *image)
image,
0, 0, 1, 1,
gimp_image_base_type_with_alpha (image),
- NULL);
+ _("Group Layer"));
return GIMP_LAYER (layer);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]