mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
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.
This commit is contained in:
parent
99ab780d9f
commit
10099bdaf7
1 changed files with 1 additions and 0 deletions
|
@ -867,6 +867,7 @@ layers_actions_update (GimpActionGroup *group,
|
||||||
gimp_action_group_set_action_label (group, action, label)
|
gimp_action_group_set_action_label (group, action, label)
|
||||||
|
|
||||||
SET_VISIBLE ("layers-text-tool", text_layer && !ac);
|
SET_VISIBLE ("layers-text-tool", text_layer && !ac);
|
||||||
|
SET_SENSITIVE ("layers-text-tool", text_layer && !ac);
|
||||||
SET_SENSITIVE ("layers-edit-attributes", layer && !fs && !ac);
|
SET_SENSITIVE ("layers-edit-attributes", layer && !fs && !ac);
|
||||||
|
|
||||||
if (layer && gimp_layer_is_floating_sel (layer))
|
if (layer && gimp_layer_is_floating_sel (layer))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue