summaryrefslogtreecommitdiff
path: root/docs/reference/pygtk-gtktextview.xml
blob: a7dbac888436716fba800abdfbaf12707e2b977f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
<?xml version="1.0" standalone="no"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
    "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">

<refentry id="class-gtktextview">
  <refnamediv>
    <refname>gtk.TextView</refname>
    <refpurpose>a widget that displays the contents of a <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link></refpurpose>
  </refnamediv>

  <refsect1>
    <title>Synopsis</title>

    <classsynopsis language="python">
      <ooclass><classname>gtk.TextView</classname></ooclass>
      <ooclass><classname><link
linkend="class-gtkcontainer">gtk.Container</link></classname></ooclass>
      <constructorsynopsis language="python">
	<methodname><link
linkend="constructor-gtktextview">gtk.TextView</link></methodname>
	<methodparam><parameter
		       role="keyword">buffer</parameter><initializer>None</initializer></methodparam>
      </constructorsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--set-buffer">set_buffer</link></methodname>
	<methodparam><parameter
		       role="keyword">buffer</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-buffer">get_buffer</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--scroll-to-iter">scroll_to_iter</link></methodname>
	<methodparam><parameter
		       role="keyword">iter</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">within_margin</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">use_align</parameter><initializer>False</initializer></methodparam>
	<methodparam><parameter
		       role="keyword">xalign</parameter><initializer>0.5</initializer></methodparam>
	<methodparam><parameter
		       role="keyword">yalign</parameter><initializer>0.5</initializer></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--scroll-to-mark">scroll_to_mark</link></methodname>
	<methodparam><parameter
		       role="keyword">mark</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">within_margin</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">use_align</parameter><initializer>False</initializer></methodparam>
	<methodparam><parameter
		       role="keyword">xalign</parameter><initializer>0.5</initializer></methodparam>
	<methodparam><parameter
		       role="keyword">yalign</parameter><initializer>0.5</initializer></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--scroll-mark-onscreen">scroll_mark_onscreen</link></methodname>
	<methodparam><parameter
		       role="keyword">mark</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--move-mark-onscreen">move_mark_onscreen</link></methodname>
	<methodparam><parameter
		       role="keyword">mark</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--place-cursor-onscreen">place_cursor_onscreen</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-visible-rect">get_visible_rect</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--set-cursor-visible">set_cursor_visible</link></methodname>
	<methodparam><parameter
		       role="keyword">setting</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-cursor-visible">get_cursor_visible</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-iter-location">get_iter_location</link></methodname>
	<methodparam><parameter
		       role="keyword">iter</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-iter-at-location">get_iter_at_location</link></methodname>
	<methodparam><parameter role="keyword">x</parameter></methodparam>
	<methodparam><parameter role="keyword">y</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-line-yrange">get_line_yrange</link></methodname>
	<methodparam><parameter
		       role="keyword">iter</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-line-at-y">get_line_at_y</link></methodname>
	<methodparam><parameter
		       role="keyword">target_iter</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--buffer-to-window-coords">buffer_to_window_coords</link></methodname>
	<methodparam><parameter role="keyword">win</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">buffer_x</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">buffer_y</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--window-to-buffer-coords">window_to_buffer_coords</link></methodname>
	<methodparam><parameter role="keyword">win</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">window_x</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">window_y</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-window">get_window</link></methodname>
	<methodparam><parameter role="keyword">win</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-window-type">get_window_type</link></methodname>
	<methodparam><parameter
		       role="keyword">window</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--set-border-window-size">set_border_window_size</link></methodname>
	<methodparam><parameter
		       role="keyword">type</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">size</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-border-window-size">get_border_window_size</link></methodname>
	<methodparam><parameter
		       role="keyword">type</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--forward-display-line">forward_display_line</link></methodname>
	<methodparam><parameter
		       role="keyword">iter</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--backward-display-line">backward_display_line</link></methodname>
	<methodparam><parameter
		       role="keyword">iter</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--forward-display-line-end">forward_display_line_end</link></methodname>
	<methodparam><parameter
		       role="keyword">iter</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--backward-display-line-start">backward_display_line_start</link></methodname>
	<methodparam><parameter
		       role="keyword">iter</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--starts-display-line">starts_display_line</link></methodname>
	<methodparam><parameter
		       role="keyword">iter</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--move-visually">move_visually</link></methodname>
	<methodparam><parameter
		       role="keyword">iter</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">count</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--add-child-at-anchor">add_child_at_anchor</link></methodname>
	<methodparam><parameter
		       role="keyword">child</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">anchor</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--add-child-in-window">add_child_in_window</link></methodname>
	<methodparam><parameter
		       role="keyword">child</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">which_window</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">xpos</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">ypos</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--move-child">move_child</link></methodname>
	<methodparam><parameter
		       role="keyword">child</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">xpos</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">ypos</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--set-wrap-mode">set_wrap_mode</link></methodname>
	<methodparam><parameter
		       role="keyword">wrap_mode</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-wrap-mode">get_wrap_mode</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--set-editable">set_editable</link></methodname>
	<methodparam><parameter
		       role="keyword">setting</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-editable">get_editable</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>

      <methodsynopsis language="python">
	<methodname><link linkend="method-gtktextview--set-overwrite">set_overwrite</link></methodname>
	<methodparam><parameter
		       role="keyword">overwrite</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link linkend="method-gtktextview--get-overwrite">get_overwrite</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link linkend="method-gtktextview--set-accepts-tab">set_accepts_tab</link></methodname>
	<methodparam><parameter
		       role="keyword">accepts_tab</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link linkend="method-gtktextview--get-accepts-tab">get_accepts_tab</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>

      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--set-pixels-above-lines">set_pixels_above_lines</link></methodname>
	<methodparam><parameter
		       role="keyword">pixels_above_lines</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-pixels-above-lines">get_pixels_above_lines</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--set-pixels-below-lines">set_pixels_below_lines</link></methodname>
	<methodparam><parameter
		       role="keyword">pixels_below_lines</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-pixels-below-lines">get_pixels_below_lines</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--set-pixels-inside-wrap">set_pixels_inside_wrap</link></methodname>
	<methodparam><parameter
		       role="keyword">pixels_inside_wrap</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-pixels-inside-wrap">get_pixels_inside_wrap</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--set-justification">set_justification</link></methodname>
	<methodparam><parameter
		       role="keyword">justification</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-justification">get_justification</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--set-left-margin">set_left_margin</link></methodname>
	<methodparam><parameter
		       role="keyword">left_margin</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-left-margin">get_left_margin</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--set-right-margin">set_right_margin</link></methodname>
	<methodparam><parameter
		       role="keyword">right_margin</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-right-margin">get_right_margin</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--set-indent">set_indent</link></methodname>
	<methodparam><parameter
		       role="keyword">indent</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-indent">get_indent</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--set-tabs">set_tabs</link></methodname>
	<methodparam><parameter
		       role="keyword">tabs</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-tabs">get_tabs</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview--get-default-attributes">get_default_attributes</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
<!-- NOT IMPLEMENTED
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtktextview- -get-iter-at-position">get_iter_at_position</link></methodname>
	<methodparam><parameter role="keyword">x</parameter></methodparam>
	<methodparam><parameter role="keyword">y</parameter></methodparam>
      </methodsynopsis>
END OF NOT IMPLEMENTED -->
    </classsynopsis>

  </refsect1>

  <refsect1>
    <title>Ancestry</title>

<synopsis>+-- <link linkend="class-gobject">gobject.GObject</link>
  +-- <link linkend="class-gtkobject">gtk.Object</link>
    +-- <link linkend="class-gtkwidget">gtk.Widget</link>
      +-- <link linkend="class-gtkcontainer">gtk.Container</link>
        +-- <link linkend="class-gtktextview">gtk.TextView</link>
</synopsis>

  </refsect1>
  
  <refsect1>
		<title>Implemented Interfaces</title>
		<para>
			<link linkend="class-gtktextview"><classname>gtk.TextView</classname></link>
			implements 
			<link linkend="class-gtkbuildable"><classname>gtk.Buildable</classname></link>
		</para>
	</refsect1>


  <refsect1 id="properties-gtktextview">
    <title>gtk.TextView Properties</title>

    <para><link linkend="properties-gtkobject">gtk.Object Properties</link></para>
    <para><link linkend="properties-gtkwidget">gtk.Widget Properties</link></para>
    <para><link linkend="properties-gtkcontainer">gtk.Container Properties</link></para>

    <blockquote role="properties">
      <informaltable pgwide="1" frame="none">
	<tgroup cols="3">
	  <colspec column="1" colwidth="1in"/>
	  <colspec column="2" colwidth="1in"/>
	  <colspec column="3" colwidth="4in"/>
	  <tbody>

	    <row valign="top">
	      <entry>"accepts-tab"</entry>
	      <entry>Read-Write</entry>

	      <entry>If <literal>True</literal>, pressing
