Commit c9cac47f authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

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.
parent 430c5f81
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.
2004-09-17 Simon Budig <simon@gimp.org>
* app/widgets/gimpbrusheditor.[ch]: Added a slider for the
......
......@@ -552,13 +552,10 @@ static void
gimp_component_editor_renderer_update (GimpViewRenderer *renderer,
GimpComponentEditor *editor)
{
GtkTreeIter iter;
gint index;
index = gimp_image_get_component_index (GIMP_IMAGE (renderer->viewable),
GIMP_VIEW_RENDERER_IMAGE (renderer)->channel);
GimpChannelType channel = GIMP_VIEW_RENDERER_IMAGE (renderer)->channel;
GtkTreeIter iter;
if (gtk_tree_model_iter_nth_child (editor->model, &iter, NULL, index))
if (gimp_component_editor_get_iter (editor, channel, &iter))
{
GtkTreePath *path;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment