Re: [Evolution-hackers] Adding a source to a source group



On Sun, 2004-05-16 at 15:42 +0200, Damien Sandras wrote:
> Le sam, 15/05/2004 à 20:28 +0200, Rodrigo Moya a écrit :
> 
> [..]
> 
> > you need to add the groups to an ESourceList. That is, first get the
> > correct ESourceList:
> > 
> > 	source_list = e_source_list_new_for_gconf (gconf_client,
> > "/apps/evolution/addressbook/sources");
> > 
> > then add the groups and the sources, and then, call e_source_list_sync,
> > so that the new source is saved immediately to GConf.
> > 
> 
> Am I supposed to use e_source_list_add_group to do so?
> 
yes, unless it is already added to the ESourceList.

> Actually, I'm adding the new ESource to an existing ESourceGroup which
> is the "On This Computer" ESourceGroup and e_source_list_add_group
> returns FALSE (which seems logical as the ESourceGroup is already part
> of the ESourceList).
> 
then no, don't re-add it.

> So unfortunately I'm still having the same problem and the GConf key is
> not updated even when calling e_source_list_sync. The directory
> containing the address book is updated when adding a new contact to the
> newly created ESource, but it never gets listed and the GConf key
> remains as is.
> 
that's weird, not sure what might be happening. Is the ESourceList
retrieved with the e_source_list_new_for_gconf? And I guess you are
using a correct GConfClient, right?

cheers




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