After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 651226 - e_book_new_system_addressbook() should create source in GConf
e_book_new_system_addressbook() should create source in GConf
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Contacts
2.32.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2011-05-27 09:42 UTC by Christophe Dumez
Modified: 2011-06-03 09:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch - Part 1 (980 bytes, patch)
2011-05-27 09:42 UTC, Christophe Dumez
none Details | Review
Proposed patch - Part 2 (2.55 KB, patch)
2011-05-27 09:42 UTC, Christophe Dumez
none Details | Review
Proposed patch [1/2] (1.21 KB, patch)
2011-05-31 13:20 UTC, Christophe Dumez
committed Details | Review
Proposed patch [2/2] (2.88 KB, patch)
2011-05-31 13:21 UTC, Christophe Dumez
committed Details | Review

Description Christophe Dumez 2011-05-27 09:42:22 UTC
Created attachment 188735 [details] [review]
Proposed patch - Part 1

e_book_new_system_addressbook() does not currently create system source in GConf. This means that, if evolution is never executed (to do the necessary GConf work), then e_book_new_system_addressbook() will keep creating new address books.

Note that a similar problem was already reported (and fixed) in libecal, see:
- http://git.gnome.org/browse/evolution-data-server/commit/?h=pohly-gnome-2-32&id=e6b134fd713addacc770e25f751235ff168fbf66
- http://git.gnome.org/browse/evolution-data-server/commit/?h=pohly-gnome-2-32&id=4c622668652222c6d7817eb5c3c6bbc562073573

Please find attached 2 similar patches to address the same issue in libebook.
I have tested that it works as expected with these patches applied (only one "system" address book is created).
Comment 1 Christophe Dumez 2011-05-27 09:42:42 UTC
Created attachment 188736 [details] [review]
Proposed patch - Part 2
Comment 2 David Woodhouse 2011-05-31 11:41:52 UTC
These look sane to me; thanks. Please include a reference to the 'corresponding' commit for calendar, in the commit comment. It makes it easier to match them together later, when reading the history. Make sure you reference the *master* commit, of course.
Comment 3 Christophe Dumez 2011-05-31 13:20:53 UTC
Created attachment 188934 [details] [review]
Proposed patch [1/2]

Fixed the commit message.
Comment 4 Christophe Dumez 2011-05-31 13:21:29 UTC
Created attachment 188935 [details] [review]
Proposed patch [2/2]

Updated commit comment.
Comment 5 Milan Crha 2011-06-02 17:44:20 UTC
Well, I do not know why this should be done in two patches, there is no need for that. Also, the master git does not exhibit this issue, technically, because EBook is deprecated in it, same as ECal, it's replaced with EBook/CalClient API, and this has this done already, because it's sharing the same code.

Nonetheless, for the time being, it can be used on master and gnome-3-0 branches.
Comment 6 Milan Crha 2011-06-03 09:35:51 UTC
Created commit 65a0f25 in eds master (3.1.2+)

By the way, it's not libical, but libecal ;)