<keycap>Tab</keycap> will result in a tab character being entered; otherwise
the focus will be moved. Available in GTK+ 2.4 and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"buffer"</entry>
	      <entry>Read-Write</entry>

	      <entry>The buffer that is displayed. Available in GTK+ 2.4 and
above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"cursor-visible"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, the insertion cursor is
shown</entry>
	    </row>

	    <row valign="top">
	      <entry>"editable"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, the text can be modified by
the user by default</entry>
	    </row>

	    <row valign="top">
	      <entry>"indent"</entry>
	      <entry>Read-Write</entry>
	      <entry>The default amount to indent the paragraph, in
pixels</entry>
	    </row>

	    <row valign="top">
	      <entry>"justification"</entry>
	      <entry>Read-Write</entry>
	      <entry>The default text justification:
<literal>gtk.JUSTIFY_LEFT</literal>, <literal>gtk.JUSTIFY_RIGHT</literal>,
<literal>gtk.JUSTIFY_CENTER</literal> or
<literal>gtk.JUSTIFY_FILL</literal></entry>
	    </row>

	    <row valign="top">
	      <entry>"left-margin"</entry>
	      <entry>Read-Write</entry>
	      <entry>The default width of the left margin in pixels</entry>
	    </row>

	    <row valign="top">
	      <entry>"overwrite"</entry>
	      <entry>Read-Write</entry>

	      <entry>If <literal>True</literal>, the entered text overwrites
	      existing contents. Available in GTK+ 2.4 and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"pixels-above-lines"</entry>
	      <entry>Read-Write</entry>
	      <entry>The default number of pixels of blank space above
paragraphs</entry>
	    </row>

	    <row valign="top">
	      <entry>"pixels-below-lines"</entry>
	      <entry>Read-Write</entry>
	      <entry>The default number of pixels of blank space below
paragraphs</entry>
	    </row>

	    <row valign="top">
	      <entry>"pixels-inside-wrap"</entry>
	      <entry>Read-Write</entry>
	      <entry>The default number of pixels of blank space between
wrapped lines in a paragraph</entry>
	    </row>

	    <row valign="top">
	      <entry>"right-margin"</entry>
	      <entry>Read-Write</entry>
	      <entry>The default width of the right margin in pixels</entry>
	    </row>

	    <row valign="top">
	      <entry>"tabs"</entry>
	      <entry>Read-Write</entry>
	      <entry>The default custom tabs</entry>
	    </row>

	    <row valign="top">
	      <entry>"wrap-mode"</entry>
	      <entry>Read-Write</entry>
	      <entry>The default wrap mode:
<literal>gtk.WRAP_NONE</literal>, <literal>gtk.WRAP_CHAR</literal> or
<literal>gtk.WRAP_WORD</literal></entry>
	    </row>

	  </tbody>
	</tgroup>
      </informaltable>
    </blockquote>

  </refsect1>

  <refsect1 id="style-properties-gtktextview">
    <title>gtk.TextView Style Properties</title>

    <para><link linkend="style-properties-gtkwidget">gtk.Widget Style Properties</link></para>

    <blockquote role="properties">
      <informaltable pgwide="1" frame="none">
	<tgroup cols="3">
	  <colspec column="1" colwidth="1in"/>
	  <colspec column="2" colwidth="1in"/>
	  <colspec column="3" colwidth="4in"/>
	  <tbody>

	    <row valign="top">
	      <entry>"error-underline-color"</entry>
	      <entry>Read-Write</entry>

	      <entry>The <link
linkend="class-gdkcolor"><classname>gtk.gdk.Color</classname></link> with
which to draw error-indication underlines. Available in GTK+ 2.4 and
above.</entry>
	    </row>

	  </tbody>
	</tgroup>
      </informaltable>
    </blockquote>

  </refsect1>

  <refsect1 id="signal-prototypes-gtktextview">
    <title>gtk.TextView Signal Prototypes</title>

    <para><link linkend="signal-prototypes-gobject">gobject.GObject Signal Prototypes</link></para>
    <para><link linkend="signal-prototypes-gtkobject">gtk.Object Signal Prototypes</link></para>
    <para><link linkend="signal-prototypes-gtkwidget">gtk.Widget Signal Prototypes</link></para>
    <para><link linkend="signal-prototypes-gtkcontainer">gtk.Container Signal Prototypes</link></para>

    <variablelist>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--backspace">backspace</link></term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--copy-clipboard">copy-clipboard</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--cut-clipboard">cut-clipboard</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--delete-from-cursor">delete-from-cursor</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>delete_type</parameter></methodparam>
            <methodparam><parameter>count</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--insert-at-cursor">insert-at-cursor</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>string</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--move-cursor">move-cursor</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>step_size</parameter></methodparam>
            <methodparam><parameter>count</parameter></methodparam>
            <methodparam><parameter>extend_selection</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--move-focus">move-focus</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>direction</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--move-viewport">move-viewport</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>scrollstep</parameter></methodparam>
            <methodparam><parameter>count</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--page-horizontally">page-horizontally</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>count</parameter></methodparam>
            <methodparam><parameter>extend_selection</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--paste-clipboard">paste-clipboard</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--populate-popup">populate-popup</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>menu</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--select-all">select-all</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>select</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--set-anchor">set-anchor</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--set-scroll-adjustments">set-scroll-adjustments</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>hadjustment</parameter></methodparam>
            <methodparam><parameter>vadjustment</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtktextview--toggle-overwrite">toggle-overwrite</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>textview</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
    </variablelist>

  </refsect1>

  <refsect1 id="description-gtktextview">
    <title>Description</title>

    <para>A <link
linkend="class-gtktextview"><classname>gtk.TextView</classname></link>
widget provides the display for the contents of a <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link>
object. A textview provides a set of attributes for the default display of
text from a textbuffer. The attributes set by <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> objects
override the attributes set on a <link
linkend="class-gtktextview"><classname>gtk.TextView</classname></link>
widget. Since a <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link>
can be associated with multiple <link
linkend="class-gtktextview"><classname>gtk.TextView</classname></link>
widgets each having a different set of default attributes, the display of
the same text in different textview widgets can be quite different except
for those attributes that are overridden by texttags.</para>

    <para>A <link
linkend="class-gtktextview"><classname>gtk.TextView</classname></link>
widget has several <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link>
widgets most of which are not displayed by default:</para>

    <variablelist>
      <varlistentry>
        <term><literal>gtk.TEXT_WINDOW_WIDGET</literal></term>
        <listitem>
	  <simpara>The widget window</simpara>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term><literal>gtk.TEXT_WINDOW_TEXT</literal></term>
        <listitem>
	  <simpara>The window that holds the text</simpara>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term><literal>gtk.TEXT_WINDOW_LEFT</literal></term>
        <listitem>
	  <simpara>The left border window - not displayed by
default</simpara>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term><literal>gtk.TEXT_WINDOW_RIGHT</literal></term>
        <listitem>
	  <simpara>The right border window - not displayed by
default</simpara>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term><literal>gtk.TEXT_WINDOW_TOP</literal></term>
        <listitem>
	  <simpara>The top border window - not displayed by
default</simpara>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term><literal>gtk.TEXT_WINDOW_BOTTOM</literal></term>
        <listitem>
	  <simpara>The bottom border window - not displayed by
default</simpara>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term><literal>gtk.TEXT_WINDOW_PRIVATE</literal></term>
        <listitem>
	  <simpara>An internal inaccessible <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link></simpara>
        </listitem>
      </varlistentry>
    </variablelist>

    <para>The border windows are not created until they are given a size by
using the <link
linkend="method-gtktextview--set-border-window-size"><methodname>set_border_window_size</methodname>()</link> 
method.</para>

    <para>Depending on the wrap mode of the textview a textbuffer line may be
displayed as more than one screen display line. The textview has methods to
navigate through the display lines.</para>

    <para>A <link
linkend="class-gtktextchildanchor"><classname>gtk.TextChildAnchor</classname></link> 
in a <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link>
provides a place for a <literal>PyGTK</literal> widget to be placed in a
<link
linkend="class-gtktextview"><classname>gtk.TextView</classname></link>. Each
textview displaying the same textbuffer with a child anchor must have a
different widget placed at that child anchor. In addition, a widget can be
placed at a specific location in one of the above <link
linkend="class-gtktextview"><classname>gtk.TextView</classname></link>
windows using the <link
linkend="method-gtktextview--add-child-in-window"><methodname>add_child_in_window</methodname>()</link> 
method. The widget will be clipped to the window boundaries if it is larger
than the window or located where it extends beyond the window
boundaries.</para>

    <para>A <link
