use gimp_component_editor_get_iter() instead of duplicating its code.

2004-09-17  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcomponenteditor.c
	(gimp_component_editor_renderer_update): use
	gimp_component_editor_get_iter() instead of duplicating its code.
This commit is contained in:
Michael Natterer
2004-09-17 11:20:30 +00:00
committed by Michael Natterer
parent 430c5f8170
commit c9cac47fbe
2 changed files with 9 additions and 6 deletions

View File

@ -552,13 +552,10 @@ static void
gimp_component_editor_renderer_update (GimpViewRenderer *renderer,
GimpComponentEditor *editor)
{
GtkTreeIter iter;
gint index;
GimpChannelType channel = GIMP_VIEW_RENDERER_IMAGE (renderer)->channel;
GtkTreeIter iter;
index = gimp_image_get_component_index (GIMP_IMAGE (renderer->viewable),
GIMP_VIEW_RENDERER_IMAGE (renderer)->channel);
if (gtk_tree_model_iter_nth_child (editor->model, &iter, NULL, index))
if (gimp_component_editor_get_iter (editor, channel, &iter))
{
GtkTreePath *path;