[gimp] Use gimp_item_stack_get_item_iter(stack) instead of GIMP_LIST(stack)->list
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Use gimp_item_stack_get_item_iter(stack) instead of GIMP_LIST(stack)->list
- Date: Thu, 27 Aug 2009 17:48:47 +0000 (UTC)
commit 193a0b3bcfc9f1d5edf97cd4cf200a2f0e7cd7e9
Author: Michael Natterer <mitch gimp org>
Date: Thu Aug 27 12:26:14 2009 +0200
Use gimp_item_stack_get_item_iter(stack) instead of GIMP_LIST(stack)->list
app/core/gimpgrouplayer.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app/core/gimpgrouplayer.c b/app/core/gimpgrouplayer.c
index dfe5804..aa0aeb9 100644
--- a/app/core/gimpgrouplayer.c
+++ b/app/core/gimpgrouplayer.c
@@ -339,12 +339,12 @@ gimp_group_layer_duplicate (GimpItem *item,
{
GimpGroupLayer *group = GIMP_GROUP_LAYER (item);
GimpGroupLayer *new_group = GIMP_GROUP_LAYER (new_item);
+ gint position = 0;
GList *list;
- gint position;
- for (list = GIMP_LIST (group->children)->list, position = 0;
+ for (list = gimp_item_stack_get_item_iter (GIMP_ITEM_STACK (group->children));
list;
- list = g_list_next (list), position++)
+ list = g_list_next (list))
{
GimpItem *child = list->data;
GimpItem *new_child;
@@ -372,7 +372,7 @@ gimp_group_layer_duplicate (GimpItem *item,
gimp_container_insert (new_group->children,
GIMP_OBJECT (new_child),
- position);
+ position++);
}
}
@@ -386,7 +386,7 @@ gimp_group_layer_convert (GimpItem *item,
GimpGroupLayer *group = GIMP_GROUP_LAYER (item);
GList *list;
- for (list = GIMP_LIST (group->children)->list;
+ for (list = gimp_item_stack_get_item_iter (GIMP_ITEM_STACK (group->children));
list;
list = g_list_next (list))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]