diff options
-rw-r--r-- | calendar/ChangeLog | 10 | ||||
-rw-r--r-- | calendar/gui/tasks-control.c | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 6169cdaf0f..7e3198345f 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,13 @@ +2001-06-30 Rodrigo Moya <rodrigo@ximian.com> + + * gui/tasks-control.c (tasks_control_cut_cmd): call + e_calendar_table_cut_clipboard with the correct object + + (tasks_control_copy_cmd): ditto + + (sensitize_commands): sensitize clipboard commands based on the + number of selected tasks + 2001-06-28 Rodrigo Moya <rodrigo@ximian.com> * gui/e-calendar-table.[ch] (e_calendar_table_cut_clipboard), diff --git a/calendar/gui/tasks-control.c b/calendar/gui/tasks-control.c index d34d93e919..df3236fff0 100644 --- a/calendar/gui/tasks-control.c +++ b/calendar/gui/tasks-control.c @@ -206,6 +206,12 @@ sensitize_commands (ETasks *tasks, BonoboControl *control, int n_selected) uic = bonobo_control_get_ui_component (control); g_assert (uic != NULL); + bonobo_ui_component_set_prop (uic, "/commands/TasksCut", "sensitive", + n_selected == 0 ? "0" : "1", + NULL); + bonobo_ui_component_set_prop (uic, "/commands/TasksCopy", "sensitive", + n_selected == 0 ? "0" : "1", + NULL); bonobo_ui_component_set_prop (uic, "/commands/TasksDelete", "sensitive", n_selected == 0 ? "0" : "1", NULL); @@ -318,7 +324,7 @@ tasks_control_cut_cmd (BonoboUIComponent *uic, tasks = E_TASKS (data); cal_table = e_tasks_get_calendar_table (tasks); - e_calendar_table_cut_clipboard (tasks); + e_calendar_table_cut_clipboard (cal_table); } static void @@ -331,7 +337,7 @@ tasks_control_copy_cmd (BonoboUIComponent *uic, tasks = E_TASKS (data); cal_table = e_tasks_get_calendar_table (tasks); - e_calendar_table_copy_clipboard (tasks); + e_calendar_table_copy_clipboard (cal_table); } static void |