Use gimp_item_is_content_locked() instead of gimp_item_get_lock_content()

Use the new API whenever we want to determine the item's effective
lock state (whether we can write to the item's content or not). Use
gimp_item_get_lock_content() only in code that actually deals with
*this* item's locked state, which is only the PDB wrappers and GUI to
modify the flag on the item itself.
This commit is contained in:
Michael Natterer
2009-08-29 15:27:04 +02:00
parent 521e790b77
commit 02903d6970
16 changed files with 25 additions and 25 deletions

View File

@ -146,7 +146,7 @@ select_actions_update (GimpActionGroup *group,
if (drawable)
{
writable = ! gimp_item_get_lock_content (GIMP_ITEM (drawable));
writable = ! gimp_item_is_content_locked (GIMP_ITEM (drawable));
if (gimp_viewable_get_children (GIMP_VIEWABLE (drawable)))
children = TRUE;