add new functions gimp_image_get_layer_iter(), channel_iter() and
2008-11-02 Michael Natterer <mitch@gimp.org> * app/core/gimpimage.[ch]: add new functions gimp_image_get_layer_iter(), channel_iter() and vectors_iter() which return the GList inside the resp. GimpList. * app/actions/channels-actions.c * app/actions/layers-actions.c * app/actions/vectors-actions.c * app/core/gimpimage-convert.c * app/core/gimpimage-crop.c * app/core/gimpimage-duplicate.c * app/core/gimpimage-flip.c * app/core/gimpimage-item-list.c * app/core/gimpimage-merge.c * app/core/gimpimage-resize.c * app/core/gimpimage-rotate.c * app/core/gimpimage-scale.c * app/core/gimpimage.c * app/core/gimpimage.h * app/core/gimpprojection-construct.c * app/display/gimpdisplayshell-draw.c * app/file/file-open.c * app/tools/gimpaligntool.c * app/tools/gimpdrawtool.c * app/vectors/gimpvectors-compat.c * app/vectors/gimpvectors-export.c * app/widgets/gimplayertreeview.c * app/xcf/xcf-save.c * tools/pdbgen/pdb/image.pdb: use the new functions instead of peeking both into the image and the list. Remove inclusions of "gimplist.h" or change them into "gimpcontainer.h" if needed. * app/pdb/image-cmds.c: regenerated. svn path=/trunk/; revision=27524
This commit is contained in:

committed by
Michael Natterer

parent
c14c84ba63
commit
d1ca165b4e
@ -37,7 +37,6 @@
|
||||
#include "gimpimage-sample-points.h"
|
||||
#include "gimplayer.h"
|
||||
#include "gimplayer-floating-sel.h"
|
||||
#include "gimplist.h"
|
||||
#include "gimpparasitelist.h"
|
||||
#include "gimpsamplepoint.h"
|
||||
|
||||
@ -105,7 +104,7 @@ gimp_image_duplicate (GimpImage *image)
|
||||
}
|
||||
|
||||
/* Copy the layers */
|
||||
for (list = GIMP_LIST (image->layers)->list, count = 0;
|
||||
for (list = gimp_image_get_layer_iter (image), count = 0;
|
||||
list;
|
||||
list = g_list_next (list))
|
||||
{
|
||||
@ -141,7 +140,7 @@ gimp_image_duplicate (GimpImage *image)
|
||||
}
|
||||
|
||||
/* Copy the channels */
|
||||
for (list = GIMP_LIST (image->channels)->list, count = 0;
|
||||
for (list = gimp_image_get_channel_iter (image), count = 0;
|
||||
list;
|
||||
list = g_list_next (list))
|
||||
{
|
||||
@ -166,7 +165,7 @@ gimp_image_duplicate (GimpImage *image)
|
||||
}
|
||||
|
||||
/* Copy any vectors */
|
||||
for (list = GIMP_LIST (image->vectors)->list, count = 0;
|
||||
for (list = gimp_image_get_vectors_iter (image), count = 0;
|
||||
list;
|
||||
list = g_list_next (list))
|
||||
{
|
||||
|
Reference in New Issue
Block a user