[evolution/gnome-3-20] Rather hide, than disable, items in Taskpad/Memopad context menus



commit f04217af17b8d3146fdd9088a528669099229537
Author: Milan Crha <mcrha redhat com>
Date:   Fri May 6 12:20:36 2016 +0200

    Rather hide, than disable, items in Taskpad/Memopad context menus

 modules/calendar/e-cal-shell-view-memopad.c |   10 +++++-----
 modules/calendar/e-cal-shell-view-taskpad.c |   16 ++++++++--------
 2 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/modules/calendar/e-cal-shell-view-memopad.c b/modules/calendar/e-cal-shell-view-memopad.c
index 470a158..58068f3 100644
--- a/modules/calendar/e-cal-shell-view-memopad.c
+++ b/modules/calendar/e-cal-shell-view-memopad.c
@@ -355,23 +355,23 @@ e_cal_shell_view_memopad_actions_update (ECalShellView *cal_shell_view)
 
        action = ACTION (CALENDAR_MEMOPAD_FORWARD);
        sensitive = (n_selected == 1);
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive);
 
        action = ACTION (CALENDAR_MEMOPAD_OPEN);
        sensitive = (n_selected == 1);
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive);
 
        action = ACTION (CALENDAR_MEMOPAD_OPEN_URL);
        sensitive = (n_selected == 1) && has_url;
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive);
 
        action = ACTION (CALENDAR_MEMOPAD_PRINT);
        sensitive = (n_selected == 1);
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive);
 
        action = ACTION (CALENDAR_MEMOPAD_SAVE_AS);
        sensitive = (n_selected == 1);
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive);
 }
 
 void
diff --git a/modules/calendar/e-cal-shell-view-taskpad.c b/modules/calendar/e-cal-shell-view-taskpad.c
index e14a462..b49667e 100644
--- a/modules/calendar/e-cal-shell-view-taskpad.c
+++ b/modules/calendar/e-cal-shell-view-taskpad.c
@@ -462,35 +462,35 @@ e_cal_shell_view_taskpad_actions_update (ECalShellView *cal_shell_view)
 
        action = ACTION (CALENDAR_TASKPAD_ASSIGN);
        sensitive = (n_selected == 1) && editable && assignable;
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive);
 
        action = ACTION (CALENDAR_TASKPAD_FORWARD);
        sensitive = (n_selected == 1);
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive);
 
        action = ACTION (CALENDAR_TASKPAD_MARK_COMPLETE);
        sensitive = (n_selected > 0) && editable && (n_incomplete > 0);
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive);
 
        action = ACTION (CALENDAR_TASKPAD_MARK_INCOMPLETE);
        sensitive = (n_selected > 0) && editable && (n_complete > 0);
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive);
 
        action = ACTION (CALENDAR_TASKPAD_OPEN);
        sensitive = (n_selected == 1);
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive);
 
        action = ACTION (CALENDAR_TASKPAD_OPEN_URL);
        sensitive = (n_selected == 1) && has_url;
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive);
 
        action = ACTION (CALENDAR_TASKPAD_PRINT);
        sensitive = (n_selected == 1);
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive);
 
        action = ACTION (CALENDAR_TASKPAD_SAVE_AS);
        sensitive = (n_selected == 1);
-       gtk_action_set_sensitive (action, sensitive);
+       gtk_action_set_visible (action, sensitive);
 }
 
 void


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