Re: [Evolution-hackers] Creating objects in ECal

2006-07-26 Thread Teresa Thomas
Thanks Peter...tried both. Also tried an entirely different VEVENT. Still the same. When does the e_cal_create_object() fail/not function properly even when the iCalComponent is (apparently) formed correctly? On 7/27/06, Peter Colijn <[EMAIL PROTECTED]> wrote: Hi Teresa,On 7/27/06, Teresa Thomas <[

Re: [Evolution-hackers] Creating objects in ECal

2006-07-26 Thread Peter Colijn
Hi Teresa, On 7/27/06, Teresa Thomas <[EMAIL PROTECTED]> wrote: > printf("%d", icalcomponent_is_valid(iCalComp)); > prints a 1. > > BEGIN:VEVENT > > UID:[EMAIL PROTECTED] > > DTSTAMP:20060901T1300Z > > DTSTART:20060401T163000Z > > DTEND:20060402T01Z > > SUMMARY:Claudia is in sensitivity awaren

Re: [Evolution-hackers] Creating objects in ECal

2006-07-26 Thread Teresa Thomas
To add to my previous question, the statementprintf("%d", icalcomponent_is_valid(iCalComp));prints a 1.What could be going wrong? On 7/26/06, Teresa Thomas <[EMAIL PROTECTED]> wrote: I am trying to add an event into my ECal, using the following code:    ...    // Convert vevent into iCalComponent  

[Evolution-hackers] Missing functions from libecal API reference doc

2006-07-26 Thread Teresa Thomas
After days of playing around with ESources and ESourceLists, I realized that all I needed was the e_cal_open_default() function from e-cal.h. Unfortunately, this function seems to be missing from the API docs. Please do add it to the docs, as it is quite a useful function. It is declared around lin

[Evolution-hackers] Creating objects in ECal

2006-07-26 Thread Teresa Thomas
I am trying to add an event into my ECal, using the following code:    ...    // Convert vevent into iCalComponent    icalcomponent* iCalComp = icalcomponent_new_from_string(Filecontents);     // Create an object in calendar gboolean is_create = e_cal_create_object(ecal, iCalComp, (char **

Re: [Evolution-hackers] Error while trying to obtain ESource list

2006-07-26 Thread Peter Colijn
Cool, thanks for the clarification. gtk_init() is definitely simpler! Have fun, Peter On 7/26/06, Ross Burton <[EMAIL PROTECTED]> wrote: > On Tue, 2006-07-25 at 19:19 -0400, Peter Colijn wrote: > > I think the issue here is that g_type_init() is not being called. > > Generally for gnome programs

Re: [Evolution-hackers] Error while trying to obtain ESource list

2006-07-26 Thread Ross Burton
On Tue, 2006-07-25 at 19:19 -0400, Peter Colijn wrote: > I think the issue here is that g_type_init() is not being called. > Generally for gnome programs, the first thing main() should do is call > gnome_program_init, which will call the init()s of a bunch of > libraries and make sure that everythi