gui: #5339 Disable GEGL Op menu action if no image is open

Because "GEGL Operations..." menu action should be active only
if image is open
This commit is contained in:
Stanislav Grinkov 2021-01-28 01:03:41 +06:00 committed by Jehan
parent 90d0a7f628
commit ce93d5c3ab
1 changed files with 8 additions and 0 deletions

View File

@ -797,4 +797,12 @@ void
tools_actions_update (GimpActionGroup *group,
gpointer data)
{
GimpImage *image = action_data_get_image (data);
#define SET_SENSITIVE(action,condition) \
gimp_action_group_set_action_sensitive (group, action, (condition) != 0)
SET_SENSITIVE ("tools-gegl", image);
#undef SET_SENSITIVE
}