From 25c1366e4ac195f56bc43c5db31b075e6d088533 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 24 Nov 2003 11:24:16 +0000 Subject: no need to have a selection for Paste to work. 2003-11-24 Rodrigo Moya * gui/tasks-control.c (sensitize_commands): no need to have a selection for Paste to work. svn path=/trunk/; revision=23481 --- calendar/ChangeLog | 3 +++ calendar/gui/tasks-control.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 18e3b9ba9c..8fb7ad333c 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,8 @@ 2003-11-24 Rodrigo Moya + * gui/tasks-control.c (sensitize_commands): no need to have a + selection for Paste to work. + * gui/e-calendar-table.c (e_calendar_table_show_popup_menu): disable editing items if the selected task list is read only, not if it's not. diff --git a/calendar/gui/tasks-control.c b/calendar/gui/tasks-control.c index d046ac3283..7b92889809 100644 --- a/calendar/gui/tasks-control.c +++ b/calendar/gui/tasks-control.c @@ -250,7 +250,7 @@ sensitize_commands (ETasks *tasks, BonoboControl *control, int n_selected) n_selected == 0 ? "0" : "1", NULL); bonobo_ui_component_set_prop (uic, "/commands/TasksPaste", "sensitive", - n_selected == 0 || read_only ? "0" : "1", + read_only ? "0" : "1", NULL); bonobo_ui_component_set_prop (uic, "/commands/TasksDelete", "sensitive", n_selected == 0 || read_only ? "0" : "1", -- cgit v1.2.3