linkend="class-gtktextview"><classname>gtk.TextView</classname></link> has a
default popup menu that includes the usual cut, copy and paste
capabilities. In PyGTK 2.2 <link
linkend="class-gtkclipboard"><classname>gtk.Clipboard</classname></link>
objects are supported so your program can access the contents of the cut,
copy and paste clipboard through the
<literal>gdk.SELECTION_CLIPBOARD</literal> clipboard. Also the selected text
in a <link
linkend="class-gtktextview"><classname>gtk.TextView</classname></link> is
available on the <literal>gdk.SELECTION_PRIMARY</literal> clipboard.</para>

  </refsect1>

  <refsect1 id="constructor-gtktextview">
    <title>Constructor</title>

    <programlisting><constructorsynopsis language="python">
	<methodname>gtk.TextView</methodname>
	<methodparam><parameter
		       role="keyword">buffer</parameter><initializer>None</initializer></methodparam>
      </constructorsynopsis></programlisting>
    <variablelist>
      <varlistentry>
	<term><parameter role="keyword">buffer</parameter>&nbsp;:</term>
	<listitem><simpara>a <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link>
or <literal>None</literal></simpara></listitem>
      </varlistentry>
      <varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	<listitem><simpara>a new <link
linkend="class-gtktextview"><classname>gtk.TextView</classname></link>.</simpara></listitem>
      </varlistentry>
    </variablelist>

    <para>Creates a new <link
linkend="class-gtktextview"><classname>gtk.TextView</classname></link>
widget displaying the <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link>
specified by <parameter>buffer</parameter>. If <parameter>buffer</parameter>
is <literal>None</literal>, a new <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link>
will be created. One textbuffer can be shared among many widgets.</para>

  </refsect1>

  <refsect1>
    <title>Methods</title>

  <refsect2 id="method-gtktextview--set-buffer">
      <title>gtk.TextView.set_buffer</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_buffer</methodname>
	  <methodparam><parameter
			 role="keyword">buffer</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">buffer</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link></simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_buffer</methodname>() method sets the <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link>
specified by <parameter>buffer</parameter> as the textbuffer being displayed
by the textview.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-buffer">
      <title>gtk.TextView.get_buffer</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_buffer</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link></simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_buffer</methodname>() method returns the
<link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link>
being displayed by this textview.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--scroll-to-iter">
      <title>gtk.TextView.scroll_to_iter</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>scroll_to_iter</methodname>
	  <methodparam><parameter
			 role="keyword">iter</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">within_margin</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">use_align</parameter><initializer>False</initializer></methodparam>
	  <methodparam><parameter
			 role="keyword">xalign</parameter><initializer>0.5</initializer></methodparam>
	  <methodparam><parameter
			 role="keyword">yalign</parameter><initializer>0.5</initializer></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">iter</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link>
object</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">within_margin</parameter>&nbsp;:</term>
	  <listitem><simpara>the margin as a [0.0,0.5) fraction of screen
size</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">use_align</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> use the alignment
arguments; if <literal>False</literal>, just get <parameter>iter</parameter>
on screen</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">xalign</parameter>&nbsp;:</term>
	  <listitem><simpara>the horizontal alignment of
<parameter>iter</parameter> within visible area.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">yalign</parameter>&nbsp;:</term>
	  <listitem><simpara>the vertical alignment of
<parameter>iter</parameter> within visible area</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if scrolling
occurred</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>scroll_to_iter</methodname>() method scrolls the
textview so that the <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link>
location specified by <parameter>iter</parameter> is on the screen in the
position indicated by <parameter>xalign</parameter> and
<parameter>yalign</parameter>. If <parameter>use_align</parameter> is
<literal>True</literal> the alignments specify the fraction of screen space
to the left of or above the location of <parameter>iter</parameter>. If
<parameter>use_align</parameter> is <literal>False</literal>, the text
scrolls the minimal distance to get <parameter>iter</parameter> on screen,
possibly not scrolling at all. The effective screen for purposes of this
method is reduced by a margin of size specified by
<parameter>within_margin</parameter>.</para>

      <note>
	<para>This method uses the currently-computed height of the lines in
the text buffer. The line heights are computed in an idle handler so this
method may not have the desired effect if it's called before the height
computations are complete. To avoid oddness, consider using the <link
linkend="method-gtktextview--scroll-to-mark"><methodname>scroll_to_mark</methodname>()</link> 
method that saves a point to be scrolled to after line validation.</para>
      </note>

    </refsect2>

    <refsect2 id="method-gtktextview--scroll-to-mark">
      <title>gtk.TextView.scroll_to_mark</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>scroll_to_mark</methodname>
	  <methodparam><parameter
			 role="keyword">mark</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">within_margin</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">use_align</parameter><initializer>False</initializer></methodparam>
	  <methodparam><parameter
			 role="keyword">xalign</parameter><initializer>0.5</initializer></methodparam>
	  <methodparam><parameter
			 role="keyword">yalign</parameter><initializer>0.5</initializer></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">mark</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextmark"><classname>gtk.TextMark</classname></link>
object</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">within_margin</parameter>&nbsp;:</term>
	  <listitem><simpara>the margin as a [0.0,0.5) fraction of screen
size</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">use_align</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> use the alignment
arguments; if <literal>False</literal>, just get <parameter>mark</parameter>
on screen</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">xalign</parameter>&nbsp;:</term>
	  <listitem><simpara>the horizontal alignment of
<parameter>mark</parameter> within the visible area.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">yalign</parameter>&nbsp;:</term>
	  <listitem><simpara>the vertical alignment of
<parameter>mark</parameter> within the visible area</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>scroll_to_mark</methodname>() method scrolls the
textview so that the <link
linkend="class-gtktextmark"><classname>gtk.TextMark</classname></link>
location specified by <parameter>mark</parameter> is on the screen in the
position specified by <parameter>xalign</parameter> and
<parameter>yalign</parameter>. If <parameter>use_align</parameter> is
<literal>True</literal> the alignments specify the fraction of screen space
to the left of or above the location of <parameter>mark</parameter>. If
<parameter>use_align</parameter> is <literal>False</literal>, the text
scrolls the minimal distance to get <parameter>mark</parameter> on screen,
possibly not scrolling at all. The effective screen for purposes of this
function is reduced by a margin of size specified by
<parameter>within_margin</parameter>.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--scroll-mark-onscreen">
      <title>gtk.TextView.scroll_mark_onscreen</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>scroll_mark_onscreen</methodname>
	  <methodparam><parameter
			 role="keyword">mark</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">mark</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextmark"><classname>gtk.TextMark</classname></link> in
the textbuffer for textview</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>scroll_mark_onscreen</methodname>() method
scrolls the textview the minimum distance to place the <link
linkend="class-gtktextmark"><classname>gtk.TextMark</classname></link>
location specified by <parameter>mark</parameter> within the visible area of
the widget.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--move-mark-onscreen">
      <title>gtk.TextView.move_mark_onscreen</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>move_mark_onscreen</methodname>
	  <methodparam><parameter
			 role="keyword">mark</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">mark</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextmark"><classname>gtk.TextMark</classname></link>
object</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if
<parameter>mark</parameter> moved (wasn't already
on screen)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>move_mark_onscreen</methodname>() moves the
<link linkend="class-gtktextmark"><classname>gtk.TextMark</classname></link>
location specified by <parameter>mark</parameter> to a location within the
currently-visible text area of the textview.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--place-cursor-onscreen">
      <title>gtk.TextView.place_cursor_onscreen</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>place_cursor_onscreen</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>True if the cursor had to be
moved.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>place_cursor_onscreen</methodname>() method
moves the cursor to a new location within the currently visible region of
the buffer, if it isn't there already.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-visible-rect">
      <title>gtk.TextView.get_visible_rect</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_visible_rect</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gdkrectangle"><classname>gtk.gdk.Rectangle</classname></link></simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_visible_rect</methodname>() method returns a
<link
linkend="class-gdkrectangle"><classname>gtk.gdk.Rectangle</classname></link>
containing the coordinates of the currently-visible region of the buffer.
The rectangle is in buffer coordinates that can be converted to window
coordinates with the <link
linkend="method-gtktextview--buffer-to-window-coords"><methodname>buffer_to_window_coords</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-cursor-visible">
      <title>gtk.TextView.set_cursor_visible</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_cursor_visible</methodname>
	  <methodparam><parameter
			 role="keyword">setting</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">setting</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> show the insertion
cursor</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_cursor_visible</methodname>() method sets
the "cursor-visible" property to the value of
<parameter>setting</parameter>. If <parameter>setting</parameter> is
<literal>True</literal> the cursor is visible; if <literal>False</literal>,
it is not. A buffer with no editable text probably shouldn't have a visible
cursor, so you may want to turn the cursor off.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-cursor-visible">
      <title>gtk.TextView.get_cursor_visible</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_cursor_visible</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the insertion mark
is visible</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_cursor_visible</methodname>() method returns
the value of the "cursor-visible" property that determines if the insertion
point is visible.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-iter-location">
      <title>gtk.TextView.get_iter_location</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_iter_location</methodname>
	  <methodparam><parameter
			 role="keyword">iter</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">iter</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gdkrectangle"><classname>gtk.gdk.Rectangle</classname></link>
