Re: [Evolution-hackers] EBookListener problems



On Fri, Nov 28, 2003 at 07:21:00PM -0600, Chris Toshok wrote:
> Hm, you're returning to the bonobo mainloop, correct?  The book view
> notifications are sent asynchronously.
> 
> Chris

Yeah. From what I'm observing, when I first call
e_book_async_get_book_view() to get my EBookView, the EBookView's
contacts_changed signal is emitted. My callback function is called and
the buddy list is synced. That's the only time it's being called,
though.

I'm thinking that e_book_backend_notify_update for some reason isn't
being called when updates are made, but I'll need to sprinkle some
more debug statements to verify that.

Christian

> On Fri, 2003-11-28 at 00:53, Christian Hammond wrote:
> > On Thu, Nov 27, 2003 at 07:30:00PM -0500, JP Rosevear wrote:
> > > On Thu, 2003-11-27 at 01:50, Christian Hammond wrote:
> > > > Hi.
> > > > 
> > > > I'm trying to get the Gaim-Evolution Integration plugin I'm writing to
> > > > listen for modifications to the address book using EBookListener. So
> > > > far, I haven't received a single event. I looked throughout the
> > > > libedata-book and libebook code, sprinkled several debug statements
> > > > throughout it, and everything appears to be working right.
> > > > 
> > > > I'm a bit at a loss as to how to go about listening in on these
> > > > events. It doesn't even appear as if e-book.c is's
> > > > e_book_handle_response is being called when something is modified in
> > > > Evolution.
> > > 
> > > The EBookListener shouldn't really be used directly, it passes back the
> > > idl responses from the backend rather than does notifications.  What you
> > > likely want is EBookView for all cards.  That will give you
> > > notifications when cards are added/modified/removed.
> > > 
> > > -JP
> > 
> > I'm likely doing something wrong, but I'm still unable to retrieve any
> > updates. I'm still trying to wrap my brain around the evolution code,
> > and I imagine the solution is fairly simple, but for the moment, I'm
> > stuck. Can you provide a short checklist as to what is needed to
> > receive such events from the backend?
> > 
> > Thanks,
> > 
> > Christian

-- 
Christian Hammond         <>  The GNUpdate Project
chipx86 gnupdate org      <>  http://www.gnupdate.org/
   In Life: A solution to all problems is found. World peace is achieved, all
            conflicts end, and everyone is happy.
   Computer Equivalent: Ctrl-Alt-Del

Attachment: pgpEUMuDzo0RY.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]