[gimp] app: set the sensitivity of the 3 newly added GEGL filter menu items
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: set the sensitivity of the 3 newly added GEGL filter menu items
- Date: Sat, 9 Mar 2013 19:19:35 +0000 (UTC)
commit 3105791933a103874c0d3a65aa48572356d4343d
Author: Michael Natterer <mitch gimp org>
Date: Sat Mar 9 20:18:39 2013 +0100
app: set the sensitivity of the 3 newly added GEGL filter menu items
app/actions/filters-actions.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c
index ee7b2a7..ac0e742 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -237,13 +237,16 @@ filters_actions_update (GimpActionGroup *group,
#define SET_SENSITIVE(action,condition) \
gimp_action_group_set_action_sensitive (group, action, (condition) != 0)
+ SET_SENSITIVE ("filters-c2g", writable && !gray);
SET_SENSITIVE ("filters-cartoon", writable);
SET_SENSITIVE ("filters-color-reduction", writable);
SET_SENSITIVE ("filters-color-temperature", writable && !gray);
SET_SENSITIVE ("filters-color-to-alpha", writable && !gray && alpha);
SET_SENSITIVE ("filters-difference-of-gaussians", writable);
+ SET_SENSITIVE ("filters-dot", writable);
SET_SENSITIVE ("filters-gaussian-blur", writable);
SET_SENSITIVE ("filters-laplace", writable);
+ SET_SENSITIVE ("filters-mono-mixer", writable && !gray);
SET_SENSITIVE ("filters-noise-hsv", writable && !gray);
SET_SENSITIVE ("filters-noise-hurl", writable);
SET_SENSITIVE ("filters-noise-pick", writable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]