pass FALSE as the 'only_if_exists' parameter, so that the calendar gets

2003-10-27  Rodrigo Moya <rodrigo@ximian.com>

	* gui/tasks-component.c (add_uri_for_source): pass FALSE as the
	'only_if_exists' parameter, so that the calendar gets created when
	it still does not exist.

svn path=/trunk/; revision=23080
This commit is contained in:
Rodrigo Moya
2003-10-27 11:29:23 +00:00
committed by Rodrigo Moya
parent 285996988d
commit d14abf0434
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-10-27 Rodrigo Moya <rodrigo@ximian.com>
* gui/tasks-component.c (add_uri_for_source): pass FALSE as the
'only_if_exists' parameter, so that the calendar gets created when
it still does not exist.
2003-10-24 Rodrigo Moya <rodrigo@ximian.com> 2003-10-24 Rodrigo Moya <rodrigo@ximian.com>
* gui/tasks-component.c (tasks_component_init): initialize private * gui/tasks-component.c (tasks_component_init): initialize private

View File

@ -62,7 +62,7 @@ add_uri_for_source (ESource *source, ETasks *tasks)
client = e_cal_model_get_client_for_uri (model, uri); client = e_cal_model_get_client_for_uri (model, uri);
if (!client) { if (!client) {
client = cal_client_new (uri, CALOBJ_TYPE_TODO); client = cal_client_new (uri, CALOBJ_TYPE_TODO);
if (cal_client_open (client, TRUE, &error)) { if (cal_client_open (client, FALSE, &error)) {
e_cal_model_add_client (model, client); e_cal_model_add_client (model, client);
} else { } else {
g_warning (G_STRLOC ": Could not open tasks at %s: %s", uri, error->message); g_warning (G_STRLOC ": Could not open tasks at %s: %s", uri, error->message);