mirror of https://github.com/GNOME/gimp.git
An item is_content_locked() if its parent item is locked
This commit is contained in:
parent
c730839c1f
commit
521e790b77
app/core
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue