mirror of https://github.com/GNOME/gimp.git
Make getting items by tattoo work on trees
This commit is contained in:
parent
01c77b18d5
commit
227076b6d1
|
@ -2918,10 +2918,21 @@ gimp_image_get_item_by_tattoo (GimpContainer *items,
|
|||
|
||||
for (list = GIMP_LIST (items)->list; list; list = g_list_next (list))
|
||||
{
|
||||
GimpItem *item = list->data;
|
||||
GimpItem *item = list->data;
|
||||
GimpContainer *children;
|
||||
|
||||
if (gimp_item_get_tattoo (item) == tattoo)
|
||||
return item;
|
||||
|
||||
children = gimp_viewable_get_children (GIMP_VIEWABLE (item));
|
||||
|
||||
if (children)
|
||||
{
|
||||
item = gimp_image_get_item_by_tattoo (children, tattoo);
|
||||
|
||||
if (item)
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue