added new methods gimp_container_get_{first,last}_child().
2008-04-09 Sven Neumann <sven@gimp.org> * app/core/gimpcontainer.[ch]: added new methods gimp_container_get_{first,last}_child(). * app/actions/file-actions.c (file_actions_close_all_update) * app/dialogs/layer-add-mask-dialog.c (layer_add_mask_dialog_new) * app/dialogs/palette-import-dialog.c (palette_import_image_callback) * app/gui/gui-vtable.c (gui_get_empty_display): * app/widgets/gimpmenudock.c (gimp_menu_dock_image_changed): use the new GimpContainer methods. * app/core/gimpundostack.c: use the new GimpContainer methods and cleaned up the code. svn path=/trunk/; revision=25426
This commit is contained in:
committed by
Sven Neumann
parent
e9b913d1d4
commit
3f2385dcc2
@ -130,9 +130,7 @@ layer_add_mask_dialog_new (GimpLayer *layer,
|
||||
channel = gimp_image_get_active_channel (GIMP_ITEM (layer)->image);
|
||||
|
||||
if (! channel)
|
||||
channel = GIMP_CHANNEL
|
||||
(gimp_container_get_child_by_index (GIMP_ITEM (layer)->image->channels,
|
||||
0));
|
||||
channel = GIMP_CHANNEL (gimp_container_get_first_child (GIMP_ITEM (layer)->image->channels));
|
||||
|
||||
gimp_container_view_select_item (GIMP_CONTAINER_VIEW (combo),
|
||||
GIMP_VIEWABLE (channel));
|
||||
|
||||
Reference in New Issue
Block a user