diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-10-31 03:04:54 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-10-31 03:04:54 +0800 |
commit | 973ca5ea3d5d3b28cbf16865336c344864f652d8 (patch) | |
tree | a91b68ae7d16d3c3ec2a19df597251514032f3b9 /calendar/gui/tasks-control.c | |
parent | 61031f4cb0f452d917bd3c1e8e6a5522cac57b2f (diff) | |
download | gsoc2013-evolution-973ca5ea3d5d3b28cbf16865336c344864f652d8.tar.gz gsoc2013-evolution-973ca5ea3d5d3b28cbf16865336c344864f652d8.tar.zst gsoc2013-evolution-973ca5ea3d5d3b28cbf16865336c344864f652d8.zip |
removed.
2003-10-30 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-tasks.[ch] (e_tasks_get_cal_client): removed.
* gui/tasks-control.c (sensitize_commands): fixed to work correctly
with the ECalView's model.
(tasks_control_set_property): don't use e_tasks_get_cal_client.
* gui/alarm-notify/alarm-notify.c (free_client_hash): new function
to remove items from the CalClient's hash table.
(alarm_notify_finalize): call free_client_hash() for each item
in the hash table.
svn path=/trunk/; revision=23136
Diffstat (limited to 'calendar/gui/tasks-control.c')
-rw-r--r-- | calendar/gui/tasks-control.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/calendar/gui/tasks-control.c b/calendar/gui/tasks-control.c index e0482b2d77..2729416ca8 100644 --- a/calendar/gui/tasks-control.c +++ b/calendar/gui/tasks-control.c @@ -47,6 +47,7 @@ #include "calendar-config.h" #include "calendar-commands.h" #include "e-tasks.h" +#include "e-calendar-table.h" #include "tasks-control.h" #include "evolution-shell-component-utils.h" @@ -162,11 +163,13 @@ tasks_control_get_property (BonoboPropertyBag *bag, { ETasks *tasks = user_data; const char *uri; + ECalModel *model; switch (arg_id) { case TASKS_CONTROL_PROPERTY_URI_IDX: - uri = cal_client_get_uri (e_tasks_get_cal_client (tasks)); + model = e_calendar_table_get_model (e_tasks_get_calendar_table (tasks)); + uri = cal_client_get_uri (e_cal_model_get_default_client (model)); BONOBO_ARG_SET_STRING (arg, uri); break; @@ -231,11 +234,13 @@ sensitize_commands (ETasks *tasks, BonoboControl *control, int n_selected) { BonoboUIComponent *uic; gboolean read_only = TRUE; + ECalModel *model; uic = bonobo_control_get_ui_component (control); g_assert (uic != NULL); - cal_client_is_read_only (e_tasks_get_cal_client (tasks), &read_only, NULL); + model = e_calendar_table_get_model (e_tasks_get_calendar_table (tasks)); + cal_client_is_read_only (e_cal_model_get_default_client (model), &read_only, NULL); bonobo_ui_component_set_prop (uic, "/commands/TasksCut", "sensitive", n_selected == 0 || read_only ? "0" : "1", |