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



Hi all,

I'm experiencing the following problem. I want to add an ESource to an
ESourceGroup corresponding to the local addressbooks. It seems to work,
and if I add a contact to the newly created ESource, it appears in
~/.evolution/addressbook/local

However, the new ESource never appears in Evolution. I noticed that
they /apps/evolution/addressbook/sources key is not updated and doesn't
contain the new ESource.

Am I supposed to modify that GConf key myself?

The code is here :
source_group = gnomemeeting_addressbook_get_local_source_group ();
printf ("Will add Address Book to Source Group: %s\n",
         e_source_group_peek_name (source_group));
                                                                                
source = e_source_new ("", "");
                                                                                
e_source_set_name (source, addressbook->name);
e_source_set_relative_uri (source, e_source_peek_uid (source));
e_source_set_group (source, source_group);
                                                                                
e_source_group_add_source (source_group, source, -1);


That's very similar to what Evo is doing, and Evo is not playing with
the GConf key, I think.

thanks,

Damien who is nearly finished with his evo integration work.




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