diff options
author | JP Rosevear <jpr@ximian.com> | 2002-01-04 03:43:32 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-01-04 03:43:32 +0800 |
commit | 51adfb0876b2eebc737e5d8c42b76ce5b39fc1b8 (patch) | |
tree | f38a7a7081a996578d554d4d97b1506b79ee8261 /calendar/gui/e-tasks.c | |
parent | 239be43f7734bcbfdb69cfe9396b6b5d2f933d3f (diff) | |
download | gsoc2013-evolution-51adfb0876b2eebc737e5d8c42b76ce5b39fc1b8.tar.gz gsoc2013-evolution-51adfb0876b2eebc737e5d8c42b76ce5b39fc1b8.tar.zst gsoc2013-evolution-51adfb0876b2eebc737e5d8c42b76ce5b39fc1b8.zip |
new verb callback (sensitize_commands): set sensitivity of mark complete
2002-01-03 JP Rosevear <jpr@ximian.com>
* gui/tasks-control.c (tasks_control_complete_cmd): new verb
callback
(sensitize_commands): set sensitivity of mark complete command
* gui/e-tasks.h: new proto
* gui/e-tasks.c (e_tasks_complete_selected): mark selected tasks
in the table as complete
* gui/e-calendar-table.h: new proto
* gui/e-calendar-table.c (e_calendar_table_complete_selected):
mark selected rows as complete
svn path=/trunk/; revision=15239
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r-- | calendar/gui/e-tasks.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c index 54e8ea3c45..3edb4da7c8 100644 --- a/calendar/gui/e-tasks.c +++ b/calendar/gui/e-tasks.c @@ -497,6 +497,27 @@ e_tasks_new_task (ETasks *tasks) } /** + * e_tasks_complete_selected: + * @tasks: A tasks control widget + * + * Marks the selected tasks complete + **/ +void +e_tasks_complete_selected (ETasks *tasks) +{ + ETasksPrivate *priv; + ECalendarTable *cal_table; + + g_return_if_fail (tasks != NULL); + g_return_if_fail (E_IS_TASKS (tasks)); + + priv = tasks->priv; + + cal_table = E_CALENDAR_TABLE (priv->tasks_view); + e_calendar_table_complete_selected (cal_table); +} + +/** * e_tasks_delete_selected: * @tasks: A tasks control widget. * |