diff options
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r-- | calendar/gui/e-tasks.c | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c index ae915e49e2..e7b60ed8aa 100644 --- a/calendar/gui/e-tasks.c +++ b/calendar/gui/e-tasks.c @@ -698,72 +698,6 @@ set_status_message (ETasks *tasks, const char *message) e_calendar_table_set_status_message (E_CALENDAR_TABLE (priv->tasks_view), message); } -gboolean -e_tasks_open (ETasks *tasks, - char *file) -{ -#if 0 - ETasksPrivate *priv; - char *message; - EUri *uri; - char *real_uri; - char *urinopwd; - ECalModel *model; - GError *error = NULL; - - g_return_val_if_fail (tasks != NULL, FALSE); - g_return_val_if_fail (E_IS_TASKS (tasks), FALSE); - g_return_val_if_fail (file != NULL, FALSE); - - priv = tasks->priv; - - uri = e_uri_new (file); - if (!uri || !g_strncasecmp (uri->protocol, "file", 4)) - real_uri = g_concat_dir_and_file (file, "tasks.ics"); - else - real_uri = g_strdup (file); - - urinopwd = get_uri_without_password (real_uri); - message = g_strdup_printf (_("Opening tasks at %s"), urinopwd); - set_status_message (tasks, message); - g_free (message); - g_free (urinopwd); - - /* create the ECal */ - priv->client = e_cal_new (real_uri, CALOBJ_TYPE_TODO); - if (!priv->client) - return FALSE; - - g_signal_connect (priv->client, "cal_opened", - G_CALLBACK (cal_opened_cb), tasks); - g_signal_connect (priv->client, "backend_error", - G_CALLBACK (backend_error_cb), tasks); - g_signal_connect (priv->client, "categories_changed", - G_CALLBACK (client_categories_changed_cb), tasks); - g_signal_connect (priv->client, "obj_updated", - G_CALLBACK (client_obj_updated_cb), tasks); - - model = e_calendar_table_get_model (E_CALENDAR_TABLE (priv->tasks_view)); - g_assert (model != NULL); - - e_cal_model_add_client (model, priv->client); - - if (e_cal_open (priv->client, FALSE, &error)) { - g_message ("e_tasks_open(): %s", error->message); - g_free (real_uri); - e_uri_free (uri); - g_error_free (error); - - return FALSE; - } - - g_free (real_uri); - e_uri_free (uri); -#endif - return TRUE; -} - - /* Displays an error to indicate that loading a calendar failed */ static void load_error (ETasks *tasks, |