containing the bounds of the character at
<parameter>iter</parameter></simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_iter_location</methodname>() method returns
a <link
linkend="class-gdkrectangle"><classname>gtk.gdk.Rectangle</classname></link>
that contains the character at the location specified by
<parameter>iter</parameter>. The rectangle position is in buffer coordinates
that can be converted to window coordinates with the <link
linkend="method-gtktextview--buffer-to-window-coords"><methodname>buffer_to_window_coords</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-iter-at-location">
      <title>gtk.TextView.get_iter_at_location</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_iter_at_location</methodname>
	  <methodparam><parameter role="keyword">x</parameter></methodparam>
	  <methodparam><parameter role="keyword">y</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">x</parameter>&nbsp;:</term>
	  <listitem><simpara>x position, in buffer
coordinates</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">y</parameter>&nbsp;:</term>
	  <listitem><simpara>y position, in buffer
coordinates</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link></simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_iter_at_location</methodname>() method
returns a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link> that
points at the location specified by the buffer coordinates
<parameter>x</parameter> and <parameter>y</parameter>. Buffer coordinates
are coordinates for the entire buffer, not just the currently-displayed
portion.  Window coordinates from an event, must be converted to buffer
coordinates with the <link
linkend="method-gtktextview--window-to-buffer-coords"><methodname>window_to_buffer_coords</methodname>()</link> 
method before using them with this method.</para>

    </refsect2>

<!-- NOT IMPLEMENTED
    <refsect2 id="method-gtktextview- -get-iter-at-position">
      <title>gtk.TextView.get_iter_at_position</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_iter_at_position</methodname>
	  <methodparam><parameter role="keyword">x</parameter></methodparam>
	  <methodparam><parameter role="keyword">y</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">x</parameter>&nbsp;:</term>
	  <listitem><simpara>x position, in buffer
coordinates</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">y</parameter>&nbsp;:</term>
	  <listitem><simpara>y position, in buffer
coordinates</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a 2-tuple containing a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link> and
an integer indicating where in the grapheme the user clicked. It will either
be zero, or the number of characters in the grapheme. 0 represents the
trailing edge of the grapheme.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
	<para>This method is available in PyGTK 2.8 and above.</para>
      </note>

      <para>The <methodname>get_iter_at_position</methodname>() method
returns a 2-tuple containing a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link> that
points at the location specified by the buffer coordinates
<parameter>x</parameter> and <parameter>y</parameter> and an integer
indicating where in the grapheme the user clicked. It will either be zero,
or the number of characters in the grapheme. 0 represents the trailing edge
of the grapheme.</para>

      <para>Buffer coordinates are coordinates for the entire buffer, not
just the currently-displayed portion.  Window coordinates from an event,
must be converted to buffer coordinates with the <link
linkend="method-gtktextview- -window-to-buffer-coords"><methodname>window_to_buffer_coords</methodname>()</link>
method before using them with this method.</para>

      <para>Note that this method is different from the <link
linkend="method-gtktextview- -get-iter-at-location"><methodname>get_iter_at_location</methodname>()</link>
method that returns cursor locations, i.e. positions between
characters.</para>

    </refsect2>
END OF NOT IMPLEMENTED -->

    <refsect2 id="method-gtktextview--get-line-yrange">
      <title>gtk.TextView.get_line_yrange</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_line_yrange</methodname>
	  <methodparam><parameter
			 role="keyword">iter</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">iter</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a tuple containing a y coordinate and a
height</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_line_yrange</methodname>() method locates
the line containing the <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link>
specified by <parameter>iter</parameter> and returns a tuple containing the
y coordinate of the top of the line and the height of the line. The
coordinate is a buffer coordinate that can be converted to window
coordinates with the <link
linkend="method-gtktextview--buffer-to-window-coords"><methodname>buffer_to_window_coords</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-line-at-y">
      <title>gtk.TextView.get_line_at_y</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_line_at_y</methodname>
	  <methodparam><parameter role="keyword">y</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">y</parameter>&nbsp;:</term>
	  <listitem><simpara>a y coordinate</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a tuple containing a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link>
pointing at the line start and the top coordinate of the
line</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_line_at_y</methodname>() method returns a
tuple containing:</para>

      <itemizedlist>
	<listitem>
	  <simpara>a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link>
pointing at the start of the line with the vertical coordinate specified by
<parameter>y</parameter> and,</simpara>
	</listitem>
	<listitem>
	  <simpara>the vertical coordinate of the top edge of the
line.</simpara>
	</listitem>
      </itemizedlist>

      <para><parameter>y</parameter> is in buffer coordinates that can be
converted from window coordinates with the <link
linkend="method-gtktextview--window-to-buffer-coords"><methodname>window_to_buffer_coords</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--buffer-to-window-coords">
      <title>gtk.TextView.buffer_to_window_coords</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>buffer_to_window_coords</methodname>
	  <methodparam><parameter
			 role="keyword">win</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">buffer_x</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">buffer_y</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">win</parameter>&nbsp;:</term>
	  <listitem><simpara>one of the textview windows except
<literal>gtk.TEXT_WINDOW_PRIVATE</literal></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">buffer_x</parameter>&nbsp;:</term>
	  <listitem><simpara>buffer x coordinate</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">buffer_y</parameter>&nbsp;:</term>
	  <listitem><simpara>buffer y coordinate</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a tuple containing the window x and y
coordinates</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>buffer_to_window_coords</methodname>() method
returns a tuple containing the x and y coordinates for the window specified
by <parameter>win</parameter> that correspond to the textbuffer coordinates
specified by <parameter>buffer_x</parameter> and
<parameter>buffer_y</parameter>. See the above <link
linkend="description-gtktextview">description</link> for more details on
textview window types.</para>

      <note>
	<para>You can't convert coordinates for a non-existing window (see
the <link
linkend="method-gtktextview--set-border-window-size"><methodname>set_border_window_size</methodname>()</link> 
method).</para>
      </note>

    </refsect2>

    <refsect2 id="method-gtktextview--window-to-buffer-coords">
      <title>gtk.TextView.window_to_buffer_coords</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>window_to_buffer_coords</methodname>
	  <methodparam><parameter
			 role="keyword">win</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">window_x</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">window_y</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">win</parameter>&nbsp;:</term>
	  <listitem><simpara>a textview window except
<literal>gtk.TEXT_WINDOW_PRIVATE</literal></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">window_x</parameter>&nbsp;:</term>
	  <listitem><simpara>window x coordinate</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">window_y</parameter>&nbsp;:</term>
	  <listitem><simpara>window y coordinate</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a tuple containing the textbuffer x and y
coordinates</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>window_to_buffer_coords</methodname>() method
returns a tuple containing the textbuffer x and y coordinates corresponding
to the <parameter>window_x</parameter> and<parameter> window_y</parameter>
coordinates in the window specified by <parameter>win</parameter>, See the
above <link linkend="description-gtktextview">description</link> for more
details on textview window types.</para>

      <note>
	<para>You can't convert coordinates for a non-existing window (see
the <link
linkend="method-gtktextview--set-border-window-size"><methodname>set_border_window_size</methodname>()</link>) 
method.</para>
      </note>

    </refsect2>

    <refsect2 id="method-gtktextview--get-window">
      <title>gtk.TextView.get_window</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_window</methodname>
	  <methodparam><parameter
			 role="keyword">win</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">win</parameter>&nbsp;:</term>
	  <listitem><simpara>a textview window type</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link>, or
<literal>None</literal></simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_window</methodname>() method returns the
<link linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link>
corresponding to an area of the textview specified by
<parameter>win</parameter>:</para>

      <variablelist>
	<varlistentry>
	  <term><literal>gtk.TEXT_WINDOW_WIDGET</literal></term>
	  <listitem>
	    <simpara>The widget window</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.TEXT_WINDOW_TEXT</literal></term>
	  <listitem>
	    <simpara>The window that holds the text</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.TEXT_WINDOW_LEFT</literal></term>
	  <listitem>
	    <simpara>The left border window - not displayed by
default</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.TEXT_WINDOW_RIGHT</literal></term>
	  <listitem>
	    <simpara>The right border window - not displayed by
default</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.TEXT_WINDOW_TOP</literal></term>
	  <listitem>
	    <simpara>The top border window - not displayed by
default</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.TEXT_WINDOW_BOTTOM</literal></term>
	  <listitem>
	    <simpara>The bottom border window - not displayed by
default</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.TEXT_WINDOW_PRIVATE</literal></term>
	  <listitem>
	    <simpara>An internal inaccessible <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link></simpara>
	  </listitem>
	</varlistentry>
      </variablelist>

      <para>This method returns <literal>None</literal> if the window is
