Re: [Evolution-hackers] e_cal_get_query - wah?
- From: Rodrigo Moya <rodrigo ximian com>
- To: Trent Lloyd <lathiat bur st>
- Cc: evolution-hackers lists ximian com
- Subject: Re: [Evolution-hackers] e_cal_get_query - wah?
- Date: Mon, 19 Apr 2004 12:16:04 +0200
On Mon, 2004-04-19 at 12:37 +0800, Trent Lloyd wrote:
> Appologies, that was me trying something (I had seen it somewhere) and
> forgot to take it out.
> 
> It doesn't work with #t either, heres the actual code
> 
>         ESourceList *source_list;
>         GString *uri_str;
>         ESource *source;
>         ECalSourceType type;
>         GConfClient *gconf_client;
>         ECal *cal;
> static ECalView *test;
>                                                                                                                              
>         gconf_client = gconf_client_get_default();
>         source_list = e_source_list_new_for_gconf(gconf_client,
> "/apps/evolution/calendar/sources");
>         source = e_source_list_peek_source_by_uid(source_list,
> uri->uid);
>         type = E_CAL_SOURCE_TYPE_EVENT;
>         cal = auth_new_cal_from_source(source, type);
>
is auth_new_cal_from_source calling e_cal_open/e_cal_open_async? It
seems to me you are not opening the calendar. That needs to be called
before e_cal_get_query
cheers
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]