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 546825 - e_cal_get_sources does not return all sources
e_cal_get_sources does not return all sources
Status: RESOLVED DUPLICATE of bug 647873
Product: evolution-data-server
Classification: Platform
Component: Tasks
2.24.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2008-08-07 15:40 UTC by Patryk Zawadzki
Modified: 2011-04-15 20:59 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Patryk Zawadzki 2008-08-07 15:40:04 UTC
This used to work as expected but no longer does. I don't have Evolution installed and there is no /apps/evolution/tasks key in gconf.

Consider the following example:

ESourceList * sources;
e_cal_get_sources (&sources, E_CAL_SOURCE_TYPE_TODO, NULL);

This returns nothing (as it seems to just read and parse a gconf key every time it's called). Now try this:

ECal * cal;
cal = e_cal_new_system_tasks ();

This returns a valid ECal object and it contains all my tasks but is hardcoded to load from ~/.evolution/tasks/local/system and does not have a corresponding entry in the source list.

I guess if the above call results in opening an ECal from a fixed location, this location should always appear as a local source. Either that or the behavior should be documented.

The new_system_memos/new_system_calendar seem to behave the same way.

See also bug #546589.
Comment 1 David Woodhouse 2011-04-15 20:59:43 UTC
I believe this was fixed, as bug #647873

*** This bug has been marked as a duplicate of bug 647873 ***