nonexistent i.e. if its width or height is 0.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-window-type">
      <title>gtk.TextView.get_window_type</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_window_type</methodname>
	  <methodparam><parameter
			 role="keyword">window</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">window</parameter>&nbsp;:</term>
	  <listitem><simpara>a window type</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the window type.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_window_type</methodname>() method returns
the type of the <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link>
specified by <parameter>window</parameter>. This method is used to find out
what window type an event corresponds to. If you connect to an event signal
on the textview, this method can be called on
<literal>event.window</literal> to see what window type it was. See the
<link
linkend="method-gtktextview--get-window"><methodname>get_window</methodname>()</link> 
method for more details on window types.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-border-window-size">
      <title>gtk.TextView.set_border_window_size</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_border_window_size</methodname>
	  <methodparam><parameter
			 role="keyword">type</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">size</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">type</parameter>&nbsp;:</term>
	  <listitem><simpara>a textview border window
type</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">size</parameter>&nbsp;:</term>
	  <listitem><simpara>the width or height of the
window</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_border_window_size</methodname>() method
sets the width of a <literal>gtk.TEXT_WINDOW_LEFT</literal> or
<literal>gtk.TEXT_WINDOW_RIGHT</literal> window, or the height of a
<literal>gtk.TEXT_WINDOW_TOP</literal> or
<literal>gtk.TEXT_WINDOW_BOTTOM</literal> window. This method automatically
destroys the corresponding window if the size is set to 0, and creates the
window if the size is set to non-zero.  This method can only be used for the
"border windows", it doesn't work with the
<literal>gtk.TEXT_WINDOW_WIDGET</literal>,
<literal>gtk.TEXT_WINDOW_TEXT</literal>, or
<literal>gtk.TEXT_WINDOW_PRIVATE</literal> windows.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-border-window-size">
      <title>gtk.TextView.get_border_window_size</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_border_window_size</methodname>
	  <methodparam><parameter
			 role="keyword">type</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">type</parameter>&nbsp;:</term>
	  <listitem><simpara>a textview border window
type</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the width or height of the textview border
window</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_border_window_size</methodname>() method
returns the width or height of the border window of the type specified by
<parameter>type</parameter>. See the <link
linkend="method-gtktextview--set-border-window-size"><methodname>set_border_window_size</methodname>()</link> 
method for more details.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--forward-display-line">
      <title>gtk.TextView.forward_display_line</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>forward_display_line</methodname>
	  <methodparam><parameter
			 role="keyword">iter</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">iter</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if
<parameter>iter</parameter> was moved and is not on the end
iterator</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>forward_display_line</methodname>() method moves
the location of <parameter>iter</parameter> forward by one display line. A
textview display line is different from a textbuffer line. Textbuffer lines
are paragraphs and are separated by newlines or other paragraph separator
characters. Display lines are created by line-wrapping a textbuffer line. If
wrapping is turned off, display lines and textbuffer lines will be the same.
Display lines are divided differently for each textview, since they depend
on the textview's width and the textview's default wrap mode. Paragraphs are
the same in all views, since they depend on the contents of the <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link>.
This method returns <literal>True</literal> if the location of
<parameter>iter</parameter> moves to a dereferenceable position (i.e. not
the end position).</para>

    </refsect2>

    <refsect2 id="method-gtktextview--backward-display-line">
      <title>gtk.TextView.backward_display_line</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>backward_display_line</methodname>
	  <methodparam><parameter
			 role="keyword">iter</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">iter</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if
<parameter>iter</parameter> was moved</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>backward_display_line</methodname>() method
moves the location of <parameter>iter</parameter> backward by one display
line. A textview display line is different from a textbuffer line. Textview
lines are paragraphs and are separated by newlines or other paragraph
separator characters. Display lines are created by line-wrapping a
textbuffer line. If wrapping is turned off, display lines and textbuffer
lines will be the same. Display lines are divided differently for each
textview, since they depend on the textview's width and the textview's
default wrap mode. Paragraphs are the same in all views, since they depend
on the contents of the <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link>.
This method returns <literal>True</literal> if the location of
<parameter>iter</parameter> moves to a dereferenceable position (i.e. not
the end position).</para>

    </refsect2>

    <refsect2 id="method-gtktextview--forward-display-line-end">
      <title>gtk.TextView.forward_display_line_end</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>forward_display_line_end</methodname>
	  <methodparam><parameter
			 role="keyword">iter</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">iter</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if
<parameter>iter</parameter> was moved and is not on the end
iterator</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>forward_display_line_end</methodname>() method
moves the location of <parameter>iter</parameter> forward to the next
display line end. A textview display line is different from a textbuffer
line. Textbuffer lines are paragraphs and are separated by newlines or other
paragraph separator characters. Display lines are created by line-wrapping a
textbuffer line. If wrapping is turned off, display lines and textbuffer
lines will be the same. Display lines are divided differently for each
textview, since they depend on the textview's width and the textview's
default wrap mode. Paragraphs are the same in all views, since they depend
on the contents of the <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link>.
This method returns <literal>True</literal> if the location of
<parameter>iter</parameter> moves to a dereferenceable position (i.e. not
the end position).</para>

    </refsect2>

    <refsect2 id="method-gtktextview--backward-display-line-start">
      <title>gtk.TextView.backward_display_line_start</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>backward_display_line_start</methodname>
	  <methodparam><parameter
			 role="keyword">iter</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">iter</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if
<parameter>iter</parameter> was moved</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>backward_display_line_start</methodname>()
method moves the location of <parameter>iter</parameter> backward to the
next display line start. A textview display line is different from a
textbuffer line. Textbuffer lines are paragraphs and are separated by newlines
or other paragraph separator characters. Display lines are created by
line-wrapping a textbuffer line. If wrapping is turned off, display lines
and textbuffer lines will be the same. Display lines are divided differently
for each textview, since they depend on the textview's width and the
textview's default wrap mode. Paragraphs are the same in all views, since
they depend on the contents of the <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link>.
This method returns <literal>True</literal> if the location of
<parameter>iter</parameter> moves to a dereferenceable position (i.e. not
the end position).</para>

    </refsect2>

    <refsect2 id="method-gtktextview--starts-display-line">
      <title>gtk.TextView.starts_display_line</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>starts_display_line</methodname>
	  <methodparam><parameter
			 role="keyword">iter</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">iter</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the location of
<parameter>iter</parameter> is at the beginning of a display
line</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>starts_display_line</methodname>() method
returns <literal>True</literal> if the location of
<parameter>iter</parameter> is at the start of a display line. See the <link
linkend="method-gtktextview--forward-display-line"><methodname>forward_display_line</methodname>()</link> 
method for an explanation of display lines vs. textbuffer lines
(paragraphs).</para>

    </refsect2>

    <refsect2 id="method-gtktextview--move-visually">
      <title>gtk.TextView.move_visually</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>move_visually</methodname>
	  <methodparam><parameter
			 role="keyword">iter</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">count</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">iter</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextiter"><classname>gtk.TextIter</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">count</parameter>&nbsp;:</term>
	  <listitem><simpara>the number of characters to move (may be
negative)</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if
<parameter>iter</parameter> moved and is not on the end
iterator</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The<methodname> move_visually</methodname>() method moves the
location of <parameter>iter</parameter> by <parameter>count</parameter>
cursor positions. If count is negative the location moves against the
normal text direction. Note a cursor position move may move over multiple
characters when multiple characters combine to form one grapheme.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--add-child-at-anchor">
      <title>gtk.TextView.add_child_at_anchor</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>add_child_at_anchor</methodname>
	  <methodparam><parameter
			 role="keyword">child</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">anchor</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">child</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">anchor</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktextchildanchor"><classname>gtk.TextChildAnchor</classname></link> 
in the textview's <link
linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link></simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>add_child_at_anchor</methodname>() method adds
the widget specified by <parameter>child</parameter> in the textview, at the
<link
linkend="class-gtktextchildanchor"><classname>gtk.TextChildAnchor</classname></link>
specified by <parameter>anchor</parameter>.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--add-child-in-window">
      <title>gtk.TextView.add_child_in_window</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>add_child_in_window</methodname>
	  <methodparam><parameter
			 role="keyword">child</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">which_window</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">xpos</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">ypos</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">child</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">which_window</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview window
<parameter>child</parameter> should appear in</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">xpos</parameter>&nbsp;:</term>
	  <listitem><simpara>the X position of <parameter>child</parameter>
in window coordinates</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">ypos</parameter>&nbsp;:</term>
	  <listitem><simpara>the Y position of <parameter>child</parameter>
in window coordinates</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>add_child_in_window</methodname>() method adds
the widget specified by <parameter>child</parameter> at the fixed
coordinates specified by <parameter>xpos</parameter> and
<parameter>ypos</parameter> in one of the text widget's windows specified by
<parameter>which_window</parameter>.  The window must have nonzero size (see
the <link
linkend="method-gtktextview--set-border-window-size"><methodname>set_border_window_size</methodname>()</link> 
method).</para>

      <note>
	<para>The <parameter>child</parameter> coordinates are given
