summaryrefslogtreecommitdiff
blob: a362b93ccf7fc0b4d3871213c62fa156fc0fb3ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
*** wmcalendar-0.5.0/Src/calendar.c.old	Thu Nov 24 13:04:35 2005
--- wmcalendar-0.5.0/Src/calendar.c	Thu Nov 24 13:50:16 2005
***************
*** 105,111 ****
  		prop = icalcomponent_get_first_property(d, ICAL_TRANSP_PROPERTY ); 
  		reocc = icalcomponent_get_first_property(d, ICAL_RRULE_PROPERTY); 
  		if(prop) 
! 		    (const char*)transp = icalproperty_get_value_as_string(prop);
  		if(!strcmp(transp, "OPAQUE"))
  		    value = 1;
  		else if(!strcmp(transp, "TRANSPARENT"))
--- 105,111 ----
  		prop = icalcomponent_get_first_property(d, ICAL_TRANSP_PROPERTY ); 
  		reocc = icalcomponent_get_first_property(d, ICAL_RRULE_PROPERTY); 
  		if(prop) 
! 		    transp = (char *)icalproperty_get_value_as_string(prop);
  		if(!strcmp(transp, "OPAQUE"))
  		    value = 1;
  		else if(!strcmp(transp, "TRANSPARENT"))
***************
*** 117,123 ****
  		/* get desciption */
  		prop = icalcomponent_get_first_property(d,     ICAL_SUMMARY_PROPERTY); 
  		if(prop) {
! 		    (const char*)text = icalproperty_get_value_as_string(prop);
  		    addCalObj(t1, t2, value, text, d);
  		    if(get_debug())printf("read: %d.%d.%d - %d.%d.%d %s\n", t1.day, t1.month,
  				    t1.year, t2.day, t2.month, t2.year, text);
--- 117,123 ----
  		/* get desciption */
  		prop = icalcomponent_get_first_property(d,     ICAL_SUMMARY_PROPERTY); 
  		if(prop) {
! 		    text = (char *)icalproperty_get_value_as_string(prop);
  		    addCalObj(t1, t2, value, text, d);
  		    if(get_debug())printf("read: %d.%d.%d - %d.%d.%d %s\n", t1.day, t1.month,
  				    t1.year, t2.day, t2.month, t2.year, text);
***************
*** 321,327 ****
  	free(calRoot->text);
  	free(calRoot->comp);
  	free(calRoot);
! 	(struct calObj*)calRoot = help;
      }
      for(i = 0; i < 32; i++)
  	datetype[i][1] = 0;
--- 321,327 ----
  	free(calRoot->text);
  	free(calRoot->comp);
  	free(calRoot);
! 	calRoot = help;
      }
      for(i = 0; i < 32; i++)
  	datetype[i][1] = 0;