Commit 521e790b authored by Michael Natterer's avatar Michael Natterer 😴

An item is_content_locked() if its parent item is locked

parent c730839c
......@@ -388,6 +388,11 @@ gimp_item_real_visibility_changed (GimpItem *item)
static gboolean
gimp_item_real_is_content_locked (const GimpItem *item)
{
GimpViewable *parent = gimp_viewable_get_parent (GIMP_VIEWABLE (item));
if (parent && gimp_item_is_content_locked (GIMP_ITEM (parent)))
return TRUE;
return item->lock_content;
}
......
Markdown is supported
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