[evolution] Create the source groups required to ensure local adresssbooks and calendars are created
- From: Chenthill Palanisamy <pchen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Create the source groups required to ensure local adresssbooks and calendars are created
- Date: Thu, 20 May 2010 07:44:50 +0000 (UTC)
commit 428f26b128cf34f30e053584b07d29b1b44b0a36
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Thu May 20 13:11:04 2010 +0530
Create the source groups required to ensure local adresssbooks and calendars are created
modules/addressbook/e-book-shell-backend.c | 1 +
modules/calendar/e-cal-shell-backend.c | 7 +++++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/modules/addressbook/e-book-shell-backend.c b/modules/addressbook/e-book-shell-backend.c
index 1a9c58b..d0340f7 100644
--- a/modules/addressbook/e-book-shell-backend.c
+++ b/modules/addressbook/e-book-shell-backend.c
@@ -169,6 +169,7 @@ book_shell_backend_ensure_sources (EShellBackend *shell_backend)
source_group = e_source_group_new (name, base_uri);
e_source_list_add_group (priv->source_list, source_group, -1);
+ on_this_computer = source_group;
g_object_unref (source_group);
}
diff --git a/modules/calendar/e-cal-shell-backend.c b/modules/calendar/e-cal-shell-backend.c
index 20ab7cf..d97ad6f 100644
--- a/modules/calendar/e-cal-shell-backend.c
+++ b/modules/calendar/e-cal-shell-backend.c
@@ -166,6 +166,13 @@ cal_shell_backend_ensure_sources (EShellBackend *shell_backend)
* Open ... because of invalid URI" error. */
save_list = TRUE;
}
+ } else {
+ ESourceGroup *source_group;
+
+ source_group = e_source_group_new (name, base_uri);
+ e_source_list_add_group (priv->source_list, source_group, -1);
+ on_this_computer = source_group;
+ g_object_unref (source_group);
}
name = _("Personal");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]