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



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?

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).

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.

Thanks,

Damien

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=



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