[evolution/wip/webkit2] Rather hide, than disable, items in Taskpad/Memopad context menus
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Rather hide, than disable, items in Taskpad/Memopad context menus
- Date: Tue, 31 May 2016 12:08:32 +0000 (UTC)
commit 691cf84d0f7fb7d0e686302629e19901ecdc90e3
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]