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
|
2009-06-21 and 25 changes not committed - CVS down.
2009-06-25 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c:
* configure.ac:
* doc/conf.py:
* setup.py:
Increment version to 1.8.7
=== Pycairo 1.8.6 ===
2009-06-25 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c:
* configure.ac:
* doc/conf.py:
* README:
* setup.py:
Update version to 1.8.6
2009-06-21 Steven Chaplin <stevech1097 # yahoo.com.au>
* doc/reference/surfaces.rst: update create_for_data
2009-06-21 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-private.h: remove __PyBaseString_AsUTF8 line.
2009-06-21 Steven Chaplin <stevech1097 # yahoo.com.au>
* doc/reference/context.rst:
* doc/reference/text.rst:
* cairo/pycairo-context.c (pycairo_select_font_face):
(pycairo_show_text, pycairo_text_extents, pycairo_text_path):
* cairo/pycairo-font.c (scaled_font_text_extents):
Unroll __PyBaseString_AsUTF8 into its calling functions and delete.
Because:
1. It calls Py_DECREF on the UTF8String too early - a bug.
2. In Python 3.x it will not be needed (as non-unicode str is replaced
by unicode str).
* cairo/pycairo-font.c (toy_font_face_new): Allow family to be unicode
as well as str.
2009-06-20 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c : remove FORMAT_RGB16_565
* cairo/pycairo-context.c: delete a comment.
* doc/Makefile.am:
* doc/pycairo_c_api.rst: renamed from c-api.rst
* doc/reference/constants.rst: renamed from mattributes.rst
* doc/faq.rst:
* doc/overview.rst:
* doc/pycairo_c_api.rst:
* doc/reference/constants.rst:
* doc/reference/context.rst:
* doc/reference/exceptions.rst:
* doc/reference/index.rst:
* doc/reference/matrix.rst:
* doc/reference/paths.rst:
* doc/reference/patterns.rst:
* doc/reference/surfaces.rst:
* doc/reference/text.rst:
Completed documentation.
2009-06-13 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-matrix.c (matrix_operator_multiply):
* doc/reference/matrix.rst:
Undo 'cairo.Matrix * cairo.Matrix' change from 2008-12-27.
Fixes #19221, again.
2009-03-25 Steven Chaplin <stevech1097 # yahoo.com.au>
* doc/reference/surfaces.rst: update docs
2009-03-24 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c: fix error in
PycairoToyFontFace_Type.tp_base
2009-03-21 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (_read_func):
Rearrange order of function calls to address possible bugs:
- DECREF pystr after (not before) str has been used in memcpy.
- check the length of the string returned by 'read'.
2009-03-19 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c:
* configure.ac:
* setup.py:
Increment version to 1.8.5
=== Pycairo 1.8.4 ===
2009-03-19 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c:
* configure.ac:
* doc/conf.py:
* NEWS:
* setup.py:
Update for 1.8.4 release.
2009-03-19 Steven Chaplin <stevech1097 # yahoo.com.au>
* doc/reference/surfaces.rst: update documentation.
2009-03-16 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-pattern.c :
* doc/reference/patterns.rst:
Move SurfacePattern.{get_extend,set_extend} up into the Pattern class
so Gradient Patterns can use the methods also.
Fixes #20674.
2009-03-03 Steven Chaplin <stevech1097 # yahoo.com.au>
* configure.ac:
* setup.py:
* README:
Require Python 2.6, cairo 1.8.4
* cairo/pycairo-surface.c: tidy up.
* doc/reference/mattributes.rst:
* doc/reference/surfaces.rst:
Update docs.
2009-02-16 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c: Reenable threading for all cairo stream
functions and wrap PyGILState_Ensure/PyGILState_Release around the
calls to PyObject_CallMethod. This should fix bug #19287.
Patch from Torsten Marek.
2009-02-12 Steven Chaplin <stevech1097 # yahoo.com.au>
* doc/reference/patterns.rst:
* doc/reference/surfaces.rst:
use '.. versionadded::' markup
* cairo/cairomodule.c:
* cairo/pycairo-font.c:
* cairo/pycairo.h:
* cairo/pycairo-private.h:
* doc/reference/mattributes.rst:
* doc/reference/text.rst:
Add patch by Torsten Marek to support ToyFontFace.
* cairo/pycairo.h : update Pattern_FromPattern prototype
* cairo/pycairo-pattern.c (surface_pattern_new): remove unused variable.
2009-01-15 Steven Chaplin <stevech1097 # yahoo.com.au>
* configure.ac:
* cairo/cairomodule.c:
* setup.py:
increment version to 1.8.3
=== Pycairo 1.8.2 ===
2009-01-15 Steven Chaplin <stevech1097 # yahoo.com.au>
* NEWS: update news for 1.8.2 release
* configure.ac:
* cairo/cairomodule.c:
* README:
* setup.py:
Increase pycairo version to 1.8.2, require cairo 1.8.2
* doc/reference/surfaces.rst: update docs
2009-01-09 Steven Chaplin <stevech1097 # yahoo.com.au>
* AUTHORS:
* ChangeLog: correct misspelling of my email address.
2009-01-07 Steven Chaplin <stevech1097 # yahoo.com.au>
* doc/reference/context.rst: add line for
Context.set_scaled_font()
* cairo/pycairo-context.c (pycairo_set_scaled_font):
add new wrapper for Context.set_scaled_font()
2009-01-01 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (svg_surface_new):
Remove ALLOW_THREADS from all cairo stream functions.
#19287.
* INSTALL: remove reference to the method
ImageSurface.create_for_array() - it no longer exists.
* doc/README: update with web address of pycairo docs
* doc/conf.py: update docs to version 1.8.1
* doc/c-api.rst:
* doc/reference/context.rst:
* doc/reference/index.rst:
* doc/reference/surfaces.rst:
modify titles
2008-12-27 Steven Chaplin <stevech1097 # yahoo.com.au>
* doc/reference/matrix.rst: update matrix multiply docs.
* cairo/pycairo-matrix.c (matrix_multiply):
Change 'cairo.Matrix * cairo.Matrix' to be consistent with standard
matrix multiplication.
Add cairo.Matrix.multiply() to wrap cairo_matrix_multiply()
Fixes #19221, patch by Pietro Battiston
2008-12-15 Steven Chaplin <stevech1097 # yahoo.com.au>
* configure.ac:
* cairo/cairomodule.c:
* setup.py:
increment version to 1.8.1
=== Pycairo 1.8.0 ===
2008-12-15 Steven Chaplin <stevech1097 # yahoo.com.au>
* configure.ac:
* cairo/cairomodule.c:
* setup.py:
update version number to 1.8.0
* NEWS: update for the 1.8.0 release
2008-12-15 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-pattern.c (surface_pattern_get_surface): return the
PycairoSurface used to create the PycairoSurfacePattern, instead of
creating a new PycairoSurface.
2008-12-10 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-private.h:
* cairo/pycairo.h (struct): add 'base' field for PycairoPattern
* cairo/pycairo-pattern.c (PycairoPattern_FromPattern): add a new 'base'
argument - this is a C API change to fix #18947.
* cairo/pycairo-context.c:
* cairo/pycairo-pattern.c:
Update all calls to PycairoPattern_FromPattern to new API.
* cairo/pycairo-surface.c: update PycairoSurface_FromSurface comment.
2008-12-10 Steven Chaplin <stevech1097 # yahoo.com.au>
* RELEASING: add doc generating notes
* configure.ac: add 'doc/Makefile' to AC_CONFIG_FILES.
Require automake 1.9.6
* Makefile.am: add 'doc' to SUBDIRS
* configure.ac:
* README :
* setup.py :
Require cairo 1.8.0
* cairo/cairomodule.c:
add cairo.EXTEND_PAD
* cairo/pycairo-font.c: update comments in the method section
* cairo/pycairo-matrix.c: add comment in method list
* cairo/pycairo-surface.c
(surface_mark_dirty): API change, it no longer accepts keyword
arguments with default values - the default values used are not
documented in the cairo manual so were effectively magic numbers.
(surface_mark_dirty_rectangle):
(surface_set_fallback_resolution):
add new bindings
* doc/FAQ:
* doc/NOTES:
remove files - the info has been merged into the other docs.
* doc/c-api.rst:
* doc/conf.py:
* doc/faq.rst:
* doc/index.rst:
* doc/Makefile.am:
* doc/overview.rst:
* doc/README:
* doc/reference/context.rst:
* doc/reference/exceptions.rst:
* doc/reference/index.rst:
* doc/reference/matrix.rst:
* doc/reference/mattributes.rst:
* doc/reference/paths.rst:
* doc/reference/patterns.rst:
* doc/reference/surfaces.rst:
* doc/reference/text.rst:
Create Sphinx documentation files
* examples/cairo_snippets/snippets_gtk.py:
update so it can be run from outside its directory
2008-11-25 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c:
* cairo/pycairo-surface.c:
Improve support for threads by using
Py_BEGIN_ALLOW_THREADS
Py_END_ALLOW_THREADS
around any blocking or possibly long-running cairo calls.
Addresses bug #18101
* cairo/cairomodule.c:
add cairo.HAS_IMAGE_SURFACE
add cairo.HAS_USER_FONT
* cairo/pycairo-font.c:
wrap cairo_scaled_font_get_scale_matrix
* cairo/pycairo-surface.c:
use CAIRO_HAS_IMAGE_SURFACE
2008-09-09 Steven Chaplin <stevech1097 # yahoo.com.au>
* NEWS: fix pycairo version number error
2008-09-01 Steven Chaplin <stevech1097 # yahoo.com.au>
* setup.py (pycairo_version):
* cairo/cairomodule.c:
* configure.ac:
Increment pycairo version to 1.6.5
* cairo/pycairo-pattern.c (PycairoPattern_FromPattern):
* cairo/pycairo-surface.c (PycairoSurface_FromSurface):
Allow unknown cairo Pattern/Surface types to use the pycairo base
Pattern/Surface type, patch by Owen Taylor.
=== Pycairo 1.6.4 ===
2008-07-17 Steven Chaplin <stevech1097 # yahoo.com.au>
* NEWS: update for 1.6.4 release
* setup.py :
* cairo/cairomodule.c:
* configure.ac:
update pycairo version to 1.6.4
2008-07-17 Steven Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets/ellipse.py (path_ellipse): Update
so line-width is a constant width in device-space not user-space
* doc/FAQ : Add new FAQs
* test/Makefile.am (EXTRA_DIST)
* test/pygame-test1.py, test/pygame-test2.py : Add new tests
2008-07-17 Steven Chaplin <stevech1097 # yahoo.com.au>
* setup.py (pkg_config_version_check): apply patch (modified) from
Kirill Smelkov to fix #16112.
2008-05-12 Steven Chaplin <stevech1097 # yahoo.com.au>
* test/isurface_create_for_data1.py:
* test/isurface_create_for_data2.py:
update tests
* cairo/pycairo-surface.c (pycairo_format_stride_for_width)
(ps_surface_ps_level_to_string):
Add ImageSurface.format_stride_for_width and
PSSurface.ps_level_to_string static methods.
(image_surface_create_for_data): Use the new function
cairo_format_stride_for_width() to calculate the stride.
* cairo/pycairo-context.c (pycairo_has_current_point)
(pycairo_path_extents):
* cairo/pycairo-surface.c (surface_copy_page, surface_show_page):
Add new bindings
* configure.ac:
* README :
* setup.py :
Require cairo 1.6.4 and Python 2.5
* cairo/pycairo-private.h: remove code used for Python < 2.5
2008-05-08 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c: add new constants cairo.PS_LEVEL_2 and
cairo.PS_LEVEL_3
* cairo/pycairo-surface.c (ps_surface_get_eps, ps_surface_set_eps)
(ps_surface_restrict_to_level):
Add some new cairo 1.6.4 API - apply patch (with some changes)
from Tom Hughes to fix #15618.
2007-12-13 Steven Chaplin <stevech1097 # yahoo.com.au>
* setup.py (pycairo_version):
* cairo/cairomodule.c:
* configure.ac:
Increment pycairo version to 1.4.13
=== Pycairo 1.4.12 ===
2007-12-13 Steven Chaplin <stevech1097 # yahoo.com.au>
* NEWS: update for version 1.4.12
* cairo/cairomodule.c:
* configure.ac:
* setup.py (pycairo_version):
Increase pycairo version to 1.4.12
* doc: create new directory for documentation
* Makefile.am (EXTRA_DIST): add doc/FAQ and doc/NOTES
* configure.ac:
* README:
* setup.py (pycairo_version):
Require cairo 1.4.12
2007-12-12 Steven Chaplin <stevech1097 # yahoo.com.au>
* FAQ: new file
* configure.ac: Require Python 2.4
* cairo/pycairo-private.h: Remove macros required for Python < 2.4
* test/test.py (_test): Remove line checking for Python < 2.4
2007-12-11 Steven Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (pycairo_dealloc):
* cairo/pycairo-pattern.c (pattern_dealloc):
* cairo/pycairo-surface.c (surface_dealloc):
* cairo/pycairo-font.c (font_face_dealloc, scaled_font_dealloc)
(font_options_dealloc):
Remove the DEBUG statements - they are no longer used.
* cairo/pycairo-context.c (pycairo_new): Pass 'type' as second arg to
PycairoContext_FromContext(). This fixes the problem where Python
subclasses of cairo.Context were not working properly.
(PycairoContext_FromContext): Remove the support for arg #2 to be NULL,
- its not a good 'default' since it caused the subclassing problem
fixed above.
2007-12-02 Steven Chaplin <stevech1097 # yahoo.com.au>
* acinclude.m4 : Fix #13460 by applying the patch from Sebastien
Bacher, and rearranging a couple of lines.
2007-11-20 Steven Chaplin <stevech1097 # yahoo.com.au>
* setup.py: update to use subprocess, and require Python 2.4
* cairo/pycairo-matrix.c (matrix_as_number): fix a compiler warning.
2007-04-06 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac (AC_PROG_LIBTOOL): Add version number required (as a
comment) for use by autogen.sh
* autogen.sh: Synchronize with the new cairo autogen.sh - to update
version checking for automake. Fixes #10006
2007-03-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac:
* cairo/cairomodule.c:
* setup.py:
increase pycairo version to 1.4.1
=== Pycairo 1.4.0 ===
2007-03-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* README:
* NEWS: update for version 1.4.0
2007-03-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac:
* setup.py:
* cairo/cairomodule.c:
Set pycairo version to 1.4.0, require cairo 1.4.0
* cairo/pycairo-context.c (pycairo_get_scaled_font): new binding
2007-01-21 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (pycairo_get_dash)
(pycairo_copy_clip_rectangles, pycairo_get_dash_count):
update to new API
* configure.ac:
* setup.py:
Set pycairo version to 1.3.11, require cairo 1.3.12
2007-01-17 Steve Chaplin <stevech1097 # yahoo.com.au>
* README:
* NOTES:
* configure.ac:
* cairo/pycairo-surface.c:
Remove Numeric Python support, since Numeric has been made obsolete by
numpy, and numpy data can be read using ImageSurface.create_for_data.
* test/isurface_create_for_array.py: delete file
* test/Makefile.am (EXTRA_DIST): remove isurface_create_for_array.py
2007-01-16 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c:
* cairo/pycairo-context.c:
* cairo/pycairo-font.c:
* cairo/pycairo-matrix.c:
* cairo/pycairo-path.c:
* cairo/pycairo-pattern.c:
* cairo/pycairo-private.h:
* cairo/pycairo-surface.c:
Add support for Py_ssize_t from Python 2.5
2007-01-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (_PyGlyphs_AsGlyphs): new utility function
used by the pycairo_glyph_extents, pycairo_glyph_path and
pycairo_show_glyphs.
2007-01-13 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (pycairo_show_glyphs, pycairo_glyph_path)
(pycairo_glyph_extents): new bindings.
* examples/cairo_snippets/snippets/show_glyphs.py:
* examples/cairo_snippets/snippets/glyph_path.py: new examples
* examples/Makefile.am : add glyph_path.py, show_glyphs.py
2007-01-08 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-private.h add RETURN_NULL_IF_CAIRO_SCALED_FONT_ERROR
and RETURN_NULL_IF_CAIRO_FONT_OPTIONS_ERROR
* cairo/pycairo-font.c (scaled_font_extents, scaled_font_text_extents):
use RETURN_NULL_IF_CAIRO_SCALED_FONT_ERROR
(font_options_set_antialias, font_options_set_hint_metrics)
(font_options_set_hint_style, font_options_set_subpixel_order):
use RETURN_NULL_IF_CAIRO_FONT_OPTIONS_ERROR
(scaled_font_new): usePycairoScaledFont_FromScaledFont
(font_options_new): use PycairoFontOptions_FromFontOptions
* cairo/pycairo-matrix.c (PycairoMatrix_FromMatrix): update comment
* cairo/pycairo-context.c (pycairo_copy_clip_rectangles): tidy up the
loop.
2006-12-28 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c:
* cairo/pycairo-private.h: Move RETURN_NULL_IF_*_STATUS_ERROR macros
to from pycairo-context.c to pycairo-private.h and rename to
RETURN_NULL_IF_CAIRO_*_ERROR
* cairo/pycairo-private.h: add
RETURN_NULL_IF_CAIRO_PATTERN_ERROR, and
RETURN_NULL_IF_CAIRO_SURFACE_ERROR
* cairo/pycairo-pattern.c (gradient_add_color_stop_rgb)
(gradient_add_color_stop_rgb): use RETURN_NULL_IF_CAIRO_PATTERN_ERROR
* cairo/pycairo-surface.c use RETURN_NULL_IF_CAIRO_SURFACE_ERROR
* cairo/pycairo-context.c (pycairo_copy_clip_rectangles): new binding
(pycairo_new): use PycairoContext_FromContext
2006-12-28 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (pycairo_get_dash): Add new bindings.
(pycairo_set_dash): update to be consistent with pycairo_get_dash
2006-12-28 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c: increment pycairo version to 1.3.1
2006-12-28 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-pattern.c (surface_pattern_get_surface)
(linear_gradient_get_linear_points)
(radial_gradient_get_radial_circles):
Add new bindings.
2006-12-28 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (PycairoSurface_FromSurface): update the
comment to list all surfaces supported.
* cairo/pycairo-pattern.c: use PycairoPattern_FromPattern in all the
'*_new' constructors.
(solid_pattern_get_rgba): Add new bindings.
2006-12-27 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac:
* setup.py (pycairo_version):
increase pycairo version to 1.3.1 and require cairo 1.3.2
* cairo/pycairo-context.c (pycairo_clip_extents)
(pycairo_get_dash_count):
Add new bindings
2006-12-21 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairogtkmodule.c: remove file
Remove the cairo.gtk module (pygtk 2.7.0 onwards has cairo support
built in).
* configure.ac:
* INSTALL:
* NOTES:
* README:
* cairo/Makefile.am:
Update files to note the cairo.gtk module no longer exists.
* examples/gtk/cairo-demo.py:
* examples/gtk/cairo-knockout.py:
* examples/gtk/hangman.py:
* examples/gtk/lsystem.py:
* examples/gtk/png_view.py:
* examples/gtk/text.py:
* examples/cairo_snippets/snippets_gtk.py:
Update examples to run without using the cairo.gtk module
2006-12-21 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c: remove unused #include <stdint.h>
* cairo/pycairo-surface.c:
* cairo/pycairo-font.c (scaled_font_new):
Make declarations at top of the block - changes to downgrade from C99
to ANSI/ISO standard C, patch from Akihiko Hayashi, fixes bug #8910.
2006-11-27 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac:
* cairo/cairomodule.c:
* setup.py (pycairo_version):
increment pycairo version to 1.2.7
=== Pycairo 1.2.6 ===
2006-11-27 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac :
* cairo/cairomodule.c :
* setup.py :
* README :
increment pycairo and cairo versions to 1.2.6
* NEWS: list changes for 1.2.6
2006-11-27 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: replace AC_HELP_STRING with AS_HELP_STRING
* test/isurface_get_data.py : update to use numpy to write to the
surface.
2006-11-20 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (image_surface_get_data_as_rgba): Delete
method (at request of Carl Worth) since language bindings should not
have functions which are not provided by the C cairo library.
* test/isurface_get_data_as_rgba.py: delete test script
* test/Makefile.am (EXTRA_DIST): remove isurface_get_data_as_rgba.py
2006-11-20 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (image_surface_buffer_getreadbuf)
(image_surface_buffer_getwritebuf, image_surface_buffer_getsegcount):
Add writable buffer interface support to ImageSurface.
(image_surface_get_data): new binding which returns a Python writable
buffer object.
* test/isurface_get_data.py: new test
* test/Makefile.am (EXTRA_DIST): add isurface_get_data.py
2006-09-22 Cedric Gustin <cedric.gustin@gmail.com>
* setup.py: Fixes for win32. Install pycairo.pc and pycairo.h as
data_files.
2006-09-21 Cedric Gustin <cedric.gustin@gmail.com>
* cairo/pycairo-path.c: Initialize PycairoPathiter_Type.tp_iter in
init_cairo (cairomodule.c) to avoid "non-const initializer" errors
on win32 (mingw32). Remove static declaration for
PycairoPathiter_Type as it has to be used in cairomodule.c.
* cairo/pycairo-private.h: Export PycairoPathiter_Type.
* cairo/cairomodule.c (init_cairo): Initialize
PycairoPathiter_Type.tp_iter.
2006-08-21 Steve Chaplin <stevech1097 # yahoo.com.au>
* RELEASING: update step 8.
* configure.ac:
* cairo/cairomodule.c:
* setup.py:
increment version to 1.2.3
=== Pycairo 1.2.2 ===
2006-08-21 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/Makefile.am (pycairoexec_PYTHON): remove 'nodist_' from
__init__.py
* README : note cairo 1.2.2 is required
* cairo/cairomodule.c: increment pycairo version to 1.2.2
* configure.ac: increment pycairo to 1.2.2, and require cairo 1.2.2.
2006-08-19 Steve Chaplin <stevech1097 # yahoo.com.au>
* INSTALL: add notes for new install method.
* setup.py : install pycairo.h and pycairo.pc files.
2006-08-17 Steve Chaplin <stevech1097 # yahoo.com.au>
* setup.py: update so 'python setup.py install' can be used as an
alternative install method.
2006-08-16 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/__init__.py: add new file
* cairo/__init__.py.in: remove file
* configure.ac:
* RELEASING:
* cairo/cairomodule.c:
move version and version_info module attributes from __init__.py to
cairomodule.c
2006-08-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* NOTES : update to note surface creation supports file-like objects.
* INSTALL: update
2006-08-07 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/Makefile.am:
* examples/cairo_snippets/snippets/gradient_mask.py:
Add new snippet copied from Michael Urman's cairo tutorial.
2006-08-04 Steve Chaplin <stevech1097 # yahoo.com.au>
Remove the cairo.svg module because
1) Cairo does not include SVG parsing, so this module does not belong
in pycairo.
2) libsvg-cairo (the underlying C library) is unmaintained.
Modified files:
* cairo/Makefile.am
* configure.ac
* examples/cairo_snippets/snippets/__init__.py
* examples/cairo_snippets/snippets_gtk.py
* examples/cairo_snippets/snippets_pdf.py
* examples/cairo_snippets/snippets_png.py
* examples/cairo_snippets/snippets_ps.py
* examples/cairo_snippets/snippets_svg.py
* examples/Makefile.am
* INSTALL
* README
Deleted files:
* cairo/cairosvgmodule.c
* cairo/pycairosvg.h
* cairo/pycairosvg-private.h
* examples/cairo_snippets/data/freedesktop.svg
* examples/cairo_snippets/data/home.svg
* examples/cairo_snippets/snippets/libsvg.py
* examples/cairo_snippets/snippets/operator_add.py
* examples/cairo_snippets/snippets/operator_atop.py
* examples/cairo_snippets/snippets/operator_atop_reverse.py
* examples/cairo_snippets/snippets/operator_in.py
* examples/cairo_snippets/snippets/operator_in_reverse.py
* examples/cairo_snippets/snippets/operator_out.py
* examples/cairo_snippets/snippets/operator_out_reverse.py
* examples/cairo_snippets/snippets/operator_over.py
* examples/cairo_snippets/snippets/operator_over_reverse.py
* examples/cairo_snippets/snippets/operator_saturate.py
* examples/cairo_snippets/snippets/operator_xor.py
* examples/svg/svgconvert.py
* examples/svg/svgview.py
2006-07-19 Steve Chaplin <stevech1097 # yahoo.com.au>
* README : Update to match info at http://www.cairographics.org/pycairo
2006-07-03 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: increment to version 1.2.1
=== Pycairo 1.2.0 ===
2006-07-03 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac:
* NEWS:
* README:
* setup.py:
update for pycairo 1.2.0
* cairo/pycairo-surface.c (image_surface_to_rgba): rename to
image_surface_get_data_as_rgba
2006-07-01 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac : fix problem where Numeric was not being detected.
require cairo 1.2.0
* cairo/cairomodule.c : add cairo.FORMAT_RGB16_565
* cairo/pycairo-surface.c (image_surface_create_for_data):
add support for CAIRO_FORMAT_RGB16_565
(xlib_surface_get_height, xlib_surface_get_width): new bindings
2006-06-26 Steve Chaplin <stevech1097 # yahoo.com.au>
* INSTALL: Remove obsolete notes about RGBA patch
* configure.ac : remove the check for the
cairo_image_surface_get_data() patch.
* cairo/pycairo-surface.c: remove "#ifdef HAVE_GETDATA" which is no
longer needed now that we have the new functions
cairo_image_surface_get_date/height/stride.
2006-06-25 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: increase required cairo version to 1.1.8
* cairo/pycairo-surface.c (surface_get_content)
(image_surface_get_format, image_surface_get_stride):
Add new bindings.
(image_surface_get_height, image_surface_get_width)
(xlib_surface_get_depth):
use PyInt_FromLong instead of Py_BuildValue.
2006-06-22 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (image_surface_create_from_png): rewrite to
be consistent with the method used for surface_write_to_png.
2006-06-11 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (pdf_surface_set_dpi, ps_surface_set_dpi)
(svg_surface_set_dpi): delete and replace with the new function
surface_set_fallback_resolution, fixes #7180.
* cairo/pycairo-surface.c (image_surface_create_for_data):
* cairo/pycairo-pattern.c (PycairoPattern_FromPattern): use
PyErr_SetString instead of ASSERT_NOT_REACHED.
* cairo/pycairo-private.h: delete ASSERT_NOT_REACHED as its no longer
used
=== Pycairo 1.1.6 ===
2006-05-29 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-pattern.c (PycairoPattern_FromPattern): fix a compiler
warning.
* NEWS: update for 1.1.6
* configure.ac:
* setup.py : increase pycairo version to 1.1.6
* README : increase required cairo version to 1.1.6
* autogen.sh : update by using a (slightly modified) copy of the cairo
autogen.sh, fixes #7048.
2006-05-28 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets_pdf.py (do_snippet):
* examples/cairo_snippets/snippets_ps.py (do_snippet):
* examples/cairo_snippets/snippets_svg.py (do_snippet):
add a call to surface.finish()
* cairo/cairomodule.c (Pycairo_Check_Status): check if a Python
exception has already occurred.
* cairo/pycairo-surface.c (image_surface_new, pdf_surface_new)
(ps_surface_new, svg_surface_new, win32_surface_new):
simplify by using PycairoSurface_FromSurface
* cairo/pycairo-surface.c (ps_surface_new, pdf_surface_new)
(svg_surface_new): update to support file and file-like objects.
2006-05-26 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (surface_write_to_png): For a filename
argument use cairo_surface_write_to_png instead of
cairo_surface_write_to_png_stream.
Combine the two sections of code which handle a file object and a
file-like object.
2006-05-17 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c: add new binding for
cairo_pdf_surface_set_size
2006-05-16 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c: add new bindings for
cairo_surface_get_device_offset
cairo_xlib_surface_get_depth
* cairo/pycairo-context.c: add new binding for cairo_get_group_target
2006-05-15 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: require cairo 1.1.6
* cairo/pycairo-context.c: new bindings for
cairo_push_group
cairo_push_group_with_content
cairo_pop_group
cairo_pop_group_to_source
* examples/cairo_snippets/snippets/group.py: new snippet
* examples/Makefile.am (EXTRA_DIST): add group.py
2006-05-13 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c : add new bindings for
cairo_ps_surface_dsc_begin_page_setup
cairo_ps_surface_dsc_begin_setup
2006-05-07 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: require cairo 1.1.4
* cairo/pycairo-surface.c : add new bindings for
cairo_ps_surface_set_size
cairo_ps_surface_dsc_comment
* NOTES: Add XlibSurface
2006-05-01 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c:
* cairo/pycairo-private.h:
* cairo/pycairo.h:
add XlibSurface
* cairo/cairomodule.c: remove 'static' from CairoError
* cairo/pycairo-private.h: Add CairoError extern declaration
* cairo/pycairo-surface.c (PycairoSurface_FromSurface): Raise exception
for unsupported surfaces. Add support for XlibSurface.
2006-04-30 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (pycairo_get_source, pycairo_get_target):
rearrange functions.
(RETURN_NULL_IF_CONTEXT_STATUS_ERROR): new macro to handle error
checking and replace the existing error checking code which is
identical for every function. Change code to make 1 function call
when there is no error, whereas the old code made 2 function
calls.
2006-04-29 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/Makefile.am (EXTRA_DIST):
add cairo_snippets/snippets/ellipse.py
* configure.ac: require automake 1.9 and autoconf 2.59
2006-04-29 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (__PyBaseString_AsUTF8): Remove 'static' so
function can be used from other files.
(pycairo_new_sub_path): new wrapper for cairo_new_sub_path.
* cairo/pycairo-private.h: Add __PyBaseString_AsUTF8 prototype
* cairo/pycairo-font.c:
add new wrapper for cairo_scaled_font_text_extents
2006-04-29 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-font.c:
add new wrapper for cairo_scaled_font_get_font_face
* cairo/pycairo-font.c:
* cairo/pycairo-pattern.c:
* cairo/pycairo-surface.c:
Add comments noting that the new cairo functions
cairo_surface_get_type
cairo_pattern_get_type
cairo_font_face_get_type
cairo_scaled_font_get_type
do not need to be exposed in a language binding.
2006-04-29 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets/ellipse.py: add new snippet
* README : Note that cairo 1.1.2 is required. Add notes deprecating
the cairo.gtk and cairo.svg modules.
* configure.ac: require cairo 1.1.2
2006-04-25 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (PycairoSurface_FromSurface): remove type
argument and use cairo_surface_get_type() instead.
* cairo/pycairo-context.c (pycairo_get_target):
* cairo/pycairo-private.h:
* cairo/pycairo.h:
update to use the modified PycairoSurface_FromSurface().
* cairo/pycairo-private.h (ASSERT_NOT_REACHED): add new macro
* cairo/pycairo-pattern.c (PycairoPattern_FromPattern):
* cairo/pycairo-surface.c (PycairoSurface_FromSurface): use
ASSERT_NOT_REACHED
2006-03-04 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-pattern.c (PycairoPattern_FromPattern): remove type
argument and use cairo_pattern_get_type() instead.
* cairo/pycairo-context.c (pycairo_get_source):
* cairo/pycairo-private.h:
* cairo/pycairo.h:
update to use the modified PycairoPattern_FromPattern().
2006-03-04 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-font.c:
* cairo/pycairo-pattern.c:
make the boolean comparisons explicit.
2006-03-04 Steve Chaplin <stevech1097 # yahoo.com.au>
* AUTHORS: change my email address
2006-01-23 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo.h: add missing SVGSurface_Type to Pycairo_CAPI_t
* cairo/cairomodule.c (init_cairo): Add cairo.SUBPIXEL_ORDER_*,
cairo.HINT_STYLE_*, cairo.HINT_METRICS_* constants.
* cairo/pycairo-font.c (font_options_get_antialias)
(font_options_get_hint_metrics, font_options_get_hint_style)
(font_options_get_subpixel_order, font_options_set_antialias)
(font_options_set_hint_metrics, font_options_set_hint_style)
(font_options_set_subpixel_order):
new bindings, applied patch from raulir, with some changes,
fixes #5689.
2006-01-22 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (__PyBaseString_AsUTF8): new function.
(pycairo_select_font_face, pycairo_show_text, pycairo_text_extents)
(pycairo_text_path):
allow the string argument to be a unicode or string object, and convert
to UTF-8 encoding, fixes #5654.
2006-01-20 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets_gtk.py (Window.put_in_frame):
delete unused self._bg_rgb
* examples/hering.py :
* examples/spiral.py :
* examples/gtk/hangman.py (expose_event):
use ctx.paint() to set the background colour.
* examples/gtk/cairo-demo.py (expose): remove unused da.allocation
* examples/gtk/cairo-knockout.py (expose): simplify
2006-01-20 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets/__init__.py: whitespace changes
* examples/cairo_snippets/snippets_gtk.py: remove code to draw a
rectangular background - its not needed.
2006-01-17 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (image_surface_create_for_data): for
CAIRO_FORMAT_RGB24 set stride = width * 4 (not 3), fixes #5633
2005-12-16 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (image_surface_create_from_png): update
ImageSurface.create_from_png(f) so that 'f' can be a file-like object
(as well as a filename or a file object).
* NOTES : update notes for ImageSurface.create_from_png()
2005-12-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c :
* cairo/pycairo.h:
* cairo/pycairo-private.h:
* cairo/pycairo-surface.c:
add support for SVG surface
* examples/cairo_snippets/snippets_svg.py: new example
* examples/Makefile.am (EXTRA_DIST): add snippets_svg.py
* NOTES : update cairo.Surface section to show that SVGSurface is now
supported
2005-12-12 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/svg/svgconvert.py : New file - convert SVG files to
PDF, PNG or PS, uses patch from Aldo Nicolas Bruno.
* examples/svg/svg2png.py: remove
* examples/Makefile.am (EXTRA_DIST): add svgconvert.py, delete
svg2png.py
2005-11-10 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: change AC_INIT to point to pycairo (not cairo)
bugzilla. Remove the redundant automake conditional HAVE_NUMPY.
2005-10-17 Steve Chaplin <stevech1097 # yahoo.com.au>
* INSTALL: add notes for installing get_data patch
* configure.ac: Add check for get_data patch
* patch.cairo.h
* patch.cairo-image-surface.c:
new files, patch cairo to enable 'surface.to_rgba()'
* test/to_rgba.py : new file, test surface.to_rgba()
* cairo/pycairo-surface.c (image_surface_to_rgba): new function
2005-10-12 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (surface_write_to_png): add support for
StringIO and cStringIO objects.
* NOTES : update notes for surface.write_to_png()
2005-10-11 Steve Chaplin <stevech1097 # yahoo.com.au>
* RELEASING: update step 4 - check for uncommitted changes.
2005-10-11 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: Increment pycairo version to 1.0.3
=== Pycairo 1.0.2 ===
2005-10-11 Steve Chaplin <stevech1097 # yahoo.com.au>
* NEWS: update for 1.0.2
* setup.py:
* README :
* configure.ac: Increment pycairo version to 1.0.2, require cairo 1.0.2
2005-10-03 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-matrix.c (matrix_get_xx, matrix_get_yx, matrix_get_xy)
(matrix_get_yy, matrix_get_x0, matrix_get_y0, matrix_get_value):
delete
(matrix_item): new function to allow matrix to be used as a sequence
by providing Matrix.__get_item__()
* NOTES : update cairo.Matrix notes
2005-09-28 Steve Chaplin <stevech1097 # yahoo.com.au>
* NOTES : add note for cairo.ImageSurface.create_for_data()
* cairo/pycairo-surface.c (pycairo_read_func, pycairo_write_func):
rename to _read_func and _write_func
2005-09-22 Steve Chaplin <stevech1097 # yahoo.com.au>
* test/cairo_image_surface_create_for_data.py : rename to
test/for_data1.py:
* test/for_data2.py: add new test using Numeric
* test/for_data3.py: add new test using numarray
* test/Makefile.am (EXTRA_DIST): add/update filenames
2005-09-22 Steve Chaplin <stevech1097 # yahoo.com.au>
* test/cairo_image_surface_create_for_data.py : update
* cairo/pycairo-surface.c: (image_surface_create_for_data): new
wrapper.
(pycairo_write_func): add 'const' to 'unsigned char *data' to fix
compiler warning.
2005-09-11 Steve Chaplin <stevech1097 # yahoo.com.au>
* INSTALL: explain that cairo.gtk is not built if pygtk >= 2.7.0 is
detected.
2005-09-05 Steve Chaplin <stevech1097 # yahoo.com.au>
* README : note that libsvg-cairo, Numeric, and PyGTK are NOT required,
but are supported if detected.
2005-09-05 Steve Chaplin <stevech1097 # yahoo.com.au>
* NOTES :
* cairo/pycairo-context.c (pycairo_set_source_rgba): Let alpha be
a default argument, ctx.set_source_rgba (r, g, b, a=1.0)
2005-09-01 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: inrcease pycairo version to 1.0.1
=== Pycairo 1.0.0 ===
2005-08-30 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac:
* Makefile.am : fix errors introduced by previous commit
2005-08-30 Steve Chaplin <stevech1097 # yahoo.com.au>
* Makefile.am : update to follow (some of) the new cairo release
procedures
* README : increase cairo dependency to 1.0.0
* setup.py :
* configure.ac: increase pycairo version to 1.0.0
* NEWS: update for 1.0.0 release
* RELEASING: updated procedure
2005-08-29 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/gradient.py :
* examples/warpedtext.py:
* examples/cairo_snippets/snippets/gradient.py :
* examples/cairo_snippets/snippets/imagepattern.py:
update examples to use the updated Patterns
* NOTES : list new Pattern hierarchy
* cairo/cairomodule.c:
* cairo/pycairo-context.c :
* cairo/pycairo.h :
* cairo/pycairo-private.h:
* cairo/pycairo-pattern.c : rewrite as a hierarchy of Pattern types
2005-08-29 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/svg/svgview.py :
update to work with pygtk >= 2.7.0, create an SVG Widget
2005-08-29 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets_pdf.py :
* examples/cairo_snippets/snippets_ps.py: cleanup whitespace
* examples/cairo_snippets/snippets_gtk.py :
* examples/gtk/cairo-demo.py :
* examples/gtk/cairo-knockout.py :
* examples/gtk/hangman.py :
* examples/gtk/lsystem.py :
* examples/gtk/png_view.py :
* examples/gtk/text.py :
update to work with pygtk >= 2.7.0
2005-08-25 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: require cairo 1.0.0
* cairo/pycairo-surface.c (surface_write_to_png): update to accept
filename or file object
* NOTES : add note listing surface.write_to_png (file_object)
2005-08-22 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: require cairo 0.9.3
* cairo/cairomodule.c (pycairo_cairo_version_string):
(pycairo_cairo_version): new wrappers
* cairo/pycairo-surface.c (ps_surface_set_dpi): new wrapper
* NOTES: update to show the cairo_version() functions
2005-08-19 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c (init_cairo):
* cairo/cairosvgmodule.c:
* cairo/pycairo-context.c:
* cairo/pycairo-font.c:
* cairo/pycairo-matrix.c:
* cairo/pycairo-path.c:
* cairo/pycairo-pattern.c:
* cairo/pycairo-surface.c:
move &PyBaseObject_Type and &PycairoSurface_Type out of the _Type
structures and initialise the .tp_base field at runtime - fixes
problems reported by some compilers.
2005-08-18 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairosvgmodule.c:
* cairo/pycairo-context.c:
* cairo/pycairo-font.c:
* cairo/pycairo-matrix.c:
* cairo/pycairo-path.c:
* cairo/pycairo-pattern.c:
* cairo/pycairo-surface.c:
change PyObject_HEAD_INIT(&PyType_Type) to PyObject_HEAD_INIT(NULL)
to fix problems reported by some compilers
2005-08-12 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairogtkmodule.c (gdk_cairo_create): rename to
_gdk_cairo_create and remove the "#ifndef HAVE_GTK28" check
* configure.ac : delete HAVE_GTK28 check. If pygtk > 2.7 do not
compile cairo.gtk (use pygtk instead)
2005-08-12 Steve Chaplin <stevech1097 # yahoo.com.au>
* RELEASING: add new step #9 - post message to python-announce-list
2005-08-11 Steve Chaplin <stevech1097 # yahoo.com.au>
* NOTES: update the cairo.gtk note
=== Pycairo 0.9.0 ===
2005-08-10 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: increment pycairo and cairo to 0.9.0
* README : increment required cairo version to 0.9.0
* NEWS: update for 0.9.0 release
* setup.py : increment pycairo version to 0.9.0
2005-08-10 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairogtkmodule.c (surface_create_for_pixbuf): delete function
- its not much use since cairo's and gdk's image formats are different.
2005-08-09 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/gtk/cairo-demo.py :
* examples/gtk/cairo-knockout.py :
* examples/gtk/lsystem.py :
* examples/gtk/png_view.py :
* examples/gtk/text.py :
* examples/cairo_snippets/snippets_gtk.py :
enable double buffering
2005-08-09 Bertram Felgenhauer <int-e@gmx.de>
* cairo/cairogtkmodule.c (gdk_cairo_create): Query windows for
backbuffers to make double buffering work.
2005-08-09 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (pycairo_set_antialias)
(pycairo_get_antialias): new wrappers
* cairo/cairomodule.c (init_cairo): add the four cairo.ANTIALIAS_*
constants
* NOTES : list surface.mark_dirty (x=0, y=0, width=-1, height=-1)
showing default arguments
* cairo/pycairo-surface.c (surface_mark_dirty, surface_flush): new
wrappers
2005-08-08 Steve Chaplin <stevech1097 # yahoo.com.au>
* NEWS : change titles to "Overview of changes from pycairo x.x.x to
pycairo y.y.y" and remove my email address.
* cairo/pycairo-context.c (pycairo_get_font_face): update since
cairo_get_font_face no longer returns NULL on error.
2005-08-08 Steve Chaplin <stevech1097 # yahoo.com.au>
* README : Add link to pycairo home page
2005-08-02 Steve Chaplin <stevech1097 # yahoo.com.au>
* NEWS: updated for 0.6.0
=== Pycairo 0.6.0 ===
2005-08-01 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: increment pycairo and cairo to 0.6.0
* README : increment required cairo version to 0.6.0
* setup.py : increment pycairo version to 0.6.0
2005-08-01 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (pycairo_get_font_options)
(pycairo_set_font_options): new wrappers
(pycairo_get_target): use new error checking code
* cairo/pycairo-surface.c (image_surface_create_from_png):
improve error message for case when fopen() fails, fix a compiler
warning.
(surface_get_font_options): new wrapper
* cairo/cairomodule.c (Pycairo_Check_Status): map
CAIRO_STATUS_READ_ERROR and CAIRO_STATUS_WRITE_ERROR onto IOError
2005-08-01 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairogtkmodule.c (surface_create_for_pixbuf):
* cairo/pycairo-font.c:
* cairo/pycairo-surface.c:
update to use new font and surface error objects
2005-07-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* cairo/pycairo-surface.c (surface_finish): Do not use the
cairo_surface_finish() return value to check for error status,
instead use cairo_surface_status().
* cairo/pycairo-font.c (scaled_font_extents): Do not use the
cairo_scaled_font_extents() return value to check for error
status, instead use cairo_scaled_font_status().
* configure.ac: Really add test/Makefile to AC_CONFIG_FILES>
2005-07-25 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (image_surface_create_from_png): update to
accept a file object. (it requires a cairo version which fixes #3863)
* NOTES : Add note showing cairo.ImageSurface.create_from_png()
accepting a file object argument.
2005-07-24 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/gtk/cairo-knockout.py (draw): update create_similar() to
use cairo.CONTENT_ args
2005-07-24 Steve Chaplin <stevech1097 # yahoo.com.au>
Update so the tests get added to each snapshot
* configure.ac : add test/Makefile to AC_CONFIG_FILES
* Makefile.am (SUBDIRS): add test
* test/.cvsignore: add new file
* test/Makefile.am : add new file
2005-07-23 Steve Chaplin <stevech1097 # yahoo.com.au>
* NOTES :
* cairo/cairomodule.c:
* cairo/pycairo.h:
* cairo/pycairo-private.h:
* cairo/pycairo-font.c : add support for cairo_font_options_t
by creating cairo.FontOptions class (overwrites previous commit)
2005-07-22 Carl Worth <cworth@cworth.org>
* cairo/pycairo-font.c: (scaled_font_new): Add new
cairo_font_options argument now needed in call to
cairo_scaled_font_create.
2005-07-22 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairogtkmodule.c : update/delete a few comments
* configure.ac: optionally require GTK+ >= 2.2.0, PyGTK >= 2.2.0
since gdk_drawable_get_screen() is a GTK+ 2.2 function
* README : note that optional PyGTK support requires PyGTK >= 2.2.0
2005-07-21 Malcolm Tredinnick <malcolm@commsecure.com.au>
* cairo/cairogtkmodule.c: track recent changes in cairo
-- specifically, cairo_xlib_surface_create_for_bitmap -- in the
case where gtk-2.7/2.8 is not available.
2005-07-12 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (surface_create_similar): track cairo change
- change cairo_format_t to cairo_content_t
* cairo/cairomodule.c (init_cairo): add the constants
cairo.CONTENT_COLOR/ALPHA/COLOR_ALPHA
2005-07-01 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets_gtk.py :
update to use the 'shadow-type' property to draw a border round the
ScrolledWindows
2005-06-24 Steve Chaplin <stevech1097 # yahoo.com.au>
* Makefile.am (EXTRA_DIST): add setup.py
2005-06-23 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/Makefile.am: install __init__.py to
$prefix/lib64/site-packages/cairo on 64-bit systems. Fixes #3587
2005-06-22 Steve Chaplin <stevech1097 # yahoo.com.au>
* README : update to note new versions of cairo, libsvg-cairo
required
* RELEASING: note to increment version numbers in README
=== Pycairo 0.5.1 ===
2005-06-22 Steve Chaplin <stevech1097 # yahoo.com.au>
* RELEASING: add note about setup.py version
* setup.py : increment pycairo version
* configure.ac: increment pycairo version and required cairo version
to 0.5.1
* NOTES : add Win32Surface
2005-06-22 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/gtk/text.py :
* examples/gtk/cairo-demo.py : don't set window title (use the default)
* examples/gtk/hangman.py :
* examples/gtk/lsystem.py : change Cairo to cairo
* examples/cairo_snippets/snippets_pdf.py:
* examples/cairo_snippets/snippets_png.py:
* examples/cairo_snippets/snippets_ps.py:
use cairo.HAS_PDF_SURFACE, cairo.HAS_PNG_FUNCTIONS,
cairo.HAS_PS_SURFACE to check cairo supports the required surfaces.
2005-06-20 Steve Chaplin <stevech1097 # yahoo.com.au>
Fixes for compiler warnings:
* cairo/pycairo-surface.c (image_surface_create_for_array): cast
array->data to (unsigned char *)
* cairo/cairosvgmodule.c (pycairosvg_get_size): change int to unsigned
int width, height
2005-06-20 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets_gtk.py: move select_path() to below
append_column() to fix problem with initial path not being set.
2005-06-20 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-private.h: remove unnecessary
'extern PyObject *CairoError;'
2005-06-16 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: increase optional libsvg-cairo version from 0.1.5 to
0.1.6
2005-06-15 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets_ps.py:
* examples/cairo_snippets/snippets_pdf.py:
change width, height to width_in_points, height_in_points
2005-06-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (PycairoContext_FromContext, pycairo_new):
* cairo/cairogtkmodule.c (pygdk_cairo_create):
update to use cairo_t error objects
2005-06-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-pattern.c:
* cairo/pycairo-context.c (pycairo_get_source):
update to use cairo_pattern_t error objects
* cairo/pycairo-path.c (PycairoPath_FromPath):
* cairo/pycairo-context.c (pycairo_copy_path, pycairo_copy_path_flat):
update to use cairo_path_t error objects
2005-06-06 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo.h (PycairoContext_GET): add new macro. Fixes #3469
2005-06-02 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c (Pycairo_Check_Status): use
cairo_status_to_string to simplify this function
2005-06-01 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (PycairoSurface_FromSurface):
add type argument, like PycairoContext_FromContext
* cairo/cairomodule.c:
* cairo/cairogtkmodule.c:
* cairo/pycairo.h:
* cairo/pycairo-private.h:
update to new PycairoSurface_FromSurface API
* cairo/pycairo-surface.c :
Update to new PycairoSurface_FromSurface API.
Delete PycairoImageSurface_FromImageSurface,
PycairoPDFSurface_FromPDFSurface, PycairoPSSurface_FromPSSurface,
PycairoWin32Surface_FromWin32Surface which are replaced by the new
PycairoSurface_FromSurface
2005-06-01 Gustavo J. A. M. Carneiro <gjc@gnome.org>
* cairo/cairogtkmodule.c (pygdk_cairo_create): Update to new
PycairoContext_FromContext API.
* cairo/pycairo-private.h, cairo/pycairo.h, cairo/pycairo-context.c
(PycairoContext_FromContext): Add a third parameter that allows
instantiation of a subclass of cairo.Context.
2005-05-31 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c (init_cairo): correct CAIRO_HAS_PNG_SURFACE
to CAIRO_HAS_PNG_FUNCTIONS
2005-05-30 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c : add cairo features cairo.HAS_WIN32_SURFACE,
cairo.HAS_PS_SURFACE etc
* cairo/pycairo-private.h:
* cairo/pycairo.h:
add more PS/PDF/WIN32 preprocessor checks
2005-05-29 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/Makefile.am : change svg target to use LIBSVG_CAIRO (not CAIRO)
LIBS and CFLAGS
* configure.ac : only compile the cairo.gtk module if cairo-xlib is
enabled.
Change module configuration report from "true/false" to "yes/no"
* cairo/cairomodule.c (Pycairo_Check_Status): remove
CAIRO_STATUS_BAD_NESTING to track changes in cairo
* README : update to mention the pycairo product in bugzilla
2005-05-29 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c:
* cairo/pycairo.h:
* cairo/pycairo-private.h:
* cairo/pycairo-surface.c:
add Win32Surface, conditionally compile all PS/PDF code, contributed
by Niki Spahiev.
Change the C API struct back to (type, constructor) pairs to make
preprocessor macros simpler.
2005-05-27 Gustavo J. A. M. Carneiro <gjc@gnome.org>
* cairo/cairogtkmodule.c (gdk_cairo_create): Don't define
gdk_cairo_create if compiling against gtk+ 2.8 API.
* configure.ac : Define HAVE_GTK28 if gtk+ > 2.7 is found.
2005-05-26 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/Makefile.am (AM_CPPFLAGS): Delete AM_CPPFLAGS (it uses
unnecessary GTK flags to compile the cairo module) and use module
specific _CPPFLAGS instead
2005-05-25 Steve Chaplin <stevech1097 # yahoo.com.au>
* setup.py: new file, contributed by Niki Spahiev
2005-05-25 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c: update method table to hold the correct
values for cairo_mask, cairo_mask_surface and cairo_stroke_preserve
2005-05-24 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo.h : fix mismatch with Check_Status (reported by Owen
Taylor).
Add Path and PSSurface C API functions and macros.
=== Pycairo 0.5.0 ===
2005-05-20 Steve Chaplin <stevech1097 # yahoo.com.au>
Pycairo 0.5.0 release changes:
* README : update required cairo version
* configure.ac: increase cairo_required_version
* RELEASING: update
* NEWS: update to describe new version
* examples/svg/svgview.py : update exception handling
* examples/cairo_snippets/snippets/libsvg.py:
* examples/cairo_snippets/snippets/__init__.py (snippet_set_bg_svg):
update svg_cr.size to svg_cr.get_size()
2005-05-20 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/svg/svg2png.py:
* examples/svg/svgview.py :
update to new API
* cairo/cairomodule.c (init_cairo):
* cairo/pycairo.h :
rename cairo.pycairo_CAPI to cairo.CAPI
* cairo/cairosvgmodule.c : add cairo.svg.Error exception.
change .size attribute to .get_size() method
* examples/Makefile.am (EXTRA_DIST): list new examples
* configure.ac: increase version to 0.5.0
* cairo/pycairo-font.c (scaled_font_extents): change from an attribute
to a method to be consistent to C API
* cairo/pycairo-matrix.c : tidy up
* cairo/pycairo-pattern.c :
(pattern_add_color_stop_rgb): fix error with number of arguments
* examples/cairo_snippets/snippets_ps.py: new file
* examples/cairo_snippets/snippets_gtk.py : update to new API
* cairo/cairomodule.c:
* cairo/pycairo.h:
* cairo/pycairo-private.h:
* cairo/pycairo-surface.c:
Restore support for PSSurface
* cairo/pycairo-font.c :
* cairo/pycairo-surface.c: move object construction from __init__
to __new__.
* NOTES: update
2005-05-19 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairogtkmodule.c (_gdk_cairo_create): update for new
xlib_surface API
* examples/gtk/png_view.py :
* examples/gtk/cairo-knockout.py :
* examples/cairo_snippets/snippets/clip_image.py :
* examples/cairo_snippets/snippets/image.py:
* examples/cairo_snippets/snippets/imagepattern.py:
update to new API
* cairo/pycairo-private.h:
* cairo/cairomodule.c:
add cairo.Error - a module specific Exception
* cairo/pycairo-surface.c:
* cairo/pycairo-context.c:
Change implementation for functions listed below from attributes to
methods in order to correspond directly with the C API.
cairo_fill_extents, cairo_font_extents, cairo_get_current_point,
cairo_stroke_extents, cairo_get_target.
cairo_image_surface_get_width, cairo_image_surface_get_height
* cairo/pycairo-context.c: move __init__ code into __new__
* cairo/pycairo-surface.c:
* cairo/pycairo-private.h:
* cairo/pycairo-pattern.c:
* cairo/pycairo-matrix.c:
* cairo/pycairo.h:
* cairo/pycairo-font.c:
* cairo/cairomodule.c:
* cairo/pycairo-context.c:
rename Pycairo_check_status to Pycairo_Check_Status (as suggested
by PEP-7 Style Guide)
* examples/context-subclass.py:
* examples/Makefile.am:
delete context-subclass.py since there are problems subclassing
cairo types (see cairo docs Appendix A)
2005-05-18 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets_pdf.py (do_snippet): update
* cairo/pycairo-font.c (PycairoScaledFont_FromScaledFont): add
destroy call if object creation fails
(scaled_font_new): move __init__ code into __new__, delete __init__
(font_face_init): new function that warns FontFace cannot be
instantiated
2005-05-17 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/Makefile.am :
* cairo/pycairo-misc.h:
* cairo/pycairo-private.h:
* cairo/pycairosvg-private.h:
move contents of pycairo-misc.h into pycairo-private.h and
pycairosvg-private.h, delete pycairo-misc.h
* cairo/pycairo-surface.c:
* cairo/pycairo.h:
* cairo/pycairo-font.c:
* cairo/pycairo-context.c:
* cairo/cairosvgmodule.c:
* cairo/cairogtkmodule.c:
reformat code to be a max of 80 columns wide
* cairo/pycairo-surface.c (pdf_surface_init): update for
cairo_pdf_surface_create() taking a filename not a file object.
(pdf_surface_set_dpi): new wrapper
* examples/cairo_snippets/snippets_pdf.py : update to new API
2005-05-17 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairogtkmodule.c (gdk_cairo_create, surface_create_for_pixbuf):
* cairo/pycairo-context.c (PycairoContext_FromContext):
* cairo/pycairo-font.c (PycairoFontFace_FromFontFace):
* cairo/pycairo-matrix.c (PycairoMatrix_FromMatrix):
* cairo/pycairo-path.c (PycairoPath_FromPath):
* cairo/pycairo-pattern.c (PycairoPattern_FromPattern):
* cairo/pycairo-surface.c (PycairoSurface_FromSurface):
Change Pycairo<Object>_From<Object> functions so they unref arg1
if Python object creation fails
2005-05-16 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/Makefile.am (_cairo_la_SOURCES):
add pycairosvg.h and pycairosvg-private.h
* configure.ac : use [...] for AC_CONFIG_FILES
* autogen.sh : change PyCairo to Pycairo
* cairo/cairogtkmodule.c: update to use new cairo-xlib functions
* examples/gtk/cairo-demo.py (expose):
* examples/gtk/cairo-knockout.py (expose):
* examples/gtk/hangman.py (expose_event):
* examples/gtk/lsystem.py (lindenmayer.expose):
* examples/gtk/png_view.py (expose_event):
* examples/gtk/text.py (expose_event):
update to use cairo.gtk.gdk_cairo_create()
* examples/cairo_snippets/snippets/curve_rectangle.py:
* examples/cairo_snippets/snippets/fill_and_stroke.py:
* examples/cairo_snippets/snippets/fill_and_stroke2.py:
* examples/cairo_snippets/snippets/text.py:
update to use fill_preserve()
* examples/cairo_snippets/snippets/clip_image.py:
* examples/cairo_snippets/snippets/image.py:
* examples/cairo_snippets/snippets/imagepattern.py:
new snippets
* examples/cairo_snippets/snippets/clip.py: remove new_path()
since clip() no longer consumes the path
* examples/cairo_snippets/snippets_gtk.py (Window.put_in_frame):
set focus to snippet list
* examples/cairo_snippets/snippets_pdf.py:
* cairo/pycairo-surface.c (pdf_surface_init):
update for new cairo_pdf_surface_create definition
* cairo/cairosvgmodule.c (_status_error):
rename to Pycairosvg_check_status
2005-05-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c:
* cairo/pycairo-font.c:
* cairo/pycairo-matrix.c:
* cairo/pycairo-pattern.c:
* cairo/pycairo-surface.c:
#include Python.h, as first include
* cairo/cairogtkmodule.c: give error if cairo-xlib.h not found
2005-05-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairosvg-private.h:
* cairo/pycairo-private.h:
* cairo/pycairo-misc.h:
* cairo/pycairo.h:
ensure Python.h is always the first include
* examples/cairo_snippets/snippets/operator_atop_reverse.py:
* examples/cairo_snippets/snippets/operator_in_reverse.py:
* examples/cairo_snippets/snippets/operator_out_reverse.py:
* examples/cairo_snippets/snippets/operator_over_reverse.py:
change operator names to match recent cairo changes
* cairo/Makefile.am (svg_la_SOURCES): remove pycairosvg-context.c
* cairo/pycairosvg-context.c: move contents into cairosvgmodule.c
and delete file
* cairo/pycairosvg.h: new file
* cairo/cairosvgmodule.c:
* examples/svg/svgview.py:
* examples/svg/svg2png.py: update to new API
* cairo/pycairo-path.c: retabify type struct
* cairo/pycairo-context.c: add comments for cairo_status() and
cairo_status_string()
2005-05-12 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c:
* cairo/pycairo-surface.c:
* cairo/pycairo-pattern.c:
* cairo/pycairo-matrix.c:
* cairo/pycairo-font.c:
Tidy up the getset and method structures.
Change attribute access for read/write attributes from
.<attr>/set_<attr>() to get_<attr>()/set_<attr>()
* examples/warpedtext.py:
update to new API
2005-05-11 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/gtk/cairo-knockout.py : update to new API
* cairo/pycairo-context.c (pycairo_get_font_matrix): update to match
new prototype
2005-05-10 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c:
* cairo/pycairo.h:
* cairo/pycairo-font.c:
* cairo/pycairo-private.h:
add new type PycairoScaledFont
* cairo/pycairo-path.c: delete PyPath_Check macro and use
PyObject_TypeCheck instead
* cairo/pycairo-context.c (pycairo_set_font_face):
allow None as set_font_face arg
* cairo/pycairo-matrix.c: add comment describing matrix constructors
which are not needed in a Python binding
(matrix_init_rotate): new wrapper
2005-05-10 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c:
* cairo/pycairo-private.h:
* cairo/pycairo-pattern.c:
* cairo/pycairo.h:
* cairo/pycairo-context.c:
* cairo/cairomodule.c:
rename pycairo_check_status to Pycairo_check_status - public functions
should start with 'Py'
* configure.ac : change the deprecated '-std=c9x' flag to '-std=c99'
* cairo/pycairo.h:
* cairo/pycairo-private.h:
* cairo/cairomodule.c:
add PycairoImageSurface_Type support
* cairo/cairogtkmodule.c (surface_create_for_pixbuf):
change call to PycairoSurface_FromSurface()
to PycairoImageSurface_FromImageSurface()
* cairo/cairomodule.c (init_cairo): do not add the Path object
since its not accessed directly
* cairo/pycairo-path.c: add PyCairoPath.__str__ method
* cairo/pycairo-context.c (pycairo_append_path)
(pycairo_copy_path_flat): new wrappers
2005-05-09 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/warpedtext.py : updated to use copy_path()
* cairo/pycairo-path.c : new file to implement PyCairoPath
* cairo/Makefile.am:
* cairo/cairomodule.c:
* cairo/pycairo-private.h:
* cairo/pycairo.h: add support for PycairoPath
* cairo/pycairo-context.c (pycairo_copy_path): new wrapper
* AUTHORS:
* NEWS:
* pycairo.pc.in :
* cairo/cairogtkmodule.c:
* cairo/cairomodule.c:
* cairo/cairosvgmodule.c:
* cairo/pycairo-context.c:
* cairo/pycairo-font.c:
* cairo/pycairo.h:
* cairo/pycairo-matrix.c:
* cairo/pycairo-misc.h:
* cairo/pycairo-pattern.c:
* cairo/pycairo-private.h:
* cairo/pycairo-surface.c:
* cairo/pycairosvg-context.c:
* cairo/pycairosvg-private.h:
rename Cairo to cairo, and PyCairo to Pycairo
move Contributors from *.c into AUTHORS
* cairo/cairogtkmodule.c (_gdk_drawable_create_cairo_context):
simplify
* examples/gtk/cairo-knockout.py:
started updating to new API
* NOTES: update to match current Pycairo features
2005-05-09 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-private.h:
* cairo/pycairo.h:
add 'base' field to PyCairoContext
add 'base' arg to PyCairoContext_FromContext
* cairo/cairomodule.c: remove cairo_functions (it was empty)
(init_cairo): add CAIRO_PATH_* constants
* cairo/cairogtkmodule.c (initgtk): check mod return value
Delete:
surface_create_for_drawable
surface_create_for_pixmap
surface_create_for_pixmap_with_visual
surface_create_for_window_with_visual
Add
_gdk_drawable_create_cairo_context
create_cairo_context
* cairo/pycairo-pattern.c:
* cairo/pycairo-matrix.c: disable subclassing, due to problem mentioned
in the 'Memory Management' section of Appendix A.
* cairo/pycairo-context.c (pycairo_get_target): new wrapper
(pycairo_get_rgb_color): remove
* cairo/pycairo-context.c:
* cairo/pycairo-surface.c:
* cairo/pycairo-pattern.c:
* cairo/pycairo-font.c:
add comments about destroy/reference methods not being wrapped
* configure.ac : change message to report 'build Numeric support'
and not 'build cairo.numpy'
* examples/cairo_snippets/snippets_png.py:
* examples/cairo_snippets/snippets_pdf.py:
update to new cairo API
* examples/gtk/cairo-demo.py (expose):
* examples/gtk/cairo-knockout.py (expose):
* examples/gtk/hangman.py (expose_event):
* examples/gtk/lsystem.py (lindenmayer.expose):
* examples/gtk/png_view.py (expose_event):
* examples/gtk/text.py (expose_event):
* examples/cairo_snippets/snippets_gtk.py :
update to new cairo API
update to use cairo.gtk.create_cairo_context()
2005-05-07 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/context-subclass.py :
* examples/gradient.py :
* examples/hering.py :
* examples/spiral.py :
* examples/warpedtext.py :
update to use new API (warpedtext needs a replacement for get_path)
* cairo/pycairo-context.c:
* cairo/pycairo-surface.c:
Eliminate deprecated functions
cairo_copy
cairo_get_path
cairo_get_path_flat
cairo_surface_set_repeat
cairo_surface_set_matrix
cairo_surface_get_matrix
cairo_surface_set_filter
cairo_surface_get_filter
* cairo/cairomodule.c (init_cairo): update OPERATOR_* to match cairo
changes
Port to use new cairo_create interface.
* cairo/pycairo-context.c (pycairo_init): update cairo_create() to
take a cairo_surface_t
* cairo/cairogtkmodule.c (set_target_drawable):
delete
* cairo/pycairo-context.c (pycairo_set_target_pdf):
(pycairo_set_target_surface, pycairo_get_target_surface):
delete
* cairo/pycairo-context.c (pycairo_paint_with_alpha): new wrapper
2005-05-06 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairosvg-context.c:
* cairo/pycairo-surface.c:
* cairo/pycairo-pattern.c:
* cairo/pycairo-matrix.c:
* cairo/pycairo-font.c:
* cairo/pycairo-context.c:
* cairo/cairogtkmodule.c:
remove 'include "pycairo-misc.h"'
* cairo/pycairo-private.h:
* cairo/pycairosvg-private.h:
include "pycairo-misc.h"
* cairo/cairomodule.c (init_cairo): Py_INCREF each type
* cairo/cairogtkmodule.c:
* cairo/cairosvgmodule.c:
remove init_pycairo() and add PyCairo_IMPORT
* cairo/pycairo.h
renamed _PyCairo_FunctionStruct function names to match the real names.
Use C API export method copied from the datetime module (new in Python
2.3)
2005-05-06 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (pycairo_get_target_surface):
* cairo/pycairo-surface.c (surface_create_similar):
add comment about use of PyCairoSurface_FromSurface()
* README : spell cairo with lowercase c; add note about bugzilla
2005-05-05 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets_png.py (snippet_do_png):
small update - add 'else' to try-except clause
* examples/gtk/png_view.py (expose_event): update to new API
2005-05-04 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (pycairo_show_surface): remove
(pycairo_set_target_ps): remove
(pycairo_set_source_surface): new wrapper
* cairo/pycairo-matrix.c (PyCairoMatrix_FromMatrix): simplify
2005-05-03 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (pycairo_mask, pycairo_mask_surface):
new wrappers
* cairo/cairomodule.c (pycairo_check_status): add
CAIRO_STATUS_BAD_NESTING
2005-05-02 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c (pycairo_check_status): add
CAIRO_STATUS_READ_ERROR and CAIRO_STATUS_SURFACE_TYPE_MISMATCH
* examples/gtk/cairo-knockout.py :
* test/cairo_image_surface_create_for_array.py :
update to use new API
* test/test.test: use os.path.join
* pycairo.pc.in : new file
* configure.ac :
* Makefile.am :
add support for the pkgconfig file pycairo.pc
* cairo/Makefile.am :
add support for installing pycairo.h
* examples/spiral.py : change from generating PS to PNG
* cairo/pycairo.h:
* cairo/cairomodule.c (pycairo_ps_surface_create): remove support for
PS backend - the C API is currently broken
2005-04-29 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/svg/svg2png.py:
* examples/svg/svgview.py : update to use new API
* test/test.test: update to check exit value of each script
2005-04-29 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets_pdf.py:
change scale factor from 96 to 72
* cairo/pycairo-context.c (pycairo_set_font_size):
change 'scale' to 'size'
2005-04-28 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/gtk/png_view.py : update to new png API
* cairo/pycairo-surface.c (image_surface_create_from_png): fix
incorrect PyArg_ParseTuple argument
* cairo/pycairo-context.c: add missing fill_preserve and clip_preserve
items to the methods array.
2005-04-27 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo.h :
* cairo/pycairo-private.h:
* cairo/pycairo-surface.c :
Add definitions for PyCairoPDFSurface
* cairo/cairomodule.c (pycairo_pdf_surface_create): delete - it has
beed replaced by PDFSurface (a surface type with its own constructor)
* examples/cairo_snippets/snippets_png.py: updated
* examples/cairo_snippets/snippets_pdf.py: new file
* cairo/pycairo-context.c (pycairo_stroke_preserve)
(pycairo_fill_preserve, pycairo_clip_preserve):
new wrappers
2005-04-27 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (surface_write_png):
rename to surface_write_to_png
(image_surface_get_height, (image_surface_get_width): new wrappers
* examples/context-subclass.py :
* examples/gradient.py :
* examples/hering.py :
* examples/warpedtext.py :
* examples/cairo_snippets/snippets_png.py :
update to use new png API
2005-04-25 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo.h: remove cairo-png.h include.
Add 'ifdef CAIRO_HAS_PDF_SURFACE / CAIRO_HAS_PS_SURFACE' around their
respective header file includes
* cairo/pycairo-surface.c (image_surface_create_for_png): rename to
image_surface_create_from_png to track cairo change
(surface_write_png): change arg from file object to filename
(image_surface_create_from_png): change args from fileobject, width,
height to filename
2005-04-20 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets: finish updating snippets to use the
new API
2005-04-20 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (pycairo_paint): new wrapper
2005-04-18 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-matrix.c: add matrix_get_* functions to access
cairo_matrix_t data
* cairo/pycairo-context.c (pycairo_get_matrix): restore old
function
(pycairo_get_font_matrix): new wrapper
2005-04-15 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets/curve_rectangle.py:
* examples/cairo_snippets/snippets/curve_to.py:
* examples/cairo_snippets/snippets/fill_and_stroke.py:
* examples/cairo_snippets/snippets/fill_and_stroke2.py:
* examples/cairo_snippets/snippets/gradient.py:
* examples/cairo_snippets/snippets/set_line_cap.py:
* examples/cairo_snippets/snippets/text.py:
* examples/cairo_snippets/snippets/text_align_center.py:
* examples/cairo_snippets/snippets/text_extents.py:
updated to new API
2005-04-15 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c: rename, add, delete functions to follow
recent cairo changes:
pycairo_set_pattern -> pycairo_set_source
pycairo_get_pattern -> pycairo_get_source
pycairo_set_rgb_color -> pycairo_set_source_rgb
pycairo_set_source_rgba
pycairo_set_alpha ->
pycairo_get_alpha ->
* cairo/pycairo-pattern.c: rename
pycairo_pattern_add_color_stop -> pycairo_pattern_add_color_stop_rgba
and add:
pycairo_pattern_add_color_stop_rgb
* examples/context-subclass.py:
* examples/gradient.py:
* examples/hering.py:
* examples/spiral.py:
* examples/warpedtext.py:
* examples/cairo_snippets/snippets_gtk.py:
* examples/cairo_snippets/snippets/arc.py:
* examples/cairo_snippets/snippets/arc_negative.py:
* examples/cairo_snippets/snippets/clip.py:
* examples/gtk/cairo-demo.py:
* examples/gtk/hangman.py:
* examples/gtk/lsystem.py:
* examples/gtk/text.py:
update to work with the above changes
2005-04-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (image_surface_create_for_array): new
constructor, to replace caironumpymodule.c
* cairo/caironumpymodule.c (surface_create_for_array): delete file
- its functionality is replaced by change above
* cairo/Makefile.am: delete HAVE_NUMPY section
2005-04-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* NOTES: added note about new ImageSurface
* cairo/cairomodule.c:
* cairo/pycairo.h:
* cairo/pycairo-private.h:
* cairo/pycairo-surface.c:
add new class - ImageSurface
* examples/context-subclass.py:
* examples/gradient.py:
* examples/hering.py:
* examples/warpedtext.py:
* examples/gtk/png_view.py:
* examples/cairo_snippets/snippets_png.py:
update to use ImageSurface instead of Surface
2005-04-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c:
* cairo/pycairo-context.c:
* cairo/pycairo-font.c:
* cairo/pycairo.h:
* cairo/pycairo-private.h:
rename pycairo_font_wrap to PyCairoFontFace_FromFontFace,
rename PyCairoFont_Type to PyCairoFontface_Type
2005-04-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c:
* cairo/pycairo.h:
* cairo/pycairo-private.h:
* cairo/pycairo-context.c :
rename pycairo_context_wrap to PyCairoContext_FromContext
* cairo/pycairo-surface.c (surface_finish): remove comment about
cairo_surface_finish() bug which has now been fixed
2005-04-13 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c:
* cairo/pycairo-context.c:
* cairo/pycairo-pattern.c:
* cairo/pycairo.h:
* cairo/pycairo-private.h:
rename pycairo_pattern_wrap to PyCairoPattern_FromPattern
2005-04-13 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (surface_create_for_data): disable, since
a reference to the buffer needs to be added
* cairo/cairogtkmodule.c:
* cairo/cairomodule.c :
* cairo/caironumpymodule.c :
* cairo/pycairo-context.c :
* cairo/pycairo.h :
* cairo/pycairo-private.h :
* cairo/pycairo-surface.c :
rename pycairo_surface_wrap to PyCairoSurface_FromSurface
* cairo/pycairo-private.h (PyCairoMatrix_FromMatrix):
change cairo_matrix_t *matrix to const cairo_matrix_t *matrix
* cairo/pycairo-matrix.c (PyCairoMatrix_FromMatrix):
simplify method of copying struct data,
change cairo_matrix_t *matrix to const cairo_matrix_t *matrix
2005-04-12 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c:
* cairo/pycairo.h:
* cairo/pycairo-matrix.c :
* cairo/pycairo-private.h:
* cairo/pycairo-surface.c :
rename pycairo_matrix_wrap to PyCairoMatrix_FromMatrix
* cairo/pycairo-matrix.c :
PyCairoMatrix *self; -> PyCairoMatrix *m;
drop 'pycairo_' prefix from all static function names.
PyCairoMatrix_Type remove casts for 0 values
* cairo/pycairo-surface.c :
PyCairoSurface *self; -> PyCairoSurface *s;
2005-04-12 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c:
drop 'pycairo_' prefix from all static function names.
PyCairoSurface_Type remove casts for 0 values
* examples/cairo_snippets/snippets/text.py:
* examples/cairo_snippets/snippets/text_align_center.py:
* examples/cairo_snippets/snippets/text_extents.py:
use select_font_face() and set_font_size()
2005-04-10 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-pattern.c (pycairo_pattern_get_matrix): remove
cairo_matrix_create
* cairo/pycairo-surface.c (pycairo_surface_wrap): add 'base' arg,
remove cairo_surface_destroy(surface) - the calling function must
handle reference counts
(pycairo_surface_dealloc): add Py_CLEAR(self->base)
* cairo/pycairo-private.h: add second arg to pycairo_surface_wrap
* cairo/pycairo.h: add second arg to pycairo_surface_wrap, add 'base'
field to PyCairoSurface
* cairo/pycairo-context.c (pycairo_get_target_surface):
* cairo/pycairo-surface.c (pycairo_surface_create_similar):
* cairo/cairomodule.c (pycairo_pdf_surface_create):
(pycairo_ps_surface_create):
* cairo/cairogtkmodule.c (surface_create_for_drawable)
(surface_create_for_pixbuf, surface_create_for_pixmap)
(surface_create_for_pixmap_with_visual)
(surface_create_for_window_with_visual):
* cairo/caironumpymodule.c (surface_create_for_array):
update to use new pycairo_surface_wrap
* cairo/cairomodule.c (pycairo_png_surface_create): delete
* cairo/pycairo-surface.c (pycairo_surface_finish): new wrapper
2005-04-09 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-font.c (pycairo_font_extents): delete - its no longer
a cairo_font_t method, its a a cairo_t method, and is already in
pycairo-context.c
2005-04-09 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-pattern.c (pycairo_pattern_set_matrix):
change matrix->matrix to &matrix->matrix
2005-04-09 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/gtk/hangman.py : change scale_font to set_font_size
* examples/gtk/text.py : change scale_font to set_font_size, change
change select_font to select_font_face
2005-04-09 Steve Chaplin <stevech1097 # yahoo.com.au>
* test/test.py : add python 2.4 check
2005-04-08 Dave Beckett <Dave.Beckett@bristol.ac.uk>
* configure.ac: Remove 'dnl' in middle of PKG_CHECK_MODULES call
which causes configure-time errors.
2005-04-08 Steve Chaplin <stevech1097 # yahoo.com.au>
* NOTES: remove notes on the old matrix implementation
* cairo/pycairo.h: PyCairoMatrix: change cairo_matrix_t *matrix to
cairo_matrix_t matrix
* cairo/pycairo-context.c (pycairo_transform, pycairo_set_matrix)
(pycairo_set_font_matrix, pycairo_identity_matrix):
update matrix references to match change in pycairo.h
* cairo/pycairo-matrix.c (pycairo_matrix_repr):
(pycairo_matrix_richcmp): remove cairo_matrix_get_affine
(pycairo_matrix_multiply): remove cairo_matrix_create
(pycairo_matrix_invert):
(pycairo_matrix_rotate):
(pycairo_matrix_scale):
(pycairo_matrix_translate):
remove cairo_matrix_create and return Py_NONE, not a matrix
* cairo/pycairo-surface.c (pycairo_surface_get_matrix):
remove cairo_matrix_create
(pycairo_surface_set_matrix): updated matrix reference
2005-04-08 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/warpedtext.py : change select_font to select_font_face,
change scale_font to set_font_size
* cairo/pycairo-private.h:
* cairo/pycairo.h: change cairo_font_t to cairo_font_face_t
* cairo/pycairo-context.c (pycairo_set_font): rename to
pycairo_set_font_face
(pycairo_get_font): rename to pycairo_get_font_face
(pycairo_get_font_extents): rename to pycairo_font_extents,
remove matrix arg
(pycairo_select_font): rename to pycairo_select_font_face
(pycairo_scale_font): rename to pycairo_set_font_size
(pycairo_transform_font): rename to pycairo_set_font_matrix
(pycairo_get_matrix): removed
* cairo/pycairo-font.c (pycairo_font_wrap): change arg from
cairo_font_t to cairo_font_face_t
* cairo/pycairo-matrix.c : add comments to note deprecated functions
(pycairo_matrix_init): replace cairo_matrix_set_affine() with
cairo_matrix_init()
2005-04-07 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/warpedtext.py : call select_font() to fix problem where
text_extents width==0
* examples/cairo_snippets/snippets_png.py:
add silent mode for testing
* examples/cairo_snippets/snippets_gtk.py: add horizontal scrollbar
to gtkTextView (if required)
* test/test.test: add test to run png snippets
* cairo/pycairo-context.c (pycairo_text_extents)
(pycairo_show_text, pycairo_text_path):
change unsigned char* to char* to match cairo changes
2005-04-07 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets_gtk.py : fix problem with M_PI
2005-04-06 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo_snippets/snippets_png.py
* examples/cairo_snippets/snippets_gtk.py : new examples
* examples/cairo_snippets/c_to_python.py : change '.cairo' C snippets
to python
* examples/cairo_snippets/snippets/* : python snippets
* examples/cairo_snippets/data/* : snippet data
* cairo/pycairo-surface.c (pycairo_surface_create_for_data):
add cast to unsigned char *
* cairo/pycairo-context.c (pycairo_default_matrix): delete
2005-04-05 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (pycairo_surface_create_for_png): new
constructor
* examples/gtk/png_view.py : new example
2005-04-05 Steve Chaplin <stevech1097 # yahoo.com.au>
* test/cairo_image_create_for_data.py : new test
2005-04-04 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-pattern.c (pycairo_pattern_create_for_surface)
(pycairo_pattern_create_linear, pycairo_pattern_create_radial):
update to handle case when ParseTuple fails
* cairo/cairomodule.c (pycairo_image_surface_create_for_data):
remove module function, replace with ...
* cairo/pycairo-surface.c (pycairo_surface_create_for_data):
add new alternative constructor
2005-04-04 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac : require Python 2.3 so we can use METH_CLASS for
classmethods
* README : note Python 2.3 is required
* cairo/pycairo-pattern.c (pycairo_pattern_create_for_surface)
(pycairo_pattern_create_linear, pycairo_pattern_create_radial):
new alternative constructors
(pycairo_pattern_new, pycairo_pattern_init): delete old constructor
* examples/gradient.py
* examples/warpedtext.py
* examples/gtk/cairo-knockout.py : update to use new pattern
constructors
2005-03-30 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (pycairo_surface_write_png): new wrapper
* cairo/pycairo-context.c (pycairo_set_target_png): remove
* examples/context-subclass.py
* examples/gradient.py
* examples/hering.py
* examples/warpedtext.py: update to use surface.write_png()
2005-03-25 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairosvg-context.c: add comments for missing functions
2005-03-22 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c: Rename functions:
cairo_concat_matrix -> cairo_transform
cairo_transform_point -> cairo_user_to_device
cairo_transform_distance -> cairo_user_to_device_distance
cairo_inverse_transform_point -> cairo_device_to_user
cairo_inverse_transform_distance-> cairo_device_to_user_distance
cairo_init_clip -> cairo_reset_clip
2005-03-20 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/svg/svgview.py: allow filename to be passed as an argument
to the program.
2005-03-20 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c (pycairo_surface_init): add Surface.__init__
to wrap cairo_image_surface_create()
* examples/svg/svgview.py: scale svg image to fit the window size
2005-03-19 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/gtk/cairo-knockout.py, examples/gtk/cairo-demo.py,
* examples/gtk/lsystem.py, examples/gtk/text.py:
fixed expose_event problem by disabling double buffering - gdk
double-buffering is enabled by default but does not do what you
want when doing non-gdk (cairo) drawing.
* examples/gtk/hangman.py: write to a pixmap first (double-buffered)
to avoid window flicker when resizing.
2005-03-19 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-font.c (pycairo_font_extents): fix error
where matrix should have been py_matrix->matrix
* cairo/cairomodule.c (pycairo_check_status): add
CAIRO_STATUS_INVALID_PATH_DATA,
CAIRO_STATUS_WRITE_ERROR,
CAIRO_STATUS_SURFACE_FINISHED
* cairo/cairogtkmodule.c (surface_create_for_pixmap),
(surface_create_for_pixmap_with_visual),
(surface_create_for_window_with_visual): call
cairo_xlib_surface_set_size() for maximum efficiency
2005-03-18 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac (CFLAGS): use -fno-strict-aliasing with gcc, if
available
2005-03-18 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c (pycairo_pdf_surface_create),
* cairo/pycairo-context.c (pycairo_set_target_pdf): temporary disable -
prototype has changed.
* cairo/cairogtkmodule.c (set_target_drawable): replace
cairo_translate() with cairo_surface_set_device_offset()
* cairo/pycairo-surface.c (pycairo_surface_set_device_offset): new
wrapper
2005-03-18 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairogtkmodule.c (surface_create_for_pixmap): auto determine
cairo format from pixmap depth
* cairo/pycairo-context.c (pycairo_get_pattern): don't check for
pattern == NULL, since cairo_t always has a source pattern
(pycairo_get_path): correct the function name string
2005-03-16 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairogtkmodule.c (surface_create_for_pixmap),
(surface_create_for_pixmap_with_visual),
(surface_create_for_window_with_visual): new wrappers
2005-03-15 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-surface.c: add comment for missing functions
2005-03-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c: change cairo_current_* to
cairo_get_*
* examples/warpedtext.py (PathWarp.warpPath): change
current_path to get_path
2005-03-12 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairogtkmodule.c (surface_create_for_pixbuf): rename
cairo_surface_create_for_image() to
cairo_image_surface_create_for_data()
* test/test.py, test/test.test: new files
2005-03-12 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c: remove 'surface_create_for_image' (it was
an alias to cairo_image_surface_create_for_data)
* cairo/caironumpymodule.c (surface_create_for_array): rename
cairo_surface_create_for_image() to
cairo_image_surface_create_for_data()
* cairo/cairosvgmodule.c (initsvg): rename svg_methods to
svg_functions
=== Pycairo 0.4.0 ===
2005-03-10 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: require cairo >= 0.4.0
increase pycairo version to 0.4.0
* README: note cairo >= 0.4.0 is required
2005-03-10 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c (pycairo_check_status): add
CAIRO_STATUS_INVALID_STRING
* cairo/pycairo-context.c (pycairo_current_font): if !font display
error message
* cairo/pycairo-font.c (pycairo_font_set_transform)
(pycairo_font_current_transform): remove the (already commented out)
functions.
(cairo_font_extents): new wrapper
2005-03-08 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/gtk/hangman.py: new example moved over from
cairo-demo/python/, updated to remove DeprecationWarnings.
* examples/Makefile.am (EXTRA_DIST): add hangman.py
2005-03-02 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo.h: include cairo-pdf.h
2005-03-02 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo.h:
* cairo/cairogtkmodule.c: move '#include <cairo-xlib.h>' from pycairo.h
to cairogtkmodule.c - the only place where its needed. Remove the
'#ifdef CAIRO_HAS_XLIB_SURFACE' since its already in cairo-xlib.h
2005-03-02 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: increase libsvg_cairo_required_version to 0.1.5
* examples/Makefile.am (EXTRA_DIST): change paths so that svg examples
are now in examples/svg/
2005-02-16 Carl Worth <cworth@cworth.org>
* cairo/pycairo.h: Wrap include of cairo-xlib.h in
CAIRO_HAS_XLIB_SURFACE.
* autogen.sh: Call all autotool commands through environment
variables. Thanks to Rui Lopes.
2005-02-16 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: add examples/Makefile to AC_CONFIG_FILES (omitted from
last commit)
* examples: move gtk examples (cairo-demo.py, cairo-knockout.py,
lsystem.py, text.py) to their own subdirectory examples/gtk
* examples/Makefile.am (EXTRA_DIST): update paths to gtk examples
2005-02-05 Steve Chaplin <stevech1097 # yahoo.com.au>
* INSTALL: new file
* README: move install notes to INSTALL; add reference to the mailing
list
* Makefile.am (SUBDIRS): add examples
* examples/Makefile.am: new file with EXTRA_DIST listing examples/*.py
* configure.ac: add examples/Makefile to AC_CONFIG_FILES
2005-01-26 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: require Cairo 0.3.0
* README: mention cairo 0.3.0 is required
* cairo/pycairo-font.c (pycairo_font_set_transform):
(pycairo_font_current_transform): comment out - they give compile
warnings and it looks like the cairo functions are no longer available.
2005-01-20 Carl Worth <cworth@cworth.org>
* cairo/pycairo.h: Track split-up of cairo.h.
2005-01-12 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: Increment pycairo version to 0.1.4
* Makefile.am (EXTRA_DIST): add examples/svg2png.py and
examples/svgview.py
* NEWS: add notes for 0.1.4 snapshot
* README: add version numbers required for libsvg-cairo and pygtk
* RELEASING: move 'make distcheck' (step 2) to after step 5
2005-01-12 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c (pycairo_pdf_surface_create): new wrapper
* cairo/pycairo-context.c (pycairo_set_target_pdf): new wrapper
* examples/cairo-knockout.py: add comment noting expose event bug
* examples/text.py: increase window height so "Hello World" is not
clipped
2004-12-28 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/Makefile.am: Change HAVE_GTK to WITH_PYGTK
* configure.ac: add --without-pygtk option
* README: add './configure --without-pygtk' example
2004-12-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* README: added notes to describe compiling and how to avoid PYTHONPATH
problems
* configure.ac: report the 'prefix' at the end of configure
2004-12-10 Steve Chaplin <stevech1097 # yahoo.com.au>
Add libsvg-cairo support
* configure.ac: add checks for libsvg-cairo
* cairo/Makefile.am: add libsvg-cairo support
New files
* cairo/cairosvgmodule.c:
* cairo/pycairosvg-context.c:
* cairo/pycairo-misc.h:
* cairo/pycairosvg-private.h:
* examples/svg2png.py:
* examples/svgview.py:
2004-12-10 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairogtkmodule.c:
* cairo/cairomodule.c:
* cairo/caironumpymodule.c (surface_create_for_array):
* cairo/pycairo-font.c:
* cairo/pycairo-context.c:
* cairo/pycairo.h:
* cairo/pycairo-matrix.c:
* cairo/pycairo-pattern.c:
* cairo/pycairo-private.h:
* cairo/pycairo-surface.c:
change _new() functions to _wrap() to allow _new() to be used for
python __new__ functions.
2004-12-06 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-pattern.c (pycairo_pattern_init): remove a commented
out line
* cairo/pycairo-surface.c (pycairo_surface_set_repeat),
(pycairo_surface_get_matrix, pycairo_surface_set_filter):
add status check
2004-12-05 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c: remove the "#if 0" section
2004-12-04 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c (pycairo_check_status): Add
CAIRO_STATUS_NULL_POINTER
2004-12-01 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-private.h: define Py_RETURN_NONE, Py_RETURN_TRUE,
Py_RETURN_FALSE, Py_CLEAR if using python < 2.4
* cairo/pycairo-matrix.c (pycairo_matrix_richcmp): return
Py_NotImplemented instead of Py_None
* cairo/pycairo-context.c:
* cairo/pycairo-font.c (pycairo_font_set_transform):
* cairo/pycairo-pattern.c:
* cairo/pycairo-surface.c:
change all occurences of "Py_INCREF(Py_None); return Py_None;"
to "Py_RETURN_NONE;"
2004-12-01 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairogtkmodule.c:
* cairo/cairomodule.c:
* cairo/caironumpymodule.c:
* cairo/pycairo-context.c:
* cairo/pycairo-font.c:
* cairo/pycairo.h:
* cairo/pycairo-matrix.c:
* cairo/pycairo-pattern.c:
* cairo/pycairo-private.h:
* cairo/pycairo-surface.c: Added header comments referencing the LGPL
and MPL licenses.
2004-11-30 Steve Chaplin <stevech1097 # yahoo.com.au>
* COPYING: Changed to reference LGPL and MPL
* COPYING-LGPL-2.1, COPYING-MPL-1.1: new files
* Makefile.am (EXTRA_DIST): add COPYING*
2004-11-28 Steve Chaplin <stevech1097 # yahoo.com.au>
* Makefile.am (EXTRA_DIST): add NOTES, examples/context-subclass.py,
examples/warpedtext.py
* NEWS: remove notes for Snapshot 0.1.2 - the snapshot was not
completed and released, 0.1.3 is the first snapshot.
* configure.ac: define VERSION_INFO
* cairo/__init__.py.in (version_info): use VERSION_INFO from
configure.ac
2004-11-24 Carl Worth <cworth@cworth.org>
* Makefile.am (RELEASE_UPLOAD_DIR): Update directory due to
filesystem reorganization from server rebuild.
* NEWS: Add notes for 0.1.3 snapshot.
* configure.ac: Increment pycairo version to 0.1.3.
* RELEASING: Some cleanups since copying this file over from
cairo, (mostly s/cairo/pycairo/)
2004-11-23 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (pycairo_context_new): rename to
pycairo_context_wrap to avoid confusion with the Context.__new__
method
(pycairo_init): rename to pycairo_new, ignore any args/kwds, add to
tp_new slot - to prevent Context.__init__ being overridden and
cairo_create() not being called
* cairo/pycairo.h (pycairo_context_wrap): rename
pycairo_context_new to pycairo_context_wrap
* cairo/pycairo-private.h (pycairo_font_new): same
* cairo/cairomodule.c: same
* acinclude.m4: quote AM_CHECK_PYMOD to silence warning message
2004-11-15 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c: make Context subclassable
(pycairo_current_font_extents): new wrapper
(pycairo_fill_extents, pycairo_stroke_extents): remove the unnecessary
x1,y1,x2,y2 args and change from a method to an attribute
(pycairo_show_text): remove the second check of cairo status
* examples/context-subclass.py: new example showing Context subclassing
* NOTES: new file describing some features of the bindings
2004-11-15 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/pycairo-context.c (pycairo_current_path)
(pycairo_current_path_flat): new wrappers
* examples/warpedtext.py: new example using cairo_current_path
Changes submitted by Maarten Breddels <dmon@xs4all.nl>
2004-11-14 Steve Chaplin <stevech1097 # yahoo.com.au>
* cairo/cairomodule.c (pycairo_surface_create_for_image): rename to
pycairo_image_surface_create_for_data
(pycairo_png_surface_create, pycairo_ps_surface_create): add wrappers
(init_cairo): add new constants FILTER_GAUSSIAN, EXTEND_NONE,
EXTEND_REPEAT, EXTEND_REFLECT
* cairo/pycairo-context.c (pycairo_in_stroke, pycairo_in_fill)
(pycairo_stroke_extents, pycairo_fill_extents, pycairo_init_clip)
(pycairo_current_pattern, pycairo_text_path): new wrappers
* cairo/pycairo-pattern.c (pycairo_pattern_set_matrix)
(pycairo_pattern_set_extend, pycairo_pattern_set_filter)
(pycairo_pattern_get_matrix, pycairo_pattern_get_extend)
(pycairo_pattern_get_filter): new wrappers
* cairo/pycairo-surface.c (pycairo_surface_get_matrix): Change from
being a method to being an attribute.
(pycairo_surface_get_filter): new wrapper
* cairo/pycairo.h: additions for pattern
Changes submitted by Maarten Breddels <dmon@xs4all.nl>
2004-11-14 Steve Chaplin <stevech1097 # yahoo.com.au>
Preparation for making the first snapshot release:
* AUTHORS: Add myself
* configure.ac: Add automake version check
* Makefile.am: Remove automake version check. Add all the examples to
EXTRA_DIST. Add release targets, copied from cairo.
* NEWS: Added info about the first snapshot
* README: Updated
* RELEASING: New file, copied from cairo.
* cairo/Makefile.am: Rename INCLUDES to AM_CPPFLAGS
* cairo/pycairo-pattern.c (pycairo_pattern_init): Add 'return -1' after
an error.
(pycairo_pattern_wrap): new function
* cairo/pycairo-private.h: new declaration pattern_wrap()
2004-11-13 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac:
* cairo/__init__.py.in: Add support for version numbers.
2004-11-11 Steve Chaplin <stevech1097 # yahoo.com.au>
* examples/cairo-demo.py: Move the missing 6th row into view.
* examples/hering.py: Remove unnecessary fileObject.close()
* examples/spiral.py: Simplify - draw to a bounded-box instead of
drawing the whole page.
2004-11-09 Steve Chaplin <stevech1097 # yahoo.com.au>
* configure.ac: After configure runs show which modules will be
compiled. Raise cairo required version to 0.2.0. Raise autoconf
required version to 2.54.
2004-11-04 Carl Worth <cworth@cworth.org>
Fixes for set_pattern from Steve Chaplin
<stevech1097 # yahoo.com.au>:
* examples/cairo-knockout.py: Bring up-to-date with latest
cairo-knockout.c. Now uses cairo_arc rather than custom arc
approximation, and now uses new cairo.set_pattern.
* cairo/pycairo.h: Add declaration for struct PyCairoPattern.
* cairo/pycairo-context.c (pycairo_set_pattern): Re-enable
pycairo_set_pattern now that it uses PyCairoPattern_Type.
* cairo/cairomodule.c (init_cairo): Add PyCairoPattern_Type
* cairo/pycairo-pattern.c: New file to bind to cairo_pattern_t.
2004-11-02 Carl Worth <cworth@cworth.org>
* examples/spiral.py:
* examples/hering.py: New examples from Steve Chaplin to
demonstrate PNG and PS output.
* cairo/pycairo-context.c (pycairo_set_target_ps)
(pycairo_set_target_png): Fixes from Steve Chaplin.
(pycairo_set_pattern): Disable set_pattern as this wrapper is
currently broken.
(pycairo_methods): Fix binding of copy_page.
* cairo/Makefile.am (gtk_la_LIBADD): Add CAIRO_LIBS which was
mistakenly dropped in a recent change.
2004-11-01 Carl Worth <cworth@cworth.org>
* cairo/pycairo-context.c (pycairo_set_target_ps)
(pycairo_set_target_png, pycairo_copy_page, pycairo_show_page):
Add missing functions. Thanks to Steve Chaplin
<stevech1097 # yahoo.com.au>.
* cairo/Makefile.am (INCLUDES): Add CAIRO_CFLAGS so that things
compile even without pygtk.
* configure.ac: Don't re-do cairo pkg-config check when checking
for gtk.
* autogen.sh: If user has not set AUTOMAKE, then just use automake
rather than automake-1.7.
2004-08-23 Øyvind Kolås <pippin@freedesktop.org>
* cairo/gtkcairomodule.c: cairo-xlib.h -> cairo.h
2004-04-29 Carl Worth <cworth@isi.edu>
* examples/text.py (expose_event): Hook up text_extents now that
it is working.
* cairo/pycairo-context.c (pycairo_text_extents): Hook up the text
extents code, (it hadn't been working in cairo some time ago).
2003-11-14 Carl Worth <cworth@east.isi.edu>
* examples/cairo-demo.py: Add #! magic.
* examples/cairo-knockout.py: Add #! magic.
* examples/text.py: Fixed to not call cairo.text_extents since
cairo_text_extents is not currently working.
* cairo/pycairo-surface.c: Removed calls to
cairo_surface_create_similar_solid which no longer exists in
cairo.
* cairo/cairomodule.c (init_cairo): Removed DISJOINT/CONJOINT
operators that are no longer in cairo.
2003-10-28 James Henstridge <james@daa.com.au>
* cairo/pycairo-context.c (pycairo_set_font): wrap function.
(pycairo_current_font): add accessor.
* cairo/pycairo-font.c: wrapper for Cairo font type.
* cairo/pycairo-context.c (pycairo_select_font): update to new
signature.
(pycairo_transform_font): update to new signature.
(pycairo_context_new): release context if wrapper could not be
created.
2003-10-09 James Henstridge <james@daa.com.au>
* cairo/cairogtkmodule.c (surface_create_for_drawable): change to
use new function.
* cairo/pycairo-context.c (pycairo_copy): change to new
cairo_copy() semantics.
(pycairo_arc): add wrapper.
(pycairo_arc_negative): add wrapper.
* cairo/pycairo-surface.c: same here.
* cairo/pycairo-matrix.c: same here.
* cairo/pycairo-context.c: don't cast to freefunc, as it didn't
exist in 2.2.
2003-09-24 James Henstridge <james@daa.com.au>
* examples/text.py (drawingarea): same here.
* examples/cairo-demo.py (expose): same here.
* examples/cairo-knockout.py (main): modify to make use of GTK
double buffering.
* cairo/cairogtkmodule.c (set_target_drawable): new function that
sets a context to draw on to a specified GdkDrawable, taking into
account the temporary pixmap GTK might be using for double
buffering.
* cairo/pycairo.h: expose check_status through the public API.
2003-09-23 James Henstridge <james@daa.com.au>
* examples/cairo-knockout.py: another example.
* examples/cairo-demo.py (SIZE): simple conversion of one of the
Cairo demos.
2003-09-17 James Henstridge <james@daa.com.au>
* examples/text.py (expose_event): set line width to 6 rather than
5. This makes the line edges align with the pixel boundaries.
* cairo/cairomodule.c (pycairo_surface_create_for_image): add
wrapper.
* cairo/caironumpymodule.c (surface_from_array): new helper module
for creating surfaces from Numeric Python arrays.
* configure.in (export_dynamic): define conditionals for presence
of GTK and Numeric Python.
* cairo/pycairo-context.c (pycairo_current_target_surface): add
wrapper.
|