relative to the <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link>
specified by <parameter>which_window</parameter>, and these coordinates have
no sane relationship to scrolling. When placing <parameter>child</parameter>
in a <literal>gtk.TEXT_WINDOW_WIDGET</literal> window, scrolling is
irrelevant, <parameter>child</parameter> floats above all scrollable areas.
However, placing <parameter>child</parameter> in one of the scrollable
windows (a border windows or the text window), you'll need to compute the
correct position of <parameter>child</parameter> in textbuffer coordinates
any time scrolling occurs or textbuffer changes occur, and then call the
<link
linkend="method-gtktextview--move-child"><methodname>move_child</methodname>()</link> 
method to update the child's position. Unfortunately there's no good way to
detect that scrolling has occurred, using the current API; a possible hack
would be to update all child positions when the scroll adjustments change or
the text buffer changes.</para>
      </note>

    </refsect2>

    <refsect2 id="method-gtktextview--move-child">
      <title>gtk.TextView.move_child</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>move_child</methodname>
	  <methodparam><parameter
			 role="keyword">child</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">xpos</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">ypos</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">child</parameter>&nbsp;:</term>
	  <listitem><simpara>a child widget in the
textview</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">xpos</parameter>&nbsp;:</term>
	  <listitem><simpara>the new X position in window
coordinates</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">ypos</parameter>&nbsp;:</term>
	  <listitem><simpara>the new Y position in window
coordinates</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>move_child</methodname>() method moves the
position of <parameter>child</parameter> to the location (in its current
window) specified by <parameter>xpos</parameter> and
<parameter>ypos</parameter>.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-wrap-mode">
      <title>gtk.TextView.set_wrap_mode</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_wrap_mode</methodname>
	  <methodparam><parameter
			 role="keyword">wrap_mode</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">wrap_mode</parameter>&nbsp;:</term>
	  <listitem><simpara>a wrap mode value</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_wrap_mode</methodname>() method sets the
"wrap-mode" property of the textview to the value specified by
<parameter>wrap_mode</parameter>. The value of wrap_mode can be one of:
<literal>gtk.WRAP_NONE</literal>, <literal>gtk.WRAP_CHAR</literal>, <literal>gtk.WRAP_WORD</literal>
or <literal>gtk.WRAP_WORD_CHAR</literal>. The "wrap-mode" property defines the wrap
mode for text that is not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "wrap_mode" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-wrap-mode">
      <title>gtk.TextView.get_wrap_mode</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_wrap_mode</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the line wrap setting</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_wrap_mode</methodname>() method returns the
value of the "wrap-mode" property. The value of "wrap-mode" can be one of:
<literal>gtk.WRAP_NONE</literal>, <literal>gtk.WRAP_CHAR</literal> or
<literal>gtk.WRAP_WORD</literal>. The "wrap-mode" property defines the wrap
mode for text that is not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "wrap_mode" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-editable">
      <title>gtk.TextView.set_editable</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_editable</methodname>
	  <methodparam><parameter
			 role="keyword">setting</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">setting</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> the text is editable
by default</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_editable</methodname>() method sets the
"editable" property to the value of <parameter>setting</parameter>. If
<parameter>setting</parameter> is <literal>True</literal> the text in
textview is editable by default. The "editable" property determines the
editability of the <link
linkend="class-gtktextview"><classname>gtk.TextView</classname></link> text
that is not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "editable" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-editable">
      <title>gtk.TextView.get_editable</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_editable</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><parameter>True</parameter> if text is editable
by default</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_editable</methodname>() method returns the
value of the "editable" property. The "editable" property determines the
editability of the <link
linkend="class-gtktextview"><classname>gtk.TextView</classname></link> text
that is not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "editable" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-overwrite">
      <title>gtk.TextView.set_overwrite</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_overwrite</methodname>
	  <methodparam><parameter role="keyword">overwrite</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
	  role="keyword">overwrite</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> turn on overwrite
	  mode; if <literal>False</literal> turn it off</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
	<para>This method is available in PyGTK 2.4 and above.</para>
      </note>

      <para>The <methodname>set_overwrite</methodname>() method sets the
"overwrite" property to the value of <parameter>overwrite</parameter>. If
<parameter>overwrite</parameter> is <literal>True</literal>, inserted text
overwrites the existing text.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-overwrite">
      <title>gtk.TextView.get_overwrite</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_overwrite</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the textview is in
	  overwrite mode</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
	<para>This method is available in PyGTK 2.4 and above.</para>
      </note>

      <para>The <methodname>get_overwrite</methodname>() method returns the
value of the "overwrite" property. see the <link
linkend="method-gtktextview--set-overwrite"><methodname>set_overwrite</methodname>()</link>
method for more information.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-accepts-tab">
      <title>gtk.TextView.set_accepts_tab</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_accepts_tab</methodname>
	  <methodparam><parameter role="keyword">accepts_tab</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
	  role="keyword">accepts_tab</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> pressing the
	  <keycap>Tab</keycap> key should insert a tab character; if
	  <literal>False</literal>, pressing the <keycap>Tab</keycap> key
	  should move the keyboard focus.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
	<para>This method is available in PyGTK 2.4 and above.</para>
      </note>

      <para>The <methodname>set_accepts_tab</methodname>() method sets the
"accepts_tab" property to the value of
<parameter>accepts_tab</parameter>. If <parameter>accepts_tab</parameter> is
<literal>True</literal> a tab character is inserted. If
<parameter>accepts_tab</parameter> is <literal>False</literal> the keyboard
focus is moved to the next widget in the focus chain.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-accepts-tab">
      <title>gtk.TextView.get_accepts_tab</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_accepts_tab</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if pressing the
	  <keycap>Tab</keycap> key inserts a tab character,
	  <literal>False</literal> if pressing the <keycap>Tab</keycap> key
	  moves the keyboard focus.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
	<para>This method is available in PyGTK 2.4 and above.</para>
      </note>

      <para>The <methodname>get_accepts_tab</methodname>() method returns
the value of the "accepts_tab" property. See the <link
linkend="method-gtktextview--set-accepts-tab"><methodname>set_accepts_tab()</methodname></link>
method for more information.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-pixels-above-lines">
      <title>gtk.TextView.set_pixels_above_lines</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_pixels_above_lines</methodname>
	  <methodparam><parameter
			 role="keyword">pixels_above_lines</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">pixels_above_lines</parameter>&nbsp;:</term>
	  <listitem><simpara>the number of pixels above
paragraphs</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_pixels_above_lines</methodname>() method
sets the "pixels-above-lines" property to the value of
<parameter>pixels_above_lines</parameter>. The "pixels-above-lines" property
determines the number of blank pixels to place above textbuffer lines
(paragraphs) in the textview for text that is not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "pixels-above-lines" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-pixels-above-lines">
      <title>gtk.TextView.get_pixels_above_lines</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_pixels_above_lines</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the default number of pixels above
paragraphs</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_pixels_above_lines</methodname>() method
returns the value of the "pixels-above-lines" property. The
"pixels-above-lines" property determines the number of pixels to put above
textbuffer lines (paragraphs) in the textview for text that is not
influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "pixels-above-lines" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-pixels-below-lines">
      <title>gtk.TextView.set_pixels_below_lines</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_pixels_below_lines</methodname>
	  <methodparam><parameter
			 role="keyword">pixels_below_lines</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">pixels_below_lines</parameter>&nbsp;:</term>
	  <listitem><simpara>the default number of pixels below
paragraphs</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_pixels_below_lines</methodname>() method
sets the "pixels-below-lines" property to the value of
<parameter>pixels_below_lines</parameter>. The "pixels-below-lines" property
determines the number of blank pixels to place below textbuffer lines
(paragraphs) in the textview for text that is not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "pixels-below-lines" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-pixels-below-lines">
      <title>gtk.TextView.get_pixels_below_lines</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_pixels_below_lines</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the default number of blank pixels below
paragraphs</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_pixels_below_lines</methodname>() method
returns the value of the "pixels-below-lines" property. The
"pixels-below-lines" property determines the number of pixels to put below
textbuffer lines (paragraphs) in the textview for text that is not
influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "pixels-below-lines" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-pixels-inside-wrap">
      <title>gtk.TextView.set_pixels_inside_wrap</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_pixels_inside_wrap</methodname>
	  <methodparam><parameter
			 role="keyword">pixels_inside_wrap</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">pixels_inside_wrap</parameter>&nbsp;:</term>
	  <listitem><simpara>the default number of pixels between wrapped
lines</simpara></listitem>
	</varlistentry>
      </variablelist>
      <para>The <methodname>set_pixels_inside_wrap</methodname>() method
