[Evolution-hackers] e_cal_new_system_calendar() -> creates a new calendar each time?
- From: Patrick Ohly <patrick ohly gmx de>
- To: Evolution Hackers <evolution-hackers gnome org>
- Subject: [Evolution-hackers] e_cal_new_system_calendar() -> creates a new calendar each time?
- Date: Thu, 07 Apr 2011 10:47:20 +0200
Hello!
I noticed that in 2.32/MeeGo, e_cal_new_system_calendar() always creates
a new calendar, although there is already one.
It is defined in gconf as:
<group uid="1300454894.7178.0@pohly-mobl1" name="On This Computer"
base_uri="local:" readonly="no"><source
uid="1300454894.7178.4@pohly-mobl1" name="Personal"
relative_uri="system" color_spec="#BECEDD"/></group>
The sequence of events is this:
1. e_cal_new_system_calendar()
2. e_cal_new_from_uri("local:system", ...
3. get source list
4. search_known_sources() by comparing e_source_peek_absolute_uri()
against "local:system"
5. no source found, create anew
Step 4 fails because there is no absolute URI:
(gdb) p source->priv->absolute_uri
$11 = (gchar *) 0x0
(gdb) p source->priv->relative_uri
$12 = (gchar *) 0x8079450 "system"
Therefore e_source_peek_absolute_uri() returns NULL and the comparison
fails.
What is the root cause for this issue, and how should it be fixed?
--
Bye, Patrick Ohly
--
Patrick Ohly gmx de
http://www.estamos.de/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]