From d9deb731a06228dcb0023e9fe0c00a847c5b65f1 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Wed, 2 Jun 2004 17:29:16 +0000 Subject: removed pre-completion code, not needed anymore. (emlv_finalize): no need 2004-06-02 Rodrigo Moya * gui/e-meeting-list-view.c (start_addressbook_server): removed pre-completion code, not needed anymore. (emlv_finalize): no need to unref the book anymore. (emlv_init): don't call start_addressbook_server. * gui/e-meeting-store.c (start_addressbook_server): removed. (ems_finalize): no need to unref the book anymore. svn path=/trunk/; revision=26156 --- calendar/gui/e-meeting-list-view.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-meeting-list-view.c b/calendar/gui/e-meeting-list-view.c index 85830a2071..82be947d8c 100644 --- a/calendar/gui/e-meeting-list-view.c +++ b/calendar/gui/e-meeting-list-view.c @@ -48,12 +48,9 @@ #define SELECT_NAMES_OAFID "OAFIID:GNOME_Evolution_Addressbook_SelectNames:" BASE_VERSION -struct _EMeetingListViewPrivate -{ +struct _EMeetingListViewPrivate { EMeetingStore *store; - EBook *ebook; - GNOME_Evolution_Addressbook_SelectNames corba_select_names; }; @@ -72,29 +69,11 @@ static icalparameter_role roles[] = {ICAL_ROLE_CHAIR, static GtkTreeViewClass *parent_class = NULL; -static void -start_addressbook_server (EMeetingListView *view) -{ - GError *error = NULL; - - view->priv->ebook = e_book_new_system_addressbook (&error); - if (!view->priv->ebook - || !e_book_open (view->priv->ebook, FALSE, &error)) { - g_warning ("start_addressbook_server(): %s", error->message); - g_error_free (error); - - return; - } -} - static void emlv_finalize (GObject *obj) { EMeetingListView *view = E_MEETING_LIST_VIEW (obj); EMeetingListViewPrivate *priv = view->priv; - - if (priv->ebook != NULL) - g_object_unref (priv->ebook); if (priv->corba_select_names != CORBA_OBJECT_NIL) { CORBA_Environment ev; @@ -128,8 +107,6 @@ emlv_init (EMeetingListView *view) view->priv = priv; priv->corba_select_names = CORBA_OBJECT_NIL; - - start_addressbook_server (view); } E_MAKE_TYPE (e_meeting_list_view, "EMeetingListView", EMeetingListView, emlv_class_init, emlv_init, GTK_TYPE_TREE_VIEW); -- cgit