diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2004-01-22 01:55:44 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-01-22 01:55:44 +0800 |
commit | 4e676f28fcd8bb7e5430c696bb6e6b711e18bf25 (patch) | |
tree | b20fdca549b69f10c583e46d4fe5707664c14f6c /calendar/gui/tasks-component.c | |
parent | 29ca7c6778a87c64230982432ee9364c95f5c614 (diff) | |
download | gsoc2013-evolution-4e676f28fcd8bb7e5430c696bb6e6b711e18bf25.tar.gz gsoc2013-evolution-4e676f28fcd8bb7e5430c696bb6e6b711e18bf25.tar.zst gsoc2013-evolution-4e676f28fcd8bb7e5430c696bb6e6b711e18bf25.zip |
renamed to _source and made them work with ESource's.
2004-01-21 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-tasks.[ch] (e_tasks_add_todo_uri, e_tasks_remove_todo_uri,
e_tasks_get_default_uri): renamed to _source and made them work
with ESource's.
* gui/tasks-component.c (update_uri_for_primary_selection,
add_uri_for_source, remove_uri_for_source):
* gui/tasks-control.c (tasks_control_set_property): updated for
changes in e-tasks.[ch].
svn path=/trunk/; revision=24354
Diffstat (limited to 'calendar/gui/tasks-component.c')
-rw-r--r-- | calendar/gui/tasks-component.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c index a07095d571..d4de27f90c 100644 --- a/calendar/gui/tasks-component.c +++ b/calendar/gui/tasks-component.c @@ -84,19 +84,13 @@ struct _TasksComponentPrivate { static void add_uri_for_source (ESource *source, ETasks *tasks) { - char *uri = e_source_get_uri (source); - - e_tasks_add_todo_uri (tasks, uri); - g_free (uri); + e_tasks_add_todo_source (tasks, source); } static void remove_uri_for_source (ESource *source, ETasks *tasks) { - char *uri = e_source_get_uri (source); - - e_tasks_remove_todo_uri (tasks, uri); - g_free (uri); + e_tasks_remove_todo_source (tasks, source); } static gboolean @@ -186,7 +180,6 @@ update_uri_for_primary_selection (TasksComponent *component) { TasksComponentPrivate *priv; ESource *source; - char *uri; ECalendarTable *cal_table; ETable *etable; @@ -197,9 +190,7 @@ update_uri_for_primary_selection (TasksComponent *component) return; /* Set the default */ - uri = e_source_get_uri (source); - e_tasks_set_default_uri (priv->tasks, uri); - g_free (uri); + e_tasks_set_default_source (priv->tasks, source); cal_table = e_tasks_get_calendar_table (priv->tasks); etable = e_calendar_table_get_table (cal_table); |