sets the "pixels-inside_wrap" property to the value of
<parameter>pixels_inside_wrap</parameter>. The "pixels-inside_wrap" property
determines the number of blank pixels to place between wrapped textbuffer
lines (inside paragraphs) for text that is not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "pixels-inside_wrap" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-pixels-inside-wrap">
      <title>gtk.TextView.get_pixels_inside_wrap</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_pixels_inside_wrap</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the default number of pixels of blank space
between wrapped lines</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_pixels_inside_wrap</methodname>() method
returns the value of the "pixels-inside-wrap" property. The
"pixels-inside-wrap" property determines the number of pixels to put between
wrapped textbuffer lines (inside paragraphs) for text that is not influenced
by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "pixels-inside-wrap" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-justification">
      <title>gtk.TextView.set_justification</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_justification</methodname>
	  <methodparam><parameter
			 role="keyword">justification</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">justification</parameter>&nbsp;:</term>
	  <listitem><simpara>the text justification</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_justification</methodname>() method sets the
"justification" property to the value of
<parameter>justification</parameter>. The value of justification must be one
of: <literal>gtk.JUSTIFY_LEFT</literal>,
<literal>gtk.JUSTIFY_RIGHT</literal>, <literal>gtk.JUSTIFY_CENTER</literal>
or <literal>gtk.JUSTIFY_FILL</literal>. The "justification" property
determines the justification of text in the textview that is not influenced
by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
set its "justification" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-justification">
      <title>gtk.TextView.get_justification</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_justification</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the default justification</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_justification</methodname>() method returns
the value of the "justification" property. the default justification of
paragraphs in <parameter>text_view</parameter>. The value of "justification"
must be one of: <literal>gtk.JUSTIFY_LEFT</literal>,
<literal>gtk.JUSTIFY_RIGHT</literal>, <literal>gtk.JUSTIFY_CENTER</literal>
or <literal>gtk.JUSTIFY_FILL</literal>. The "justification" property
determines the justification of text in the textview that is not influenced
by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
set its "justification" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-left-margin">
      <title>gtk.TextView.set_left_margin</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_left_margin</methodname>
	  <methodparam><parameter
			 role="keyword">left_margin</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">left_margin</parameter>&nbsp;:</term>
	  <listitem><simpara>the default left margin in pixels</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_left_margin</methodname>() method sets the
"left-margin" property to the value of <parameter>left_margin</parameter>.
The "left-margin"property determines the number of pixels of space for the
left margin  of text that is not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "left_margin" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-left-margin">
      <title>gtk.TextView.get_left_margin</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_left_margin</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the default left margin in
pixels</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_left_margin</methodname>() method returns
the value of the "left_margin" property. The "left-margin"property
determines the number of pixels of space for the left margin  of text that
is not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "left_margin" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-right-margin">
      <title>gtk.TextView.set_right_margin</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_right_margin</methodname>
	  <methodparam><parameter
			 role="keyword">right_margin</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">right_margin</parameter>&nbsp;:</term>
	  <listitem><simpara>the default right margin in
pixels</simpara></listitem>
	</varlistentry>
      </variablelist>
      <para>The <methodname>set_right_margin</methodname>() method sets the
"right-margin" property to the value of <parameter>right_margin</parameter>.
The "right-margin"property determines the number of pixels of space for the
right margin  of text that is not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "right_margin" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-right-margin">
      <title>gtk.TextView.get_right_margin</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_right_margin</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the default right margin in
pixels</simpara></listitem>
	</varlistentry>
      </variablelist>
      <para>The <methodname>get_right_margin</methodname>() method returns
the value of the "right_margin" property. The "right-margin"property
determines the number of pixels of space for the right margin  of text that
is not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "right_margin" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-indent">
      <title>gtk.TextView.set_indent</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_indent</methodname>
	  <methodparam><parameter
			 role="keyword">indent</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">indent</parameter>&nbsp;:</term>
	  <listitem><simpara>the default indentation in
pixels</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_indent</methodname>() method sets the
"indent" property to the value of <parameter>indent</parameter>. The
"indent" property determines the indentation for textview paragraphs that
are not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "indent" attribute. The indentation may be negative.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-indent">
      <title>gtk.TextView.get_indent</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_indent</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the default number of pixels of
indentation</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_indent</methodname>() method returns the
value of the "indent" property. The "indent" property determines the
indentation for textview paragraphs that are not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "indent" attribute. The indentation may be negative.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--set-tabs">
      <title>gtk.TextView.set_tabs</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_tabs</methodname>
	  <methodparam><parameter
			 role="keyword">tabs</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">tabs</parameter>&nbsp;:</term>
	  <listitem><simpara>the default tabs as a <link
linkend="class-pangotabarray"><classname>pango.TabArray</classname></link></simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_tabs</methodname>() method sets the "tabs"
property to a copy of the value of <parameter>tabs</parameter>. The "tabs"
property contains the custom tab stops for the textview paragraphs that are
not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "tabs" attribute.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-tabs">
      <title>gtk.TextView.get_tabs</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_tabs</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a copy of default tab array, or
<literal>None</literal> if "standard" tabs are used</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_tabs</methodname>() method returns the value
of the "tabs" property.  The "tabs" property contains the custom tab stops
for the textview paragraphs that are not influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link> that
sets its "tabs" attribute. The returned value will be
<literal>None</literal> if "standard" (8-space) tabs are used.</para>

    </refsect2>

    <refsect2 id="method-gtktextview--get-default-attributes">
      <title>gtk.TextView.get_default_attributes</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_default_attributes</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a new <link
linkend="class-gtktextattributes"><classname>gtk.TextAttributes</classname></link></simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_default_attributes</methodname>() method
returns a copy of the default <link
linkend="class-gtktextattributes"><classname>gtk.TextAttributes</classname></link>. 
These attributes are used for text unless the text is influenced by a <link
linkend="class-gtktexttag"><classname>gtk.TextTag</classname></link>.
You'd typically pass the default attributes in to the <link
linkend="method-gtktextiter--get-attributes"><methodname>gtk.TextIter.get_attributes</methodname>()</link> 
method to get the attributes in effect at a given text position.</para>

    </refsect2>

  </refsect1>

  <refsect1>
    <title>Signals</title>

    <refsect2 id="signal-gtktextview--backspace">
      <title>The "backspace" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python"><methodname>callback</methodname>
      <methodparam><parameter>textview</parameter></methodparam>
      <methodparam><parameter>user_param1</parameter></methodparam>
      <methodparam><parameter>...</parameter></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><parameter>textview</parameter>&nbsp;:</term>
          <listitem><simpara>the object which received the signal.</simpara></listitem>
        </varlistentry>
        <varlistentry>
          <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
          with the <link
          linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
          method</simpara></listitem>
        </varlistentry>
        <varlistentry>
          <term><parameter>...</parameter>&nbsp;:</term>
          <listitem><simpara>additional user parameters (if any)</simpara></listitem>
        </varlistentry>
      </variablelist>

      <note>
        <para>This signal is available in GTK+ 2.10 and above.</para>
      </note>

      <para>The "backspace" signal is emitted when the
      <keycap>Backspace</keycap> key is pressed.</para>


    </refsect2>

    <refsect2 id="signal-gtktextview--copy-clipboard">
      <title>The "copy-clipboard" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "copy-clipboard" signal is emitted when a selection is
copied to the clipboard from  <parameter>textview</parameter>.</para>

    </refsect2>

    <refsect2 id="signal-gtktextview--cut-clipboard">
      <title>The "cut-clipboard" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "cut-clipboard" signal is emitted when a selection is cut
from <parameter>textview</parameter> to the clipboard.</para>

    </refsect2>

    <refsect2 id="signal-gtktextview--delete-from-cursor">
      <title>The "delete-from-cursor" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>delete_type</parameter></methodparam>
	  <methodparam><parameter>count</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>delete_type</parameter>&nbsp;:</term>
	  <listitem><simpara>the type of deletion</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>count</parameter>&nbsp;:</term>
	  <listitem><simpara>the number of deletions to
do</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "delete-from-cursor" signal is emitted when a deletion of
the type specified by <parameter>delete_type</parameter> is initiated by
user action (e.g. pressing the <keycap>Delete</keycap> or
<keycap>Backspace</keycap> keys). The value of
<parameter>delete_type</parameter> must be one of:</para>

      <itemizedlist>
	<listitem>
	  <simpara><literal>gtk.DELETE_CHARS</literal></simpara>
	</listitem>
	<listitem>
	  <simpara><literal>gtk.DELETE_WORD_ENDS</literal></simpara>
	</listitem>
	<listitem>
	  <simpara><literal>gtk.DELETE_WORDS</literal></simpara>
	</listitem>
	<listitem>
	  <simpara><literal>gtk.DELETE_DISPLAY_LINES</literal></simpara>
	</listitem>
	<listitem>
	  <simpara><literal>gtk.DELETE_DISPLAY_LINE_ENDS</literal></simpara>
	</listitem>
	<listitem>
	  <simpara><literal>gtk.DELETE_PARAGRAPH_ENDS</literal></simpara>
	</listitem>
	<listitem>
	  <simpara><literal>gtk.DELETE_PARAGRAPHS</literal></simpara>
	</listitem>
	<listitem>
	  <simpara><literal>gtk.DELETE_WHITESPACE</literal></simpara>
	</listitem>
      </itemizedlist>

      <para><parameter>count</parameter> specifies the number of times that
