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:
Michael Natterer
2008-11-02 20:46:57 +00:00
committed by Michael Natterer
parent c14c84ba63
commit d1ca165b4e
26 changed files with 154 additions and 98 deletions

View File

@ -34,7 +34,6 @@
#include "gimplayer.h"
#include "gimplayer-floating-sel.h"
#include "gimplayermask.h"
#include "gimplist.h"
#include "gimpprojection.h"
#include "gimpprojection-construct.h"
@ -214,7 +213,7 @@ gimp_projection_construct_layers (GimpProjection *proj,
reverse_list = NULL;
for (list = GIMP_LIST (proj->image->layers)->list;
for (list = gimp_image_get_layer_iter (proj->image);
list;
list = g_list_next (list))
{
@ -329,7 +328,7 @@ gimp_projection_construct_channels (GimpProjection *proj,
GList *reverse_list = NULL;
/* reverse the channel list */
for (list = GIMP_LIST (proj->image->channels)->list;
for (list = gimp_image_get_channel_iter (proj->image);
list;
list = g_list_next (list))
{
@ -387,7 +386,7 @@ gimp_projection_initialize (GimpProjection *proj,
GList *list;
gboolean coverage = FALSE;
for (list = GIMP_LIST (proj->image->layers)->list;
for (list = gimp_image_get_layer_iter (proj->image);
list;
list = g_list_next (list))
{