[gimp] Don't make the action that invokes the tool insensitive for locked vectors



commit c6c0817602bf7e6ae4da8e7b2fe099442cab1261
Author: Michael Natterer <mitch gimp org>
Date:   Tue Sep 1 12:44:30 2009 +0200

    Don't make the action that invokes the tool insensitive for locked vectors

 app/actions/vectors-actions.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/app/actions/vectors-actions.c b/app/actions/vectors-actions.c
index 3d71f0b..eb6ef3b 100644
--- a/app/actions/vectors-actions.c
+++ b/app/actions/vectors-actions.c
@@ -253,7 +253,6 @@ vectors_actions_update (GimpActionGroup *group,
   gboolean      linked      = FALSE;
   gboolean      locked      = FALSE;
   gboolean      can_lock    = FALSE;
-  gboolean      writable    = FALSE;
   gboolean      dr_writable = FALSE;
   gboolean      dr_children = FALSE;
   GList        *next        = NULL;
@@ -277,7 +276,6 @@ vectors_actions_update (GimpActionGroup *group,
           linked   = gimp_item_get_linked (item);
           locked   = gimp_item_get_lock_content (item);
           can_lock = gimp_item_can_lock_content (item);
-          writable = ! gimp_item_is_content_locked (item);
 
           vectors_list = gimp_item_get_container_iter (item);
 
@@ -308,7 +306,7 @@ vectors_actions_update (GimpActionGroup *group,
 #define SET_ACTIVE(action,condition) \
         gimp_action_group_set_action_active (group, action, (condition) != 0)
 
-  SET_SENSITIVE ("vectors-path-tool",       writable);
+  SET_SENSITIVE ("vectors-path-tool",       vectors);
   SET_SENSITIVE ("vectors-edit-attributes", vectors);
 
   SET_SENSITIVE ("vectors-new",             image);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]