[gimp] app: layers-text-tool action should only be sensitive when active...



commit 10099bdaf7f32694236918bbdb26a871905583ab
Author: Jehan <jehan girinstud io>
Date:   Fri May 12 23:58:38 2017 +0200

    app: layers-text-tool action should only be sensitive when active...
    
    ... layer is a text layer.
    It doesn't make sense to activate the text tool on any other kind of
    layer.

 app/actions/layers-actions.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/app/actions/layers-actions.c b/app/actions/layers-actions.c
index 6faf3da..74d61bc 100644
--- a/app/actions/layers-actions.c
+++ b/app/actions/layers-actions.c
@@ -867,6 +867,7 @@ layers_actions_update (GimpActionGroup *group,
         gimp_action_group_set_action_label (group, action, label)
 
   SET_VISIBLE   ("layers-text-tool",        text_layer && !ac);
+  SET_SENSITIVE ("layers-text-tool",        text_layer && !ac);
   SET_SENSITIVE ("layers-edit-attributes",  layer && !fs && !ac);
 
   if (layer && gimp_layer_is_floating_sel (layer))


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