mirror of https://github.com/GNOME/gimp.git
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:
parent
430c5f8170
commit
c9cac47fbe
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2004-09-17 Simon Budig <simon@gimp.org>
|
||||||
|
|
||||||
* app/widgets/gimpbrusheditor.[ch]: Added a slider for the
|
* app/widgets/gimpbrusheditor.[ch]: Added a slider for the
|
||||||
|
|
|
@ -552,13 +552,10 @@ static void
|
||||||
gimp_component_editor_renderer_update (GimpViewRenderer *renderer,
|
gimp_component_editor_renderer_update (GimpViewRenderer *renderer,
|
||||||
GimpComponentEditor *editor)
|
GimpComponentEditor *editor)
|
||||||
{
|
{
|
||||||
|
GimpChannelType channel = GIMP_VIEW_RENDERER_IMAGE (renderer)->channel;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
gint index;
|
|
||||||
|
|
||||||
index = gimp_image_get_component_index (GIMP_IMAGE (renderer->viewable),
|
if (gimp_component_editor_get_iter (editor, channel, &iter))
|
||||||
GIMP_VIEW_RENDERER_IMAGE (renderer)->channel);
|
|
||||||
|
|
||||||
if (gtk_tree_model_iter_nth_child (editor->model, &iter, NULL, index))
|
|
||||||
{
|
{
|
||||||
GtkTreePath *path;
|
GtkTreePath *path;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue