diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2001-06-30 20:16:04 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2001-06-30 20:16:04 +0800 |
commit | 309d8d7f589471d407ad335be37ce25904d5f05f (patch) | |
tree | 061f6a43a8e45742c40c58ed899fc42ac39107a0 /calendar | |
parent | b190305858a16818773cdf855a6d78eda2ee6bda (diff) | |
download | gsoc2013-evolution-309d8d7f589471d407ad335be37ce25904d5f05f.tar gsoc2013-evolution-309d8d7f589471d407ad335be37ce25904d5f05f.tar.gz gsoc2013-evolution-309d8d7f589471d407ad335be37ce25904d5f05f.tar.bz2 gsoc2013-evolution-309d8d7f589471d407ad335be37ce25904d5f05f.tar.lz gsoc2013-evolution-309d8d7f589471d407ad335be37ce25904d5f05f.tar.xz gsoc2013-evolution-309d8d7f589471d407ad335be37ce25904d5f05f.tar.zst gsoc2013-evolution-309d8d7f589471d407ad335be37ce25904d5f05f.zip |
call e_calendar_table_cut_clipboard with the correct object
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
svn path=/trunk/; revision=10631
Diffstat (limited to 'calendar')
-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 |