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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
|
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* gui/calendar-commands.c, gui/e-day-view.c, gui/e-week-view.c,
gui/event-editor.c, gui/gncal-todo.c, gui/gnome-cal.c, gui/prop.c:
Fixed some warnings.
2000-08-24 JP Rosevear <jpr@helixcode.com>
* gui/e-week-view.c (e_week_view_on_new_appointment): Do not alloc
the struct icaltimetype but point to one on the stack. More
importantly, set the date.tzid to NULL.
2000-08-24 JP Rosevear <jpr@helixcode.com>
* gui/gnome-cal.c (save_event_object_cb): Make signal
names saner
(released_event_object_cb): ditto
(gnome_calendar_edit_object): ditto
* gui/event-editor.h: Make signal names saner
* gui/event-editor.c (event_editor_class_init): Make signal
names saner now that we don't use ical object
(save_event_object): ditto with callback names
(file_save_cb): ditto
(tb_save_and_close_cb): ditto
(event_editor_set_ical_object): ditto
* gui/e-day-view.c (e_day_view_update_event): Umm,
!= CAL_COMPONENT_EVENT (I hope that wasn't me!)
2000-08-24 Federico Mena Quintero <federico@helixcode.com>
* gui/e-day-view.c (e_day_view_on_new_appointment): Do not alloc
the struct icaltimetype but point to one on the stack. More
importantly, set the date.tzid to NULL.
2000-08-24 JP Rosevear <jpr@helixcode.com>
* gui/event-editor-dialog.glade: Remove owner field
* gui/event-editor.c (clear_widgets): Forget about owner field
(get_widgets): ditto
(fill_widgets): ditto
2000-08-24 JP Rosevear <jpr@helixcode.com>
* gui/calendar-model.c (calendar_model_initialize_value): Handle
summary field
(calendar_model_value_is_empty): ditto
(calendar_model_free_value): ditto
2000-08-23 JP Rosevear <jpr@helixcode.com>
* gui/event-editor-dialog.glade: Remove status bar
* cal-util/cal-component.c (cal_component_set_rrule_list): Allow
a null list
(cal_component_set_rdate_list): Allow a null list
* gui/e-day-view.c (e_day_view_on_new_appointment): Commit
the CalComponent sequence
2000-08-23 Federico Mena Quintero <federico@helixcode.com>
* gui/main.c: #include <e-util/e-cursors.h>
* gui/e-day-view-time-item.c (e_day_view_time_item_draw):
Initialize time_min_x1 and hour_r to keep gcc happy.
* gui/e-day-view.c (e_day_view_update_event_label): Warning fix.
(e_day_view_update_main_canvas_drag): Initialize start_row.
* gui/e-week-view-event-item.c (e_week_view_event_item_draw):
Initialize time_y_small_min, icon_x.
* Makefile.am (SUBDIRS): Re-enable the gui directory.
* gui/prop.c (prop_store_alarm_default_values): Temporarily #if 0
out.
2000-08-23 JP Rosevear <jpr@helixcode.com>
* gui/e-week-view.c (e_week_view_key_press): Set vtype of new
CalComponent
(e_week_view_on_new_appointment): ditto
* gui/e-day-view.c (e_day_view_on_new_appointment): ditto
2000-08-23 JP Rosevear <jpr@helixcode.com>
* gui/e-day-view-time-item.c: Include gnome.h for gettext purposes
* gui/gnome-cal.c: ditto
* gui/prop.c: #if out some alarm stuff
2000-08-23 Federico Mena Quintero <federico@helixcode.com>
* gui/e-calendar-table.c (e_calendar_table_init): Updated
function.
(e_calendar_table_open_task): Updated function.
2000-08-21 Federico Mena Quintero <federico@helixcode.com>
* gui/calendar-model.c (calendar_model_duplicate_value): Updated
function.
(calendar_model_free_value): Updated function.
(calendar_model_initialize_value): Updated function.
(calendar_model_value_is_empty): Updated function.
(remove_object): Updated function.
(obj_updated_cb): Updated function.
(calendar_model_get_cal_client): Added inline docs.
(calendar_model_delete_task): Updated.
(calendar_model_mark_task_complete): Updated.
(calendar_model_get_cal_object): Updated.
2000-08-21 Federico Mena Quintero <federico@helixcode.com>
* gui/calendar-model.c (set_categories): New function.
(parse_time): Moved over from the old set_time_t(). This just
parses the time and leaves the warning dialog for the caller.
(set_datetime): New function.
(set_geo): Updated old function.
(set_percent): Updated old function.
(set_priority): Updated old function.
(set_summary): New function.
(set_url): New function.
(calendar_model_set_value_at): Updated function.
(calendar_model_is_cell_editable): Updated function.
(calendar_model_append_row): Updated. Added an ugly hack to
accomodate ETable's lack of a real API for adding new items.
Also, don't try to set columns that are not editable.
2000-08-21 JP Rosevear <jpr@helixcode.com>
* gui/e-week-view.c (e_week_view_reload_events):
Use CalObjType
* gui/e-day-view.c (e_day_view_reload_events): ditto
2000-08-21 JP Rosevear <jpr@helixcode.com>
* gui/e-day-view-main-item.c (e_day_view_main_item_draw_day_event):
Use CalComponent instead of iCalObject. #if some alarm stuff
2000-08-21 JP Rosevear <jpr@helixcode.com>
* gui/e-day-view-top-item.c (e_day_view_top_draw_long_event):
Use CalComponent instead of iCalObject. #if some alarm stuff
2000-08-21 JP Rosevear <jpr@helixcode.com>
* gui/e-day-view.h: Update prototypes
* gui/e-day-view.c (e_day_view_on_unrecur_appointment):
Remove commented out portions.
* gui/e-week-view.c (e_week_view_on_unrecur_appointment):
Tidy.
2000-08-21 JP Rosevear <jpr@helixcode.com>
* gui/e-day-view.c
(e_day_view_update_event): Use CalComponent
instead of iCalObject. Work around not having a compare
dates routine for two CalComponents.
(e_day_view_reshape_long_event): Use CalComponent instead
of iCalObject, #if some alarm stuff
(e_day_view_reshape_day_event): ditto
(e_day_view_reload_events): Use revamped CalClient
(e_day_view_update_event_cb): Use CalComponent
instead of iCalObject
(e_day_view_foreach_event_with_uid): ditto
(e_day_view_remove_event_cb): ditto
(e_day_view_update_event_label): ditto
(e_day_view_find_event_from_uid): ditto
(e_day_view_on_event_click): ditto
(e_day_view_on_event_right_click): ditto
(e_day_view_on_new_appointment): ditto
(e_day_view_on_edit_appointment): ditto
(e_day_view_on_delete_occurrence): ditto
(e_day_view_on_delete_appointment): ditto
(e_day_view_on_unrecur_appointment): ditto
(e_day_view_on_top_canvas_motion): ditto
(e_day_view_on_main_canvas_motion): ditto
(e_day_view_finish_long_event_resize): ditto
(e_day_view_finish_resize): ditto
(e_day_view_free_event_array): ditto
(e_day_view_add_event): ditto
(e_day_view_key_press): ditto
(e_day_view_on_editing_stopped): ditto
(e_day_view_update_top_canvas_drag): ditto
(e_day_view_update_main_canvas_drag): ditto
(e_day_view_on_drag_data_get): ditto
(e_day_view_on_top_canvas_drag_data_received): ditto
(e_day_view_on_main_canvas_drag_data_received): ditto
2000-08-20 JP Rosevear <jpr@helixcode.com>
* gui/e-week-view-event-item.c (e_week_view_event_item_draw_icons):
Use CalComponent instead of iCalObject. #if some alarm stuff
2000-08-20 JP Rosevear <jpr@helixcode.com>
* gui/e-week-view.c (e_week_view_update_event): Use CalComponent
instead of iCalObject. Work around not having a compare
dates routine for two CalComponents.
(e_week_view_reload_events): Use revamped CalClient
(e_week_view_reshape_event_span): Use CalComponent instead
of iCalObject, #if some alarm stuff
(e_week_view_update_event_cb): Use CalComponent instead of
iCalObject
(e_week_view_foreach_event_with_uid): ditto
(e_week_view_remove_event_cb): ditto
(e_week_view_free_events): ditto
(e_week_view_add_event): ditto
(e_week_view_on_editing_stopped): ditto
(e_week_view_find_event_from_uid): ditto
(e_week_view_key_press): ditto
(e_week_view_show_popup_menu): ditto
(e_week_view_on_new_appointment): ditto
(e_week_view_on_edit_appointment): ditto
(e_week_view_on_delete_occurrence): ditto
(e_week_view_on_delete_appointment): ditto
(e_week_view_on_unrecur_appointment): ditto
* gui/e-week-view.h: Update prototypes.
2000-08-18 JP Rosevear <jpr@helixcode.com>
* gui/event-editor.h: Update prototypes.
* gui/event-editor.c: Need to come back here later to fix the
alarm stuff. The gui also needs to be completely redone to
support the fancier CalComponent settings (exrules, rdates, etc)
There are some warnings that I put in to mark some of these
spots
(event_editor_destroy): Use Calcomponent instead
of iCalObject
(make_title_from_comp): ditto
(clear_widgets): ditto
(fill_widgets): ditto
(classification_get): ditto
(dialog_to_comp_object): ditto
(save_ical_object): ditto
(close_dialog): ditto
(event_editor_set_ical_object): ditto
2000-08-17 JP Rosevear <jpr@helixcode.com>
* gui/gncal-todo.c (ok_button): Use CalComponent instead of
iCalObject
(cancel_button): ditto
(gncal_todo_edit): ditto
(add_todo): ditto
(edit_todo): ditto
(delete_todo): ditto
(insert_in_clist): ditto
(gncal_todo_update): ditto
* gui/gncal-todo.h: Update prototypes
2000-08-16 JP Rosevear <jpr@helixcode.com>
Rework gnome-cal.c - alarms are a tad broken ATM so this
will need more cleaning later.
* gui/gnome-cal.c (snooze): Use CalComponent instead of
iCalObject
(edit): ditto
(audio_notification): ditto
(display_notification_cb): Use CalComponent member of
alarm_notify_closure rather than iCalObject
(display_notification): ditto
(trigger_alarm_cb): ditto. Use CalComponent alarm types
(gnome_calendar_tag_calendar_cb): New
cal_client_generate_instances callback to
mark_gtk_calendar_day's
(gnome_calendar_tag_calendar): Use above callback
(save_ical_object_cb): Use CalComponent instead of
iCalObject
(gnome_calendar_edit_object): ditto
(gnome_calendar_new_appointment): ditto
2000-08-15 JP Rosevear <jpr@helixcode.com>
* gui/mark.c (mark_month_item_cb): Callback used to mark every
event in a month.
(mark_month_item): Use cal_client_generate_instances with
above callback
2000-08-15 JP Rosevear <jpr@helixcode.com>
* gui/print.c (print_month_small): Use
cal_client_get_objects_in_range
(print_day_details_cb): Callback used to create columns and fill
events into a day view. Code should be shared with e-day-view
in reality. Maybe need to go back to layout.[hc] a bit later
(print_day_details): Use cal_client_generate_instances with
above callback. Iterate over results to expand events to fit.
(print_day_summary_cb): Callback to build list of event info
for a day
(print_day_summary): Use cal_client_generate_instances with
above callback to generate the required event info for printing
(print_todo_details_cb): Callback used create list of todo info
(print_todo_details): Use cal_client_generate_instances with
above callback to generate required todo info for printing.
* gui/layout.[hc]: No longer used.
2000-08-12 Federico Mena Quintero <federico@helixcode.com>
* gui/calendar-model.c (get_is_overdue): Finished implementing.
(calendar_model_value_at): Handle the color field.
2000-08-11 Seth Alves <alves@hungry.com>
* cal-util/cal-component.c (cal_component_get_pilot_id):
(cal_component_set_pilot_id): stubs for pilot id accessors
(cal_component_get_pilot_status):
(cal_component_set_pilot_status): stubs for pilot status accessors
* conduits/calendar/calendar-conduit.c (transmit): start to
convert to cal-component interface
* conduits/todo/todo-conduit.c (transmit): same
2000-08-11 Federico Mena Quintero <federico@helixcode.com>
* gui/calendar-model.c (get_geo): Generate a prettier string for
the geographical position.
(get_classification): New function.
(get_categories): New function.
(get_completed): New function.
(get_dtend): New function.
(get_dtstart): New function.
(get_due): New function.
(get_percent): New function.
(get_priority): New function.
(get_summary): New function.
(get_transparency): New function.
(get_url): New function.
(get_has_alarms): New function.
(get_has_recurrences): New function.
(get_is_complete): New function.
(get_is_overdue): New function.
* cal-util/cal-component.c (scan_property): Handle the GEO
property.
(free_icalcomponent): Likewise.
(cal_component_get_geo): Likewise.
(cal_component_set_geo): Likewise.
(cal_component_free_geo): Likewise.
(cal_component_set_exdate_list): Removed incorrect assertion.
(cal_component_set_exrule_list): Removed incorrect assertion.
(cal_component_get_next_alarm): Oops, this had not been
implemented at all.
(cal_component_has_rdates): New function.
(cal_component_has_rrules): New function.
* cal-util/cal-component.h (CalComponentField): Added the GEO
property.
2000-08-11 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (scan_property): Handle the
PERCENT-COMPLETE property.
(free_icalcomponent): Likewise.
(cal_component_get_percent): Likewise.
(cal_component_set_percent): Likewise.
(cal_component_free_percent): Likewise.
(scan_property): Handle the PRIORITY property.
(free_icalcomponent): Likewise.
(cal_component_get_priority): Likewise.
(cal_component_set_priority): Likewise.
(cal_component_free_priority): Likewise.
* cal-util/cal-component.h (CalComponentField): New enumeration
with the list of fields we support for ETable.
2000-08-10 Dan Winship <danw@helixcode.com>
* gui/component-factory.c (owner_set_cb): Update prototype.
2000-08-10 Federico Mena Quintero <federico@helixcode.com>
* gui/gnome-cal.c (gnome_calendar_new_appointment): New function.
Mostly moved over from calendar-commands.c:display_objedit().
* gui/calendar-commands.c (calendar_iterate): Removed. Wheee!
(display_objedit): Removed.
(new_appointment_cb): New function. Just call
gnome_calendar_new_appointment().
(display_objedit_today): Removed.
(calendar_control_activate): Removed the "New appointment for
today" option, since it is pretty useless.
2000-08-10 Federico Mena Quintero <federico@helixcode.com>
* cal-client/cal-client.c (cal_client_generate_instances): There.
A pretty function to generate recurrence instances atomically so
that clients don't have to jump through hoops. Now we can get rid
of the ugly calendar_iterate() function.
2000-08-09 Cody Russell <bratsche@gnome.org>
* gui/calendar-commands.c: Make the toolbar honor the user's
gnomecc settings for detachable toolbars.
2000-08-09 Federico Mena Quintero <federico@helixcode.com>
* gui/alarm.c (pop_alarm): Oops, subtract the new alarm's trigger
time from the current time.
2000-08-09 Christopher James Lahey <clahey@helixcode.com>
* cal-client/cal-client.c: Fixed a warning.
2000-08-09 Christopher James Lahey <clahey@helixcode.com>
* cal-client/cal-client.c, gui/e-calendar-table.c, pcs/cal.c:
Fixed some warnings.
2000-08-08 Federico Mena Quintero <federico@helixcode.com>
* idl/evolution-calendar.idl (Cal): Added a get_objects_in_range()
method. Takes in a time range and the type of component we are
interested in; returns a list of UIDs. The idea is that
ocurrences get computed in the client; we can have multiple
recurrences in iCalendar and we cannot identify them trivially
across the wire.
(Cal): Removed the get_events_in_range() method.
* pcs/cal-backend.c (cal_backend_free_uid_list): New function.
(cal_backend_get_objects_in_range): New function.
(cal_backend_get_events_in_range): Removed.
* pcs/cal-backend-file.c (cal_backend_file_get_objects_in_range):
Implemented new method.
(cal_backend_file_get_events_in_range): Removed.
* pcs/cal.c (Cal_get_events_in_range): Removed.
(uncorba_obj_type): New function.
(Cal_get_uids): Use uncorba_obj_type().
(Cal_get_n_objects): Likewise.
(Cal_get_objects_in_range): Implemented new method.
* cal-client/cal-client.c (cal_client_get_events_in_range): Removed.
(cal_client_get_objects_in_range): Implemented.
(corba_obj_type): New function.
(cal_client_get_n_objects): Use corba_obj_type().
(cal_client_get_uids): Likewise.
2000-08-07 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (cal_component_clone): New function.
(cal_component_get_icalcomponent): Ensure that the SEQUENCE
property does not need incrementing.
* gui/dialogs/alarm-notify-dialog.c (alarm_notify_dialog): Use
CalComponent. Deal with an empty summary property.
2000-08-07 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (cal_component_get_as_string): Doh,
libical owns the string's memory, so do not free it.
* cal-client/client-test.c (create_client): Connect to the destroy
signal of the client here.
* cal-client/test.ics: New test file, modified from Eric Busboom's
test file from RFC 2445.
2000-08-05 Federico Mena Quintero <federico@helixcode.com>
* cal-client/client-test.c (dump_component): This was gone for
some reason.
(main): Load a new test file.
2000-08-04 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (cal_component_commit_sequence): New
function to commit changes to the SEQUENCE property.
(cal_component_get_as_string): Ensure that the sequence has been
committed.
* cal-client/cal-client.c (cal_client_get_object): Use
CalComponent instead of the old iCalObject.
(cal_client_update_object): Use iCalObject. Commit the SEQUENCE
property before stringifying the object and piping it over to the
Wombat.
2000-08-04 Seth Alves <alves@hungry.com>
* conduits/todo/todo-conduit.c (conduit_get_gpilot_conduit): if
oaf isn't initialized by the time the conduit starts, start it
up. we do this because we need to start wombat with oaf, and
gpilotd doesn't currently start oaf.
2000-08-04 Michael Meeks <michael@helixcode.com>
* gui/calendar-commands.c (calendar_control_activate): unref.
2000-08-02 Federico Mena Quintero <federico@helixcode.com>
* pcs/cal-backend-file.c (cal_backend_file_get_uid_by_pilot_id):
Added stub for now.
(cal_backend_file_update_pilot_id): Likewise.
* pcs/Makefile.am (libpcs_a_SOURCES): Removed cal-backend-imc.[ch]
from the list of sources. The idea is to move vCalendar importing
to the GUI as a convenience function.
2000-08-02 Seth Alves <alves@hungry.com>
* pcs/cal-backend-imc.c (cal_backend_imc_update_pilot_id): call
save (cbimc) after setting the pilot id and status.
2000-08-02 Joe Shaw <joe@helixcode.com>
* pcs/cal-backend-file.c (cal_backend_file_update_pilot_id):
Fixed a g_return_if_fail that had two parameters and thus
wouldn't build.
2000-08-03 Damon Chaplin <damon@helixcode.com>
* gui/calendar-model.c (calendar_model_append_row): updated to match
the new ETableModel append_row. This meant we could also get rid of
the row_being_added and idle_id hack.
2000-08-02 Christopher James Lahey <clahey@helixcode.com>
* gui/calendar-model.c: Emit "model_pre_change" signals as
appropriate.
2000-08-02 Federico Mena Quintero <federico@helixcode.com>
* pcs/cal-backend-file.[ch]: New files for the iCalendar file
backend.
* pcs/Makefile.am (libpcs_a_SOURCES): Added cal-backend-file.[ch].
* cal-util/cal-component.c (cal_component_set_icalcomponent):
Return an operation success code for if we are passed a component
of a type we don't support.
2000-07-31 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-recur.c (*): Use CalComponent and the new property
types instead of the old iCalObject stuff.
(cal_recur_generate_instances): Renamed from
cal_object_generate_events(). Ensure that the component has the
DTSTART property.
(generate_instances_for_year): Renamed from
cal_object_generate_events_for_year().
(cal_obj_expand_recurrence): Made static.
(cal_recur_from_icalrecurrencetype): New function. We should
really convert this whole file to use struct icalrecurrencetype
instead.
(cal_recur_free): New function.
* cal-util/cal-recur.h (CalRecurType): Renamed from CalObjRecurType.
(CalRecurrence): Renamed from CalObjRecurrence.
* cal-util/timeutil.c (time_from_icaltimetype): New function.
* cal-util/Makefile.am: Commented out the test-recur program.
2000-08-01 Damon Chaplin <damon@helixcode.com>
* Removed doc directory, since it is the old gnome-pim docs which
aren't used any more.
* Makefile.am (SUBDIRS): removed doc.
2000-07-26 Peter Williams <peterw@helixcode.com>
* gui/calendar-model.c: compile fix for Solaris
(works under Linux, too; don't know about others)
* this is a test of whether CVS merge does what I
think it will do.
2000-07-26 Federico Mena Quintero <federico@helixcode.com>
OK, it seems that we have all the interesting properties for
single-user calendars now. RFC 2445 can bite me.
* cal-util/cal-component.c (scan_property): Handle the RRULE
property. Yay!.
(scan_recur): Likewise, yow!
(get_recur_list): Likewise, yeehaw!
(get_recur_list): Likewise, honk honk!
(set_recur_list): Likewise, booooga booooga!
(cal_component_get_rrule_list): Likewise, squeek squeek!
(cal_component_set_rrule_list): That's it, I ran out of sounds.
(cal_component_free_recur_list): Likewise.
(scan_property): Handle the EXRULE property.
(free_icalcomponent): Likewise.
(cal_component_get_exrule_list): Likewise.
(cal_component_set_exrule_list): Likewise.
(set_period_list): Oops, free the old properties as well as
removing them.
(set_text_list): Ditto.
(cal_component_set_exdate_list): Ditto.
* cal-util/cal-component.c: Put all the functions used to free
returned values all together.
(cal_component_set_rdate_list): Oops, mark SEQUENCE property to be
incremented since the RFC requires it.
(scan_property): Handle the EXDATE property.
(scan_exdate): Likewise.
(free_icalcomponent): Likewise.
(cal_component_get_exdate_list): Likewise.
(cal_component_set_exdate_list): Likewise.
(cal_component_free_exdate_list): Likewise.
2000-07-26 Jeffrey Stedfast <fejj@helixcode.com>
* gui/Makefile.am: Fixed a typo
2000-07-26 Jeffrey Stedfast <fejj@helixcode.com>
* gui/Makefile.am: Added a few xpm files to the EXTRA DIST section
2000-07-25 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (cal_component_free_period_list): New function.
(scan_property): Handle the RDATE property.
(scan_period): Likewise.
(free_icalcomponent): Likewise.
(get_period_list): Likewise.
(set_period_list): Likewise.
(cal_component_get_rdate_list): Likewise.
(cal_component_set_rdate_list): Likewise.
(scan_text): Simplify a bit since we only handle the ALTREP
parameter; there is no need to iterate over all parameters.
(scan_datetime): Simplify; just handle the TZID parameter.
(scan_summary): Simplify; just handle the ALTREP parameter.
(cal_component_get_as_string): New function.
* idl/evolution-calendar.idl (CalObjType): Removed the TYPE_OTHER;
now we only expose the types of objects we know about.
* cal-util/cal-util.h (CalObjType): Likewise.
* cal-client/cal-client.c (cal_client_get_n_objects): Likewise.
(cal_client_get_uids): Likewise.
* conduits/calendar/calendar-conduit.c (get_calendar_objects): Likewise.
(check_for_slow_setting): Likewise.
* pcs/cal-backend-imc.c (count_objects): Likewise.
(build_uids_list): Likewise.
* pcs/cal.c (Cal_get_uids): Likewise.
(Cal_get_n_objects): Likewise.
2000-07-25 Damon Chaplin <damon@helixcode.com>
* gui/e-calendar-table.[hc]: new ECalendarTable to show an ETable view
for Todo/Event items.
* gui/task-assigned-to.xpm:
* gui/task-recurring.xpm:
* gui/task-assigned.xpm:
* gui/task.xpm: new pixmaps (all the same at present) to go in the
icon column of the ETable.
* gui/event-editor.c: hid the silly 'Calendar' labels on the
GnomeDateEdits and hid the times when you select 'All day event'.
Also adjusted the time_t's so that when an all day event finishes on
say midnight 13th May, we show 12th May in the dialog, since it
implicitly includes all of that day up to midnight.
* gui/dialogs/task-editor-dialog.glade:
* gui/dialogs/task-editor.[hc]: unfinished dialog to edit tasks.
* gui/gncal-todo.c: temporary hack so that we can use the simple dialog
with our new ETable.
2000-07-23 Damon Chaplin <damon@helixcode.com>
* cal-util/calobj.h: added a few more fields.
* cal-util/calobj.c (ical_object_create_from_vobject): check for a
NULL return from vObjectUStringZValue for URL property to avoid SEGV.
For some reason an empty 'URL:' property appears and causes trouble.
2000-07-20 Ettore Perazzoli <ettore@helixcode.com>
* gui/component-factory.c (factory_fn): Update for the new
`evolution_shell_component_new()' arg.
2000-07-19 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (cal_component_alarm_set_trigger):
Finish filling the trigger. What a pain, again.
(cal_component_alarm_free_trigger): Implemented.
2000-07-19 Fatih Demir <kabalak@gmx.net>
* conduits/calendar/calendar-conduit-control-applet.desktop:
* conduits/todo/todo-conduit-control-applet.desktop:
Added the Turkish desktop entries.
2000-07-18 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (cal_component_alarm_free): Free the
icalcomponent if this is an unattached alarm.
(scan_alarm_property): Handle the TRIGGER property.
(cal_component_alarm_get_trigger): Ditto. Royal pain.
(cal_component_alarm_set_trigger): Ditto. Less pain.
2000-07-17 Federico Mena Quintero <federico@helixcode.com>
* cal-client/cal-client.c (cal_client_get_object): Fixed inline
docs.
(cal_client_new): Ditto.
(cal_client_get_n_objects): Added inline docs.
2000-07-14 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (CalComponentAlarm): New internal
represntation for alarm components. We really don't map them to a
CalComponent because it is more convenient to handle them as
"child" structures.
(make_alarm): New function to create a CalComponentAlarm from an
icalcomponent representing a VALARM.
(scan_alarm_property): New function to scan a property from an
alarm component. We support ACTION.
(cal_component_get_first_alarm): New function to start an iterator
over the alarms in a calendar component.
(cal_component_alarm_get_action): New function.
(cal_component_alarm_set_action): New function.
2000-07-13 Seth Alves <alves@hungry.com>
* conduits/todo/todo-conduit.c: conduit based on the calendar conduit.
this conduit syncs a pilot's ToDoDB database to wombat's list of "todo"
events.
* gui/gncal-todo.c (simple_todo_editor): set todo's priority control
based on value from ical object during edit.
2000-07-12 Federico Mena Quintero <federico@helixcode.com>
* gui/print.c: Revert Michael's GnomeFont patch until the
gnome-print API stabilizes.
2000-07-12 Michael Meeks <michael@helixcode.com>
* gui/print.c (titled_box, print_text, print_month_small),
(bound_text): GnomeFont update.
2000-07-12 Seth Alves <alves@hungry.com>
* conduits/calendar/calendar-conduit.c: fixed various problems
* cal-client/Makefile.am: build a static version of the library
to link with the conduits
* cal-util/Makefile.am: same
2000-07-11 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (scan_property): Handle the COMPLETED
property.
(free_icalcomponent): Ditto.
(cal_component_get_completed): Ditto.
(cal_component_set_completed): Ditto.
(scan_property): Handle the TRANSPARENCY property.
(free_icalcomponent): Ditto.
(cal_component_get_transparency): Ditto.
(cal_component_set_transparency): Ditto.
(scan_property): Handle the URL property.
(free_icalcomponent): Ditto.
(cal_component_get_url): Ditto.
(cal_component_set_url): Ditto.
* pcs/cal-factory.c (queue_load_create_job): Removed unneeded
check for the URI.
(load_fn): Be more paranoid about the URI and notify the listener
if we got passed a bad URI. Simplify the termination code a bit.
(create_fn): Likewise.
(queue_load_create_job): Be more paranoid about the URI.
2000-07-10 Ettore Perazzoli <ettore@helixcode.com>
* gui/Makefile.am: Remove pilot stuff for now.
* Makefile.am (SUBDIRS): Remove `conduits'.
2000-07-10 Dan Winship <danw@helixcode.com>
* gui/Makefile.am (EXTRA_DIST): remove gnomecal.conduit
* conduits/calendar/Makefile.am (EXTRA_DIST): We want
calendar.conduit.in, not calendar.conduit.
2000-07-10 Seth Alves <alves@hungry.com>
* gui/Makefile.am (SUBDIRS):
* conduits/calendar/Makefile.am: moved calendar-conduit stuff from
the gui directory to here.
* Makefile.am (SUBDIRS): added conduits to SIBDIRS
2000-07-08 Ettore Perazzoli <ettore@helixcode.com>
* gui/calendar-commands.c (calendar_control_activate): Remove
"close calendar" command.
2000-07-08 Anders Carlsson <andersca@gnu.org>
* gui/e-week-view.c (e_week_view_on_button_press): Handle mouse wheel scrolling.
* gui/e-day-view.c (e_day_view_on_time_canvas_button_press): New function to handle
mouse wheel scrolling.
(e_day_view_on_main_canvas_button_press): Handle mouse wheel scrolling.
2000-07-07 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (scan_property): Handle the SEQUENCE
property.
(free_icalcomponent): Ditto.
(cal_component_get_sequence): Ditto.
(cal_component_set_sequence): Ditto.
(cal_component_free_sequence): Ditto.
(cal_component_set_last_modified): Removed incorrect assertion.
(CalComponentPrivate): New need_sequence_inc flag. The sequence
number must be incremented when certain properties change, so we
store a flag that says if we need to bump it when piping the
object over the wire.
(free_icalcomponent): Reset need_sequence_inc.
(cal_component_set_dtstart): Set need_sequence_inc.
(cal_component_set_dtend): Ditto.
(cal_component_set_due): Ditto.
2000-07-06 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (scan_property): Handle the
LAST-MODIFIED property.
(free_icalcomponent): Ditto.
(cal_component_get_last_modified): Ditto.
(cal_component_set_last_modified): Ditto.
(get_icaltimetype): New function to get struct icaltimetype
values.
(cal_component_get_created): Use get_icaltimetype().
(set_icaltimetype): New function to set struct icaltimetype
values.
(cal_component_set_created): Use set_icaltimetype().
* cal-util/cal-component.c (scan_property): Handle the CREATED
property.
(free_icalcomponent): Ditto.
(cal_component_free_icaltimetype): Ditto.
(cal_component_get_created): Ditto.
(cal_component_set_created): Ditto.
(cal_component_init): Do not create an UID here.
(ensure_mandatory_properties): New function to ensure that the
mandatory RFC properties are indeed in the component. If they are
not, we create them on the fly.
(cal_component_set_new_vtype): Use ensure_mandatory_properties().
(cal_component_set_icalcomponent): Ditto.
(cal_component_get_uid): Return the UID in a parameter, not as a
function return value, for consistency's sake.
(scan_property): Handle the DTSTAMP property.
(free_icalcomponent): Ditto.
(cal_component_get_dtstamp): Ditto.
(cal_component_set_dtstamp): Ditto.
2000-07-04 Damon Chaplin <damon@helixcode.com>
* gui/gncal-todo.c (gncal_todo_update): Use &obj instead of &ico in
the call to cal_client_get_object(). The ToDo list should work now.
* gui/event-editor-dialog.glade: set the toplevel GnomeApp to invisible
so it doesn't appear and then resize.
2000-07-03 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (cal_component_get_summary): Use
CalComponentText instead of CalComponentPropSummary. Removed the
latter typedef.
(cal_component_set_summary): Likewise.
(scan_property): Handle the CLASSIFICATION property.
(cal_component_get_classification): Ditto.
(cal_component_set_classification): Ditto.
* cal-util/cal-component.c (cal_component_free_text_list): Renamed
from cal_component_free_description_list(). We can share this
function since both comments and descriptions have the same form.
(scan_text): Ditto.
(get_text_list): New function.
(set_text_list): New function.
(cal_component_get_description_list): Use get_text_list().
(cal_component_set_description_list): Use set_text_list().
(cal_component_set_uid): Add sanity check.
(cal_component_get_summary): Ditto.
(cal_component_get_description_list): Ditto.
(cal_component_get_dtstart): Ditto.
(cal_component_get_dtend): Ditto.
(cal_component_get_due): Ditto.
(scan_property): Handle the COMMENT property.
(cal_component_get_comment_list): Ditto.
(cal_component_set_comment_list): Ditto.
2000-07-02 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (scan_categories): Handle CATEGORIES.
This can appear multiple times, so we maintain a list. We
compress them later to a single property with multiple values.
(cal_component_get_categories_list): Ditto.
(cal_component_set_categories_list): Ditto.
(cal_component_free_categories_list): Ditto.
(free_icalcomponent): Properly free the mappings.
2000-07-02 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (scan_datetime): Handle date/time and
timezone pairs.
(scan_property): Handle DTSTART and DTEND.
(cal_component_free_datetime): Ditto.
(get_datetime): Ditto.
(cal_component_get_dtstart): Ditto.
(set_datetime): Ditto.
(cal_component_set_dtstart): Ditto.
(cal_component_get_dtend): Ditto.
(cal_component_set_dtend): Ditto.
(scan_property): Handle DUE date.
(cal_component_get_due): Ditto.
(cal_component_set_due): Ditto.
2000-07-01 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (cal_component_get_description_list):
Handle the DESCRIPTION property. There can be multiple
descriptions with parameters each, so we deal with a list instead
of a single structure.
(cal_component_set_description_list): Ditto.
(cal_component_free_description_list): Ditto.
(scan_property): Ditto.
(scan_description): Ditto.
2000-06-30 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (cal_component_get_summary): To avoid
passing a million parameters to setters/getters for properties
that support parameters, we now pass client-side structures
instead. Here we use CalComponentPropSummary.
(cal_component_set_summary): Ditto.
2000-06-29 Christopher James Lahey <clahey@helixcode.com>
* gui/component-factory.c: Make calendar die when evolution quits.
2000-06-30 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c: Change of plans. We use an
icalcomponent from libical as our core representation so that we
can preserve extension fields and fields that we don't (yet)
support. CalComponent is just a wrapper with a nice API that
provides non-iterative, random access to the ical's fields.
(cal_component_destroy): Free the thing correctly.
(cal_component_get_vtype): Re-implement in terms of icalcomponent.
(cal_component_set_icalcomponent): New function to set the
CalComponent's data from an existing icalcomponent.
(cal_component_get_icalcomponent): New function.
(cal_component_set_new_vtype): New convenience function to create
an empty component.
(scan_icalcomponent): Core scanning function.
(scan_property): Another core scanning function.
(cal_component_get_uid): Use the property directly.
(cal_component_get_summary): Ditto. Handle the altrep parameter
as well.
(cal_component_set_summary): Ditto. Feel the pain, motherfucker.
It is ridiculous how much code this involves.
(scan_summary): Ditto.
2000-06-29 Ettore Perazzoli <ettore@helixcode.com>
* gui/component-factory.c (owner_set_cb): Get an
EvolutionShellClient instead of an Evolution_Shell to match the
changes in libeshell.
2000-06-29 Federico Mena Quintero <federico@helixcode.com>
* gui/Makefile.am: Do not link and include the pilot stuff for the
calendar component, just for the Pilot conduit. Commented out the
Pilot part so that Evolution can build. Sigh, we'll have to
modify gnome-pilot to use OAF.
2000-06-29 Peter Williams <peterw@helixcode.com>
* gui/Makefile.am (LINK_FLAGS): Make the calendar-pilot-sync
program conditional on HAVE_GNOME_PILOT, and add
GNOME_PILOT_CFLAGS, GNOME_PILOT_LIBS, and PISOCK_LIBS in the
appropriate places.
2000-06-29 Seth Alves <alves@hungry.com>
* pcs/cal.c (Cal_get_uid_by_pilot_id):
(Cal_update_pilot_id):
* pcs/cal-backend-imc.c (cal_backend_imc_update_pilot_id):
(cal_backend_imc_get_uid_by_pilot_id):
* pcs/cal-backend.c (cal_backend_get_uid_by_pilot_id):
(cal_backend_update_pilot_id): server code to service these:
* gui/calendar-pilot-sync.c: updated to make use of cal-client.
also uses dirty bits on both sides to aid in syncing.
* cal-client/cal-client.c (cal_client_get_uid_by_pilot_id): new
function -- ask the cal server to return uid given an object's
pilot id.
(cal_client_update_pilot_id): new function -- inform the
cal server of an objects pilot id and pilot dirty-flag.
2000-06-28 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.[ch]: New files for the new iCalendar
component object. Today's properties: basic component type, UID,
SUMMARY.
* cal-util/Makefile.am: Added cal-component.[ch] to the list of
sources.
2000-06-27 Michael Meeks <michael@helixcode.com>
* pcs/Makefile.am (INCLUDES): use BONOBO_VFS_GNOME_CFLAGS.
2000-06-26 Christopher James Lahey <clahey@helixcode.com>
* gui/calendar-model.c: Added an #ifdefed value_to_string handler
assignment.
2000-06-26 Federico Mena Quintero <federico@helixcode.com>
* gui/calendar-model.c (calendar_model_duplicate_value):
Implement.
(calendar_model_initialize_value): Implement.
(calendar_model_value_is_empty): Implement.
2000-06-21 Damon Chaplin <damon@helixcode.com>
* gui/e-day-view.c (e_day_view_reshape_long_event): set event before
using it!
(e_day_view_init): used new colors from tigert.
2000-06-21 Christopher James Lahey <clahey@helixcode.com>
* gui/e-day-view.c, gui/e-week-view.c: Remove the usage of the "x"
and "y" arguments.
2000-06-21 Damon Chaplin <damon@helixcode.com>
* gui/gnome-cal.c (gnome_calendar_direction): changed so it keeps the
selection range. It just moves it on one day/week etc. This makes
it very handy for the keyboard shortcut code.
* gui/calendar-commands.c (calendar_control_activate): fixed bug
setting the radio button active.
* gui/e-day-view.[hc]: added support for keyboard navigation and
selection of the time range.
2000-06-20 Federico Mena Quintero <federico@helixcode.com>
* gui/calendar-model.c (calendar_model_set_value_at): Implemented.
(calendar_model_is_cell_editable): Implemented.
* cal-client/cal-client.c (cal_client_update_object): Take in an
iCalObject instead of a stringified version.
* gui/gnome-cal.c (gnome_calendar_update_object): Removed.
(gnome_calendar_remove_object): Removed.
(save_ical_object_cb): Use the CalClient function.
* gui/e-day-view.c (e_day_view_on_delete_occurrence): Likewise.
(e_day_view_on_unrecur_appointment): Likewise.
(e_day_view_finish_long_event_resize): Likewise.
(e_day_view_finish_resize): Likewise.
(e_day_view_key_press): Likewise.
(e_day_view_on_editing_stopped): Likewise.
(e_day_view_on_top_canvas_drag_data_received): Likewise.
(e_day_view_on_main_canvas_drag_data_received): Likewise.
(e_day_view_on_delete_appointment): Likewise.
* gui/e-week-view.c (e_week_view_on_editing_stopped): Likewise.
(e_week_view_key_press): Likewise.
(e_week_view_on_delete_occurrence): Likewise.
(e_week_view_on_unrecur_appointment): Likewise.
(e_week_view_on_delete_appointment): Likewise.
* gui/gncal-todo.c (ok_button): Likewise.
(delete_todo): Likewise.
2000-06-19 Damon Chaplin <damon@helixcode.com>
* gui/event-editor-dialog.glade: tidied up dialog a bit, adding
space etc.
* gui/e-week-view.c (e_week_view_reshape_events): removed debug msg.
2000-06-18 Ettore Perazzoli <ettore@helixcode.com>
* cal-util/Makefile.am (INCLUDES): Include from
`$(top_builddir)/libical/src/libical' too. [For the generated
libical `icalversion.h' header.]
* cal-client/Makefile.am (INCLUDES): Likewise.
2000-06-18 Damon Chaplin <damon@helixcode.com>
* gui/e-day-view.c (e_day_view_on_top_canvas_drag_data_received):
fixed a DnD bug.
2000-06-17 Dan Winship <danw@helixcode.com>
* cal-client/Makefile.am (INCLUDES): Fix to not depend on
installed ical.h
2000-06-17 Damon Chaplin <damon@helixcode.com>
* gui/e-week-view.c: added little buttons which are shown when there
are more events than will fit in a day. Clicking on the button takes
the user to the 1-Day view and shows the full day.
* gui/e-day-view.c:
* gui/e-week-view.c: set the "use_ellipsis" arg to TRUE for the EText
items so we get tooltips automatically. Though we may want to use our
own code to show tooltips so we can show the tips when the mouse is
around the edges of the event box, and we may want to show the start
and end times of the event in full.
* gui/calendar-commands.c (calendar_control_activate):
* gui/gnome-cal.h: added view_toolbar_buttons[] so we can access the
radio buttons in the code easily. We need this if we want to jump to
another view programmatically.
2000-06-16 Damon Chaplin <damon@helixcode.com>
* gui/jump.xpm: new icon for the EWeekView to jump to the day.
* gui/Makefile.am (EXTRA_DIST): added jump.xpm
2000-06-16 Damon Chaplin <damon@helixcode.com>
* gui/calendar-model.c (calendar_model_class_init): #ifdef'ed out
references to functions which don't exist yet, so evolution still
compiles.
2000-06-16 Damon Chaplin <damon@helixcode.com>
* cal-util/test-recur.c: updated.
* cal-util/cal-recur.[hc]: mostly finished, though it depends on the
iCalObject struct being updated to support more of iCalendar.
2000-06-16 Damon Chaplin <damon@helixcode.com>
* pcs/.cvsignore: added icalendar-test.
2000-06-15 Damon Chaplin <damon@helixcode.com>
* cal-util/Makefile.am (test_recur_LDADD): use libical.a
2000-06-15 Dan Winship <danw@helixcode.com>
* cal-util/Makefile.am (noinst_PROGRAMS): merge the two separate
noinst_PROGRAMS declarations into one so automake accepts it.
(INCLUDES): include libical src dir so we don't depend on having
ical.h already installed
2000-06-14 Federico Mena Quintero <federico@helixcode.com>
* gui/calendar-model.c: GPtrArray cannot insert stuff in the
middle of the array (!), so use plain GArray everywhere. Sigh.
2000-06-13 Federico Mena Quintero <federico@helixcode.com>
* cal-client/cal-client.c (cal_client_get_object): Use vCalendar
again.
* cal-util/calobj.c (ical_object_find_in_string): From Seth, make
it use vCalendar again.
2000-06-13 Federico Mena Quintero <federico@helixcode.com>
* gui/calendar-model.c (obj_updated_cb): Juggle some eggs in
asynchronous fashion. Finished implementing.
(obj_removed_cb): Implemented. This one needs no juggling.
(calendar_model_set_cal_client): Only load the objects if we have
a client.
(calendar_model_destroy): Disconnect from the client's signals.
* gui/Makefile.am (evolution_calendar_SOURCES): Added
calendar-model.[ch] to the list of sources.
* pcs/cal-backend-imc.c (cal_backend_imc_get_n_objects): Doh,
return the computed value.
2000-06-13 Federico Mena Quintero <federico@helixcode.com>
* gui/calendar-model.c (CalendarModelPrivate): Added the array of
objects and the hash table of UID->array index.
(calendar_model_row_count): Return the length directly from the
array instead of asking the Wombat.
(calendar_model_value_at): Implemented.
(calendar_model_new): Create an empty model. We provide a new
setter function now.
(calendar_model_construct): Removed function.
(calendar_model_set_cal_client): New function to set the calendar
client and object type at any time. This lets us reuse a calendar
model object.
* cal-util/calobj.h (iCalObjectField): Just report whether the
object has alarms; not every single alarm.
2000-06-13 Ettore Perazzoli <ettore@helixcode.com>
* gui/Makefile.am (SHELL_OBJS): Removed.
(evolution_calendar_LDADD): Link with
`$(top_builddir)/shell/libeshell.a'.
2000-06-09 Ettore Perazzoli <ettore@helixcode.com>
* gui/component-factory.c (factory_fn): Pass NULL for the new args
@create_folder_fn and @remove_folder_fn.
(create_view): Updated to match the new
`EvolutionShellComponentCreateViewFn'. Return
`EVOLUTION_SHELL_COMPONENT_UNSUPPORTEDTYPE' if type is not
"calendar".
2000-06-09 Federico Mena Quintero <federico@helixcode.com>
* idl/evolution-calendar.idl (Cal): Added a get_n_objects()
method.
* pcs/cal-backend.c (cal_backend_get_n_objects): New function.
* pcs/cal-backend-imc.c (cal_backend_imc_get_n_objects):
Implemented.
* pcs/cal.c (Cal_get_n_objects): Implemented.
* cal-client/cal-client.c (cal_client_get_uids): Free the ev.
(cal_client_get_n_objects): Implemented.
* cal-util/calobj.h (iCalObjectField): New enumeration to identify
the fields in an iCalObject.
2000-06-08 Federico Mena Quintero <federico@helixcode.com>
* gui/event-editor.c (event_editor_destroy): Free the private
structure.
2000-06-08 Federico Mena Quintero <federico@helixcode.com>
* cal-util/calobj.c (ical_object_to_vobject): Allow for NULL
summaries.
2000-06-07 Federico Mena Quintero <federico@helixcode.com>
* gui/event-editor.c (toolbar): Added missing tooltips. We still
need icons, though.
2000-06-07 Seth Alves <alves@hungry.com>
* cal-util/calobj.c (ical_object_find_in_string): put this back in,
it's still used in cal-backend-imc.c:cal_backend_imc_update_object
* cal-client/cal-client.c (cal_client_get_object): instead of
returning a text representation, decode the text and return an
iCalObject. Also added CalClientGetStatus which indicates
success or type of failure.
* cal-util/calobj.c (ical_object_find_in_string): #ifed out
ical_object_find_in_string since it is unused now.
* cal-client/client-test.c (list_uids): track get_object change
* gui/calendar-commands.c (calendar_iterate): same
* gui/e-day-view.c (e_day_view_update_event): same
* gui/e-week-view.c (e_week_view_update_event): same
* gui/print.c (print_day_details): same
(print_day_summary): same
(print_todo_details): same
* gui/gnome-cal.c (trigger_alarm_cb): same
* gui/gncal-todo.c (gncal_todo_update): same
2000-06-06 Seth Alves <alves@hungry.com>
* cal-util/icalendar.c, icalendar-save.c: fixed a bunch of problems
* cal-util/calobj.c (ical_object_find_in_string): use libical
instead of libversit
(ical_object_to_string): same
(dump_icalobject): prints the contents of an icalobject for debugging
* gui/Makefile.am (LINK_FLAGS): link libical.a instead of libical.la
so we don't have to modify the build system of the released libical
* cal-client/Makefile.am (client_test_LDADD): same
* cal-util/Makefile.am (icalendar_test_LDADD): same
2000-06-06 Federico Mena Quintero <federico@helixcode.com>
* cal-util/calobj.c (ical_object_destroy): Removed from the public
header; made static. Now everyone should use refcounting.
* pcs/cal-backend-imc.c (free_ical_object): Use
ical_object_unref().
(remove_object): Likewise.
2000-06-02 Federico Mena Quintero <federico@helixcode.com>
* gui/calendar-commands.c (print): New function to call the print
engine.
(calendar_toolbar): Added the Print button.
(calendar_control_activate): Added the File/Print item.
* gui/e-day-view.c (e_day_view_get_selected_time_range): Allow
start_time and end_time to be NULL.
* gui/e-week-view.c (e_week_view_get_selected_time_range):
Likewise.
* gui/print.c (range_selector_new): Show the range selector
widgets. Use the correct radio group for all of them!
(print_calendar): Do the dialog box here. We may want to split
this function later into smaller chunks.
2000-06-05 Damon Chaplin <damon@helixcode.com>
* gui/e-week-view-event-item.c (e_week_view_event_item_button_press):
allow the right button to popup the menu, even when the event is
being edited.
* gui/e-week-view.c:
* gui/e-day-view.c: Set the keyboard focus to the EDayView/EWeekView
when the right button is clicked, so that any event being edited is
saved before any action (e.g. opening the Event Editor dialog) is
started. Note that this won't work if we switch to asynchronous
notification.
2000-06-02 Federico Mena Quintero <federico@helixcode.com>
* gui/event-editor.c (tb_save_and_close_cb): Implemented.
(toolbar): Added an icon for the Save and Close command.
(save_ical_object): Recompute the title of the window here. Maybe
it would be better to do it when we actually get the
"object_changed" signal from the CalClient.
(file_close_cb): Implemented.
2000-06-02 Federico Mena Quintero <federico@helixcode.com>
* gui/gnome-cal.c (save_ical_object_cb): Implemented.
(gnome_calendar_add_object): Removed function, since it was
identical to gnome_calendar_update_object(). Modified the rest
of the code to use only the latter.
(gnome_calendar_remove_object): Be more paranoid about the UID.
(gnome_calendar_update_object): Ditto. Also, renamed this
function from gnome_calendar_object_changed(), for consistency
with the lower-level CalClient interface.
* gui/event-editor.c (event_editor_class_init): New
"save_ical_object" signal to ask that our parent store the
calendar object to the backend.
(save_ical_object): New function to save the calendar object,
actually if just emits the signal.
(file_save_cb): Implemented.
(dialog_to_ical_object): We want priv->
alarm_program_run_program_entry (i.e. the entry inside the
GnomeFileEntry), not the file entry itself.
(dialog_to_ical_object): Only insert the recurrence ending date if
the event is recurrent!
2000-06-02 Christopher James Lahey <clahey@helixcode.com>
* gui/Makefile.am: Fixed EXTRA_DIST.
2000-06-01 Federico Mena Quintero <federico@helixcode.com>
* gui/gnome-cal.c (editor_closed_cb): Handler for the
"editor_closed" signal of the event editor; we just destroy it
then.
* gui/event-editor.c (app_delete_event_cb): Callback used when the
dialog is closed. Release the iCalObject here instead of the
event editor's destroy handler, and emit the new "editor_closed"
signal.
2000-06-01 Federico Mena Quintero <federico@helixcode.com>
* gui/event-editor-dialog.glade: Change of plans. The toplevel
GnomeApp is now generated with Glade instead of being created in
the program code. Otherwise we can't migrate the accelerators to
the new toplevel and they won't work.
* gui/event-editor.[ch]: EventEditor now derives from GtkObject.
This lets us use the GnomeApp created by libglade and still have
signals and stuff.
* gui/event-editor.c (create_menu): Tell the UI handler that the
menubar is the GnomeApp's existing one, not to create a new one.
(create_toolbar): Tell the UI handler to use the GnomeApp's
existing toolbar.
(event_editor_focus): New function to raise/focus an event editor.
* gui/gnome-cal.c (gnome_calendar_edit_object): Use
event_editor_focus().
2000-06-01 Ettore Perazzoli <ettore@helixcode.com>
* gui/calendar-commands.c (calendar_control_activate): Put the
toolbar into a frame to make it look like standard GNOME toolbars.
Also, set `GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL' so that it does not
do evil things when its moved to the left or the right of the
window.
2000-05-31 Federico Mena Quintero <federico@helixcode.com>
* gui/gnome-cal.h (GnomeCalendar): Added a hash table to map
calendar objects to their respective event editors.
* gui/gnome-cal.c (gnome_calendar_init): Create the
object_editor_hash.
(gnome_calendar_destroy): Free the object_editor_hash.
(gnome_calendar_edit_object): New function to centralize the
launching of event editors; if one already exists for a particular
calendar object, we just raise its window.
(edit): Use gnome_calendar_edit_object().
* gui/calendar-commands.c (display_objedit): Use
gnome_calendar_edit_object().
(display_objedit_today): Likewise.
* gui/e-day-view.c (e_day_view_on_new_appointment): Likewise.
(e_day_view_on_edit_appointment): Likewise.
* gui/e-week-view.c (e_week_view_on_new_appointment): Likewise.
(e_week_view_on_edit_appointment): Likewise.
* gui/event-editor.c (event_editor_new): Do not take in an
iCalObject; rather provide an event_editor_set_ical_object()
function. We need this because a single editor may be switched
between different calendar objects. Also, do not show the event
editor; leave it up to the client code.
(event_editor_construct): Likewise.
(clear_widgets): New function to clear the widgets to default
values.
(fill_widgets): New function to fill in the widgets from the
iCalObject. We don't do this in init_widgets() anymore.
(free_exception_clist_data): New function to free the exceptions
clist data. We were leaking the row data.
(init_widgets): Hook to the destroy signal of the exceptions
clist.
(event_editor_set_ical_object): New function. Now it also makes a
copy of the calendar object for the event editor; clients do not
need to copy it anymore.
(event_editor_destroy): Unref the UI handler as well.
(event_editor_class_init): New "ical_object_released" signal to
notify the parent that we are no longer editing the calendar
object.
(make_title_from_ico): Handle NULL objects.
* gui/event-editor.h (EventEditor): Removed fields that are no
longer used.
2000-05-31 Damon Chaplin <damon@helixcode.com>
* cal-util/Makefile.am: added test-recur test program.
* cal-util/test-recur.c: new file to test the recurrence code.
* cal-util/.cvsignore: added test-recur.
* cal-util/cal-recur.c: updated.
2000-05-30 Federico Mena Quintero <federico@helixcode.com>
* gui/event-editor.c (event_editor_construct): Create the UI
handler after we have constructed the parent GnomeApp.
(main_menu): Menu template is now in place.
(toolbar): Tollbar template is now in place.
(create_toolbar): Turn off labels in the toolbar since it sucks;
it should support non-homogeneous buttons with horizontal icons
and text.
2000-05-29 Federico Mena Quintero <federico@helixcode.com>
* gui/gnome-cal.c (gnome_calendar_object_changed): Removed the
flags argument, since now we just proxy the calendar object to the
calendar client.
* gui/event-editor.c (alarm_unit_get): Moved over from
event-editor-utils.c.
* gui/event-editor-utils.[ch]: Removed files, since the two
functions that were left there (i.e. the ones not present in
e-dialog-widgets) can simply be moved to event-editor.c.
* gui/Makefile.am (evolution_calendar_SOURCES): Removed
event-editor-utils.[ch] from the list of sources.
2000-05-27 Federico Mena Quintero <federico@helixcode.com>
* gui/event-editor-utils.c: Moved many functions to
e-util/e-dialog-widgets.c.
2000-05-25 Federico Mena Quintero <federico@helixcode.com>
* gui/event-editor-dialog.glade: Put the main notebook directly
under a simple GtkWindow. We are going to pull out the notebook
and slap it into our custom-built GnomeApp, anwyays.
* gui/event-editor.c: Made the EventEditor derive from GnomeApp.
Added a BonoboUIHandler for its menu and toolbar.
(make_title_from_ico): Create a nice title for the window.
(get_widgets): Fetch the Glade widgets here instead of all over
the place.
(event_editor_new): Temporary hack to show the dialog here, just
so that I can test it.
* gui/Makefile.am (EXTRA_DIST): Added the Glade messages file.
2000-05-25 Federico Mena Quintero <federico@helixcode.com>
* gui/main.c (init_bonobo): Do not initialize libglade twice.
* gui/component-factory.c (create_view): Set the folder_uri
property, otherwise the calendar will not get loaded into the
view.
2000-05-25 Christopher James Lahey <clahey@helixcode.com>
* gui/main.c: Make it so that warnings don't crash calendar.
2000-05-25 Ettore Perazzoli <ettore@helixcode.com>
* gui/evolution-calendar-control.c: Removed.
* gui/main.c: New.
* gui/control-factory.c: New.
* gui/control-factory.h: New.
* gui/calendar-component-factory.c: New.
* gui/calendar-component-factory.c: New.
* gui/evolution-calendar-control.c (calendar_control_factory):
Renamed from `calendar_factory'.
(calendar_control_factory_init): Renamed from
`calendar_factory_init'.
* gui/Makefile.am: Link with the files from `$(builddir)/shell'.
* gui/evolution-calendar.gnorba: New.
* gui/evolution-calendar.oafinfo: New.
2000-05-24 Federico Mena Quintero <federico@helixcode.com>
* gui/print.c (range_selector_new): New function to create the
custom range selector.
(print_dialog): New function to show the print dialog.
(print_calendar): Use the print dialog.
2000-05-24 Christopher James Lahey <clahey@helixcode.com>
* gui/Makefile.am: Added libepaned.a.
* gui/gnome-cal.c: Switched from GtkPaned to EPaned.
2000-05-22 Federico Mena Quintero <federico@helixcode.com>
* gui/calendar-commands.c (calendar_get_events_in_range): Removed
function.
* gui/mark.c (mark_month_item): Use
cal_client_get_events_in_range().
* gui/calendar-commands.c (show_year_view_clicked): Comment out,
since we don't have a year view.
* gui/gnome-cal.c (setup_widgets): Removed the year view stuff.
(gnome_calendar_get_current_view_name): Likewise.
(gnome_calendar_update_view_times): Likewise.
(gnome_calendar_direction): Likewise.
(gnome_calendar_set_view): Likewise.
(gnome_calendar_update_all): Likewise.
(gnome_calendar_object_updated_cb): Likewise.
(gnome_calendar_object_removed_cb): Likewise.
(gnome_calendar_time_format_changed): Likewise.
(gnome_calendar_get_current_time_range): Likewise.
* gui/gnome-cal.h (GnomeCalendar): Removed the year view stuff.
* gui/Makefile.am (evolution_calendar_SOURCES): Added layout.[ch],
print.[ch]. Removed quick-view.[ch], year-view.[ch] since they
are no longer used. Removed all the old Pilot crap.
2000-05-20 Damon Chaplin <damon@helixcode.com>
* cal-util/cal-recur.[hc]: new files to implement iCalendar recurrence
rules. These are only part finished, but people may like to check that
the architecture seems OK.
2000-05-17 Damon Chaplin <damon@helixcode.com>
* gui/e-day-view.c (e_day_view_on_delete_occurrence):
* gui/e-week-view.c (e_week_view_on_delete_occurrence): use a copy of
the iCalObject so we detect the change in the "update_event" callback.
Maybe we should just update the view ourselves and then we wouldn't
need to detect any change in the callback.
* cal-util/calobj.c (ical_object_reset_recurrence): new function to
get rid of any recurrence rules. Used when we 'unrecur' an event.
* gui/e-day-view.c (e_day_view_key_press): don't add a new event if it
won't fit, or we end up adding a new event for each key press.
(e_day_view_update_event_label): don't update it if it doesn't have
an EText item (i.e. it isn't visible).
* gui/e-day-view-time-item.c: allow selection of times using this
column.
2000-05-19 Federico Mena Quintero <federico@helixcode.com>
* cal-util/timeutil.c (time_add_minutes): Fixed warning message.
(time_add_day): Likewise.
(time_add_month): Likewise.
(time_add_year): Likewise.
(time_from_day): Of all functions, *this* one had to have a bug.
Set the tm.tm_isdst to -1 to specify that we don't know whether
the time is in DST or not. This fixes *many* bugs upstream.
(time_week_begin): Likewise. We never noticed this since the week
functions are never used.
(time_week_end): Likewise.
2000-05-17 Seth Alves <alves@hungry.com>
* gui/event-editor.c: hooked up more widget signals to callbacks
to the gladified dialog acts more like the original one.
2000-05-16 Seth Alves <alves@hungry.com>
* gui/event-editor.c (recurrence_toggled): hook the radio buttons
to the pages of the notebook.
(append_exception):
(recurrence_exception_added):
(recurrence_exception_deleted):
(recurrence_exception_changed): code to deal with the recurrence
exception list.
2000-05-15 Seth Alves <alves@hungry.com>
* gui/event-editor.[ch]: gladeified replacement for eventedit.c
* gui/event-editor-utils.[ch]: utilities used by event-editor.c
* gui/event-editor-dialog.glade: glade file used by event-editor.c
2000-05-14 Federico Mena Quintero <federico@helixcode.com>
* gui/gnome-cal.c (display_notification): Use the alarm
notification dialog.
(display_notification_cb): New callback for the result of the
alarm notification dialog.
* gui/dialogs/alarm-notify.glade: New file with the alarm
notification dialog.
* gui/dialogs/alarm-notify-dialog.[ch]: New file.
* gui/dialogs/Makefile.am: New file.
* gui/Makefile.am (SUBDIRS): Added the dialogs directory.
2000-05-13 Federico Mena Quintero <federico@helixcode.com>
* gui/gnome-cal.c (trigger_alarm_cb): Better error checking, and
plug leaks of str_ico and ico.
* gui/evolution-calendar-control.c (main): Initialize libglade.
2000-05-13 Ettore Perazzoli <ettore@helixcode.com>
* pcs/Makefile.am (INCLUDES): Add
`-I$(top_builddir)/libical/src/libical'.
2000-05-12 Federico Mena Quintero <federico@helixcode.com>
* cal-util/calobj.c (generate): Use a (dtend - dtstart) offset to
compute the ending time of the occurrence. This takes care of
recurring events that span multiple days. Also, removed the DST
condition since it did not look right at all: if you have a daily
appointment at 18:00, it still should happen at 18:00 even during
daylight savings.
* gui/gnome-cal.c (gnome_calendar_tag_calendar): Use the timeutil
functions instead of calculating the month's times by hand. Use
cal_obj_instance_list_free() instead of freeing the list by hand.
Clip the range we pass to mark_gtk_calendar_day().
(mark_gtk_calendar_day): Fixed off-by-one error at the end of the
month by adding real day offsets.
2000-05-11 Federico Mena Quintero <federico@helixcode.com>
* gui/gnome-cal.c (add_alarms_for_object): New function to add
today's alarms for a single object.
(gnome_calendar_object_updated_cb): Update the object's alarms.
* idl/evolution-calendar.idl (Cal): Added a
get_alarms_for_object() method.
* pcs/cal.c (Cal_get_alarms_for_object): Implemented method.
* pcs/cal-backend.c (cal_backend_get_alarms_for_object): New
function.
* pcs/cal-backend-imc.c (cal_backend_imc_get_alarms_for_object):
Implemented.
* cal-client/cal-client.c (cal_client_get_alarms_for_object): New
function.
2000-05-11 Dan Winship <danw@helixcode.com>
* gui/calendar-commands.c (calendar_control_activate): Now that we
depend on current gnome-libs we can make the toolbar detachable
again.
* pcs/icalendar-save.c (timet_to_icaltime): remove unused timezone
variable to make this compile on BSD systems (where timezone is
the name of a function)
2000-05-11 Federico Mena Quintero <federico@helixcode.com>
* gui/gnome-cal.c (gnome_calendar_update_all): Removed unused
arguments. Load the initial alarms here.
(load_alarms): New function to load a day's worth of alarms.
(gnome_calendar_class_init): Eeeek! This was taking in an
incorrect argument type.
(gnome_calendar_init): Now the calendar keeps a hash table of
UIDs->queued alarms. Create the hash table here.
(gnome_calendar_destroy): Destroy the alarms hash table.
(gnome_calendar_object_updated_cb): Remove the alarms for the
object and regenerate them.
(gnome_calendar_object_removed_cb): Remove the alarms for the
object.
* gui/alarm.c (alarm_add): Do not take in a CalendarAlarm, just
the trigger time, the callback and the closure data. Return an
opaque identifier for the alarm so that it can be removed by the
client code if needed. Use the queue_alarm() helper function.
(queue_alarm): Helper function to actually queue the alarm and set
up the itimer. Deal with a nonzero return value from
setitimer().
(alarm_remove): New function to remove an alarm based on its ID.
(pop_alarm): New helper function; pops the first alarm of the
queue and resets the timer as appropriate.
(alarm_ready): Simplified a lot by using pop_alarm().
* idl/evolution-calendar.idl (Cal): Added get_alarms_in_range().
* pcs/cal.c (build_instance_seq): New function to build a CORBA
sequence from the internal list of instances.
(Cal_get_events_in_range): Use build_instance_seq().
(Cal_get_alarms_in_range): Implemented new method.
* pcs/cal-backend.c (cal_backend_get_alarms_in_range): New
function with the get_alarms_in_range() engine.
* pcs/cal-backend-imc.c (cal_backend_imc_get_alarms_in_range):
Implemented the get_alarms_in_range() method.
* cal-client/cal-client.c (cal_client_get_alarms_in_range): New
client-side function for getting the alarms.
(build_instance_list): New helper function to build the
CalObjInstance list from the CORBA sequence.
(cal_client_get_events_in_range): Use build_instance_list().
* gui/calendar-commands.h: #include <cal-util/calobj.h>. #include
"gnome-cal.h".
* gui/e-week-view.c: #include "calendar-commands.h" instead of
main.h; the latter is an obsolete file and will be killed.
* gui/evolution-calendar-control.c (main): Call init_bonobo()
before anything else. We need the GTK+ object system initialized.
* gui/Makefile.am (evolution_calendar_SOURCES): Do not use main.h.
* cal-util/cal-util.c (cal_alarm_instance_list_free): New function.
2000-05-10 Matt Loper <matt@helixcode.com>
* gui/calendar-commands.c (calendar_control_activate): Move
"about" menuitem to the help menu.
2000-05-10 Christopher James Lahey <clahey@helixcode.com>
* gui/Makefile.am: Added main.h. Combined the two EXTRA_DIST
sections.
2000-05-09 Christopher James Lahey <clahey@helixcode.com>
* pcs/cal-backend-imc.c: Set the format when creating a new
calendar.
2000-05-09 Christopher James Lahey <clahey@helixcode.com>
* pcs/cal-factory.c: Removed double free of method_string in
uri->method_string.
2000-05-08 Ettore Perazzoli <ettore@helixcode.com>
* pcs/cal.h: Include "calendar/pcs/evolution-calendar.h" instead
of "evolution-calendar.h".
* pcs/cal-backend.h: Include "calendar/pcs/evolution-calendar.h"
instead of "evolution-calendar.h".
2000-05-08 Seth Alves <alves@hungry.com>
* gui/e-day-view.c (e_day_view_on_delete_appointment): call
e_day_view_stop_editing_event here to avoid a divide by zero
a bit further on. i'm not sure if this is the best fix for this.
2000-05-08 Federico Mena Quintero <federico@helixcode.com>
* pcs/cal-backend.h (CalBackendClass): CalBackendClass now is just
an interface for calendar backends; this is an abstract class.
Put in the vtable for the backend methods.
* pcs/cal-backend.c (cal_backend_new): Removed function, since
CalBackend is not just an abstract class.
Removed implementation-specific functions and made public
functions call the virtual methods instead.
* pcs/cal-backend-imc.[ch]: New files with the CalBackendIMC
implementation; this implements a backend for iCalendar and
vCalendar files. Moved the implementation-specific stuff from
cal-backend.[ch] to here.
* pcs/cal-backend-imc.c (CalendarFormat): Moved enumeration to
here. Added a CAL_UNKNOWN value for when the backend is not
loaded yet.
(cal_backend_imc_init): Initialize priv->format as CAL_UNKNOWN.
(save_to_vcal): Use the same VCProdIdProp value as in
cal-util/calobj.c. Use "1.0" as the VCVersionProp as per the
vCalendar spec.
(ensure_uid): Return nothing, since the result value need not be
used anymore.
(add_object): Since we mark the calendar as dirty anyways, we do
not need to check the result value of ensure_uid() anymore.
(remove_object): Asssert that we know how to handle the object's
type. We do this in add_object() anyways.
* pcs/Makefile.am (libpcs_a_SOURCES): Added cal-backend-imc.[ch].
* gui/gnome-cal.c: Replaced debugging printf()s with g_message()
so that we can see the line number where they occur.
* gui/gnome-cal.c (gnome_calendar_load_cb): Sort of handle the
LOAD_METHOD_NOT_SUPPORTED result code, and added a default for the
switch.
* cal-client/cal-listener.h (CalListenerLoadStatus): Removed
enumeration; it is stupid to translate all values for the
CalClient when it is going to translate them again.
(CalListenerClass::cal_loaded): This signal now passes the
LoadStatus directly from the CORBA side.
* cal-client/cal-listener.c (Listener_cal_loaded): Do not
translate the status value.
* cal-client/cal-client.h (CalClientLoadStatus): Added the
CAL_CLIENT_LOAD_METHOD_NOT_SUPPORTED error code.
* cal-client/cal-client.c (cal_loaded_cb): Translate the CORBA
version of the LoadStatus result code.
* pcs/cal-factory.c (CalFactoryPrivate): New methods field for the
hash table from method strings to the GtkTypes for backend class
types.
(cal_factory_init): Create the priv->methods hash table.
(cal_factory_destroy): Free the priv->methods hash table.
(cal_factory_register_method): New function to register a backend
class for a particular URI method.
(launch_backend_for_uri): New function to launch a backend for a
particular URI's method.
(load_backend): Use launch_backend_for_uri(). Move the error
notification code from load_fn() to here.
(create_backend): Use launch_backend_for_uri(). Move the error
notification code form create_fn() to here; it is #ifdefed out
since currently cal_backend_create() does not have any error
reporting capabilities.
* idl/evolution-calendar.idl (Listener::LoadStatus): Added a
PROTOCOL_NOT_SUPPORTED error code.
* pcs/cal-factory.c (cal_factory_load cal_factory_create): Removed
functions, since they were supposed to be internal only.
(CalFactory_load): Call queue_load_create_job() directly.
(CalFactory_create): Likewise.
2000-05-08 Damon Chaplin <damon@helixcode.com>
* gui/e-week-view.c (e_week_view_remove_event_cb):
* gui/e-day-view.c (e_day_view_remove_event_cb): don't set the ico->uid
to NULL or we won't find any other occurrences of the event. Set the
editing_event_day/num to -1 instead.
* gui/e-week-view-event-item.c (e_week_view_event_item_draw): fixed the
positioning of the icons for long events.
* cal-util/calobj.c (ical_object_normalize_summary): forgot to
terminate the string.
2000-05-07 Damon Chaplin <damon@helixcode.com>
* gui/e-day-view.c (e_day_view_on_main_canvas_drag_data_received):
(e_day_view_on_top_canvas_drag_data_received): show the EText item,
just in case it hasn't moved, otherwise it won't appear.
* gui/e-day-view.h (E_DAY_VIEW_BAR_WIDTH): increased from 6 to 8 to
make it easier to drag an event. Also increased E_DAY_VIEW_GAP_WIDTH
since it must be >= the BAR_WIDTH.
2000-05-07 Matt Loper <matt@helixcode.com>
* gui/evolution-calendar-control.c (PROPERTY_CALENDAR_URI):
Changed to "folder_uri" from "calendar_uri".
(set_prop): The uri given to us is a directory, so we append a
filename onto the end before we use it.
2000-05-06 Damon Chaplin <damon@helixcode.com>
* cal-util/timeutil.c (time_day_begin):
(time_day_end): changed these so they just do a simple localtime(),
update the struct tm, then do a mktime(). I don't know why it used to
look at the tm_isdst flags etc. From a little test program I wrote
which steps through testing every hour for a year it wasn't working
correctly, and the new code does.
(time_add_day): also got rid of the stuff that looked at tm_isdst here.
My test program now works better.
2000-05-06 Chris Toshok <toshok@helixcode.com>
* gui/.cvsignore: ignore evolution-calendar.pure
* gui/Makefile.am: add support for building evolution-calendar.pure
2000-05-06 Damon Chaplin <damon@helixcode.com>
* gui/e-day-view.c:
* gui/e-week-view.c: finish editing event when user hits Return key.
(e_week_view_on_text_item_event): stop event signals after doing any
other calls, since otherwise it will also stop any other resulting
event signals.
* gui/e-week-view-event-item.c (e_week_view_event_item_draw): don't
draw the start/end times while editing.
* gui/eventedit.c: changed the Summary field to a GtkEntry, since we
now only want a single line of text.
* cal-util/calobj.c (ical_object_normalize_summary): new function to
convert the summary field to a single line of text, by converting any
sequence of CR & LF characters to a single space.
(ical_object_create_from_vobject): call the above function. I think
all functions that load iCalObjects go through this.
(ical_new): called it here as well just in case.
2000-05-06 Damon Chaplin <damon@helixcode.com>
* gui/week-view.[hc]: removed.
2000-05-06 Damon Chaplin <damon@helixcode.com>
* gui/gncal-day-panel.[hc]:
* gui/gncal-day-view.[hc]:
* gui/gncal-full-day.[hc]:
* gui/gncal-week-view.[hc]:
* gui/layout.[hc]:
* gui/view-utils.[hc]: removed old calendar view files.
2000-05-06 Damon Chaplin <damon@helixcode.com>
* cal-util/calobj.[hc]: added guint ref_count to iCalObject struct,
and ical_object_ref/unref() functions. I've updated all the gui/
stuff to use ref_counts but I haven't touched the pcs/ stuff. Maybe
just using ical_object_destroy() is OK there.
* gui/gncal-todo.c:
* gui/calendar-commands.c:
* gui/eventedit.c:
* gui/e-week-view.c:
* gui/e-day-view.c: use refcounting for iCalObjects.
* gui/e-day-view-main-item.c:
* gui/e-day-view-top-item.c:
* gui/e-day-view.c: try not to ever draw outside the event, even when
the event is very small.
2000-05-05 Damon Chaplin <damon@helixcode.com>
* gui/e-day-view.c: don't allow recurring events to be resized or
dragged, and don't show the resize/drag cursors. Actually it may be
better to let the user do the resize/drag and then ask them what they
want to do - change the single occurrence or the entire series.
* gui/e-day-view-time-item.c (e_day_view_time_item_show_popup_menu):
use e_auto_kill_popup_menu_on_hide() to destroy the popup menu.
* gui/popup-menu.c: include e-gui-utils.h
2000-05-04 Damon Chaplin <damon@helixcode.com>
* gui/e-day-view.c (e_day_view_foreach_event_with_uid): for the long
events pass E_DAY_VIEW_LONG_EVENT as the day. Fixes SEGV.
* gui/calendar-commands.c: when we switch views, grab the focus.
* gui/gnome-cal.c (gnome_calendar_tag_calendar):
(gnome_calendar_mark_gtk_calendar_day): changed this so it uses
cal_client_get_events_in_range(), and doesn't load any objects.
Also just return if it isn't visible.
* gui/calendar-commands.c (calendar_get_events_in_range): call
g_list_sort() to sort the list rather than g_list_insert_sorted() for
each element. It is much more efficient.
Also changed it so that the co->ev_start/end fields are copied from
the CalObjInstance rather than the parameters to the function
(that is right, isn't it?)
Also freed the list elements, and finally the list.
(calendar_iterate): changed this to use cal_client_get_events_in_range
since that is more efficient than getting all the uids and then loading
and parsing all the events.
* pcs/cal-backend.c (save): output the '... saved' message before
freeing the string!
* gui/gncal-todo.c (gncal_todo_update):
* gui/e-week-view.c (e_week_view_update_event):
* gui/e-day-view.c (e_day_view_update_event):
* gui/calendar-commands.c (calendar_get_events_in_range):
(calendar_iterate): free obj_string after it is parsed.
2000-05-02 Damon Chaplin <damon@helixcode.com>
* gui/calendar-commands.c (calendar_control_activate): set the active
radio button here. Oops - it wasn't a Bonobo problem after all.
* gui/popup-menu.c (popup_menu): added call to
e_auto_kill_popup_menu_on_hide() to destroy the menu.
* gui/e-week-view.c (e_week_view_show_popup_menu):
* gui/e-day-view.c (e_day_view_on_event_right_click): ico->user_data
isn't useful any more, since the event editor keeps its own iCalObject.
So for now we make the menu commands available even when the event is
being edited in the event editor.
Also corrected misspellings of 'occurance' -> 'occurrence'.
* gui/eventedit.c (event_editor_destroy): destroy the iCalObject.
The event editor now uses its own independent iCalObject.
* gui/e-week-view.c (e_week_view_on_unrecur_appointment):
* gui/e-day-view.c (e_day_view_on_unrecur_appointment): create a new
uid for the new single instance. I'm not sure what we should do about
the creation/last modification times of the objects.
* gui/e-week-view.c (e_week_view_on_edit_appointment):
* gui/e-day-view.c (e_day_view_on_edit_appointment): duplicate the
iCalObject before passing it to the event editor, since it will change
the fields. If we don't duplicate it we won't know what has changed
when we get the "update_event" callback.
* gui/e-week-view.c (e_week_view_key_press):
* gui/e-day-view.c (e_day_view_key_press): set the created and last_mod
times of the new iCalObject. We may want to set the default alarm as
well.
* cal-util/calobj.c (ical_gen_uid): made this function public so we
can generate new uids if necessary.
2000-05-01 Damon Chaplin <damon@helixcode.com>
* gui/gnome-cal.[hc] (gnome_calendar_get_current_time_range): new
function to get the currently seleted time range form the current view.
* gui/calendar-commands.c (display_objedit): use the above function
to get the time for the new appointment.
* gui/e-week-view.c:
* gui/e-day-view.c: use a shallow copy of the ico when we update the
times (when resizing/dragging). Otherwise we won't detect that the
time has changed in the "update_event" callback.
Also added functions to get the currently selected time range.
2000-04-30 Seth Alves <alves@hungry.com>
* pcs/icalendar-save.c (icalcomponent_create_from_ical_object): set
attendee and contact address correctly.
* pcs/cal-backend.c (icalendar_calendar_load): init priv->object_hash
when loading.
(cal_get_type_from_filename): if file extension is .ical, consider
the file an ical file.
2000-05-01 Damon Chaplin <damon@helixcode.com>
* cal-util/calobj.c (ical_object_compare_dates): new function to see
if the event dates have changed (including any recurrence rules).
It is used for optimization when we get the "object_changed" signal.
We have to do far less work if the dates are unchanged.
* gui/e-week-view.c:
* gui/e-day-view.c: only draw the selection when we have the keyboard
focus, since the user expects to be able to type in a new event when
the selection is shown. Also keep the selection when we lose focus,
but just don't show it.
Also quite a few changes to cope with the new client/server
architecture.
* gui/e-day-view-top-item.c (e_day_view_top_item_draw):
* gui/e-day-view-main-item.c (e_day_view_main_item_draw):
* gui/e-week-view-main-item.c (e_week_view_main_item_draw_day):
only draw the selection if the widget has the keyboard focus.
* gui/gnome-cal.c (mark_gtk_calendar_day): fixed so it works with
events longer than one day. And changed the code for updating events
in the new views.
2000-04-27 Ettore Perazzoli <ettore@helixcode.com>
* gui/evolution-calendar-control.c
(init_bonobo): OAFized.
* gui/main.c (main): Initialize with OAF if `USING_OAF'.
* gui/evolution-calendar-control.c: New #define
`CONTROL_FACTORY_ID', varying according to whether we are
`USING_OAF'.
(calendar_factory_init): Use `CONTROL_FACTORY_ID'.
* gui/Makefile.am: Updated for OAF.
* pcs/cal-factory.h: Explicitly #include
"calendar/pcs/evolution-calendar.h" instead of just
"evolution-calendar.h".
* cal-client/cal-client.c (cal_client_construct) [USING_OAF]: Use
OAF.
* cal-client/client-test.c (init_corba): New function, implemented
differently depending on `USING_OAF'.
2000-04-27 <alves@hungry.com>
* pcs/cal-backend.c (cal_backend_load): fix memory leak
(save_to_vcal): same
(save): same
(cal_backend_load): same
2000-04-26 Christopher James Lahey <clahey@helixcode.com>
* cal-util/.cvsignore: Replaced libcal-util.la with *.la
* pcs/.cvsignore: Added *.la and *.lo.
2000-04-25 Federico Mena Quintero <federico@helixcode.com>
* pcs/cal-factory.c (backend_last_client_gone_cb): Renamed from
backend_destroy_cb. Now we use it for the "last_client_gone"
signal from the backend. Also, unref the backend to destroy it.
(add_backend): Connect to the "last_client_gone" signal of the
backend.
(cal_factory_get_n_backends): New function to query the number of
running backends.
* pcs/cal-backend.c (cal_backend_class_init): Register the new
"last_client_gone" signal. It is emitted when the last Cal client
goes away. It is used to notify the factory when a backend may be
safely destroyed.
(cal_destroy_cb): Emit the "last_client_gone" signal when the last
client disconnects from the backend.
2000-04-25 Seth Alves <alves@hungry.com>
* gui/e-day-view.c (e_day_view_find_event_from_ico): compare
iCalObjects by their UIDs instead of by their pointers.
* pcs/cal-backend.c (cal_backend_destroy): don't save on destroy.
2000-04-25 Ettore Perazzoli <ettore@helixcode.com>
* cal-client/Makefile.am: Add `$(datadir)/idl'.
* pcs/Makefile.am (idl_flags): Add `$(datadir)/idl'.
(INCLUDES): Use `$(BONOBO_GNOME_CFLAGS)'.
2000-04-25 Seth Alves <alves@hungry.com>
* gui/gnome-cal.c (gnome_calendar_destroy): hook for widget
destroy -- used to unref the CalClient so wombat knows we are gone.
(gnome_calendar_class_init): added a class init for this widget.
* gui/e-day-view.c (e_day_view_update_event): allow for null ico
* gui/e-week-view.c (e_week_view_update_event): allow for null ico
2000-04-24 Federico Mena Quintero <federico@helixcode.com>
* cal-client/client-test.c (main): The path to the test calendar
changed when we moved stuff around. Users will have to tweak this
for their CVS setup, anyways.
(create_client): Create or load the calendar as appropriate.
(client_destroy_cb): Exit the main loop if both clients are gone.
(main): Connect to the "destroy" signal of the clients so that we
can terminate the test program.
2000-04-24 Seth Alves <alves@hungry.com>
* pcs/icalendar.c (parse_person): allow for null CN
(parse_person): allow for null sent_by
* pcs/Makefile.am: build icalendar-test
* pcs/icalendar-test.c: a test which loads an ical file and
converts it to our internal format, and then saves it back out.
2000-04-24 Damon Chaplin <damon@helixcode.com>
* gui/Makefile.am: added new source files and pixmaps, and removed
old source files, which can be deleted.
* gui/e-week-view-titles-item.[hc]:
* gui/e-week-view-main-item.[hc]:
* gui/e-week-view-event-item.[hc]:
* gui/e-week-view.[hc]: new files implementing the week/month views.
* gui/yearview.xpm:
* gui/monthview.xpm:
* gui/weekview.xpm:
* gui/workweekview.xpm:
* gui/dayview.xpm: new pixmaps for the toolbar buttons. These aren't
intended to be the final pixmaps.
* gui/calendar-commands.c: added radio buttons to the toolbar to
switch between the calendar views, and moved the am_pm_flag here so we
can get rid of view-utils.c.
* gui/gnome-cal.[hc]: made it a subclass of GtkVBox, rearranged the
widgets into 2 notebooks, and added the selection_start_time and
selection_end_time fields.
* gui/goto.c: updated to use new selection time range.
* gui/quick-view.c: added '#include <gtk/gtkwindow.h>' so it compiles.
* gui/e-day-view.[hc]: changed the interface to support the new
selection time range, got rid of a few debugging messages and changed
a few bits.
2000-04-21 Seth Alves <alves@hungry.com>
* pcs/icalendar-save.c: start on code to do the opposite of
icalendar.c (convert from iCalObjects to libical's icalcomponents).
* gui/calendar-commands.c (calendar_control_activate): moved
"About Calendar" into the View menu so it shows up.
2000-04-20 Seth Alves <alves@hungry.com>
* gui/gnome-cal.c (gnome_calendar_changed_cb): new function: callback
for listener's object updated signal.
(gnome_calendar_object_removed_cb): new function: callback for
listener's object removed signal.
(gnome_calendar_new): hook up listener's "obj_updated" and
"obj_removed" signals so if evolution is running twice,
they will both see changes right away.
(gnome_calendar_object_changed): don't call update_all, since
it will be called by the listener.
(gnome_calendar_remove_object): don't call update_all
(gnome_calendar_add_object): don't call update_all
* gui/gncal-full-day.c (child_realize): create fullday's gcs
even if pixmap_bell has already been created. this was
causing crashes if the calendar was run twice.
2000-04-19 Seth Alves <alves@hungry.com>
* gui/eventedit.c (ee_rp_init_rule): changed the order around
a bit to avoid a Gtk-CRITICAL crash
* gui/gncal-todo.c (gncal_todo_update): fixed code to populate
the todo clist
* cal-client/cal-client.c (cal_client_get_uids): don't check
type against CALOBJ_TYPE_ANY since it will always match.
(cal_client_get_uids): same (re: CALOBJ_TYPE_ANY)
* pcs/cal-backend.c (build_uids_list): same (re: CALOBJ_TYPE_ANY)
* pcs/cal.c (Cal_get_uids): same (re: CALOBJ_TYPE_ANY)
* pcs/cal-backend.c (remove_object): don't call save from here
because in all cases the caller of remove_object calls save
* gui/calendar-commands.c (calendar_set_uri): calls gnome_calendar_open
instead of checking on disk and calling load or create.
* gui/gnome-cal.c (gnome_calendar_object_changed): fixed to use
cal_client_update_object -- editing and dragging events works again
(gnome_calendar_open): collapsed gnome_calendar_load and
gnome_calendar_create into this function. added new type
GnomeCalendarOpenMode which has the value CALENDAR_OPEN or
CALENDAR_OPEN_OR_CREATE.
* gui/evolution-calendar-control.c (calendar_properties_init): create
a property bag for this control
(set_prop): callback for property sets
(get_prop): callback for proprety gets
* gui/calendar-commands.c (calendar_set_uri): new function,
called when the "calendar_uri" property is set on the calendar-
control's property bag.
2000-04-18 Federico Mena Quintero <federico@helixcode.com>
* cal-util/Makefile.am (INCLUDES): Fix include path.
2000-04-16 Federico Mena Quintero <federico@helixcode.com>
* pcs/cal-factory.h (CalFactoryClass): We have a new
"last_calendar_gone" signal that Wombat can use to terminate
itself properly.
* pcs/cal-factory.c (cal_factory_class_init): Register the
"last_calendar_gone" signal.
(backend_destroy_cb): Emit the "last_calendar_gone" signal instead
of killing the factory.
* pcs/Makefile.am: Added $(CORBA_GENERATED) to BUILT_SOURCES.
(INCLUDES): Make the log domain be "wombat-pcs".
2000-04-17 Seth Alves <alves@hungry.com>
* pcs/cal-backend.c (add_object): removed implicit save, since
we don't want to save as we load from disk.
(cal_backend_update_object): added a call to save, since it
isn't done by add_object now.
2000-04-16 Federico Mena Quintero <federico@helixcode.com>
* cal-util/Makefile.am: Renamed library from libcalutil to
libcal-util, to be consistent with libcal-client. Install header
files in $(includedir)/evolution/cal-util.
(INCLUDES): Add "cal-util" log domain for glib.
(libcal_clientincludedir): The header files are now installed in
$(includedir)/evolution/cal-client.
* cal-util/cal-util.h: Fix includes.
* cal-client/client-test.c: Fix includes.
* pcs/Makefile.am: Create libpcs.a, not a shared library, because
it is for internal use by Wombat only. The header files should
not be installed, either. Removed all the old Tlacuache stuff.
* gui/Makefile.am (EXTRA_DIST): We no longer distribute
gncal.desktop.
(evolution_calendar_INCLUDES): Add "calendar-gui" for the glib log
domain.
* gui/*.[ch]: Fix cal-util and cal-client includes.
* pcs/Makefile.am (INCLUDES): Added "pcs" log domain for glib.
* pcs/*.[ch]: Fix cal-util includes.
2000-04-11 Chris Toshok <toshok@helixcode.com>
* pcs/icalendar.c (icaltime_to_timet): use HAVE_TIMEZONE to switch
between linux's timezone variable and *bsd's method of getting the
gmt offset.
2000-04-10 Seth Alves <alves@hungry.com>
* pcs/cal-backend.c (save_to_vcal): create and save an actual
vcalendar instead of a list of vcal objects.
2000-04-10 Damon Chaplin <damon@helixcode.com>
* gui/Makefile.am (INCLUDES): moved srcdir directories to the top so
we search headers in the evolution tree before installed headers.
(Otherwise when you do 'make install' lots of files in gui/ get
rebuilt, since they depend on the installed cal-client.h which has just
been updated.)
2000-04-09 Seth Alves <alves@hungry.com>
* gui/gnome-cal.c (gnome_calendar_load): catch cal_loaded signal
on the cal client.
(gnome_calendar_load_cb): callback for cal_loaded signal. moved
gnome_calendar_update_all from gnome_calendar_load to here.
* gui/calendar-commands.c: minor cleanups
* pcs/cal-backend.c (save_to_vcal): copied code from gnome-pim
to write vcal to a file
(save): filled it with more gnome-pim code
(add_object): call save () after changing
(remove_object): same
(cal_backend_create): same
(cal_backend_remove_object): same
2000-04-08 Christopher James Lahey <clahey@helixcode.com>
* gui/Makefile.am: Removed linking with libetable and libeminicard
since they weren't being used.
2000-04-08 Seth Alves <alves@hungry.com>
* gui/gnome-cal.c (gnome_calendar_create): new function:
friendly wrapper for cal_client_create_calendar
* gui/calendar-commands.c (new_calendar): call gnome_calendar_create
if no filename is provided
* gui/prop.c (properties): calendar is a frame
* gui/calendar-commands.c (calendar_control_activate): sort out the
menus a bit, more of them show up now.
* gui/Makefile.am: don't build library or test, just the bonobo control
* gui/gncal-todo.c (simple_todo_editor): calendar is a frame instead
of a window, now.
* gui/gnome-cal.c (gnome_calendar_new): same
* gui/goto.c (goto_dialog): same
2000-04-06 Seth Alves <alves@hungry.com>
* gui/calendar-commands.c (calendar_control_activate): removed
uih from the argument list, added cal. use cal as user_data
in callbacks rather than the control.
(calendar_control_deactivate): removed uih from argument list
2000-04-05 Seth Alves <alves@hungry.com>
* gui/calendar-commands.c (setup_menu): removed
(setup_appbar): removed
(calendar_control_activate): new function -- does the work
that setup_appbar and setup_menu used to do.
(calendar_control_deactivate): undoes what calendar_control_activate
does by removing the toolbar items and menu items.
* gui/Makefile.am: build test-calendar-widget and evolution-calendar,
common stuff is in a library
* gui/gnome-cal.c (gnome_calendar_get_type): made the calendar widget
based on a gtk_frame rather than a gnome_app
* gui/calendar-commands.c: split out some of main.c
* gui/evolution-calendar-control.c: bonobo bung so evolution
can use the calendar widget
2000-04-01 Matt Loper <matt@helixcode.com>
* pcs/.cvsignore: Added *.lo.
2000-03-30 Seth Alves <alves@hungry.com>
* gui/main.c (calendar_get_events_in_range):
cal_client_get_events_in_range returns a list of CalObjInstance *, not
a list of (char *) uid.
* Makefile.am (SUBDIRS): readded the gui directory
* gui/main.c: temporarily added alarm_defaults back in,
since the calendar doesn't link without it
2000-03-29 Matt Loper <matt@helixcode.com>
* Makefile.am: remove the gui directory, which doesn't compile.
2000-03-28 Matt Loper <matt@helixcode.com>
* pcs/Makefile.am: create a libpcs.la library, for use in the
wombat.
2000-03-28 Seth Alves <alves@hungry.com>
* gui/Makefile.am (LINK_FLAGS): added libeutil.la and libetext.a
* gui/main.c (calendar_iterate): switch from string_to_ical_object to
ical_object_find_in_string
(calendar_get_events_in_range): same
(session_save_state): commented out references
to gcal->client->filename
2000-03-27 Federico Mena Quintero <federico@helixcode.com>
* pcs/cal-backend.c (cal_backend_get_object): Use
ical_object_to_string().
* cal-util/calobj.c (ical_object_to_string): Moved over from
pcs/cal-backend.c (was string_from_ical_object).
(get_calendar_base_vobject): Likewise, moved over from
pcs/cal-backend.c.
* cal-util/cal-util.c: Removed string_to_ical_object(); the
correct function is in calobj.[ch], called
ical_object_find_in_string(). Removed ical_object_to_string,
since we now implement it in calobj.c.
* cal-util/calobj.c: Removed ical_object_new_from_string(); see
above.
* idl/evolution-calendar.idl (CalObjInstance): Calendar object
instances now contain only the UID for the object, not the whole
string representation of the object. This allows clients to
implement caching of objects if they wish.
* pcs/cal.c (Cal_get_events_in_range): Likewise.
* pcs/cal-backend.c (build_event_list): Likewise.
* cal-client/cal-client.c (cal_client_get_events_in_range):
Likewise.
* cal-util/cal-util.h (CalObjInstance): Likewise.
* cal-util/cal-util.c (cal_obj_instance_list_free): Likewise.
(cal_obj_uid_list_free): Assert that the UIDs in the list are not
NULL.
* pcs/tlacuache.gnorba (repo_id): The calendar factory also
supports the Unknown interface.
2000-03-17 Federico Mena Quintero <federico@helixcode.com>
* gui/e-day-view.c: Fix includes.
(e_day_view_on_delete_occurance): Do not call save_default_calendar().
(e_day_view_on_delete_appointment): Likewise.
(e_day_view_on_unrecur_appointment): Likewise.
(e_day_view_finish_long_event_resize): Likewise.
(e_day_view_finish_resize): Likewise.
(e_day_view_key_press): Likewise.
(e_day_view_on_editing_stopped): Likewise.
(e_day_view_on_top_canvas_drag_data_received): Likewise.
(e_day_view_on_main_canvas_drag_data_received): Likewise.
2000-03-13 Damon Chaplin <damon@helixcode.com>
* gui/e-day-view*.[hc]: new files for the Day/Work-Week views.
2000-03-12 Federico Mena Quintero <federico@helixcode.com>
* gui/main.c (gnome_calendar_locate): Removed function now that it
is no CORBA server in the GUI.
(save_default_calendar): Removed function. Now the personal
calendar server will take care of saving modified calendars when
appropriate.
(close_cmd): Do not call unregister_calendar_services().
* gui/eventedit.c (ee_ok): Do not save the calendar.
* gui/gncal-day-panel.c (day_view_range_activated): Likewise.
* gui/gncal-todo.c (ok_button): Likewise.
(delete_todo): Likewise.
* gui/gncal-full-day.c (delete_occurance): Likewise.
(delete_appointment): Likewise.
(unrecur_appointment): Likewise.
(child_focus_out): Likewise.
(update_from_drag_info): Likewise.
* gui/gnome-cal.c (gnome_calendar_new): Removed obsolete call to
create the CORBA server.
* gui/gnome-cal.h (GnomeCalendar): Renamed `calc' field to
`client'.
* cal-client/cal-client.h (CalClient): Removed filename and
corba_server fields.
2000-03-10 Federico Mena Quintero <federico@helixcode.com>
* gui/main.c (main): Do not pass the INIT_SERVER flag to
gnome_CORBA_init_with_popt_table(). Check for exceptions
properly.
(main): Initialize Bonobo.
(main): Call process_dates() to parse the dates from the command
line before we dump the events or the TODOs.
(main): Use bonobo_main() instead of gtk_main().
* cal-util/calobj.c (ical_new): Initialize the alarm types here.
Do not call default_alarm() anymore, since that is a GUI issue.
(default_alarm): Removed function.
(alarm_defaults): Removed defaults data.
* pcs/tlacuache.c (calendar_notify): Removed stubs for
alarm_defaults, calendar_notify(), debug_alarms.
2000-03-09 Federico Mena Quintero <federico@helixcode.com>
* gui/Makefile.am: Removed the corba-cal stuff. Commented out the
Pilot conduit stuff for now.
* gui/calendar.c: Random #ifdefs to make it build, although this
file is going away.
* gui/Makefile.am: Removed referenes to calobj.[ch] and timeutil.[ch].
* gui/calendar-conduit.c: Fixup includes.
* gui/calendar-conduit.h: Fixup includes.
2000-03-09 Seth Alves <alves@hungry.com>
* gui/gnome-cal.h: replaced "Calendar *cal" with "CalClient *calc"
in the GnomeCalendar struct.
* gui/*.c: tracked change from Calendar * to CalClient
* gui/main.c: moved alarm_defaults from here to cal-util/calobj.c
(calendar_get_events_in_range): pulled this out of calendar.c and
fixed it up to use cal-client stuff. i'm not sure where to put it yet.
* gui/main.c (calendar_iterate): pulled this one out of calendar.c also
2000-03-07 Federico Mena Quintero <federico@helixcode.com>
* cal-client/Makefile.am: Removed cal-client-alarm.[ch] from the
list of sources. This was a miscommunication on our part.
2000-03-05 Seth Alves <alves@hungry.com>
* cal-client/cal-client-alarm.c: stubs for client side
access to alarm structures. this will probably change,
since i don't know what i'm doing.
* cal-util/alarm-enums.h: enums for alarms needed by
both the client and the server
* remaining source files in calendar/... have been moved
to calendar/gui.
* gui/alarm.c: start to decouple the view from the model
in the alarm editing code
2000-03-03 Seth Alves <alves@hungry.com>
* cal-util/Makefile.am: new file -- things shared between
the client and server go in this directory
* calobj.c calobj.h icalendar.c icalendar.h
timeutil.c timeutil.h cal-util.c cal-util.h where moved
backend stuff went into pcs. shared stuff went into
cal-util.
2000-03-02 Federico Mena Quintero <federico@helixcode.com>
At this point the calendar client and personal calendar server
files were moved to the idl/, cal-client/, and pcs/ directories.
* idl/Makefile.am: New file.
* cal-client/Makefile.am: New file. Moved the libcal-client stuff
from calendar/Makefile.am to here.
* pcs/Makefile.am: New file. Moved the tlacuache stuff from
calendar/Makefile.am to here.
* Makefile.am (SUBDIRS): Added the idl and cal-client directories.
* calendar.h: Removed the references to cal-backend.h and its
stuff. This file is going away soon!
* icalendar.c: #include <config.h>. Also, we don't need to
include cal-backend.h or gnome.h.
* icalendar.h: Protect from multiple inclusions.
2000-03-01 Federico Mena Quintero <federico@helixcode.com>
* Makefile.am: Use the gnome-config flags for orbit-idl.
Create a libcal-client library with the calendar client object.
2000-02-29 Federico Mena Quintero <federico@helixcode.com>
* Makefile.am: Removed stale rule for the conduit.
2000-02-21 Matt Loper <matt@helixcode.com>
* .cvsignore: Added *.lo.
2000-02-19 Matt Loper <matt@helixcode.com>
* .cvsignore: Added tlacuache and tl-test.
2000-02-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
* Makefile.am (INCLUDES): Use BONOBO_VFS_GNOME_CFLAGS instead of
GNOMEUI_INCLUDES, as we use Bonobo and VFS.
2000-02-17 Seth Alves <alves@hungry.com>
* cal-backend.h: moved CalendarFormat type def here
* cal-backend.c (cal_backend_load): if extension suggests
an ical file, attempt to load an iCal file.
(cal_get_type_from_filename): returns CAL_ICAL if file
extension is 'ics' or 'ifb', else returns CAL_VCAL
(icalendar_calendar_load): moved this here from
icalendar.c because it needs to call the static function
add_object.
2000-02-17 Federico Mena Quintero <federico@helixcode.com>
* cal-client.c (cal_client_remove_object): Implemented.
* cal.c (cal_notify_remove): Implemented.
(Cal_remove_object): Implemented.
(cal_get_epv): Fill in the remove_object field in the epv.
* cal-backend.c (cal_backend_remove_object): Implemented.
(notify_remove): New function to notify clients that an object was
removed.
2000-02-16 Russell Steinthal <rms39@columbia.edu>
* calobj.[ch], eventedit.c, main.c: Change iCalObject.organizer
from char* to iCalPerson*
* calobj.[ch]: Change iCalObject.related from list of char* to
list of iCalRelation*; assorted related fixes
* icalendar.c: interface between libical and the gnomecal
internal representation
2000-02-11 Federico Mena Quintero <federico@helixcode.com>
* cal-client.c (cal_client_update_object): Implemented.
* cal.c (cal_notify_update): New function to notify the listener
about an updated object.
(Cal_update_object): Implemented.
(Cal_get_uids): set_release() the sequence to TRUE.
(Cal_get_events_in_range): Likewise.
* cal-backend.c (remove_object): New function to remove objects
from a calendar backend.
(cal_backend_update_object): New public function to update an
object and notify clients about it.
* evolution-calendar.idl (Cal): Added update_object() and
delete_object() methods.
(Listener): Removed the obj_changed method and renamed obj_added
to obj_updated. We now only have updated and removed notifiers.
* cal-listener.[ch]: Removed the "changed" notification code.
Changed the "added" notification code to the "updated"
notification.
* cal-client.c: Likewise.
* tlacuache.c (create_cal_factory): Connect to "destroy" on the
factory and exit the main loop when the factory is destroyed.
* cal-factory.c (backend_destroy_cb): New callback used when a
backend is destroyed. Removes the backend from the factory's hash
table and unrefs the factory if all backends go away.
(add_calendar_client): Free the environment.
* cal.c (cal_new): Use bonobo_object_unref() if we fail to
initialize.
* cal-listener.c (cal_listener_new): Likewise.
* layout.c (layout_events): Plug li.partition memory leak.
2000-02-10 Federico Mena Quintero <federico@helixcode.com>
* cal-backend.c (cal_backend_add_cal): Connect to the Cal's
destroy signal.
(cal_backend_remove_cal): Killed function now that removal of Cal
objects is done in their destroy callback.
(cal_destroy_cb): New callback to remove a Cal from the backend's
list of clients. Also, the backend destroys itself when there are
no more clients connected to it.
(save): New placeholder function to save a backend.
(destroy): New function to destroy a backend's data.
(cal_backend_destroy): Save the calendar and destroy it.
* cal.c (cal_destroy): Reset the priv->backend to NULL.
* cal-factory.c (add_calendar_client): There is no need to call
cal_backend_remove_cal(); we can now just destroy the Cal object.
(create_fn): Make sure we always unref the URI.
(load_fn): Move the URI unref to the end of the function for
safety.
* cal-factory.c (add_calendar_client): Unref the Cal only if
notification of the listener was unsuccessful. Otherwise, the
calendar user agent (Listener side) keeps the reference.
* tl-test.c (list_uids): Free the calobj.
* cal-client.c (cal_loaded_cb): Use bonobo_object_unref() to get
rid of the listener.
(load_or_create): Likewise.
(destroy_factory): New function to get rid of the factory.
(destroy_listener): New function to get rid of the listener.
(destroy_cal): New function to get rid of the calendar client
interface object.
(cal_client_destroy): Free all resources.
(cal_client_get_object): CORBA_free() the calobj string. Boy, I
love memprof.
* cal-listener.c (cal_listener_destroy): Reset the priv->cal to
CORBA_OBJECT_NIL.
* cal-backend.c (cal_backend_remove_cal): Do not unref the Cal,
since the calendar user agent owns it.
(cal_backend_add_cal): Do not ref the Cal, since the calendar user
agent owns it.
* cal-factory.c (add_calendar_client): Use bonobo_object_unref()
to get rid of the calendar client interface object.
* calobj.c (ical_object_create_from_vobject): Duplicate the
default "PUBLIC" string.
2000-02-09 Federico Mena Quintero <federico@helixcode.com>
* cal-factory.c (cal_factory_load): Added documentation comment.
(load_fn): Do not print a message if the backend could not be
loaded due to a non-fatal error.
(queue_load_create_job): Moved the stuff from cal_factory_load()
to here. Now this function serves to queue load or create
requests.
(cal_factory_load): Use queue_load_create_job().
(cal_factory_create): Implemented; use queue_load_create_job().
(create_fn): New job handler for creating new calendars.
(create_backend): New function to create a new backend with a new
calendar.
(add_backend): New helper function to add backends to the
factory's hash table.
(load_backend): Use add_backend() instead of adding the backend by
ourselves.
* cal-client.c (load_or_create): Moved the functionality from
cal_client_load_calendar() to here, and added an option to create
a new calendar instead of loading an existing one.
(cal_client_load_calendar): Use load_or_create().
(cal_client_create_calendar): Implemented.
* cal-backend.c (cal_backend_create): Implemented.
* evolution-calendar.idl (LoadStatus): Added an IN_USE error for
create requests.
* cal-listener.h (CalListenerLoadStatus): Added CAL_LISTENER_LOAD_IN_USE.
* cal-listener.c (Listener_cal_loaded): Convert the IN_USE error.
* cal-client.h (CalClientLoadStatus): Added CAL_CLIENT_LOAD_IN_USE.
* cal-client.c (cal_loaded_cb): Handle CAL_LISTENER_LOAD_IN_USE.
* tl-test.c: New test program for the calendar client side; it
also exercises the server side by sending commands to it.
* Makefile.am: Added the tl-test program.
* tlacuache.gnorba: Updated.
* tlacuache.c (create_cal_factory): Use the right GOAD id.
* cal-client.c (cal_client_construct): Use the right GOAD id.
2000-02-08 Federico Mena Quintero <federico@helixcode.com>
* evolution-calendar.idl (Cal): Added get_uids() method to get a
list of UIDs based on object types.
* cal-backend.c (cal_backend_get_uids): Implemented get_uids() in
the backend.
* cal.c (Cal_get_uids): Implemented get_uids() method.
* cal-client.c (cal_client_get_uids): Implemented client-side
function.
* cal-util.c (cal_obj_instance_list_free): Doh. Free the list,
not the last link.
(cal_obj_uid_list_free): New function to free a list of UIDs.
* GnomeCal.idl (Repository): Removed unused method
get_object_by_id_list(). This is just for cleanup purposes and to
remind me exactly of what needs to be moved over to
evolution-calendar.idl.
(Repository): Removed unused get_objects() method.
* corba-cal.c (init_calendar_repo_class): Removed the unused
get_objects method.
* calobj.h (CalObjFindStatus): New status value enumeration for
the find function.
* calobj.c (ical_object_find_in_string): New function to parse a
complete calendar and find a calendar object in it. This should
be used instead ical_object_new_from_string() in the future.
* evolution-calendar.idl (CalObjInstance): Added an uid field.
Now the idea is that whenever calendar object strings are passed
around, their UIDs are passed along with them so that the actual
object can be pulled from the whole VCAL object using its UID to
identify it.
* cal-util.h (CalObjInstance): Added uid field.
* cal-util.c (cal_obj_instance_list_free): Free the UIDs.
* cal-backend.c (build_event_list): Store the object's UID in the
instance structure.
* cal.c (Cal_get_events_in_range): Copy the UID field to the CORBA
structure.
* cal-client.c (cal_client_get_events_in_range): Copy the UID
field from the CORBA structure.
* main.c (gnome_cal_file_menu): Removed unfinished html-month stuff.
* Makefile.am (gnomecal_SOURCES): Removed html-month.c.
* gnome-cal.c: #include "alarm.h"
(mail_notify): Made static.
* alarm.h: #include "calobj.h"
* corba-cal-factory.h (init_corba_server): Fixed prototype.
* quick-view.c (create_items_for_event): Made static.
* gncal-todo.c (column_resized): Made static.
* layout.c (find_index): Made static.
2000-02-08 Federico Mena Quintero <federico@helixcode.com>
* evolution-calendar.idl (CalObjInstance): New struct to wrap
instances of calendar objects for recurrencies and alarms.
(Cal::get_events_in_range): New method to get ocurring and
recurring events by time range.
* cal-backend.c (cal_backend_get_events_in_range): New function to
get a list of event instances in a time range.
(string_from_ical_object): New internal function.
(cal_backend_get_object): Use string_from_ical_object() instead of
doing everything ourselves.
(cal_backend_get_events_in_range): New function to get a list of
the events that occur or recur in a specified time range.
* cal-client.c (cal_client_get_events_in_range): Implemented
client-side function.
* cal-util.h:
* cal-util.c: New files with utilities and types common to the
client and server parts.
(CalObjInstance): New structure to hold an instance of an actual
occurrence, recurrence, or alarm trigger of a calendar object.
(cal_obj_instance_list_free): New function to free a list of
calendar object instances.
* cal.c (Cal_get_events_in_range): Implemented new method.
* corba-cal.c (cal_repo_get_updated_objects): Free `str' with
free(), not g_free(), since calendar_get_as_vcal_string() uses
writeMemVObject(), which uses realloc(). Fixed in gnome-pim as
well.
2000-02-04 Federico Mena Quintero <federico@helixcode.com>
* cal-backend.c (get_calendar_base_vobject): New function to
create the base VObject for a calendar.
(cal_backend_get_object): Create the base calendar and add the
sought object to it, then stringify it.
* evolution-calendar.idl (Listener::obj_added
Listener::obj_changed): Now these pass in just the UIDs, not the
complete objects.
* cal-listener.c (Listener_obj_added): Changed to pass in the uid,
not the object.
(Listener_obj_changed): Likewise.
* cal-client.h (CalClientClass): Made the obj_added and
obj_changed signals take in the UIDs, not the full objects.
* cal-client.c (obj_added_cb): Likewise.
(obj_changed_cb): Likewise.
2000-02-04 Federico Mena Quintero <federico@helixcode.com>
* cal-backend.c (CalBackendPrivate): Renamed the event_hash field
to object_hash. Now we hash all the calendar's objects here based
on their UIDs.
(ensure_uid): New function to create UIDs for calendar objects
that don't have them.
(add_object): Ensure the object has an UID before inserting it in
the calendar.
(cal_backend_get_object): New function.
2000-02-03 Federico Mena Quintero <federico@helixcode.com>
* evolution-calendar.idl (Cal): Added the get_object() method.
* cal-client.c (cal_client_get_object): New function to get a
calendar object by its UID.
* cal.c (Cal_get_object): Implemented.
* cal-backend.c (cal_backend_get_object): New unfinished backend
function. We need some reorganizing of how the calendar objects
are stored.
2000-02-02 Federico Mena Quintero <federico@helixcode.com>
* Makefile.am (gnomecal_SOURCES): Added the CORBA generated
sources.
2000-02-01 Federico Mena Quintero <federico@helixcode.com>
* cal-client.c (cal_loaded): Handle the cal_loaded signal from the
listener. Store the calendar client interface object, and emit
our own cal_loaded signal.
(cal_client_load_calendar): Connect to the listener's signals.
(cal_client_class_init): Added the "obj_added", "obj_removed",
öbj_changed" signals.
(obj_added_cb): Handle the signal from the listener.
(obj_removed_cb): Likewise.
(obj_changed_cb): Likewise.
2000-01-30 Federico Mena Quintero <federico@helixcode.com>
* Makefile.am (gnomecal_SOURCES): Added cal-client.[ch] and
cal-listener.[ch].
2000-01-30 Federico Mena Quintero <federico@helixcode.com>
* evolution-calendar.idl: Changed the namespace from
GNOME::Calendar to Evolution::Calendar.
(Listener::LoadStatus): Fixed SUCESSS -> SUCCESS typo. And I
never noticed it in the implementation. Ain't M-/ grand?
* Makefile.am: Changed ocurrences of gnome-calendar.idl to
evolution-calendar.idl.
* *.[ch]: Changed GNOME_Calendar_foo identifiers to
Evolution_Calendar_foo.
2000-01-25 Federico Mena Quintero <federico@helixcode.com>
* cal-client.c cal-client.h: New files with the calendar client
object.
2000-01-25 Federico Mena Quintero <federico@helixcode.com>
* cal-factory.c (CalFactory_load): Check that the listener is not
nil and emit and exception if it is.
* gnome-calendar.idl (CalFactory::load CalFactory::create): Now
these raise the NilListener exception.
* tlacuache.c (calendar_notify): Error stub for alarms.
(alarm_defaults): Stub array.
(debug_alarms): Stub variable.
(main): Initialize gnome-vfs.
2000-01-24 Federico Mena Quintero <federico@helixcode.com>
* tlacuache.c: New main module for the Tlacuache personal calendar
server.
* tlacuache.gnorba: New gnorba file for Tlacuache, the GNOME
personal calendar server.
* Makefile.am: Added the stuff necessary to build Tlacuache.
* cal.c (Cal_get_uri): Convert the URI to a string before
returning it.
* cal-factory.c (CalFactory_create): Doh, this function is void.
* job.c (job_add): Use g_idle_add(), not gtk_idle_add().
2000-01-24 Federico Mena Quintero <federico@helixcode.com>
* cal-backend.c (cal_backend_remove_cal): New function to remove a
calendar client interface object from a backend.
(cal_backend_load): Convert the URI to string and use
Parse_MIME_FromFileName(). The conversion is not very smart,
though.
* cal-factory.c (load_backend): Moved most of the error handling
upstream to load_fn().
(load_fn): Handle failure in case the backend could not be loaded.
(cal_factory_destroy): Free the backends and the backend hash
table.
(add_calendar_client): Implemented. We create a Cal client
interface object and attach it to the backend, and we notify the
listener.
2000-01-22 Federico Mena Quintero <federico@helixcode.com>
* cal-factory.c (lookup_backend): Renamed from lookup_calendar().
Also, return a backend instead of a Cal client object.
* cal-backend.c (cal_backend_load): Take in a GnomeVFSURI, not a
string.
* cal-listener.c (Listener_cal_loaded): Pass the load status to
the signal.
(cal_listener_destroy): Better error checking.
(cal_listener_new): Better error checking.
* cal-listener.h (CalListenerLoadStatus): New enum for the load
status of a calendar.
(CalListenerClass): Added the status argument to the cal_loaded
signal.
* gnome-calendar.idl (cal_loaded): Added a load status code.
* cal-backend.h (CalBackendLoadStatus): Renamed from
CalBackendLoadResult.
2000-01-18 Federico Mena Quintero <federico@helixcode.com>
* cal-backend.c cal-backend.h: Moved the calendar backend here.
This is the actual calendar-handling object.
(load_from_vobject): Moved over from calendar.c. Modified to use
a CalBackend instead of the old Calendar structure.
(add_object): Likewise.
* cal.c: Now the Cal object is just a calendar client interface
object; we use it as a "viewport" onto a CalBackend. This also
lets us do correct resource management.
* cal-common.h: New file with common forward declarations; we
can't have circular dependencies between headers.
2000-01-18 Federico Mena Quintero <federico@helixcode.com>
* cal-factory.c (cal_factory_load): Queue a load job.
(load_fn): Load job handler. Lookup the calendar by URI, load it
if it is not loaded, or just report it to the new listener if it is.
* job.c job.h: New files with a simple job queue manager.
* gnome-calendar.idl (Listener::cal_loaded): Do not return the
whole calendar object string. The client will be able to query
the calendar for the events it needs.
* cal-listener.c (Listener_cal_loaded): Ref the calendar GNOME
object. We unref it when the listener is destroyed.
2000-01-17 Federico Mena Quintero <federico@helixcode.com>
The files from the gncal directory of the gnome-pim module on CVS
were moved here, to evolution/calendar, in preparation for the
Evolution work. The calendar is being split into a model/view
architecture. The model is a personal calendar server (PAS): it
provides storage, notification, and event generation; the
views/controllers are the calendar user agents and things like
Pilot synchronizers.
2000-01-11 Federico Mena Quintero <federico@helixcode.com>
* cal.c: Removed the CORBA listener methods, adjusted for the new
IDL.
* cal-listener.c (cal_listener_init): Create the private
structure. In it we hold a reference to the calendar the listener
is watching.
(cal_listener_destroy): Destroy the private structure and unref
the calendar.
(Listener_cal_loaded): Stuff the calendar into our private data.
(Listener_obj_added): Adjusted for new IDL.
(Listener_obj_removed): Likewise.
* gnome-calendar.idl: New IDL for the personal calendar server.
* cal.h cal.c: New files with the calendar object.
* cal-listener.h cal-listener.c: New files with the calendar
listener object.
* cal-factory.h cal-factory.c: New files with the calendar factory
object.
2000-01-09 Eskil Heyn Olsen <deity@eskil.dk>
* Makefile.am: Changes to remove todo capplet stuff from distro.
2000-01-08 Vadim Strizhevsky <vadim@optonline.net>
* calendar-conduit-control-applet.c: Added pilotID argument to
gpilotd_conduit_mgmt_new.
2000-01-05 Eskil Heyn Olsen <deity@eskil.dk>
* GnomeCal.idl: Added an argument to get_number_of_objects, so you
can choose which state the object should have
(any/new/modified/...). Will also add one to choose type
(event/journal etc).
* corba-cal.c (cal_repo_get_number_of_objects): Implemented the
new version of get_number_of_objects.
* calendar-conduit.c (pre_sync): Calls various
gnome_pilot_conduit_standard_abs_set_num_yadayda to get progress bars.
2000-01-04 Eskil Heyn Olsen <deity@eskil.dk>
* calendar-conduit.c (start_calendar_server): Let's not call
g_error, but g_warning instead.
(pre_sync): Get record numbers info, total, new, deleted etc, and
tell gpilotd.
1999-12-31 Eskil Heyn Olsen <deity@eskil.dk>
* eventedit.c (ee_store_recur_end_to_ical): Adds 86400 secs (1
day) to the date chooses by the user. This ensures the recurrence
also occurs on that date.
(ee_rp_init_ending_date): And subtracts 86400 secs when about to
redisplay the box.
* calendar.h: Added an argument to calendar_new, to enable certain
features, such as initing alarms or nor.
* calendar.c (calendar_new): Implemented support for the
CALENDAR_INIT_ALARMS option to calendar_new.
* corba-cal.c (cal_repo_get_updated_objects): Added
CALENDAR_INIT_ALARMS to calendar_new calls.
* main.c: Added CALENDAR_INIT_ALARMS to calendar_new calls. This
should probably be CALENDAR_INIT_NIL, but I'm not sure, guess
steintr should check it.
* gnome-cal.c: Added CALENDAR_INIT_ALARMS to calendar_new calls.
* calendar-pilot-sync.c: Added CALENDAR_INIT_NIL to calendar_new calls.
1999-12-10 Russell Steinthal <rms39@columbia.edu>
* eventedit.c (ee_create_ae): Fix sensitivity bug when used to
create default alarm box (widgets in that box should always be
sensitive, even if the enabled checkbutton is not set)
1999-12-08 Eskil Heyn Olsen <deity@eskil.dk>
* calendar-conduit-control-applet.c (setSettings): Capplets now
sets first_sync on enable, this should make the conduit copy old
entries from the pilot to gnomecal.
1999-12-07 Eskil Heyn Olsen <deity@eskil.dk>
* calendar-conduit.c (pre_sync): Check if local store is
empty. If, force slow sync.
* GnomeCal.idl (GNOME): Added get_number_of_objects.
* corba-cal.c (cal_repo_get_number_of_objects): implemented the
get_number_of_objects.
* calendar-conduit-control-applet.c (setStateCfg): Fixed bug that
caused the capplet to always set the sync action to Disable upon start.
1999-12-05 Eskil Heyn Olsen <deity@eskil.dk>
* Makefile.am (Conduits_second_DATA): Also install .desktop files
for conduit capplets in the gnome/apps menu dir.
1999-12-04 Eskil Heyn Olsen <deity@eskil.dk>
* Makefile.am (EXTRA_DIST): Added .desktop files to EXTRA_DIST.
1999-10-12 Clifford R. Conover <rusty@zootweb.com>
* gncal-todo.c Todo List improvements.
Cleaned up todo item highlighting, added support for highlighting
events due today, and events not due yet. Colors are configurable
on the Colors Tab of the properties window.
Renamed Frame in Properties window to Colors rather then Month
Colors since we are now asking for Todo item colors.
Added ability to display time until todo item is due in list, it
automatically selects the best denomination of time (up to weeks)
and down to seconds to display. This should be made configurable
in a future version.
Changed Todo dialog to ask for time that event is due. This
allows more accurate tracking of then the item is due, before the
dialog was only asking for the date of the todo item.
1999-12-03 Eskil Heyn Olsen <deity@eskil.dk>
* calendar-conduit.c: undef DEBUG_CALCONDUT, suppresses debug output.
1999-12-02 Russell Steinthal <rms39@columbia.edu>
* alarm.c: Enhanced debug support: can be toggled on and off by
SIGUSR1, reports alarms which could not be added
* gnome-cal.c, main.[ch], prop.c: Add snooze capability for audio
and display alarms. Snooze interval can be configured in the
Properties box.
1999-11-30 Eskil Heyn Olsen <deity@eskil.dk>
* calendar-conduit.c (compare): Fixed compare bug. Also neated up
some of the if's in set_status.
1999-11-22 Russell Steinthal <rms39@columbia.edu>
* Merged todo list coloring patch from stable
* Added myself to AUTHORS, about box (per Miguel)
1999-11-22 Eskil Heyn Olsen <deity@eskil.dk>
* calendar-conduit.c (pre_sync): Writes some warning
messages when pre_sync fails.
1999-11-14 Eskil Heyn Olsen <deity@eskil.dk>
* Makefile.am: Stupid misplaced endif cause gncal to depend on an
install gnome-pilot... fixed... sorry.
1999-11-12 Eskil Heyn Olsen <deity@eskil.dk>
* Makefile.am (extra_pilot_bins): Fixed the if then else problem,
using solution suggested by James Henstridge, appears to be caused
by a (by now fixed) bug in my automake.
1999-11-12 Russell Steinthal <rms39@columbia.edu>
* prop.c: Config code for timeout, make Alarms property page use a
vbox instead of an hbox so that the propbox stays a reasonable width.
* gnome-cal.c, main.[ch]: Add timeout for audio alarms, code to load
from config file
* eventedit.c: Give some static functions external linkage so they
can be used elsewhere (make_spin_button); add some prototypes to
appease gcc.
1999-11-11 Russell Steinthal <rms39@columbia.edu>
* calendar.c (calendar_day_change): Add call to
calendar_init_alarms() to schedule another day change alarm.
1999-11-09 Eskil Heyn Olsen <deity@eskil.dk>
* calendar-conduit.c: Enabled debug output. Sets a g_log_domain,
now version 0.8.5. Consistent use of GSList/GList. Implemented
compare, default uses one that compares the contents of a struct
Appointment, but also has #ifdeffed code that does a field level
comparison, not complete, but perhaps educational.
* Makefile.am (#todo_conduit_control_applet_SOURCES): Fixed an
unwanted conditional on libcalendar_conduit_la_LDFLAGS
1999-11-05 Eskil Heyn Olsen <deity@eskil.dk>
* calendar-conduit-control-applet.c (readStateCfg): Commented the
code out, thus the capplet works again.
1999-11-04 Eskil Olsen <deity@eskil.dk>
* Makefile.am: Uses the PISOCK_LIBDIR, for people with odd install
dirs for their pilot-link. Also install a pretty icon for the
calendar-conduit.
* calendar-conduit-control-applet.c: Modfied the
try/revert/ok/cancel scheme to be more intuitive, also uses a
GtkOptionMenu for the possible sync methods.
* calendar-conduit-control-applet.desktop: use the nice icon...
* calendar-conduit.c: Ack, had to define debug_alarms and
alarm_default, otherwise they are undefined. Is gncal code messy
or is this considered a way of configuring the cal engine ?
Implemented delete_all syncabs methods.
* calendar-pilot-sync.c: also had to declare debug_alarms and
alarm_defaults, just as ugly.
1999-11-02 Russell Steinthal <rms39@columbia.edu>
* prop.c: Add new alarm page to properties box
* prop.c, calobj.c, main.[ch] eventedit.c: New support for default
alarms, configurable in the properties box.
* gnome-cal.c, prop.c, main.[ch]: add option to beep on Display
alarms
1999-10-23 Russell Steinthal <rms39@columbia.edu>
* calendar.c (calendar_new): Correctly initialize calendar_day_end
and calendar_day_begin *before* installing day-change alarm.
1999-10-21 Russell Steinthal <rms39@columbia.edu>
* alarm.c, main.c: Added alarm debugging code
* main.c (open_ok): Show an error box if the user tries to open a
non-existent file; fixes bug #1818
1999-10-19 Russell Steinthal <rms39@columbia.edu>
* gnome-cal.c (calendar_notify): Fix typos which were causing
invalid times in audio notification dialogs; fixes Bug #2561
1999-10-18 Russell Steinthal <rms39@columbia.edu>
* gncal-day-panel.c (gncal_day_panel_new): Placed the various
elements of the day view in paned windows so that the user can
adjust the relative sizes of the daily schedule, monthly calendar,
and to-do list.
1999-10-18 Martin Norbäck <norpan@bigfoot.com>
* gncal.desktop: Added swedish translation
1999-10-13 Eskil Olsen <deity@eskil.dk>
* Makefile.am: Hopefully the fixes the much-hated
gnome-pilot dependency.
1999-10-07 Eskil Olsen <deity@eskil.dk>
* calendar.c (calendar_object_changed): moved the pilot_status =
MOD up, so even a CHANGE_SUMMARY will set the modified flag.
* calendar-conduit.c: more _free calls, vamped the noise on output.
1999-10-06 Eskil Olsen <deity@eskil.dk>
* *conduit*[ch]: checks return values from gpilotd_init/connect.
* calender.c (vcalendar_create_from_calendar): removed a set
of cleanVObject cleanStrTbl, since the freed memory that the
function returned.
1999-09-27 Timur Bakeyev <mc@bat.ru>
* timeutil.c (time_from_isodate): Use tm.gmtoff or timezone to get
correct offset from UTC, according to HAVE_TM_GMTOFF or HAVE_TIMEZONE.
See also 1999-07-19 Matt Martin <matt@abacusnet.net>
1999-09-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
* month-view.c (add_event): ditto
(mark_current_day): ditto
(month_view_set): ditto
* goto.c (goto_dialog): ditto.
* gnome-month-item.c (gnome_month_item_init): ditto.
* gncal-day-panel.c (gncal_day_panel_new): ditto.
* getdate.c (RelativeDate): ditto.
* eventedit.c (set_all_day): ditto.
(ee_rp_init_rule): ditto.
* calendar.c (vcalendar_create_from_calendar): ditto.
* calendar-conduit.c (update_record): ditto.
* calobj.c (ical_object_generate_events): Get rid of pointers to
values returned from localtime, as it uses a static buffer.
1999-09-26 Eskil Olsen <deity@eskil.dk>
* corba-cal.c: the g_free that was commented out since glib said
was a duplicate free, was supposed to be a free.
* GnomeCal.idl/corba-cal.c: added a get_object_id_list and a
get_objects_by_id_list. Latter is not done.
* calendar-conduit.c: rewrote the way the conduit iterates over
records. It no longers fetches all entries (since that didn't work
with more then 285 entries. It now fetches the id list, and gets
each record. (will be using get_objects_by_id_list to get records
in amounts of 10 or so later, to reduce amount of corba calls).
* calendar-conduit.c: now sets alarm parameters when transferring
from gnomecal to pilot.
1999-09-23 Eskil Olsen <deity@eskil.dk>
* calendar-conduit.c: better merge of summary/description
when doing ical_from_remote (update_record), also handles
import from gnomecal to pilot better, and on both ways, repeat
events are much better now.
1999-09-22 Eskil Olsen <deity@eskil.dk>
* corba-cal.c: commented out a g_free that glib reported
as being a duplicate free.
* calendar-conduit.c: got gnomecal->pilot up and runnning.
1999-02-06 Lauris Kaplinski <lauris@ariman.ee>
* gncal.desktop: Added Estonian translations.
1999-09-14 Federico Mena Quintero <federico@redhat.com>
* gncal-full-day.c (child_popup_menu): Set the data pointers for
all the items.
1999-09-14 Kjartan Maraas <kmaraas@online.no>
* doc/C/gnomecal.sgml: Merge from gnome-pim-1-0. Synced with newest
user-guide.
1999-09-01 Miguel de Icaza <miguel@gnu.org>
* eventedit.c (ee_create_buttons): Make the OK button the default
button per Russell's suggestion.
1999-08-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calendar.c (calendar_object_changed): Modify the
object->last_mod field.
(calendar_add_object): Ditto.
Closes bug #676
* main.c (save_calendar_cmd): Fix problem in which we warned the
user about the calendar being modified the first time the calendar
was used.
1999-08-22 Tomas Ogren <stric@ing.umu.se>
* gnomecal.gnorba: "GenericFactoy" is wrong...
1999-08-15 Miguel de Icaza <miguel@gnu.org>
* calobj.c (ical_gen_uid): Fix the hostname part.
1999-08-07 Peter Teichman <pat4@acpub.duke.edu>
* calendar-pilot-sync.c (sync_pilot): sync correctly for objects
created on the pilot, but not dirty (because they have been synced
with some other program in the past)
1999-07-30 Miguel de Icaza <miguel@gnu.org>
* month-view.c (month_view_init): Release points here.
1999-08-02 Peter Teichman <pat4@acpub.duke.edu>
* Makefile.am (libcalendar_conduit_la_LDFLAGS):
libcalendar_conduit now installs
* calendar-pilot-sync.c (sync_pilot): do deletion of appointments
correctly, when they are deleted on the pilot
(conduit_free_Appointment): protect against double-freeing parts
of the Appointment structure
(update_record): all-day events from the pilot are handled a bit
more reasonably
1999-08-01 Peter Teichman <pat4@acpub.duke.edu>
* calendar-pilot-sync.c (sync_object_to_pilot): The multi-day
appointment corruption bug is dead. Whoo!
1999-07-31 Peter Teichman <pat4@acpub.duke.edu>
* Makefile.am: fixed this up slightly with respect to pilot conduits
1999-07-30 Jonathan Blandford <jrb@redhat.com>
* Makefile.am (libcalendar_conduit_la_LIBADD): More autoconf-stuff
1999-07-29 Jonathan Blandford <jrb@redhat.com>
* gnome-cal.c (setup_widgets): Add scrolling to the yearview.
1999-07-28 Miguel de Icaza <miguel@gnu.org>
* calendar-pilot-sync.c: (sync_object_to_pilot): If the enddate is
not set, set the repeatForever to 1. This fixes all of the
birthdays problems I had.
Make the code not take arguments
(sync_cal_to_pilot): Nice event update information
* calendar.c (calendar_new): Add Event UID hash table.
(calendar_add_object): Add events to the hash table here.
(calendar_remove_object): Remove events here.
(calendar_object_find_event): Use the hash table here.
* main.c (save_calendar_cmd): The object is already destroyed by
gnome_dialog_run.
* calendar-pilot-sync.c (sync_object_to_pilot): Do not turn
archived bit on.
* calobj.c (ical_gen_uid): Use the hostname, not the domain name.
(ical_gen_uid): Add a serial number. Isodates can be small.
* corba-cal.c (cal_repo_update_pilot_id): New method to update the
pilot status.
(cal_repo_get_updated_objects): New method. Returns a list of
modified and not-sycned objects
* calendar-pilot-sync.c (sync_cal_to_pilot): New function to sync
from the GnomeCalendar to the pilot.
(sync_object_to_pilot): Sync a single event to the pilot.
(try_alarm): Alarm syncing code.
1999-07-27 Miguel de Icaza <miguel@gnu.org>
* calendar-pilot-sync.c: New file. Implements PalmPilot
syncronization with the Gnome Calendar.
* calobj.c (ical_object_new_from_string): New function. Creates
an iCalObject from a vCalendar string that is supposed to contain
only one vEvent.
* calendar.c:
(calendar_save): Split this routine in two.
* gnome-cal.c (gnome_calendar_new): Create the corba server here.
* main.c: Include gnorba.h, and corba-cal-factory.h here
(close_cmd): Kill the calendar server on shutdown.
* calobj.c (load_recur_yearly_day): Added a fixme comment. WE
need to handle intervals in the years.
* calendar.c (calendar_object_find_in_list, calendar_object_find,
calendar_object_find_todo, calendar_object_find_event): New
functions for looking up information.
* main.c (gnome_calendar_locate): New function.
* corba-cal.c (calendar_create_object): New file. Implements the
corba server.
* calendar.c (calendar_object_changed): Flag pilot-status as changed.
* calobj.c (ical_object_to_vobject): Save pilot information for syncing.
(ical_object_create_from_vobject): Load syncing information for
pilot. Do it in a way compatible with KOrganizer.
1999-07-26 Miguel de Icaza <miguel@gnu.org>
* calobj.c (ical_object_create_from_vobject): Generate unique IDs
on Vevents we load that lack it. WE need this for the old
gnome calendar generated files (ie, before now :-).
Required to sync with the Palm
1999-07-26 Miguel de Icaza <miguel@gnu.org>
* calobj.c (ical_object_create_from_vobject): Generate unique IDs
on Vevents we load that lack it. WE need this for the old
gnome calendar generated files (ie, before now :-).
Required to sync with the Palm
1999-07-19 Matt Martin <matt@abacusnet.net>
* timeutil.c (time_from_isodate): Handle the 'Z' parameter to the
ISO date format to convert from GMT time.
1999-07-17 Nat Friedman <nat@gnome-support.com>
* calendar.c (calendar_add_object): Copy the new UID into the
iCalObject structure.
1999-07-16 Miguel de Icaza <miguel@gnu.org>
* gnome-month-item.c (gnome_month_item_set_arg): Merge fix from
gnome-pim-1-0: Fixed cut&paste bug for day fontsets.
1999-07-14 Miguel de Icaza <miguel@gnu.org>
* calobj.c (ical_gen_uid): Returns a UID.
(ical_object_new): Use a UID when creating an event. Should get
syncing done easier.
1999-07-14 Nicholas J Kreucher <nick@poetic.com>
* calobj.c (skip_numbers): Actually skip over the numbers.
(ical_object_to_vobject): Test the proper variable for storing the
proper information.
1999-07-14 Jean-Noel Guiheneuf <jean-noel.guiheneuf@wanadoo.fr>
* timeutil.c (time_add_month): Fixed the problem with next month
going from a 31-day to a 30-day by adjusting the date to the
closest day at the end of the month.
1999-06-07 Mike McEwan <mike@lotusland.demon.co.uk>
* timeutil.c (time_add_month): Tell ktime' that we don't know
about daylight saving time so that it does *not* make adjustments
when we traverse a DST boundary.
(time_year_begin): ditto.
(time_year_end): ditto.
(time_month_begin): ditto.
(time_month_end): ditto.
1999-06-16 Anders Carlsson <anders.carlsson@tordata.se>
* main.c (new_calendar): Realize the toplevel widget when
--hidden is passed to gnomecal. This fixes a segfault.
1999-06-04 Robert Brady <rwb197@ecs.soton.ac.uk>
* gnome-cal.h, gnome-cal.c: Fix abort() problem with the year view.
(Bug #1367). Thanks to Owen Cliffe <oc197@ecs.soton.ac.uk> for
helping track it down.
1999-06-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calobj.c (daynumberlist): One line bug fix from Sergey I Panov.
1999-06-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* view-utils.c (nicetime): Use %H instead of %k, as %k is a GNU
extension, not available in other systems.
1999-06-01 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calobj.c (daynumberlist): Work around broken software that
writes a broken month-of-day as "zero". Use the dtstart date for
this on this event.
1999-05-28 Miguel de Icaza <miguel@nuclecu.unam.mx>
* Makefile.am (install-data-local): help files be gone. They are
now installed from the Docbook stuff.
1999-05-26 Russell Steinthal <steintr@condor.penguinpowered.com>
* gncal-todo.c main.c main.h prop.c: Added support for priorities
for todo items. Doesn't do much, but you can set them and sort by
them. (Use the properties box to enable them; should they be on
by default?)
1999-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c (parse_an_arg): Added missing break here. It was causing
core dumps when invoked with --userfile.
* gnome-cal.c (gnome_calendar_set_view): Add some assertions here,
to pin point the bug reported on gnome-list.
* calobj.c (load_recurrence): Make intervals always exist. a 0
interval is wrong.
1999-05-25 Federico Mena Quintero <federico@nuclecu.unam.mx>
* year-view.c: Removed unused macro CALENDAR_HEIGHT.
1999-05-25 Federico Mena Quintero <federico@nuclecu.unam.mx>
* year-view.c (idle_handler): Set the canvas scroll region here,
not in size_allocate(). Also, use the correct width and height
based on the allocation and the precomputed minimum width/height
values.
* gnome-cal.c (setup_widgets): Set the scrollbar policy of the
scrolled window.
* main.c (setup_appbar): Use the correct type for the appbar.
* gncal-day-view.c: Removed unused function switch_to_day().
* gncal-day-panel.c (calendar_day_selected): Removed unused variable.
1999-05-25 Nat Friedman <nat@nat.org>
* doc/C/gnomecal.sgml: Fixed a typo.
* gnome-cal.c (setup_widgets): Added a scrolled window widget into
which the year view is placed.
* year-view.c (CALENDAR_HEIGHT): The height of the total year view
inside the scrolled window.
(idle_handler): Set the height of the year view to
CALENDAR_HEIGHT.
(year_view_size_allocate): Set the scroll region of the year view
canvas to allocation->width, CALENDAR_HEIGHT.
1999-04-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c (dump_todo): Add --todo flag to dump the todo contents.
1999-04-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-todo.c (add_activated): Use same hack used in edit_activated
1999-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-todo.c (edit_activated): Kill all grabs from the CList
before running the new dialog box.
This fixes the problem of button-3/Edit on the todo item blocking
the GUI (actually, the main window responds, but not the todo
window).
1999-04-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-todo.c (gncal_todo_init): Make sure we can get events for
button3. The code for the nice popup menu was there but was not
getting invoked.
1999-04-01 Steve Murphy <murf@e-tools.com>
* calobj.c (weekdaynum): Added this routine so Monthly recurrences
use the weekday field as a simple integer for a single weekday.
* calobj.c (load_recur_monthly_pos): Call weekdaynum instead of
weekdaylist. The interface only lets the user input a single value
anyway.
* calobj.c (ical_object_to_vobject): instead of code to output day
names from a bit array, use instead the value as an int and output
a single dayname.
* calobj.c (ical_object_generate_events): first_week_day gets the
day int instead of the first entry in the bit field. I inserted a
fair chunk of code to avoid calling generate if the day is out of
range for a month. It may be unneccessary, because mktime will
turn the extra days into a valid date the next month. But not all
mktimes are equal, I fear.
* eventedit.c (ee_store_recur_rule_to_ical): For case 3,
(Monthly), I added code to set the interval slot of the recur
struct; without this value, selecting a monthly recursing, by
date, would lead to an infinite loop broken only by a failure to
alloc more memory. Also, in the "by position" case, both
u.month_pos and u.month_day were being assigned values. This is a
mistake, as they are both part of an union, and the same
thing. The weekday field should get the recur_rr_month_weekday
value.
* eventedit.c (ee_rp_init_rule): set default day from the weekday
field instead of the u.month_day field, which is really the
month_pos value.
* gnome-cal.c (gnome_calendar_tag_calendar): Month days start with
1, not 0; thus, setting tm.tm_mday = 0, and then calling mktime
will generate a time corresponding to the end of the previous
month, which may have a mday anywhere from 28 to 31. The end time
just adds 1 to the month, so your end time may not cover the last
few days of this month, depending on what the biggest mday of last
month was. I changed it so tm_mday is set to 1 instead.
1999-03-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-todo.c (convert_time_t_to_char): Made static. Make it use
the full year format for strftime().
1999-03-27 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
* calobj.c: Include <config.h> So that strings get translated.
1999-03-26 Tomas Ogren <stric@ing.umu.se>
* prop.c (build_hours_menu): Made it respect 12/24h settings..
Doesn't show until next time you open the dialog.. yet..
1999-03-24 Tomas Ogren <stric@ing.umu.se>
* gncal-week-view.c (gncal_week_view_set): Did some i18n work
* eventedit.c (get_exception_string): Did some i18n work
1999-03-24 Tomas Ogren <stric@ing.umu.se>
* gncal-todo.c (gncal_todo_init): Made clist titles i18n:able
* main.c (poptOption): Added which views that are possible for
--view in the --help text (closes #367)
* main.c (dump_events): Added (short) month to the strftime and made
the strings i18n:able
1999-03-23 Tomas Ogren <stric@ing.umu.se>
* gncal/calobj.c: Added 2 paranthesis..
"foobar = d / 60*60" is _NOT_ the same as "foobar = d / (60*60)"
which caused heavy alarm-corruption with alarms between 2 hrs and
2 days.
1999-03-23 Nat Friedman <nat@nat.org>
* eventedit.c (ee_store_recur_rule_to_ical): Set the
recur->interval to the value of the recur_rr_month_period spin
button if the event is being set "by day." This closes bug #675
as reported by bagfors@hpc2n.umu.se. Thanks for the report!
1999-03-10 Clifford R. Conover <rconover@montana.edu>
* gncal-todo.c (simple_todo_editor): Add support for Due Date when
adding a TODO item here.
(column_resized): New function
(init_column_sorting): New function.
(todo_click_column): New function.
(convert_time_t_to_char, make_overdue_todo_style): New functions.
* gnome-cal.c (gnome_calendar_todo_properties_changed): New
function used to update the TODO when the properties have been
chagned for it.
* prop.c (prop_apply_todo): Apply TODO properties.
* gncal-day-panel.c (todo_list_properties_changed): Update the
TODO display here.
* eventedit.c (date_edit_new): Made public
1999-03-10 Craig A Soules (soules+@andrew.cmu.edu)
* timeutil.c, calendar.c, calobj.c, gncal-day-panel.c: Add support
for daylight time savings.
1999-02-28 Martin Baulig <martin@home-of-linux.org>
* gncal-full-day.c (recompute_motion): For DRAG_MOVE, DRAG_SIZE_TOP
and DRAG_SIZE_BOTTOM: call child_focus_out () if the child currently
has the focus.
1999-02-27 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
* quick-view.c (QUICK_VIEW_FONTSET): Added Korean font to the
fontset string.
* mark.h (*_FONTSET): Likewise.
1999-02-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calobj.c (ical_object_to_vobject): Save the owner/organizer of
the event.
(ical_object_create_from_vobject): Load the owner/organizer of the event.
* gncal-full-day.c (delete_occurance): Assign child to data (fixes
crash on "delete this occurrance").
1999-02-22 Timur Bakeyev <mc@bat.ru>
* calendar.c: According to configured values, use either tm.tm_zone
or tzname. In last case, also declare it extern.
* prop.c: langinfo.h not available everywhere. Wrapped. BTW, works
fine without it.
1999-02-20 Tomas Ogren <stric@ing.umu.se>
* main.c (init_username): Made use of g_get_{user,real}_name() instead
of our own home-brew...
1999-02-17 Sergey Panov <sipan@mit.edu>
* gnome-month-item.c,gnome-month-item.h,goto.c,mark.h,
month-view.c,prop.c,quick-view.c,year-view.c: will define
fonts via fontset. Friendlier to locales that use iso8859-[^1]
and koi8-r encodings. Does not solve problem for Asian languiges
--- better solution is needed (e.g. standart GNOME fontstyles
defined in gtkrc).
1999-02-16 Sergey Panov <sipan@mit.edu>
* main.c: Use N_() macro for color settings labels in
color_props structure.
1999-02-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* goto.c (goto_dialog): Indentation fixes.
1999-02-15 Tomas Ogren <stric@ing.umu.se>
* goto.c: Made a private copy of what localtime() returns, to be able
to keep the data after more calls to localtime().
1999-02-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c (save_default_calendar): New function. Saves the
calendar if it is the user's default calendar
* gncal-full-day.c (unrecur_appointment):
* gncal-day-panel.c (day_view_range_activated):
* eventedit.c (ee_ok):
* gncal-todo.c (ok_button): Added autosave for the default
calendar.
1999-02-09 Tomas Ogren <stric@ing.umu.se>
* main.c: Removed the gtk_widget_realize call.
1999-02-06 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
* gncal.desktop: Added Korean translations.
1999-02-04 Federico Mena Quintero <federico@nuclecu.unam.mx>
* eventedit.c (date_edit_new): New convenience function to create
a properly-configured date editor widget.
1999-02-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-week-view.c (gncal_week_view_new): Make the calendar start
weeks on Monday if appropriate.
(gncal_week_view_time_format_changed): New function to notify the
week view that the time format has changed.
* gncal-day-panel.c (gncal_day_panel_new): Make the calendar start
weeks on Monday if appropriate.
(gncal_day_panel_time_format_changed): New function to notify the
day panel that the time format has changed.
* gnome-cal.c (gnome_calendar_time_format_changed): Tell the day
and week views that the time format has changed.
1999-02-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
* eventedit.c (event_editor_init): Set the title of the event
editor window.
1999-01-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-day-view.c (gncal_day_view_expose): Do not remove the
clipping rectangle here.
* view-utils.c (view_utils_draw_events): Remove the clipping
rectangle here, since the user of this function should not know
about it.
1999-01-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* view-utils.c (view_utils_draw_events): Improve this draw
routine. Now it can split the text in lines and fit as many
events as possible.
(nicetime): Return strings without spaces at the beginning.
* gncal-day-view.c (gncal_day_view_expose): Move clip-clear
operation here.
1999-01-29 Jason Tackaberry <tack@dok.org>
* gncal-full-day.c (child_popup_menu): if the user clicks on an
event that is an occurance, the menu will allow the user to delete
all occurances of this event, or just the selected occurance.
(delete_occurance): added.
* eventedit.c (append_exception): force the clist to select the
new exception. (fixes segfault)
(delete_exception): if the last exception in the clist is deleted,
move the selection index up. (fixes segfault)
1999-01-28 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c (parse_an_arg): Add --hidden key to hide the calendar at
startup. Only works with GNOME window managers though :-(
* calendar.c (calendar_day_change): Reschedule alarms for the new day.
(calendar_init_alarms): Schedule an alarm for midnight to change
the calendar_day_begin/calendar_day_end.
* alarm.c (alarm_ready): If we reschedule, there is no need to
activate any pending alarms.
1999-01-28 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-full-day.c (child_new): Insert the summary text here.
(child_focus_in): No need to raise the window, since we have
Spiffo(tm) layout code. Boy, this is old code.
(gncal_full_day_focus_child): Now that GtkText works better, we
can avoid synthesizing a click which was causing grief, anyway.
(child_button_press): Grab the focus before popping up the menu.
* layout.c (find_index): Added a sanity check.
* gncal-full-day.c (child_destroy): Unmap and unrealize the child
before unparenting/destroying it.
(child_unrealize): Unrealize the widget. What was I thinking?
(child_new): Save the focus_out_event signal connection id in
Child structure (in a new field).
(child_destroy): Disconnect from the focus_out_event signal, since
we don't want to get such an event when the widget is destroyed.
(gncal_full_day_destroy): Destroy the children properly; it was
leaking memory.
1999-01-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c (save_calendar_cmd): Warn if the calendar file has
changed.
* calendar.c (calendar_load, calendar_save): Keep track of the
modification time for the calendar file.
1999-01-20 Nat Friedman <nat@nat.org>
* gncal-full-day.c (gncal_full_day_key_press): Only trap printable
characters such that hotkeys work.
(UNSELECT_TIMEOUT): Changed to 0. Much saner behavior.
* prop.c (properties): Connect gnome_help_pbox_display to the
GnomePropertyBox help button.
1999-01-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* quick-view.c (quick_view_do_popup): Do not grab the mouse here
(it was being grabbed incorrectly, anyways).
(quick_view_map_event): Grab the mouse when the window is mapped.
This avoids the ugly "while (xGrabPointer () != Success)" hack.
(quick_view_button_release): Handle button releases here.
1999-01-19 Tomas Ogren <stric@ing.umu.se>
* main.c: do gtk_widget_realize on the toplevel window..
1999-01-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-day-panel.c (gncal_day_panel_new): Make the little
calendar start up with the correct date.
* gncal-week-view.c (gncal_week_view_set): Add the month to the
date range display label.
1999-01-08 Nat Friedman <nat@nat.org>
* main.c: Converted some more stuff to use the standards.
1999-01-08 Nat Friedman <nat@nat.org>
* main.c (setup_appbar): New function to create the status bar.
(setup_menu): Install menu hints.
Menu items updated to match the standards. New Settings menu
created.
1998-12-30 Jeff Garzik <jgarzik@pobox.com>
* gncal/calendar.c, gncal/gnome-cal.c, gncal/main.c,
gncal/quick-view.c:
s/g_copy_strings/g_strconcat/
1998-12-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
Rewrote the old and broken alarm system. It never actually
worked properly. Now it works properly, and I figured a nice way
to get the Audio alarm do something nicer (it is now like an alarm
clock :-).
* gnome-cal.c (calendar_notify): Now we take a CalendarAlarm to
actually distinguish which alarm was triggered.
* alarm.c (alarm_ready): The code was only activating the first
alarm. Reschedule the timer upon delivery of an alarm.
1998-12-14 Federico Mena Quintero <federico@nuclecu.unam.mx>
* year-view.c (idle_handler): Use the allocation size instead of
the old fields in the canvas structure.
* goto.c (create_days): Use gtk_widget_set_usize() instead of
gnome_canvas_set_size().
* quick-view.c (setup_event_list): Likewise.
1998-12-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-todo.c (simple_todo_editor): Use gnome_dialog_set_parent.
* goto.c (goto_dialog): ditto
* prop.c (properties): ditto.
1998-11-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* eventedit.c (ee_rp_init_exceptions): Update GtkClist usage.
1998-11-23 Andrew T. Veliath <andrewtv@usa.net>
* gncal-day-panel.c (gncal_day_panel_new): Use
gtk_scrolled_window_add_with_viewport instead of
gtk_container_add (gtk changes).
1998-11-23 Herbert V. Riedel <hvr@hvrlab.ml.org>
* eventedit.c: use GPOINTER_TO_INT
* gncal-todo.c: same.
1998-11-22 Matthew Wilson <msw@redhat.com>
* main.c: Fixed the popt event parsing callback to have the
correct number of arguments. This stops it from segfaulting.
1998-11-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* eventedit.c (ee_classification_widgets): Doh. Fixed stupid bug
where the classification buttons were not being set correctly.
(ee_store_general_values_to_ical): Take into account the fact that
radio group lists are stored in reverse order of insertion.
* gncal-todo.c (gncal_todo_init): Use a scrolled window to put the
clist into.
1998-11-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calendar.c (calendar_save): Backup the old file before saving
the caledar.
1998-11-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calobj.c: Add ctype.h
1998-10-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gnome-cal.c (gnome_calendar_direction): Add the offset from the
beginning of the current time unit (day/month/etc), otherwise it
does not work right, for example, you are on the 31st day of a
month and the next month is a 30-day one and you jump to the next
month.
1998-10-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* month-view.c: Changed a lot of stuff not to use the layout code
-- the month view's days are too small to display layout
usefully. Now they display a little list of the events in each
day. We also have a popup menu for the days in the month view.
* calendar.c (calendar_get_objects_in_range): Reverse the list so
that it is returned in increasing order.
* eventedit.c (event_editor_new_whole_day): New public function to
create an event for the complete span of day_begin to day_end.
* year-view.c (new_appointment): Use event_editor_new_whole_day().
* year-view.c (yv_popup_menu): Mark strings for i18n.
1998-10-12 Ji Lee <g@ucsd.edu>
* eventedit.c (ee_store_recur_rule_to_ical): The interval was
never being loaded from the spin button.
1998-10-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* month-view.c (month_view_update): Create a list of children and
lay them out nicely. Lots of functions added for this purpose.
(adjust_segment): Main event segment adjustment routine.
(adjust_children): Adjusts all the children in the month view.
(child_create_segments): Creates the segments for a particular event.
(layout_children): Uses the generic layout engine to organize the children.
1998-10-08 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-todo.c (clist_row_selected): Set the sensitivity of the
edit/delete buttons.
(gncal_todo_update): Likewise. Thanks to Dirk Luetjens for the
bug report.
* layout.c: Do some cleanup; now we pass a struct with the layout
algorithm's state instead of passing a trillion parameters around.
* gncal-full-day.c (layout_children): Use the new generic layout
engine.
(child_compare): Sort keys are start time then end time, not just
start time. This produces somewhat nicer results for the layout
algorithm.
The new layout code uses a partition of the time range occupied by
the events, rather than using a fixed time granularity. This is
better since the different parts of the program that use the
layout module will have different semantics regarding snapping the
event bounds to a fixed "time grid".
1998-10-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
* layout.[ch]: New files that abstract the event layout code from
gncal-full-day.c into something useful for other parts of the
program. Now all event layout is done here.
* Makefile.am (gnomecal_SOURCES): Added layout.[ch] to the list of
sources.
1998-10-07 Carsten Schaar <nhadcasc@fs-maphy.uni-hannover.de>
* main.c (main): Replaced the 'gnome_client_new_default' call with
'gnome_master_client'.
1998-10-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* timeutil.c (time_day_begin): Changed name from
time_start_of_day() to be consistent with the other begin/end functions.
(time_day_end): Likewise.
* calobj.c (ical_object_get_first_weekday): New public function to
get the first toggled day in a weekday mask. Since we do not
support multiple weekdays in a monthly-by-pos rule, we just fetch
the first toggled one.
(ical_object_generate_events): Added a missing break statement.
* timeutil.c (time_month_end): Made it consistent with the rest of
the time begin/end functions -- now it returns the first second of
the *next* month.
(time_week_end): Actually implemented this function. It will be
used when the week view is rewritten.
* calobj.c (time_in_range): Fix off-by-one in the comparison of
the time against the end time.
* gncal-full-day.c (expand_space): Fixed bug where the columns not
were being expanded due to a missing "slot + j".
1998-10-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
* month-view.c (month_view_init): Use the font #defines.
(month_view_new): Set the colors of the month view upon creation.
(mark_current_day): New function to mark the current day in the
month view.
(month_view_set): Mark the current day.
(month_view_colors_changed): Mark the current day and colorify the
month item appropriately.
* month-view.h: Added year and month fields to the MonthView
structure.
* main.c: Renamed the Appointments color property, since it will
be used by the month view as well.
* goto.c (update): Set the current day's font and color.
* year-view.c (year_view_init): Set the fonts of the month items
when creating them.
* mark.h: Added new #defines for HEADING_FONT and TITLE_FONT.
* year-view.c (year_view_init): Use the new font #defines.
* prop.c (prop_apply_colors): Fixed to work with the
I-am-paranoid-and-I-need-to-size-my-ints changes to
GnomeColorPicker.
(color_spec_from_picker): Likewise.
1998-09-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
* goto.c (create_days): Colorify the month item and prepare it for
prelighting here.
* main.c (color_props): Changed the default colors to something
not dull.
* year-view.c (compute_min_size): New function to compute the
minimum size of the year view properly.
(year_view_size_request): Added two new fields to the year view
structure that contain the minimum size. Return this in the
size_request method.
(year_view_new): Call compute_min_size to save the minimum size
for later use.
(idle_handler): Make it resize the items correctly.
* gnome-month-item.c (gnome_month_item_set_arg): Reshape when
necessary. This is needed becaues we now actually calculate a
minimum size for the month item based on the font sizes and paddings.
(check_heading_sizes): New function to calculate a minimum size
based on the headings' dimensions.
(check_day_sizes): New function to calculate a minimum size based
on the day number labels' dimensions.
(check_sizes): New function that computes a minimum size for the
month item.
(reshape): Now calls check_sizes() to ensure a minimum size for
the month item.
* year-view.c (mark_current_day): New function to mark the current
day in the year view.
* mark.c: Removed mark_current_day from here.
1998-09-29 Federico Mena Quintero <federico@nuclecu.unam.mx>
* prop.c (fetch_color_spec): Changed name from fetch_prelight_spec
and made it conform to the new prelighting mechanism.
(fake_mark_days): Set the proper day attributes.
(reconfigure_month): Use colorify_month_item().
(fake_mark_days): Use mark_month_item_index().
* mark.c (colorify_month_item): New public function to reset the
colors in a month item.
(get_attributes): New internal function that creates an array of
attributes for the days in a month item. This is the basis of all
the new optimizations to month item marking.
(unmark_month_item): Now it uses the attributes array to unmark
only the days that need unmarking.
(mark_event_in_month): Update the day attributes array.
(month_item_prepare_prelight): Changed the definition of the
prelight color query function. Use the new function.
(day_event): Do color changes based on the day attributes array.
(mark_month_item_index): New public function to mark a single day
by index.
(mark_event_in_month): Use mark_month_item_index().
* gnome-month-item.c (gnome_month_item_num2child): Now takes an
int, not a GnomeMonthItemChild.
(gnome_month_item_child2num): Now returns an int, not a
GnomeMonthItemChild.
(gnome_month_item_num2day): Now takes an int, not a
GnomeMonthItemChild.
* goto.c (goto_dialog): Create the days before the year spin
button, because the year_changed callback expects the month item
to be created. The new semantics of the spin button cause it to
emit a value_changed signal on the adjustment upon creation -- is
this the behavior we want from it?
(goto_dialog): Use gtk_window_set_modal() instead of the
deprectaed gnome_dialog_set_modal().
* quick-view.c (quick_view_new): Make it look not as crappy by
putting the title inside the frame.
(quick_view_do_popup): Fixed the pointer grab and added a cursor.
(create_items_for_event): Query the text width/height from the
text item using the new object arguments, so that the size of the
popup window can be set properly.
* year-view.c (do_quick_view_popup): Calculate a nice date string
for the popup window.
1998-09-28 Federico Mena Quintero <federico@nuclecu.unam.mx>
* quick-view.[ch]: New file that presents a quick view of the
events in a particular day when the mouse is clicked on the year
view. Work in progress.
* year-view.c (do_quick_view_popup): New function that creates a
quick view for the events in a day.
* Makefile.am (gnomecal_SOURCES): Added quick-view.[ch] to the
list of sources.
1998-09-27 Federico Mena Quintero <federico@nuclecu.unam.mx>
* main.c: Hotkey for File/Exit should be C-q, not C-x.
1998-09-24 Federico Mena Quintero <federico@nuclecu.unam.mx>
* year-view.c (do_popup_menu): New function to execute the popup
menu in the year view.
(day_event): Invoke the popup menu with the context set to days.
(new_appointment): New function to create a new appointment from
the year view.
(do_jump): New function to do the appropriate view/date jumping
from the popup menu.
* main.c: Fixed two icons in the File menu.
1998-09-21 Federico Mena Quintero <federico@nuclecu.unam.mx>
* main.c: Added underlined shortcuts and accelerators to the main menu.
1998-09-16 Raja R Harinath <harinath@cs.umn.edu>
* gncal-week-view.c (<gtk/gtklabel.h>): Include.
* gncal-week-view.h (<gtk/gtkvbox.h>): Include.
1998-09-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-cal.c (mail_notify): Fixed the bug reported about the mail
notification not beint sent until the program was terminated.
1998-09-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-full-day.c (gncal_full_day_forall): Updated foreach ->
forall from Gtk changes, bleah.
* year-view.c (day_event): New function to handle events from
days. Jumps to the day that is clicked.
* main.c: Use a watch cursor while the previous/today/next
functions are doing their job.
* mark.c (month_item_prepare_prelight): New public utility
function to prepare a month item for prelighting. It will store
the proper prelight information and attach the appropriate signals.
(mark_current_day): Make the current day bold as well (useful for
color-blind people, I guess).
* prop.c (set_current_day): Reset the date in the sample calendar
and mark the current day.
(fake_mark_days): Mark fake events in the sample calendar.
* year-view.c (year_view_set): Use the general prelighting engine.
* goto.c (day_event): Just process button presses, as prelighting
is done behind the scenes now.
(update): Use the general prelighting engine.
* prop.c (create_colors_page): We can now configure the colors of
the monthly calendars! Wheeeeee! There are still some nits to be
fixed, which are listed in the TODO file.
(build_color_spec): New function to build color specifications.
(parse_color_spec): New function to parse color specifications.
* mark.c: Modified all functions to use the configured colors.
* goto.c: Likewise.
* main.c (colors_changed): New function that notifies all
calendars that colors have changed.
* gnome-cal.c (gnome_calendar_colors_changed): New function that
notifies all the views that the colors have changed.
* month-view.c (month_view_colors_changed): New function that
notifies the month view that colors have changed.
* year-view.c (year_view_colors_changed): New function that
notifies the year view that colors have changed.
* gnome-month-item.h (struct _GnomeMonthItem): Added fields for
outline and day box colors.
* gnome-month-item.c (gnome_month_item_set_arg): Added
outline_color, outline_color_gdk, day_box_color, and
day_box_color_gdk arguments to month items. These are convenient
to quickly set the colors of the month item.
(gnome_month_item_get_arg): Likewise.
* main.[ch]: Added a global array of structures for color preferences.
1998-08-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
* goto.c: Small code cleanup.
(day_event): Upon receiving a LeaveNotify event, Reset the day's
background to the correct color.
1998-08-29 Federico Mena Quintero <federico@nuclecu.unam.mx>
* mark.[ch]: New files with utility functions to mark calendars
with their events.
* mark.c (mark_month_item): New public function to mark a month
item with events.
(unmark_month_item): New public function to unmark all the days in
a month item to their default appearance.
* year-view.c (year_view_set): Use the new unmark_month_item() and
mark_month_item() to mark the months with events.
* goto.c (update): New function that updates the calendar in the
Go-to dialog by marking the days.
* timeutil.c (time_year_begin): Modified to take a time_t value.
(time_year_end): Likewise.
(time_month_begin): Actually implemented this function, which was
in the header file but not here.
(time_days_in_month): New public function that returns the number
of days in a month.
* Makefile.am (gnomecal_SOURCES): Added mark.[ch] to the sources.
* year-view.c (unmark_days): Use unmark_month_item().
* gncal-full-day.c (gncal_full_day_destroy): Fixed crash when
destroying the full day view. The full day's destroy method is
unusual in that it destroys the list of child widgets itself, as
it does not have a remove method, so it needs to reset the list to
NULL.
1998-08-27 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gnome-month-item.c (build_month): Now does the correct thing
when the user wants weeks to start on Monday. Now all the Monday
special casing, as far as day numbering is concerned, is only in
this function.
* year-view.c (mark_days): This function marks the days that have
events in them. It also fixes a memory leak in the old
implementation (it was leaking the whole list).
(unmark_days): New function used to unmark all the days in the
year view.
(mark_event): New function that marks all the days that are
spanned by a time range. It also fixes the bug in the old
implementation where it could possibly mark days past the ends of
the year (if the event crosses year boundaries, for example).
* timeutil.c (time_year_begin): Take the year parameter since year
1, not 1900.
(time_year_end): Likewise.
* year-view.c (year_view_size_allocate): Now changing the size of
the calendars is done in the idle loop.
(idle_handler): This function actually does the resizing of the items.
* year-view.h (struct _YearView): Added idle_id and need_resize
fields.
1998-08-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
* year-view.c: Beginning of the new year view. Sizing and event
marking needs to be finished.
* gnome-cal.c: Updated for year-view.
(gnome_calendar_time_format_changed): Use year_view_time_format_changed().
* year-view.[ch]: Renamed the gncal-year-view.[ch] files to
year-view.[ch].
* Makefile.am (gnomecal_SOURCES): Updated year-view.[ch] in the
list of source files.
1998-08-25 Federico Mena Quintero <federico@nuclecu.unam.mx>
* goto.c (create_days): Set the heading color of the month item.
* main.c: Use GNOME_STOCK_PIXMAP_JUMP_TO, now that it exists,
instead of goto.xpm. Also, removed goto.xpm from cvs.
* gnome-month-item.h (struct _GnomeMonthItem): Added fields for
the heading and day number fonts. Added fields for heading and
day number label colors.
* gnome-month-item.c (gnome_month_item_class_init): ARG_DAY_NAMES
should be write-only. Also, added arguments for heading and day
number fonts. Added arguments for heading and day number colors.
1998-08-24 Federico Mena Quintero <federico@nuclecu.unam.mx>
* prop.c (build_two_radio_group): Doh. Set the state of the radio
buttons properly.
* month-view.c (month_view_time_format_changed): New public
function that notifies the month view of a time format change.
* gnome-cal.c (gnome_calendar_time_format_changed): New public
function that notifies the calendar of a time format change.
* main.c (time_format_changed): Use gnome_calendar_time_format_changed().
* month-view.c (month_view_update): New public function to update
the month view when an event changes. This is still unfinished.
(month_view_set): New public function to set the month in the
month view.
* gnome-cal.c (gnome_calendar_direction): Add case for month view.
(gnome_calendar_set_view): Likewise.
(gnome_calendar_update_all): Likewise.
* timeutil.c (time_add_week): Implemented the time_add_week()
function, which was on the header file.
(time_add_month): Added public month-adding routine.
* gnome-cal.c (gnome_calendar_get_current_view_name): Add case for
month view.
(gnome_calendar_goto): Likewise, and set the time on the month view.
* month-view.c (month_view_new): Now it takes the calendar plus
the time_t representing the month.
* gnome-month-item.h: Added documentation on the object arguments
for the month item.
* month-view.c (month_view_init): Added a month/year heading to
the month view.
* TODO: Updated the TODO list a bit.
* main.c (gnome_cal_file_menu): The preferences menu option should
go in the File menu.
(gnome_cal_edit_menu): Added stock pixmaps to the menu items.
(gnome_cal_menu): Renamed the Calendar menu to Edit.
(gnome_cal_help_menu): Use "About Gnomecal", not just "About".
* prop.c (hour_activated): Notify the property box that it has changed.
* main.c: Changed the Properties menu item to Preferences. These
are global application preferences, not a single calendar's
properties.
* prop.c (prop_apply): Save the week_starts_on_monday flag to the
configuration file.
(properties): Added a check button for weeks starting on Monday.
(properties): Beautified the Preferences dialog.
* month-view.c (month_view_init):
* goto.c (create_days): Set the month item to start weeks on
Monday if appropriate.
* main.c (init_calendar): A boolean is not an hour, so don't
range_check_hour() on it.
(init_calendar): Added a global week_starts_on_monday flag.
* main.h: Added global week_starts_on_monday flag.
1998-08-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calobj.c (ical_object_create_from_vobject): If mail alarm or
program alarm are missing the action, then set an empty default.
1998-08-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gnome-month-item.c (gnome_month_item_day2index): New public
function to get the displayed day index of the specified date.
* gnome-cal.c (gnome_calendar_goto_today): New public function to
jump to the current day.
* goto.c (day_event): Jump to the selected day when the user
clicks the mouse, and prelight days as appropriate.
* timeutil.c (time_from_day): New public function to build a
time_t from a year/month/day triplet.
* gnome-month-item.c (gnome_month_item_num2child):
(gnome_month_item_child2num): New public functions to convert an
index into a child and vice-versa, respectively.
(gnome_month_item_num2day): New public function to convert a child
number into a displayed day number.
* goto.c (goto_dialog): Doh, use gnome-dialog properly :-)
* gnome-month-item.c (create_items): Use g_strdup()ed day names
from the start.
1998-08-17 Federico Mena Quintero <federico@nuclecu.unam.mx>
* main.c (gnome_toolbar): Made it use goto.xpm.
* Makefile.am (EXTRA_DIST): Added goto.xpm to the list of files.
1998-08-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gnome-month-item.c (gnome_month_item_set_arg): Doh. Actually
recalculate the days using the month and year.
* main.c: Added "Go to" button to quickly jump to a specific date.
* goto.c: New file that defines the quick go-to date dialog.
* Makefile.am (gnomecal_SOURCES): Added goto.c to the sources.
1998-08-11 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
* main.c (new_calendar): Made title i18n friendly. This was bug
#215.
* eventedit.c (ee_store_recur_end_to_ical): Set recur->enddate to
recur->_enddate, not to itself, when adding recurring event and
supplying an end date. This fixes (at least part of) bug #99.
1998-08-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* month-view.[ch]: Start of the month view widget. This will use
the generic month item and extend it to have the semantics desired
for the gnomecal month view.
* gnome-month-item.[ch]: New generic canvas item for the month
view and the "small calendars". This is intended to be a
high-level display engine for monthly calendars. This is a work
in progress.
* gnome-cal.h (GnomeCalendar): Added a month_view field.
* gnome-cal.c (setup_widgets): Create the month view and insert it
into the notebook.
* Makefile.am: Added month-view.[ch] and gnome-month-item.[ch] to
the sources.
1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* main.c (about_calendar_cmd): Use an array of const strings to
keep gcc happy.
* alarm.c (alarm_compare_by_time): Use gconstpointer to keep gcc happy.
* calendar.c (calendar_object_compare_by_start): Likewise.
* gncal-full-day.c (child_compare_by_start): Likewise.
1998-07-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c: Add support for --view flag.
(session_save_state): Save the view mode;
(new_calendar): Now takes a view mode flag.
* gnome-cal.c (gnome_calendar_get_current_view_name): New
function for enhancing the session management support for
gnomecal.
(gnome_calendar_set_view): New function that makes a given page
active.
1998-07-01 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
* gncal.desktop: Added Portuguese translation.
Mon Jun 22 13:01:16 1998 Havoc Pennington <hp@pobox.com>
* main.c (session_save_state): Use gnome_geometry_string to get
the geometry string.
1998-06-04 Federico Mena Quintero <federico@nuclecu.unam.mx>
* eventedit.c (ee_rp_init_rule): Do not subtract 1 from
tm->tm_mday for the default_day.
* gnome-cal.c (gnome_calendar_new):
(gnome_calendar_goto): Use the start of the day -- things expect
it to be that way.
1998-05-27 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
* eventedit.c (ee_store_recur_rule_to_ical): Fill in
ical->recur->interval from value in spin_button. This ixed an
infinnite loop.
1998-05-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-full-day.c (child_draw): Paint the decorations correctly.
(child_draw_decor): Paint the recurrence/bell icons correctly.
1998-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
* eventedit.c (ee_rp_init_rule): Use the contents of
ee->ical->dtstart for computing the predefined values of the recurrence.
* gncal-full-day.c (gncal_full_day_unrealize): Fix the gc
destruction in the unrealization code and fix the pixmap unrefing.
* main.c (close_cmd): Remove a bad hack that disabled calendar
widget destruction.
* calobj.c (ical_object_generate_events): Fix for the weekly event
generation. Was reported on the bug tracking system.
1998-05-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-full-day.c (layout_children): Implemented ultra-cool
layout for the events that share the same time range. Gals and
guys you can now drop Outlook on the recycle bin.
Which reminds me. We do not have a recycle bin. How could that
happen in a project as cool as this one? Someone explain this to
me.
1998-05-18 Federico Mena <federico@nuclecu.unam.mx>
* gncal-full-day.c (paint_back): Eliminated unnecessary border repainting.
Sun May 17 17:55:03 1998 Havoc Pennington <hp@pobox.com>
* gncal-todo.c (simple_todo_editor): Close dialog when return is pressed.
1998-05-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-cal.c (mark_gtk_calendar_day): Bug free version of the
range computation in place.
* gncal-year-view.c (year_view_mark_day): Use the same new version
of the range computation here.
* calobj.c (ical_object_generate_events): Fix the begin/end
condition.
1998-05-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* timeutil.c (isodate_from_time_t): Do not add the spurious
padding.
* calobj.c (store_date_list): Bug fix: I was using the wrong
pointer when saving the exception date list.
(set_date_list): Bug fix: load correctly the complete exception
date list.
(set_date_list): Use ',' for the exception date separator as the
versit people can not get their standard right.
* gncal-full-day.c (unrecur_appointment): Support for making an
existing recurrent event `movable' for a day.
* calobj.c (ical_object_add_exdate): New routine, used to add
exception dates.
(ical_object_duplicate): New routine: used to do the magic
recur->no-recur event.
1998-05-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-full-day.c (new_appointment): Use gtk_calendar freeze/thaw
* gncal-year-view.c (gncal_year_view_set_year): Use gtkcalendar freeze/thaw.
* eventedit.c (event_editor_init): Use gnome_dialog_set_close to
avoid the ugly warning.
* main.c (display_objedit): Default to the day the user is looking
at.
1998-05-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-day-panel.c (full_day_size_allocated): Do not emit a value
changed signal if the value is the same.
1998-05-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
* prop.c (prop_apply): Only run the apply code once.
1998-05-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-day-panel.c (update): Draw the day at startup.
(gncal_day_panel_set): Fix selected-day display.
(gncal_day_panel_new): Switch day on double clicks, not on single
clicks.
* calobj.c (ical_object_compute_end): Removed debug messages.
1998-04-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* prop.c (prop_apply): Do not call prop_cancel, ths is now using
GnomePropertyDialog.
1998-04-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-week-view.c (sync_week): Use gnome_calendar_tag_calendar.
* gnome-cal.c (gnome_calendar_tag_calendar): New routine used to
fill a gtk_calendar with the events on a GnomeCalendar object.
* gncal-week-view.c (gncal_week_view_new): Set the week to the day
we double clicked.
1998-04-28 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-cal.c (calendar_notify): Apply black magic to get mail
notifications to work.
* gncal-full-day.c (child_focus_out): Temporary optimization, the
child_focus_out is constantly calling the
gnome_calendar_object_changed when the property editor has been
invoked. This happens every time the mouse moves crosses the main
window.
* calendar.c (calendar_object_changed): Reschedule alarms when a
calendar object has changed its times.
Sat Apr 25 22:20:45 1998 Havoc Pennington <hp@pobox.com>
* eventedit.c, eventedit.h: Descend from GnomeDialog. Took vbox
out of class structure; use GnomeDialog vbox
instead. gnome_dialog_set_destroy instead of destroying in button
callbacks. Don't create buttons, separator, or vbox manually.
#include <libgnomeui/gnome-dialog.h>.
1998-04-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calobj.c (ical_object_create_from_vobject): Fixed alarm loading;
Load snooze time and snooze count
1998-04-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* calendar.c (calendar_save): Actually save the to-do entries.
* gncal-todo.c (simple_todo_editor): Now you can add and edit
to-do entries.
1998-04-22 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-full-day.c: Made it use popup_menu().
* popup-menu.c: New file with utility functions for creating popup
menus. Maybe such a thing would be useful in libgnomeui, a la
gnome-app-helper?
* Makefile.am (gnomecal_SOURCES): Added popup-menu.[ch] to the sources.
1998-04-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* prop.c (properties): Added Calendar properties editor.
(properties): Make the code use a propery box.
* main.c: Save/load properties (fix to old commit).
1998-04-21 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-todo.c: New widget for editing TODO lists. This will be
worked on a lot.
* Makefile.am (gnomecal_SOURCES): Added gncal-todo.[ch] to the sources.
* gncal-day-panel.c: Make it use the new TODO widget.
1998-04-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
* timeutil.c (isodate_from_time_t): Do not save with the global
time flag (Z at the end of the isodate). When we figure out a way
to load times in GMT time, we will add this back
* view-utils.c (popup_menu): Moved this routine here as there are
more users of this code.
* gncal-day-view.c (gncal_day_view_class_init): Add button press
handler.
(new_appointment): New routine for creating appointments on a day.
* main.c (save_ok): Added call to gtk_window_set_wmclass.
* gncal-day-panel.c (calendar_day_selected): Fix, years for mktime
should substract 1900 and gtk_calendar stores years relative to
year 0.
* gncal-week-view.c (gncal_week_view_new): Make the week view
descend from VBox so that we can add a label to it.
(gncal_week_view_set): Display the ending day of the week
correctly.
Added a label that displays the week range.
1998-04-21 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gnome-cal.c: Made it use GncalDayPanel.
* gncal-day-panel.c: New widget for the day view in the main
calendar toplevel. It basically takes care of everything
gnome-cal did by hand with respect to the day view.
* Makefile.am (gnomecal_SOURCES): Added gncal-day-panel.[ch] to
the rules.
* main.c: Added a separator between the About menu item and the
help topics.
1998-04-20 Miguel de Icaza <miguel@nuclecu.unam.mx>
* eventedit.c (ee_ok): Mark the event as non-new after accepting changes.
1998-04-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-full-day.c (gncal_full_day_get_day_start_yoffset): New
public function that returns the y offset for the row
corresponding to the "day begin" time.
* gncal-full-day.c (gncal_full_day_key_press): Now any printable
keystroke (not just Return) will activate the selected range.
* gncal-full-day.c (paint_back): Made it use the new paint_row
function instead of painting everything directly. We calculate
areas in a smarter way so there is even less flicker than before,
especially when selecting regions.
* eventedit.c: Sensitize recurrence widgets properly.
* calobj.c (duration_callback): Pass the correct pointer type to
is_date_in_list().
1998-04-20 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calobj.c (duration_callback): Take exception dates into
account.
* gncal-full-day.c (new_appointment): Setup the event editor dates
to those of the currently displayed day.
(gncal_full_day_selection_range): Use sensible values in the case
no range is selected.
(new_appointment): Events now use the current day for event creation.
* view-utils.c: Pretty up the time display.
* calobj.c (ical_object_compute_end): Initialize
ico->recur->enddate, otherwise we loop forever during final date computation.
* eventedit.c: Now recurrence is toggled by a radio button in the
recurrence page, as the checkbox is confusing.
* calobj.c (is_date_in_list): Add support for the exclussion
dates.
1998-04-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-year-view.c (double_click): Fix this routine as well.
* gncal-week-view.c (jump_to_day): Bind the gtkcalendar signals to
the week.
* gncal-year-view.c (gncal_year_view_set_year): Put things in the
proper range. Now the year view actually matches this year.
* gnome-cal.html: Added small documentation.
* main.c: Add more icons to the menus; Rename some menubar
entries; Add `new' icon to the toolbar.
(dump_events): Added argument handling and dumping of events from
the command line. Extremely cool.
* getdate.y: Taken from the CVS source code. Used for date
parsing in the command line.
Internationalized getdate.y. Wee! It even works with spanish.
* calobj.c (ical_object_to_vobject): Add Quoted printable property
to items containing new lines.
(duration): Use unsigned integers, to work around buggy calendar
files generated by korganizer.
* main.c (save_calendar_cmd): Do not ask for file name if we are
saving.
(save_as_calendar_cmd): New command.
1998-04-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
* alarm.c (alarm_kill, alarm_init, alarm_add): Implement the alarm
management framework.
1998-04-17 Federico Mena Quintero <federico@nuclecu.unam.mx>
* calobj.c (ical_new): Added mandatory status property.
(ical_object_to_vobject): Only store "related" list if it exists.
(store_list): Add terminating null char and free the correct data.
* main.c (save_calendar_cmd): Implemented calendar saving.
(open_calendar_cmd): Implemented calendar loading.
(new_calendar_cmd): Implemented calendar creation.
(new_calendar): Don't load our test calendar by default.
* gncal-full-day.c (delete_appointment): Delete appointment implemented.
* eventedit.c (ee_store_recur_values_to_ical): Free/create
ical's recurrence appropriately.
(ee_rp_init_rule): Initialize all missing parameters from ical.
(ee_rp_init_ending_date): Initialize missing fields from ical.
1998-04-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-cal.c (gnome_calendar_remove_object): Add support for
removing objects.
1998-04-17 Federico Mena Quintero <federico@nuclecu.unam.mx>
* eventedit.c (ee_init_recurrence_page): New function that creates
the recurrence page in the toplevel notebook.
(ee_store_recur_values_to_ical): Now we can also store the recurrences.
1998-04-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calobj.c (ical_object_generate_events): Implement
RECUR_MONTHLY_BY_POS implemented.
(ical_object_create_from_vobject): Fix the alarm
initialization code.
(save_alarm): Save alarms.
(ical_object_generate_events): Fixed the recurrent code to take
into account the recur->endate field (if at all specified).
(ical_object_to_vobject): Implement recurrence rule saving.
1998-04-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* eventedit.c (ee_store_alarm): Use menu_shell->children, not
menu->children. Why does GtkMenu have a children field in the
object structure?
(check_dates): New function that insures that start_date < end_date.
(check_times): In addition to checking whether the event spans the
whole day, now it insures that start_time < end_time.
* gncal-full-day.c (child_set_size): Now children get bigger
temporarily while they are focused. This allows the handles not
to "overlap" the rows used by the child and thus allow editing of
very thin events.
(recompute_motion): Fix for new child coordinates.
(gncal_full_day_expose): Make it use find_child_by_window()
instead of looking for it by hand.
* bell.xpm recur.xpm: XPM files for events with alarm and
recurrence, respectively.
1998-04-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-full-day.c (button_1): Preserve the up/down cursor while dragging.
* gncal-full-day.c (child_draw): Now children have a vertical
handle as well. This can be used to move the child anytime, not
only when it is focused.
(recompute_motion): Modified for new drag behavior.
* eventedit.c (ee_init_general_page): The general_owner may be
null. Do the proper thing when creating the label.
(ee_ok): Update the gnome calendar appropriately.
* timeutil.h:
* gncal-year-view.h: Add some missing prototypes.
* gncal-full-day.c (child_popup_menu): Set the sensitivity of menu
items according to whether the ical object is being edited or not.
* eventedit.c (event_editor_new): Set the "being edited" flag on
the ical object (stored as the ical object's user data).
(event_editor_destroy): Release the flag.
* calobj.h: The iCalObject structure now has a generic user_data pointer.
* calobj.c (ical_object_set_user_data ical_object_get_user_data):
Functions to set this data.
* gncal-full-day.c (child_button_press): Do child popup menu correctly.
* main.c (about_calendar_cmd): Fixed my address and added Arturo
to the authors in the about box.
* gncal-full-day.c (find_child_by_window): Compare child's widget
windows by user_data (which will be the parent widget, that is,
the text widget). We cannot assume that child->widget->window
will be *the* window we are interested on because there may be
child widgets with multiple windows.
1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calobj.c (ical_foreach): Define iterator routine.
1998-04-15 Arturo Espinosa Aldama <arturo@nuclecu.unam.mx>
* gncal-year-view.[hc]: Now using time_t for new and set.
Random fixes, as well.
1998-04-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-full-day.c (button_3): New popup menus activated with
mouse button 3.
(create_appointment): Create a new appointment from the popup
menus. See the FIXME.
1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-full-day.c (layout_kill_rows): Routine to destory rows
array properly.
* gncal-year-view.c (gncal_year_view_new): Add missing year in
call to strftime.
* calobj.c (ical_object_create_from_vobject): Fixed memory leaks
from the return values of versit's fakeCString.
1998-04-14 Arturo Espinosa Aldama <arturo@nuclecu.unam.mx>
* gncal-year-view.[hc]: New widget for the year view.
* Makefile.am: added required compilation of the new files.
1998-04-14 Federico Mena Quintero <federico@nuclecu.unam.mx>
* eventedit.c (event_editor_setup_time_frame): Fixed some table
expansions to make the dialog look nicer when resized.
* calobj.c (ignore_space): Fixed compiler warning about unused
computed value.
(ocurrencelist): Replace str by p confusion. Removed unused
variables value and q.
(daynumber): Fixed a couple of warnings about unused values.
(load_recurrence): Removed unused variable c. Added a default
clause to the switch(type).
* eventedit.c (ee_rp_init_frequency): Removed unused variable content.
Fixed a compiler warning by adding a missing cast.
* calobj.c (ical_object_create_from_vobject): Make the
load_recurrence() part work correctly. Eliminated use of
syntax_error variable.
1998-04-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-full-day.c (child_key_press): Unfocus the child and focus
the parent fullday widget when the user presses Esc.
* gncal-week-view.c (gncal_week_view_update): Now takes object and
flags parameters.
* gncal-day-view.c (gncal_day_view_update): Likewise.
* gncal-full-day.c (gncal_full_day_update): Likewise.
(child_focus_in): New function. In conjunction with
child_focus_out(), these only display the handles in the child
when it is focused. The result is that the user can see more of
the child's text when nothing is focused, and we can also display
fatter and nicer drag handles.
* gnome-cal.c (gnome_calendar_object_changed): Now takes an
additional flags parameter
(gnome_calendar_update_all): Made function static. Now takes
changed object and flags parameters as well.
(gnome_calendar_object_changed): Now takes additional flags
parameter to indicate what changed in the specified object.
* calobj.h (CalObjectChange): New enum with flags to describe what
has been changed in an object.
* gncal-full-day.h:
* gncal-full-day.c (gncal_full_day_focus_child): New function to
let the outside world decide which child to focus.
(gncal_full_day_focus_child): Bleah. We have to synthesize a
click because GtkText will not set the cursor when you focus it.
* gnome-cal.c (day_view_range_activated): Focus the new child in
the full day widget.
* eventedit.c (event_editor_setup_time_frame): Re-aligned some
widgets to make it look prettier.
(ee_alarm_widgets): Likewise.
(ee_init_general_page): Likewise.
(ee_classification_widgets): Likewise.
(event_editor_init_widgets): Likewise.
* gnome-cal.c (day_view_range_activated): Create new object and
add it to the calendar. You can now select a range in the
full-day view, hit Return, and a new event will be added at the
selected range. I still have to figure out how to focus this new child.
* gncal-full-day.c (paint_back): Rewrote function to avoid
painting an area more than once -- eliminate flicker.
(paint_back_rows): New function that calls paint_back() only for
the area of the specified rows.
(gncal_full_day_button_press):
(gncal_full_day_button_release):
(gncal_full_day_motion): Made these functions use
paint_back_rows() instead of paint_back(), to eliminate flicker. Wheee!
1998-04-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gnome-cal.c (setup_day_view): We now connect to the
range_activated signal of the fullday widget instead of catching
key presses ourselves.
(day_view_range_activated): New function that creates a new
iCalObject and inserts it into the calendar, not finished yet.
1998-04-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-full-day.c (get_time_from_rows): New function, calculates
a pair of time_t values from the specified start and number of rows.
* gncal-full-day.h (GncalFullDayClass): New signal
"range_activated". It is emitted when a range is selected and the
user hits Return.
(gncal_full_day_selection_range): New function, returns the
selected range.
* gncal-full-day.c (struct drag_info): Moved selection information
to their own fields instead of sharing the child's drag fields.
This allows us to keep the selection when a child is moved.
(recompute_motion): Made the case when (row < di->sel_click_row)
work correctly.
1998-04-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-cal.c (gnome_calendar_goto): Add support for navigating
on the day view.
* timeutil.c (time_start_of_day, time_end_of_day, time_day_hour):
New time manipulation functions.
* eventedit.c (ee_rp_init_frequency): Add the different frequency
editors to a notebook. Make the notebook startup on the entry
selected recurrence type;
1998-04-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-full-day.c (recompute_motion): Now we support selecting a
range in the main window (by clicking+dragging). It flickers
horribly and is not perfect, but it is a start.
1998-04-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-full-day.c: #include <string.h>
* gncal-full-day.c (child_map): Show instead of just map the child
widget (otherwise the text widget gets confused and will not focus).
* calobj.c (ical_object_to_vobject): Quote chars as 'x', not "x".
* calobj.h: Added prototype for ical_object_to_vobject().
* gnome-cal.c (gnome_calendar_object_changed): New function. This
should be called when a calendar object is changed.
* gncal-full-day.c (update_from_drag_info): Call
gnome_calendar_object_changed() instead of updating manually.
* calendar.c (calendar_add_object):
(calendar_remove_object): Set the modified flag to true.
* gncal-full-day.c (gncal_full_day_draw): Finished implementing
this function.
1998-04-08 Raja R Harinath <harinath@cs.umn.edu>
* gncal.c (update_calendar): Say `#if 0', not `#ifdef 0'.
1998-04-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
* eventedit.c: Removed unused global variable parent_class.
* eventedit.h: Renamed gtk_window field to window.
Made the parent_class field in the EventEditorClass structure be a
GtkWindowClass, not a gnome property box class.
Added prototype for event_editor_get_type().
1998-04-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-week-view.c (gncal_week_view_new): Use the new
gtk_table_set_homogeneous() instead of setting the variable directly.
1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* eventedit.c (ee_create_ae): Make it return void.
(ee_alarm_widgets): Remove some unused variables.
(ee_store_alarm): Make it return void.
#include <string.h>
* eventedit.h: #include "gnome-cal.h"
* calobj.c (list_free): Don't use g_free in the g_list_foreach.
* calendar.h: Add prototype for calendar_load().
* timeutil.h: Add prototypes for time_add_*().
* calendar.c:
* calobj.c:
* eventedit.c:
* gnome-cal.c: #include "timeutil.h"
* gncal-day-view.c (gncal_day_view_size_request): Make the minimum
width equal or larger to the title width.
* main.c: #include "eventedit.h"
(main): Add a return statement.
(new_calendar): Show stuff *after* the calendar has been loaded.
* gnome-cal.c (gnome_calendar_load): Update the day view.
(setup_widgets): Hackish setup of a day view widget - will fix later.
(gnome_calendar_init): Initialize all fields.
* gnome-cal.h: Added day_view field. Maybe this should be changed
when the a complete day view panel is complete.
* gncal-day-view.c (gncal_day_view_update): Draw after update, not
before.
1998-04-06 Carsten Schaar <nhadcasc@fs-maphy.uni-hannover.de>
* versit/.cvsignore: New file.
Fri Apr 3 22:31:54 1998 Tom Tromey <tromey@cygnus.com>
* calendar.c: Include <config.h>.
1998-04-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
* timeutil.c (time_add_year, time_add_year, time_add_week):
Routines for time manipulation.
* calobj.c (ical_object_destroy): Full destruction of the object.
* eventedit.c: Finished the main event editor form; It still
lacks the details and the recurrence bits. It now adds events
and cancels.
1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* view-utils.c (view_utils_draw_events): The "better" format
string for strftime() wasn't better, after all :-(
1998-04-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-full-day.c: New full-day widget. It is still a work in
progress. It will be similar to M$ Schedule's nifty full day view
widget, but with Gtk's elegance :-)
* Makefile.am (gnomecal_SOURCES): Added gncal-full-day.[ch] to the sources.
1998-04-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* eventedit.c: Object editor widget. We dropped ObjEdit.
* timeutil.c (time_from_isodate): Fix.
* view-utils.c (view_utils_draw_events): Changed the display
formats.
1998-04-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* view-utils.c (view_utils_draw_events): Use better format
specifier for strftime().
(view_utils_draw_textured_frame): Ultra-nifty function to draw
textured "metal" frames, like Netscape's handles.
1998-04-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-day-view.c (gncal_day_view_update): Day events are now
cached inside the widget. They get initialized at this time.
* view-utils.c (view_utils_draw_events): Use the list of events.
1998-04-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-day-view.c (gncal_day_view_set_shadow): New customization
function. We can't decide on a stupid border type :-)
(gncal_day_view_init): Made GTK_SHADOW_ETCHED_IN be the default
shadow type. Looks good.
1998-04-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c: New main program that uses our new datatypes and
objects.
* calendar.c (calendar_load_from_vobject, calendar_load):
Implement loading of vCalendar objects and vCalendar files.
* calobj.c (ical_object_create_from_vobject): Implement loading of
vCalendar event and todo objects.
* timeutil.c (isodate_from_time_t): New function.
* gnome-cal.c, gnome-cal.h: Implement a toplevel widget, derived
from GnomeApp. It holds all of the day views and arbitrates the
display.
1998-04-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-week-view.[ch]: New week view composite widget. This
provides a full week view (7 day views plus busy time display --
the latter is currently unimplemented).
1998-04-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-day-view.c: New day view widget. It is intended to be a
child widget of the week view composite widget.
* calendar.c (calendar_get_objects_in_range):
(calendar_get_events_in_range):
(calendar_get_journal_in_range):
(calendar_get_journal_in_range): These functions now take a
sort_func parameter, which is of type GCompareFunc. If the
specified value is non-NULL, it will return a sorted list.
Otherwise, it will return an unordered list.
(calendar_compare_by_dtstart): Provide a generic sorting routine
for calendar objects.
1998-04-01 Miguel de Icaza <miguel@kernel.org>
* Start from scratch
Tue Mar 31 23:46:50 1998 Tom Tromey <tromey@cygnus.com>
* timeutil.c (format_simple_hour): `buf' now static.
1998-03-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal.c: Removed #include "gtkcalendar.h", because it now comes
from libgnomeui.
* Makefile.am (gncal_SOURCES): Added new source files to the rules.
* timeutil.c (format_simple_hour): New function, formats an
hour/am_pm pair into a string of the form "3am", "12pm", "05h",
"19h", etc. It is used by the day view widget for its labels.
1998-03-31 Craig Small <csmall@small.dropbear.id.au>
* Now has (non working) session maangement
* Uses a clist for the dailylist like gtt
Sat Mar 21 15:43:20 1998 Tom Tromey <tromey@cygnus.com>
* gncal.c: Use gnome_message_box_*, not gnome_messagebox_*.
1998-03-12 Craig Small <csmall@small.dropbear.id.au>
* Now linked (in some horrible way) to the gtkcalendar widget.
Sun Mar 8 16:38:10 1998 Tom Tromey <tromey@cygnus.com>
* Makefile.am (INCLUDES): Added GNOME_INCLUDEDIR.
(gncal_LDADD): Don't include libsupport.a.
* gncal.c (main): Use new gnome_init.
1998-02-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal.c (main): Added app_id "gncal".
1998-02-19 Carsten Schaar <nhadcasc@fs-maphy.uni-hannover.de>
* Makefile.am (gncal_LDADD): Added '$(INTLLIBS)'
1998-02-18 Raja R Harinath <harinath@cs.umn.edu>
* Makefile.am (gncal_LDADD): Include `libsupport.a'.
* calcs.c (month_atoi): Replace buggy explicit loop string compare
with strcasecmp.
(day_atoi): Likewise.
Sun Jan 25 23:38:30 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
* menus.c: Replace "Quit" with "Exit".
|