deletion should be applied.</para>

    </refsect2>

    <refsect2 id="signal-gtktextview--insert-at-cursor">
      <title>The "insert-at-cursor" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>string</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>string</parameter>&nbsp;:</term>
	  <listitem><simpara>the text to be inserted</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "insert-at-cursor" signal is emitted when
<parameter>string</parameter> is being inserted in
<parameter>textview</parameter>.</para>

    </refsect2>

    <refsect2 id="signal-gtktextview--move-cursor">
      <title>The "move-cursor" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>step_size</parameter></methodparam>
	  <methodparam><parameter>count</parameter></methodparam>
	  <methodparam><parameter>extend_selection</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>step_size</parameter>&nbsp;:</term>
	  <listitem><simpara>the step size to move</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>count</parameter>&nbsp;:</term>
	  <listitem><simpara>the number of steps to
move</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>extend_selection</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> extend the
selection</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "move-cursor" signal is emitted when the cursor is moved by
<parameter>count</parameter> steps of <parameter>step_size</parameter>. If
<parameter>extend_selection</parameter> is <literal>True</literal> the
selection is extended by the cursor movement. The value of step_size must be
one of:</para>

      <variablelist>
	<varlistentry>
	  <term><literal>gtk.MOVEMENT_LOGICAL_POSITIONS</literal></term>
	  <listitem>
	    <simpara>move by graphemes</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.MOVEMENT_VISUAL_POSITIONS</literal></term>
	  <listitem>
	    <simpara>move by graphemes</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.MOVEMENT_WORDS</literal></term>
	  <listitem>
	    <simpara>move by words</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.MOVEMENT_DISPLAY_LINES</literal></term>
	  <listitem>
	    <simpara>move by lines(wrapped lines)</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.MOVEMENT_DISPLAY_LINE_ENDS</literal></term>
	  <listitem>
	    <simpara>move to line ends(wrapped lines)</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.MOVEMENT_PARAGRAPHS</literal></term>
	  <listitem>
	    <simpara>move by paragraphs(newline-ended lines)</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.MOVEMENT_PARAGRAPH_ENDS</literal></term>
	  <listitem>
	    <simpara>move to ends of a paragraph</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.MOVEMENT_PAGES</literal></term>
	  <listitem>
	    <simpara>move by pages</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><literal>gtk.MOVEMENT_BUFFER_ENDS</literal></term>
	  <listitem>
	    <simpara>move to ends of the buffer</simpara>
	  </listitem>
	</varlistentry>
      </variablelist>

      <para></para>

    </refsect2>

    <refsect2 id="signal-gtktextview--move-focus">
      <title>The "move-focus" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>direction</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>direction</parameter>&nbsp;:</term>
	  <listitem><simpara>the direction to move the
focus</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "move-focus" signal is emitted when the focus moves from
<parameter>textview</parameter> in the direction specified by
<parameter>direction</parameter> that must be one of:
<literal>gtk.DIR_TAB_FORWARD</literal>,
<literal>gtk.DIR_TAB_BACKWARD</literal>, <literal>gtk.DIR_UP</literal>,
<literal>gtk.DIR_DOWN</literal>, <literal>gtk.DIR_LEFT</literal> or
<literal>gtk.DIR_RIGHT</literal></para>

    </refsect2>

    <refsect2 id="signal-gtktextview--move-viewport">
      <title>The "move-viewport" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>scrollstep</parameter></methodparam>
	  <methodparam><parameter>count</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>scrollstep</parameter>&nbsp;:</term>
	  <listitem><simpara>the size of the scroll step:
	  <literal>gtk.SCROLL_STEPS</literal>,
	  <literal>gtk.SCROLL_PAGES</literal>,
	  <literal>gtk.SCROLL_ENDS</literal>,
	  <literal>gtk.SCROLL_HORIZONTAL_STEPS</literal>,
	  <literal>gtk.SCROLL_HORIZONTAL_PAGES</literal> or
	  <literal>gtk.SCROLL_HORIZONTAL_ENDS</literal></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>count</parameter>&nbsp;:</term>
	  <listitem><simpara>the number of scroll steps of size
	  <parameter>scrollstep</parameter> to take</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
	<para>This signal is available in GTK+ 2.4 and above.</para>
      </note>

      <para>The "move-viewport" signal is emitted when the viewport is being
moved usually as the result of user action in moving the cursor or using
the scrollbars.</para>

    </refsect2>

    <refsect2 id="signal-gtktextview--page-horizontally">
      <title>The "page-horizontally" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>count</parameter></methodparam>
	  <methodparam><parameter>extend_selection</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>count</parameter>&nbsp;:</term>
	  <listitem><simpara>the number of pages to
move</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>extend_selection</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> extend the
selection</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "page-horizontally" signal is emitted when user initiates
horizontal paging by pressing one of the key combinations:</para>

      <variablelist>
	<varlistentry>
	  <term><keycombo action="simul"><keycap>Control</keycap>
	      <keycap>Page&nbsp;Up</keycap>
	    </keycombo></term>
	  <listitem>
	    <simpara>Page horizontally with
<parameter>extend_selection</parameter> set to
<literal>False</literal></simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
	  <term><keycombo action="simul"><keycap>Shift</keycap>
	      <keycap>Control</keycap>
	      <keycap>Page&nbsp;Up</keycap>
	    </keycombo></term>
	  <listitem>
	    <simpara>Page horizontally with
<parameter>extend_selection</parameter> set to
<literal>True</literal></simpara>
	  </listitem>
	</varlistentry>
      </variablelist>

      <para></para>

    </refsect2>

    <refsect2 id="signal-gtktextview--paste-clipboard">
      <title>The "paste-clipboard" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "paste-clipboard" signal is emitted when the contents of the
clipboard are pasted into <parameter>textview</parameter>.</para>

    </refsect2>

    <refsect2 id="signal-gtktextview--populate-popup">
      <title>The "populate-popup" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>menu</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>menu</parameter>&nbsp;:</term>
	  <listitem><simpara>the menu to populate</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "populate-popup" signal is emitted when the popup menu
(specified by <parameter>menu</parameter>) associated with
<parameter>textview</parameter> needs to be populated.</para>

    </refsect2>

    <refsect2 id="signal-gtktextview--select-all">
      <title>The "select-all" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>select</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>select</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> select the buffer
	  contents; otherwise deselect the buffer
	  contents</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>


      <note>
	<para>This signal is available in GTK+ 2.2 and above.</para>
      </note>

      <para>The "select-all" signal is emitted when the user presses one
of:</para>

    <itemizedlist>
      <listitem>
	<simpara><keycombo
action='simul'><keycap>Control</keycap><keycap>a</keycap></keycombo> or
<keycombo
action='simul'><keycap>Control</keycap><keycap>/</keycap></keycombo> to
select all text in a buffer</simpara>
      </listitem>
      <listitem>
	<simpara><keycombo
action='simul'><keycap>Control</keycap><keycap>\</keycap></keycombo> to
deselect all text in a buffer</simpara>
      </listitem>
   </itemizedlist>
      
    <para></para>

    </refsect2>

    <refsect2 id="signal-gtktextview--set-anchor">
      <title>The "set-anchor" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "set-anchor" signal is emitted when an application calls the
<link
linkend="method-gobject--emit"><methodname>GObject.emit()</methodname>()</link> 
method on textview with "set-anchor" as the signal.</para>

    </refsect2>

    <refsect2 id="signal-gtktextview--set-scroll-adjustments">
      <title>The "set-scroll-adjustments" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>hadjustment</parameter></methodparam>
	  <methodparam><parameter>vadjustment</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>hadjustment</parameter>&nbsp;:</term>
	  <listitem><simpara>the horizontal adjustment</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>vadjustment</parameter>&nbsp;:</term>
	  <listitem><simpara>the vertical adjustment</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "set-scroll-adjustments" signal is emitted when one or both
adjustments (specified by <parameter>hadjustment</parameter> and
<parameter>vadjustment</parameter>) are set on
<parameter>textview</parameter>.</para>

    </refsect2>

    <refsect2 id="signal-gtktextview--toggle-overwrite">
      <title>The "toggle-overwrite" gtk.TextView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>textview</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>textview</parameter>&nbsp;:</term>
	  <listitem><simpara>the textview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "toggle-overwrite" signal is emitted when the user presses
the <keycap>Insert</keycap> key.</para>

    </refsect2>

  </refsect1>

</refentry>