diff options
author | Chris Toshok <toshok@ximian.com> | 2002-11-05 20:16:52 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-11-05 20:16:52 +0800 |
commit | 3a40fbaf60d50b477999335406df0d7bcf0ca84c (patch) | |
tree | ab059a8c48f355a8fd31633b9189300ab6217186 /addressbook/backend/ebook | |
parent | bca61092c2a89aa993abd6302b5c372df099e361 (diff) | |
download | gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.tar gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.tar.gz gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.tar.bz2 gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.tar.lz gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.tar.xz gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.tar.zst gsoc2013-evolution-3a40fbaf60d50b477999335406df0d7bcf0ca84c.zip |
g_date_* => g_date_get_*, fixes G_DISABLE_DEPRECATED build.
2002-11-05 Chris Toshok <toshok@ximian.com>
* backend/ebook/e-card.c: g_date_* => g_date_get_*, fixes
G_DISABLE_DEPRECATED build.
* backend/ebook/e-book-listener.[ch]: remove the servant crap i'd
c&p'ed and put in here.
* backend/ebook/e-book-view-listener.[ch]: remove the servant crap
i'd c&p'ed and put in here.
* backend/pas/pas-book-factory.[ch]: subclass from BonoboObject,
and remove the servant crap from here too. whee.
* backend/pas/pas-card-cursor.[ch]: remove the servant crap i'd
c&p'ed and put in here.
* backend/pas/pas-book.[ch]: remove the servant crap i'd c&p'ed
and put in here.
* backend/pas/pas-book-view.[ch]: remove the servant crap i'd
c&p'ed and put in here.
svn path=/trunk/; revision=18548
Diffstat (limited to 'addressbook/backend/ebook')
-rw-r--r-- | addressbook/backend/ebook/e-book-listener.c | 151 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-book-listener.h | 10 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-book-view-listener.c | 122 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-book-view-listener.h | 11 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-card.c | 8 |
5 files changed, 50 insertions, 252 deletions
diff --git a/addressbook/backend/ebook/e-book-listener.c b/addressbook/backend/ebook/e-book-listener.c index df27e3092a..ffcd1fe127 100644 --- a/addressbook/backend/ebook/e-book-listener.c +++ b/addressbook/backend/ebook/e-book-listener.c @@ -24,12 +24,8 @@ enum { static guint e_book_listener_signals [LAST_SIGNAL]; static BonoboObjectClass *parent_class; -POA_GNOME_Evolution_Addressbook_BookListener__vepv e_book_listener_vepv; struct _EBookListenerPrivate { - EBookListenerServant *servant; - GNOME_Evolution_Addressbook_BookListener corba_objref; - GList *response_queue; gint timeout_id; @@ -379,7 +375,7 @@ impl_BookListener_respond_create_card (PortableServer_Servant const CORBA_char* id, CORBA_Environment *ev) { - EBookListener *listener = E_BOOK_LISTENER (bonobo_object_from_servant (servant)); + EBookListener *listener = E_BOOK_LISTENER (bonobo_object (servant)); e_book_listener_queue_create_card_response ( listener, @@ -392,7 +388,7 @@ impl_BookListener_respond_remove_card (PortableServer_Servant servant, const GNOME_Evolution_Addressbook_BookListener_CallStatus status, CORBA_Environment *ev) { - EBookListener *listener = E_BOOK_LISTENER (bonobo_object_from_servant (servant)); + EBookListener *listener = E_BOOK_LISTENER (bonobo_object (servant)); e_book_listener_queue_generic_response ( listener, RemoveCardResponse, @@ -404,7 +400,7 @@ impl_BookListener_respond_modify_card (PortableServer_Servant servant, const GNOME_Evolution_Addressbook_BookListener_CallStatus status, CORBA_Environment *ev) { - EBookListener *listener = E_BOOK_LISTENER (bonobo_object_from_servant (servant)); + EBookListener *listener = E_BOOK_LISTENER (bonobo_object (servant)); e_book_listener_queue_generic_response ( listener, ModifyCardResponse, @@ -417,7 +413,7 @@ impl_BookListener_respond_get_vcard (PortableServer_Servant servant, const CORBA_char* card, CORBA_Environment *ev) { - EBookListener *listener = E_BOOK_LISTENER (bonobo_object_from_servant (servant)); + EBookListener *listener = E_BOOK_LISTENER (bonobo_object (servant)); e_book_listener_queue_get_vcard_response ( listener, @@ -431,7 +427,7 @@ impl_BookListener_respond_get_cursor (PortableServer_Servant servant, const GNOME_Evolution_Addressbook_CardCursor cursor, CORBA_Environment *ev) { - EBookListener *listener = E_BOOK_LISTENER (bonobo_object_from_servant (servant)); + EBookListener *listener = E_BOOK_LISTENER (bonobo_object (servant)); GNOME_Evolution_Addressbook_CardCursor cursor_copy; cursor_copy = bonobo_object_dup_ref (cursor, ev); @@ -453,7 +449,7 @@ impl_BookListener_respond_get_view (PortableServer_Servant servant, const GNOME_Evolution_Addressbook_BookView book_view, CORBA_Environment *ev) { - EBookListener *listener = E_BOOK_LISTENER (bonobo_object_from_servant (servant)); + EBookListener *listener = E_BOOK_LISTENER (bonobo_object (servant)); GNOME_Evolution_Addressbook_BookView book_view_copy; book_view_copy = bonobo_object_dup_ref (book_view, ev); @@ -475,7 +471,7 @@ impl_BookListener_respond_get_changes (PortableServer_Servant servant, const GNOME_Evolution_Addressbook_BookView book_view, CORBA_Environment *ev) { - EBookListener *listener = E_BOOK_LISTENER (bonobo_object_from_servant (servant)); + EBookListener *listener = E_BOOK_LISTENER (bonobo_object (servant)); GNOME_Evolution_Addressbook_BookView book_view_copy; book_view_copy = bonobo_object_dup_ref (book_view, ev); @@ -497,7 +493,7 @@ impl_BookListener_respond_open_book (PortableServer_Servant servant, const GNOME_Evolution_Addressbook_Book book, CORBA_Environment *ev) { - EBookListener *listener = E_BOOK_LISTENER (bonobo_object_from_servant (servant)); + EBookListener *listener = E_BOOK_LISTENER (bonobo_object (servant)); GNOME_Evolution_Addressbook_Book book_copy; book_copy = bonobo_object_dup_ref (book, ev); @@ -519,7 +515,7 @@ impl_BookListener_report_open_book_progress (PortableServer_Servant servant, const CORBA_short percent, CORBA_Environment *ev) { - EBookListener *listener = E_BOOK_LISTENER (bonobo_object_from_servant (servant)); + EBookListener *listener = E_BOOK_LISTENER (bonobo_object (servant)); e_book_listener_queue_open_progress ( listener, status_message, percent); @@ -530,7 +526,7 @@ impl_BookListener_respond_authentication_result (PortableServer_Servant servant, const GNOME_Evolution_Addressbook_BookListener_CallStatus status, CORBA_Environment *ev) { - EBookListener *listener = E_BOOK_LISTENER (bonobo_object_from_servant (servant)); + EBookListener *listener = E_BOOK_LISTENER (bonobo_object (servant)); e_book_listener_queue_authentication_response ( listener, status); @@ -542,7 +538,7 @@ impl_BookListener_response_get_supported_fields (PortableServer_Servant servant, const GNOME_Evolution_Addressbook_stringlist *fields, CORBA_Environment *ev) { - EBookListener *listener = E_BOOK_LISTENER (bonobo_object_from_servant (servant)); + EBookListener *listener = E_BOOK_LISTENER (bonobo_object (servant)); e_book_listener_queue_get_supported_fields_response ( listener, status, fields); @@ -553,7 +549,7 @@ impl_BookListener_report_connection_status (PortableServer_Servant servant, const CORBA_boolean connected, CORBA_Environment *ev) { - EBookListener *listener = E_BOOK_LISTENER (bonobo_object_from_servant (servant)); + EBookListener *listener = E_BOOK_LISTENER (bonobo_object (servant)); e_book_listener_queue_link_status ( listener, connected); @@ -564,7 +560,7 @@ impl_BookListener_report_writable (PortableServer_Servant servant, const CORBA_boolean writable, CORBA_Environment *ev) { - EBookListener *listener = E_BOOK_LISTENER (bonobo_object_from_servant (servant)); + EBookListener *listener = E_BOOK_LISTENER (bonobo_object (servant)); e_book_listener_queue_writable_status (listener, writable); } @@ -650,70 +646,10 @@ e_book_listener_convert_status (const GNOME_Evolution_Addressbook_BookListener_C } } -void -e_book_listener_construct (EBookListener *listener, - GNOME_Evolution_Addressbook_BookListener corba_objref) -{ - EBookListenerPrivate *priv; - - g_return_if_fail (listener != NULL); - g_return_if_fail (corba_objref != CORBA_OBJECT_NIL); - - priv = listener->priv; - - g_return_if_fail (priv->corba_objref == CORBA_OBJECT_NIL); - - priv->corba_objref = corba_objref; -} - -static EBookListenerServant * -create_servant (EBookListener *listener) -{ - EBookListenerServant *servant; - POA_GNOME_Evolution_Addressbook_BookListener *corba_servant; - CORBA_Environment ev; - - CORBA_exception_init (&ev); - - servant = g_new0 (EBookListenerServant, 1); - corba_servant = (POA_GNOME_Evolution_Addressbook_BookListener *) servant; - - corba_servant->vepv = &e_book_listener_vepv; - POA_GNOME_Evolution_Addressbook_BookListener__init ((PortableServer_Servant) corba_servant, &ev); - if (ev._major != CORBA_NO_EXCEPTION) { - g_free (servant); - CORBA_exception_free (&ev); - return NULL; - } - - servant->object = listener; - - CORBA_exception_free (&ev); - - return servant; -} - -static GNOME_Evolution_Addressbook_BookListener -activate_servant (EBookListener *listener, - POA_GNOME_Evolution_Addressbook_BookListener *servant) +static void +e_book_listener_construct (EBookListener *listener) { - GNOME_Evolution_Addressbook_BookListener corba_object; - CORBA_Environment ev; - - CORBA_exception_init (&ev); - - CORBA_free (PortableServer_POA_activate_object (bonobo_poa (), servant, &ev)); - - corba_object = PortableServer_POA_servant_to_reference (bonobo_poa(), servant, &ev); - - if (ev._major == CORBA_NO_EXCEPTION && ! CORBA_Object_is_nil (corba_object, &ev)) { - CORBA_exception_free (&ev); - return corba_object; - } - - CORBA_exception_free (&ev); - - return CORBA_OBJECT_NIL; + /* nothing to do here */ } /** @@ -728,16 +664,10 @@ EBookListener * e_book_listener_new () { EBookListener *listener; - EBookListenerPrivate *priv; - GNOME_Evolution_Addressbook_BookListener corba_objref; listener = g_object_new (E_TYPE_BOOK_LISTENER, NULL); - priv = listener->priv; - - priv->servant = create_servant (listener); - corba_objref = activate_servant (listener, (POA_GNOME_Evolution_Addressbook_BookListener *) priv->servant); - e_book_listener_construct (listener, corba_objref); + e_book_listener_construct (listener); return listener; } @@ -746,7 +676,6 @@ static void e_book_listener_init (EBookListener *listener) { listener->priv = g_new0 (EBookListenerPrivate, 1); - listener->priv->corba_objref = CORBA_OBJECT_NIL; } void @@ -783,20 +712,25 @@ e_book_listener_dispose (GObject *object) } static void -corba_class_init (EBookListenerClass *klass) +e_book_listener_class_init (EBookListenerClass *klass) { - POA_GNOME_Evolution_Addressbook_BookListener__vepv *vepv; + GObjectClass *object_class = G_OBJECT_CLASS (klass); POA_GNOME_Evolution_Addressbook_BookListener__epv *epv; - PortableServer_ServantBase__epv *base_epv; - base_epv = g_new0 (PortableServer_ServantBase__epv, 1); - base_epv->_private = NULL; - base_epv->finalize = NULL; - base_epv->default_POA = NULL; + parent_class = g_type_class_ref (BONOBO_TYPE_OBJECT); + e_book_listener_signals [RESPONSES_QUEUED] = + g_signal_new ("responses_queued", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (EBookListenerClass, responses_queued), + NULL, NULL, + e_book_marshal_NONE__NONE, + G_TYPE_NONE, 0); - epv = &klass->epv; + object_class->dispose = e_book_listener_dispose; + epv = &klass->epv; epv->notifyOpenBookProgress = impl_BookListener_report_open_book_progress; epv->notifyBookOpened = impl_BookListener_respond_open_book; epv->notifyCardCreated = impl_BookListener_respond_create_card; @@ -810,31 +744,6 @@ corba_class_init (EBookListenerClass *klass) epv->notifyChangesRequested = impl_BookListener_respond_get_changes; epv->notifyConnectionStatus = impl_BookListener_report_connection_status; epv->notifyWritable = impl_BookListener_report_writable; - - vepv = &e_book_listener_vepv; - vepv->_base_epv = base_epv; - vepv->GNOME_Evolution_Addressbook_BookListener_epv = epv; -} - -static void -e_book_listener_class_init (EBookListenerClass *klass) -{ - GObjectClass *object_class = G_OBJECT_CLASS (klass); - - parent_class = g_type_class_ref (BONOBO_TYPE_OBJECT); - - e_book_listener_signals [RESPONSES_QUEUED] = - g_signal_new ("responses_queued", - G_OBJECT_CLASS_TYPE (object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (EBookListenerClass, responses_queued), - NULL, NULL, - e_book_marshal_NONE__NONE, - G_TYPE_NONE, 0); - - object_class->dispose = e_book_listener_dispose; - - corba_class_init (klass); } BONOBO_TYPE_FUNC_FULL ( diff --git a/addressbook/backend/ebook/e-book-listener.h b/addressbook/backend/ebook/e-book-listener.h index c9c0bd02d5..26cd684aab 100644 --- a/addressbook/backend/ebook/e-book-listener.h +++ b/addressbook/backend/ebook/e-book-listener.h @@ -97,18 +97,8 @@ typedef struct { char *vcard; } EBookListenerResponse; - -struct _EBookListenerServant { - POA_GNOME_Evolution_Addressbook_BookListener servant_placeholder; - EBookListener *object; -}; -typedef struct _EBookListenerServant EBookListenerServant; - - EBookListener *e_book_listener_new (void); -void e_book_listener_construct (EBookListener *listener, - GNOME_Evolution_Addressbook_BookListener corba_objref); int e_book_listener_check_pending (EBookListener *listener); EBookListenerResponse *e_book_listener_pop_response (EBookListener *listener); GType e_book_listener_get_type (void); diff --git a/addressbook/backend/ebook/e-book-view-listener.c b/addressbook/backend/ebook/e-book-view-listener.c index fb1d0b3383..1ac4a7ef83 100644 --- a/addressbook/backend/ebook/e-book-view-listener.c +++ b/addressbook/backend/ebook/e-book-view-listener.c @@ -26,12 +26,8 @@ enum { static guint e_book_view_listener_signals [LAST_SIGNAL]; static BonoboObjectClass *parent_class; -POA_GNOME_Evolution_Addressbook_BookViewListener__vepv e_book_view_listener_vepv; struct _EBookViewListenerPrivate { - EBookViewListenerServant *servant; - GNOME_Evolution_Addressbook_BookViewListener corba_objref; - GList *response_queue; gint timeout_id; @@ -211,7 +207,7 @@ impl_BookViewListener_notify_card_added (PortableServer_Servant servant, const GNOME_Evolution_Addressbook_VCardList *cards, CORBA_Environment *ev) { - EBookViewListener *listener = E_BOOK_VIEW_LISTENER (bonobo_object_from_servant (servant)); + EBookViewListener *listener = E_BOOK_VIEW_LISTENER (bonobo_object (servant)); e_book_view_listener_queue_sequence_event ( listener, CardAddedEvent, cards); @@ -222,7 +218,7 @@ impl_BookViewListener_notify_card_removed (PortableServer_Servant servant, const CORBA_char* id, CORBA_Environment *ev) { - EBookViewListener *listener = E_BOOK_VIEW_LISTENER (bonobo_object_from_servant (servant)); + EBookViewListener *listener = E_BOOK_VIEW_LISTENER (bonobo_object (servant)); e_book_view_listener_queue_id_event ( listener, CardRemovedEvent, (const char *) id); @@ -233,7 +229,7 @@ impl_BookViewListener_notify_card_changed (PortableServer_Servant servant, const GNOME_Evolution_Addressbook_VCardList *cards, CORBA_Environment *ev) { - EBookViewListener *listener = E_BOOK_VIEW_LISTENER (bonobo_object_from_servant (servant)); + EBookViewListener *listener = E_BOOK_VIEW_LISTENER (bonobo_object (servant)); e_book_view_listener_queue_sequence_event ( listener, CardModifiedEvent, cards); @@ -244,7 +240,7 @@ impl_BookViewListener_notify_sequence_complete (PortableServer_Servant servant, const GNOME_Evolution_Addressbook_BookViewListener_CallStatus status, CORBA_Environment *ev) { - EBookViewListener *listener = E_BOOK_VIEW_LISTENER (bonobo_object_from_servant (servant)); + EBookViewListener *listener = E_BOOK_VIEW_LISTENER (bonobo_object (servant)); e_book_view_listener_queue_status_event (listener, SequenceCompleteEvent, e_book_view_listener_convert_status (status)); @@ -255,7 +251,7 @@ impl_BookViewListener_notify_status_message (PortableServer_Servant servant, const char *message, CORBA_Environment *ev) { - EBookViewListener *listener = E_BOOK_VIEW_LISTENER (bonobo_object_from_servant (servant)); + EBookViewListener *listener = E_BOOK_VIEW_LISTENER (bonobo_object (servant)); e_book_view_listener_queue_message_event (listener, StatusMessageEvent, message); } @@ -331,70 +327,10 @@ e_book_view_listener_convert_status (const GNOME_Evolution_Addressbook_BookViewL } } -void -e_book_view_listener_construct (EBookViewListener *listener, - GNOME_Evolution_Addressbook_BookViewListener corba_objref) -{ - EBookViewListenerPrivate *priv; - - g_return_if_fail (listener != NULL); - g_return_if_fail (corba_objref != CORBA_OBJECT_NIL); - - priv = listener->priv; - - g_return_if_fail (priv->corba_objref == CORBA_OBJECT_NIL); - - priv->corba_objref = corba_objref; -} - -static EBookViewListenerServant * -create_servant (EBookViewListener *listener) +static void +e_book_view_listener_construct (EBookViewListener *listener) { - EBookViewListenerServant *servant; - POA_GNOME_Evolution_Addressbook_BookViewListener *corba_servant; - CORBA_Environment ev; - - CORBA_exception_init (&ev); - - servant = g_new0 (EBookViewListenerServant, 1); - corba_servant = (POA_GNOME_Evolution_Addressbook_BookViewListener *) servant; - - corba_servant->vepv = &e_book_view_listener_vepv; - POA_GNOME_Evolution_Addressbook_BookViewListener__init ((PortableServer_Servant) corba_servant, &ev); - if (ev._major != CORBA_NO_EXCEPTION) { - g_free (servant); - CORBA_exception_free (&ev); - return NULL; - } - - servant->object = listener; - - CORBA_exception_free (&ev); - - return servant; -} - -static GNOME_Evolution_Addressbook_BookViewListener -activate_servant (EBookViewListener *listener, - POA_GNOME_Evolution_Addressbook_BookViewListener *servant) -{ - GNOME_Evolution_Addressbook_BookViewListener corba_object; - CORBA_Environment ev; - - CORBA_exception_init (&ev); - - CORBA_free (PortableServer_POA_activate_object (bonobo_poa (), servant, &ev)); - - corba_object = PortableServer_POA_servant_to_reference (bonobo_poa(), servant, &ev); - - if (ev._major == CORBA_NO_EXCEPTION && ! CORBA_Object_is_nil (corba_object, &ev)) { - CORBA_exception_free (&ev); - return corba_object; - } - - CORBA_exception_free (&ev); - - return CORBA_OBJECT_NIL; + /* nothing needed here */ } /** @@ -409,16 +345,10 @@ EBookViewListener * e_book_view_listener_new () { EBookViewListener *listener; - EBookViewListenerPrivate *priv; - GNOME_Evolution_Addressbook_BookViewListener corba_objref; listener = g_object_new (E_TYPE_BOOK_VIEW_LISTENER, NULL); - priv = listener->priv; - priv->servant = create_servant (listener); - corba_objref = activate_servant (listener, (POA_GNOME_Evolution_Addressbook_BookViewListener *) priv->servant); - - e_book_view_listener_construct (listener, corba_objref); + e_book_view_listener_construct (listener); return listener; } @@ -427,7 +357,6 @@ static void e_book_view_listener_init (EBookViewListener *listener) { listener->priv = g_new0 (EBookViewListenerPrivate, 1); - listener->priv->corba_objref = CORBA_OBJECT_NIL; listener->priv->response_queue = NULL; listener->priv->timeout_id = 0; listener->priv->timeout_lock = FALSE; @@ -477,34 +406,10 @@ e_book_view_listener_dispose (GObject *object) } static void -corba_class_init (EBookViewListenerClass *klass) -{ - POA_GNOME_Evolution_Addressbook_BookViewListener__vepv *vepv; - POA_GNOME_Evolution_Addressbook_BookViewListener__epv *epv; - PortableServer_ServantBase__epv *base_epv; - - base_epv = g_new0 (PortableServer_ServantBase__epv, 1); - base_epv->_private = NULL; - base_epv->finalize = NULL; - base_epv->default_POA = NULL; - - - epv = &klass->epv; - epv->notifyCardChanged = impl_BookViewListener_notify_card_changed; - epv->notifyCardRemoved = impl_BookViewListener_notify_card_removed; - epv->notifyCardAdded = impl_BookViewListener_notify_card_added; - epv->notifySequenceComplete = impl_BookViewListener_notify_sequence_complete; - epv->notifyStatusMessage = impl_BookViewListener_notify_status_message; - - vepv = &e_book_view_listener_vepv; - vepv->_base_epv = base_epv; - vepv->GNOME_Evolution_Addressbook_BookViewListener_epv = epv; -} - -static void e_book_view_listener_class_init (EBookViewListenerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); + POA_GNOME_Evolution_Addressbook_BookViewListener__epv *epv; parent_class = g_type_class_ref (BONOBO_TYPE_OBJECT); @@ -519,7 +424,12 @@ e_book_view_listener_class_init (EBookViewListenerClass *klass) object_class->dispose = e_book_view_listener_dispose; - corba_class_init (klass); + epv = &klass->epv; + epv->notifyCardChanged = impl_BookViewListener_notify_card_changed; + epv->notifyCardRemoved = impl_BookViewListener_notify_card_removed; + epv->notifyCardAdded = impl_BookViewListener_notify_card_added; + epv->notifySequenceComplete = impl_BookViewListener_notify_sequence_complete; + epv->notifyStatusMessage = impl_BookViewListener_notify_status_message; } BONOBO_TYPE_FUNC_FULL ( diff --git a/addressbook/backend/ebook/e-book-view-listener.h b/addressbook/backend/ebook/e-book-view-listener.h index 3100a2f532..f12fdca779 100644 --- a/addressbook/backend/ebook/e-book-view-listener.h +++ b/addressbook/backend/ebook/e-book-view-listener.h @@ -71,18 +71,7 @@ typedef struct { } EBookViewListenerResponse; - -struct _EBookViewListenerServant { - POA_GNOME_Evolution_Addressbook_BookViewListener servant_placeholder; - EBookViewListener *object; -}; -typedef struct _EBookViewListenerServant EBookViewListenerServant; - - - EBookViewListener *e_book_view_listener_new (void); -void e_book_view_listener_construct (EBookViewListener *listener, - GNOME_Evolution_Addressbook_BookViewListener corba_objref); int e_book_view_listener_check_pending (EBookViewListener *listener); EBookViewListenerResponse *e_book_view_listener_pop_response (EBookViewListener *listener); GType e_book_view_listener_get_type (void); diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c index 0419a6b885..f98269dff5 100644 --- a/addressbook/backend/ebook/e-card.c +++ b/addressbook/backend/ebook/e-card.c @@ -280,7 +280,7 @@ e_card_get_use_score(ECard *card) e_card_get_today (&today); g_date_set_dmy (&last_use, card->last_use->day, card->last_use->month, card->last_use->year); - days_since_last_use = g_date_julian (&today) - g_date_julian (&last_use); + days_since_last_use = g_date_get_julian (&today) - g_date_get_julian (&last_use); /* Apply a seven-day "grace period" to the use score decay. */ days_since_last_use -= 7; @@ -304,9 +304,9 @@ e_card_touch(ECard *card) if (card->last_use == NULL) card->last_use = g_new (ECardDate, 1); - card->last_use->day = g_date_day (&today); - card->last_use->month = g_date_month (&today); - card->last_use->year = g_date_year (&today); + card->last_use->day = g_date_get_day (&today); + card->last_use->month = g_date_get_month (&today); + card->last_use->year = g_date_get_year (&today); card->raw_use_score = use_score + 1.0; } |