summaryrefslogtreecommitdiff
path: root/docs/reference/pygtk-gtkwindow.xml
blob: 420c50f71caffa8206d8fb6d6fbd2529be8caa40 (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
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
<?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-gtkwindow">
  <refnamediv>
    <refname>gtk.Window</refname>
    <refpurpose>a top-level window that holds one child widget.</refpurpose>
  </refnamediv>

  <refsect1>
    <title>Synopsis</title>

    <classsynopsis language="python">
      <ooclass><classname>gtk.Window</classname></ooclass>
      <ooclass><classname><link linkend="class-gtkbin">gtk.Bin</link></classname></ooclass>
      <constructorsynopsis language="python">
        <methodname><link linkend="constructor-gtkwindow">gtk.Window</link></methodname>
        <methodparam><parameter role="keyword">type</parameter>
        <initializer>gtk.WINDOW_TOPLEVEL</initializer></methodparam>
      </constructorsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-title">set_title</link></methodname>
        <methodparam><parameter role="keyword">title</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-title">get_title</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-wmclass">set_wmclass</link></methodname>
        <methodparam><parameter role="keyword">wmclass_name</parameter></methodparam>
        <methodparam><parameter role="keyword">wmclass_class</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-role">set_role</link></methodname>
        <methodparam><parameter role="keyword">role</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-role">get_role</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--add-accel-group">add_accel_group</link></methodname>
        <methodparam><parameter role="keyword">accel_group</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--remove-accel-group">remove_accel_group</link></methodname>
        <methodparam><parameter role="keyword">accel_group</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-position">set_position</link></methodname>
        <methodparam><parameter role="keyword">position</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--activate-focus">activate_focus</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-focus">set_focus</link></methodname>
        <methodparam><parameter role="keyword">focus</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-focus">get_focus</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-default">set_default</link></methodname>
        <methodparam><parameter role="keyword">default_widget</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--activate-default">activate_default</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-transient-for">set_transient_for</link></methodname>
        <methodparam><parameter role="keyword">parent</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-transient-for">get_transient_for</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-type-hint">set_type_hint</link></methodname>
        <methodparam><parameter role="keyword">hint</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-type-hint">get_type_hint</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-destroy-with-parent">set_destroy_with_parent</link></methodname>
        <methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-destroy-with-parent">get_destroy_with_parent</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-resizable">set_resizable</link></methodname>
        <methodparam><parameter role="keyword">resizable</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-resizable">get_resizable</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-gravity">set_gravity</link></methodname>
        <methodparam><parameter role="keyword">gravity</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-gravity">get_gravity</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-geometry-hints">set_geometry_hints</link></methodname>
        <methodparam><parameter role="keyword">geometry_widget</parameter></methodparam>
        <methodparam><parameter role="keyword">min_width</parameter><initializer>-1</initializer></methodparam>
        <methodparam><parameter role="keyword">min_height</parameter><initializer>-1</initializer></methodparam>
        <methodparam><parameter role="keyword">max_width</parameter><initializer>-1</initializer></methodparam>
        <methodparam><parameter role="keyword">max_height</parameter><initializer>-1</initializer></methodparam>
        <methodparam><parameter role="keyword">base_width</parameter><initializer>-1</initializer></methodparam>
        <methodparam><parameter role="keyword">base_height</parameter><initializer>-1</initializer></methodparam>
        <methodparam><parameter role="keyword">width_inc</parameter><initializer>-1</initializer></methodparam>
        <methodparam><parameter role="keyword">height_inc</parameter><initializer>-1</initializer></methodparam>
        <methodparam><parameter role="keyword">min_aspect</parameter><initializer>-1.0</initializer></methodparam>
        <methodparam><parameter role="keyword">max_aspect</parameter><initializer>-1.0</initializer></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-screen">set_screen</link></methodname>
        <methodparam><parameter role="keyword">screen</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-screen">get_screen</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--is-active">is_active</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--has-toplevel-focus">has_toplevel_focus</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-has-frame">set_has_frame</link></methodname>
        <methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-has-frame">get_has_frame</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-frame-dimensions">set_frame_dimensions</link></methodname>
        <methodparam><parameter role="keyword">left</parameter></methodparam>
        <methodparam><parameter role="keyword">top</parameter></methodparam>
        <methodparam><parameter role="keyword">right</parameter></methodparam>
        <methodparam><parameter role="keyword">bottom</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-frame-dimensions">get_frame_dimensions</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-decorated">set_decorated</link></methodname>
        <methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-decorated">get_decorated</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-icon-list">set_icon_list</link></methodname>
        <methodparam><parameter>...</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-icon-list">get_icon_list</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-icon">set_icon</link></methodname>
        <methodparam><parameter role="keyword">icon</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-icon-from-file">set_icon_from_file</link></methodname>
        <methodparam><parameter role="keyword">filename</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-icon">get_icon</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-modal">set_modal</link></methodname>
        <methodparam><parameter role="keyword">modal</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-modal">get_modal</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--add-mnemonic">add_mnemonic</link></methodname>
        <methodparam><parameter role="keyword">keyval</parameter></methodparam>
        <methodparam><parameter role="keyword">target</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--remove-mnemonic">remove_mnemonic</link></methodname>
        <methodparam><parameter role="keyword">keyval</parameter></methodparam>
        <methodparam><parameter role="keyword">target</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--mnemonic-activate">mnemonic_activate</link></methodname>
        <methodparam><parameter role="keyword">keyval</parameter></methodparam>
        <methodparam><parameter role="keyword">modifier</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-mnemonic-modifier">set_mnemonic_modifier</link></methodname>
        <methodparam><parameter role="keyword">modifier</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-mnemonic-modifier">get_mnemonic_modifier</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-mnemonics-visible">set_mnemonics_visible</link></methodname>
        <methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-mnemonics-visible">get_mnemonics_visible</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--activate-key">activate_key</link></methodname>
        <methodparam><parameter role="keyword">event</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--propagate-key-event">propagate_key_event</link></methodname>
        <methodparam><parameter role="keyword">event</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--present">present</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--iconify">iconify</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--deiconify">deiconify</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--stick">stick</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--unstick">unstick</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--maximize">maximize</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--unmaximize">unmaximize</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--fullscreen">fullscreen</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--unfullscreen">unfullscreen</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-keep-above">set_keep_above</link></methodname>
        <methodparam><parameter>setting</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-keep-below">set_keep_below</link></methodname>
        <methodparam><parameter>setting</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--begin-resize-drag">begin_resize_drag</link></methodname>
        <methodparam><parameter role="keyword">edge</parameter></methodparam>
        <methodparam><parameter role="keyword">button</parameter></methodparam>
        <methodparam><parameter role="keyword">root_x</parameter></methodparam>
        <methodparam><parameter role="keyword">root_y</parameter></methodparam>
        <methodparam><parameter role="keyword">timestamp</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--begin-move-drag">begin_move_drag</link></methodname>
        <methodparam><parameter role="keyword">button</parameter></methodparam>
        <methodparam><parameter role="keyword">root_x</parameter></methodparam>
        <methodparam><parameter role="keyword">root_y</parameter></methodparam>
        <methodparam><parameter role="keyword">timestamp</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-default-size">set_default_size</link></methodname>
        <methodparam><parameter role="keyword">width</parameter></methodparam>
        <methodparam><parameter role="keyword">height</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-default-size">get_default_size</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--resize">resize</link></methodname>
        <methodparam><parameter role="keyword">width</parameter></methodparam>
        <methodparam><parameter role="keyword">height</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-size">get_size</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--move">move</link></methodname>
        <methodparam><parameter role="keyword">x</parameter></methodparam>
        <methodparam><parameter role="keyword">y</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-position">get_position</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--parse-geometry">parse_geometry</link></methodname>
        <methodparam><parameter role="keyword">geometry</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--reshow-with-initial-size">reshow_with_initial_size</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--tooltips-get-info-from-tip-window">tooltips_get_info_from_tip_window</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-focus-on-map">set_focus_on_map</link></methodname>
        <methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-focus-on-map">get_focus_on_map</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-icon-name">set_icon_name</link></methodname>
        <methodparam><parameter role="keyword">name</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-icon-name">get_icon_name</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-urgency-hint">set_urgency_hint</link></methodname>
        <methodparam><parameter role="keyword">urgency_hint</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-urgency-hint">get_urgency_hint</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--present-with-time">present_with_time</link></methodname>
        <methodparam><parameter role="keyword">timestamp</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-deletable">set_deletable</link></methodname>
        <methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-deletable">get_deletable</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-group">get_group</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--has-group">has_group</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-window-type">get_window_type</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-opacity">set_opacity</link></methodname>
        <methodparam><parameter role="keyword">opacity</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-opacity">get_opacity</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-startup-id">set_startup_id</link></methodname>
        <methodparam><parameter role="keyword">startup_id</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-default-widget">get_default_widget</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-skip-taskbar-hint">set_skip_taskbar_hint</link></methodname>
        <methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-skip-taskbar-hint">get_skip_taskbar_hint</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-skip-pager-hint">set_skip_pager_hint</link></methodname>
        <methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-skip-pager-hint">get_skip_pager_hint</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--set-accept-focus">set_accept_focus</link></methodname>
        <methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkwindow--get-accept-focus">get_accept_focus</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
     </classsynopsis>

    <programlisting>
<emphasis role="bold">Functions</emphasis>

<methodsynopsis language="python">
	<methodname><link
linkend="function-gtk--window-set-default-icon">gtk.window_set_default_icon</link></methodname>
	<methodparam><parameter role="keyword">icon</parameter></methodparam> </methodsynopsis><methodsynopsis language="python">
	<methodname><link
linkend="function-gtk--window-set-default-icon-from-file">gtk.window_set_default_icon_from_file</link></methodname>
	<methodparam><parameter role="keyword">filename</parameter></methodparam> </methodsynopsis><methodsynopsis language="python">
	<methodname><link
linkend="function-gtk--window-set-default-icon-list">gtk.window_set_default_icon_list</link></methodname>
	<methodparam><parameter>...</parameter></methodparam> </methodsynopsis><methodsynopsis language="python">
	<methodname><link
linkend="function-gtk--window-get-default-icon-list">gtk.window_get_default_icon_list</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis><methodsynopsis language="python">
	<methodname><link linkend="function-gtk--window-set-auto-startup-notification">gtk.window_set_auto_startup_notification</link></methodname>
	<methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis><methodsynopsis language="python">
	<methodname><link linkend="function-gtk--window-list-toplevels">gtk.window_list_toplevels</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis><methodsynopsis language="python">
	<methodname><link
linkend="function-gtk--window-set-default-icon-name">gtk.window_set_default_icon_name</link></methodname>
	<methodparam><parameter
		       role="keyword">name</parameter></methodparam>
      </methodsynopsis></programlisting>

  </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-gtkbin">gtk.Bin</link>
          +-- <link linkend="class-gtkwindow">gtk.Window</link>
</synopsis>

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


  <refsect1 id="properties-gtkwindow">
    <title>gtk.Window 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>"accept-focus"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, the window should receive
the input focus. Default value: <literal>True</literal>. Available in GTK+
2.4 and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"allow-grow"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, the user can expand the
window beyond its minimum size. Default value: <literal>True</literal>.</entry>
	    </row>

	    <row valign="top">
	      <entry>"allow-shrink"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, the window has no minimum
size. Setting this to <literal>True</literal> is a bad
idea 99% of the time. Default value: <literal>False</literal>.</entry>
	    </row>

	    <row valign="top">
	      <entry>"decorated"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, the window should be
decorated by the window manager. Default value: <literal>True</literal>.
Available in GTK+ 2.4 and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"default-height"</entry>
	      <entry>Read-Write</entry>
	      <entry>The default height of the window, used when initially
showing the window. Allowed values: >= -1. Default value: -1</entry>
	    </row>

	    <row valign="top">
	      <entry>"default-width"</entry>
	      <entry>Read-Write</entry>
	      <entry>The default width of the window, used when initially
showing the window. Allowed values: >= -1. Default value: -1</entry>
	    </row>

            <row valign="top">
              <entry>"deletable"</entry>
              <entry>Read-Write</entry>
              <entry>If <literal>True</literal> the window frame should have
              a close button.  This property is available in GTK+ 2.10 and
              above.</entry>
            </row>

	    <row valign="top">
	      <entry>"destroy-with-parent"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, the window should be
destroyed when its parent is destroyed. Default value:
<literal>False</literal>.</entry>
	    </row>

	    <row valign="top">
	      <entry>"focus-on-map"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, the window should
receive the input focus when mapped. Default value:
<literal>True</literal>. Available in GTK+ 2.6 and above.</entry>
	    </row>

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

	      <entry>The window gravity of the window. See the <link
linkend="method-gtkwindow--move"><methodname>move</methodname>()</link>
method and the <xref linkend="gdk-gravity-constants"
endterm="gdk-gravity-constants-title"></xref> for more details about window
gravity. Default value:
<literal>gtk.gdk.GRAVITY_NORTH_WEST</literal>. Available in GTK+ 2.4 and
above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"has-toplevel-focus"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal>, the input focus is within
the window. Default value: <literal>False</literal>. Available in GTK+ 2.2
and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"icon"</entry>
	      <entry>Read-Write</entry>
	      <entry>The icon for this window</entry>
	    </row>

	    <row valign="top">
	      <entry>"icon-name"</entry>
	      <entry>Read-Write</entry>
	      <entry>The name of the themed icon to use as the window icon.
See <link
linkend="class-gtkicontheme"><classname>gtk.IconTheme</classname></link>
for more details. Default value: <literal>None</literal>. Available in
GTK+ 2.6 and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"is-active"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal>, the toplevel is the current
active window. Default value: <literal>False</literal>. Available in GTK+ 2.2
and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"mnemonics-visible"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, mnemonics are currently visible in
        the window. Default value: <literal>True</literal>.</entry>
	    </row>

	    <row valign="top">
	      <entry>"modal"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, the window is modal (other
windows are not usable while this one is up). Default value:
<literal>False</literal>.</entry>
	    </row>
        
        <row valign="top">
	      <entry>"opacity"</entry>
	      <entry>Read-Write</entry>
	      <entry>The requested opacity of the window. See
          <methodname><link linkend="method-gtkwindow--set-opacity">gtk.Window.set_opacity</link></methodname>()
          for more details about window opacity.
          Allowed values: [0,1] Default value: 1.
          Available in GTK+ 2.12.</entry>
	    </row>

	    <row valign="top">
	      <entry>"resizable"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, the user can resize the
window. Default value: <literal>True</literal>.</entry>
	    </row>

	    <row valign="top">
	      <entry>"role"</entry>
	      <entry>Read-Write</entry>
	      <entry>Unique identifier for the window to be used when
restoring a session. Default value: <literal>None</literal>. Available in
GTK+ 2.4</entry>
	    </row>

	    <row valign="top">
	      <entry>"screen"</entry>
	      <entry>Read-Write</entry>
	      <entry>The screen where this window will be displayed.
Available in GTK+ 2.2</entry>
	    </row>

	    <row valign="top">
	      <entry>"skip-pager-hint"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, the window should not be
in the pager. Default value: <literal>False</literal>. Available in GTK+ 2.2
and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"skip-taskbar-hint"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>True</literal>, the window should not be
in the task bar. Default value: <literal>False</literal>. Available in GTK+
2.2 and above.</entry>
	    </row>
        
        <row valign="top">
	      <entry>"startup-id"</entry>
	      <entry>Write</entry>
	      <entry>The :startup-id is a write-only property for setting window's
          startup notification identifier. See
          <methodname><link linkend="method-gtkwindow--set-startup-id">gtk.Window.set_startup_id</link></methodname>()
          for more details. Default value: NULL.
          Available in GTK+ 2.12 and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"title"</entry>
	      <entry>Read-Write</entry>
	      <entry>The title of the window. Default value: <literal>None</literal>.</entry>
	    </row>

        <row valign="top">
          <entry>"transient-for"</entry>
          <entry>Read-Write-Construct</entry>
          <entry>The transient parent of the window. See <link
          linkend="method-gtkwindow--set-transient-for"><methodname>gtk.Window.set_transient_for()</methodname></link>
          for more details about transient windows.  This property is
          available in GTK+ 2.10 and above.</entry>
        </row>

	    <row valign="top">
	      <entry>"type"</entry>
	      <entry>Read-Write</entry>
	      <entry>The type of the window. Default value:
<literal>gtk.WINDOW_TOPLEVEL</literal></entry>
	    </row>

	    <row valign="top">
	      <entry>"type-hint"</entry>
	      <entry>Read-Write</entry>
	      <entry>Hint to help the desktop environment understand what
kind of window this is and how to treat it. Default value:
<literal>gtk.gdk.WINDOW_TYPE_HINT_NORMAL</literal>. Available in GTK+ 2.2
and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"urgency-hint"</entry>
	      <entry>Read-Write</entry>
	      <entry>If True the window should be brought to the users
attention. Default value: <literal>False</literal>. Available in GTK+ 2.8
and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"window-position"</entry>
	      <entry>Read-Write</entry>
	      <entry>The initial position of the window. Default value:
<literal>gtk.WIN_POS_NONE</literal></entry>
	    </row>

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

  </refsect1>

  <refsect1 id="style-properties-gtkwindow">
    <title>gtk.Window Style Properties</title>

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

  </refsect1>

  <refsect1>
    <title>Attributes</title>

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

	    <row valign="top">
	      <entry>"allow_grow"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal>, users can expand the window
beyond its minimum size.</entry>
	    </row>

	    <row valign="top">
	      <entry>"allow_shrink"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal>, the window has no minimum
size.</entry>
	    </row>

	    <row valign="top">
	      <entry>"configure_notify_received"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal> a window resize
configuration event has been received.</entry>
	    </row>

	    <row valign="top">
	      <entry>"configure_request_count"</entry>
	      <entry>Read</entry>
	      <entry>The number of outstanding configuration
requests.</entry>
	    </row>

	    <row valign="top">
	      <entry>"decorated"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal> the window will have
decorations like a titlebar, resize controls, etc. See the <link
linkend="method-gtkwindow--set-decorated"><methodname>set_decorated</methodname>()</link> 
method.</entry>
	    </row>

	    <row valign="top">
	      <entry>"default_widget"</entry>
	      <entry>Read</entry>
	      <entry>The child widget that will be activated by default. See
the <link
linkend="method-gtkwindow--set-default"><methodname>set_default</methodname>()</link> 
method.</entry>
	    </row>

	    <row valign="top">
	      <entry>"destroy_with_parent"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal> the window is destroyed when
its transient parent is destroyed.</entry>
	    </row>

	    <row valign="top">
	      <entry>"focus_widget"</entry>
	      <entry>Read</entry>
	      <entry>The child widget that has the focus.</entry>
	    </row>

	    <row valign="top">
	      <entry>"frame"</entry>
	      <entry>Read</entry>
	      <entry>The frame <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link> (if
any). See the <link
linkend="method-gtkwindow--set-has-frame"><methodname>set_has_frame</methodname>()</link> 
and <link
linkend="method-gtkwindow--set-frame-dimensions"><methodname>set_frame_dimensions</methodname>()</link> 
methods.</entry>
	    </row>

	    <row valign="top">
	      <entry>"frame_bottom"</entry>
	      <entry>Read</entry>
	      <entry>The height of the bottom frame border. See the <link
linkend="method-gtkwindow--set-frame-dimensions"><methodname>set_frame_dimensions</methodname>()</link> 
and <link
linkend="method-gtkwindow--set-has-frame"><methodname>set_has_frame</methodname>()</link> 
methods.</entry>
	    </row>

	    <row valign="top">
	      <entry>"frame_left"</entry>
	      <entry>Read</entry>
	      <entry>The width of the left frame border. See the <link
linkend="method-gtkwindow--set-frame-dimensions"><methodname>set_frame_dimensions</methodname>()</link> 
and <link
linkend="method-gtkwindow--set-has-frame"><methodname>set_has_frame</methodname>()</link> 
methods.</entry>
	    </row>

	    <row valign="top">
	      <entry>"frame_right"</entry>
	      <entry>Read</entry>
	      <entry>The width of the right frame border. See the <link
linkend="method-gtkwindow--set-frame-dimensions"><methodname>set_frame_dimensions</methodname>()</link> 
and <link
linkend="method-gtkwindow--set-has-frame"><methodname>set_has_frame</methodname>()</link> 
methods.</entry>
	    </row>

	    <row valign="top">
	      <entry>"frame_top"</entry>
	      <entry>Read</entry>
	      <entry>The height of the top frame border. See the <link
linkend="method-gtkwindow--set-frame-dimensions"><methodname>set_frame_dimensions</methodname>()</link> 
and <link
linkend="method-gtkwindow--set-has-frame"><methodname>set_has_frame</methodname>()</link> 
methods.</entry>
	    </row>

	    <row valign="top">
	      <entry>"gravity"</entry>
	      <entry>Read</entry>
	      <entry>The window's gravity. See the <link
linkend="method-gtkwindow--move"><methodname>move</methodname>()</link> and
<link
linkend="method-gtkwindow--set-gravity"><methodname>set_gravity</methodname>()</link> 
methods.</entry>
	    </row>

	    <row valign="top">
	      <entry>"group"</entry>
	      <entry>Read</entry>
	      <entry>The <link
linkend="class-gtkwindowgroup"><classname>gtk.WindowGroup</classname></link>
(if any) the window belongs to.</entry>
	    </row>

	    <row valign="top">
	      <entry>"has_focus"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal> the window has the
focus.</entry>
	    </row>

	    <row valign="top">
	      <entry>"has_frame"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal> the window has a frame
window. See the <link
linkend="method-gtkwindow--set-has-frame"><methodname>set_has_frame</methodname>()</link> 
method.</entry>
	    </row>

	    <row valign="top">
	      <entry>"has_user_ref_count"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal> the window has not been
destroyed.</entry>
	    </row>

	    <row valign="top">
	      <entry>"iconify_initially"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal> the window has been
iconified by a call to the <link
linkend="method-gtkwindow--iconify"><methodname>iconify</methodname>()</link> 
method.</entry>
	    </row>

	    <row valign="top">
	      <entry>"keys_changed_handler"</entry>
	      <entry>Read</entry>
	      <entry>The idle handler ID for handling accelerator group
changes.</entry>
	    </row>

	    <row valign="top">
	      <entry>"maximize_initially"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal> the window has been
maximized by a call to the <link
linkend="method-gtkwindow--maximize"><methodname>maximize</methodname>()</link> 
method.</entry>
	    </row>

	    <row valign="top">
	      <entry>"mnemonic_modifier"</entry>
	      <entry>Read</entry>
	      <entry>The mnemonic modifier used with a key to activate an
accelerator. See the <link
linkend="method-gtkwindow--set-mnemonic-modifier"><methodname>set_mnemonic_modifier</methodname>()</link> 
method </entry>
	    </row>

	    <row valign="top">
	      <entry>"modal"</entry>
	      <entry>Read</entry>
	      <entry>If True the window is modal. See the <link
linkend="method-gtkwindow--set-modal"><methodname>set_modal</methodname>()</link> 
method.</entry>
	    </row>

	    <row valign="top">
	      <entry>"need_default_position"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal> the window needs an initial
position calculated.</entry>
	    </row>

	    <row valign="top">
	      <entry>"need_default_size"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal> the window needs an initial
size calculated.</entry>
	    </row>

	    <row valign="top">
	      <entry>"position"</entry>
	      <entry>Read</entry>
	      <entry>The initial position of the window. See the <link
linkend="method-gtkwindow--set-position"><methodname>set_position</methodname>()</link> 
method.</entry>
	    </row>

	    <row valign="top">
	      <entry>"stick_initially"</entry>
	      <entry>Read</entry>
	      <entry>If <literal>True</literal> the window has been made
sticky by a call to the <link
linkend="method-gtkwindow--stick"><methodname>stick</methodname>()</link>
method.</entry>
	    </row>

	    <row valign="top">
	      <entry>"title"</entry>
	      <entry>Read</entry>
	      <entry>The title of the window.</entry>
	    </row>

	    <row valign="top">
	      <entry>"transient_parent"</entry>
	      <entry>Read</entry>
	      <entry>The transient parent window. See the <link
linkend="method-gtkwindow--set-transient-for"><methodname>set_transient_for</methodname>()</link> 
method.</entry>
	    </row>

	    <row valign="top">
	      <entry>"type"</entry>
	      <entry>Read</entry>
	      <entry>The type of the window: gtk.WINDOW_TOPLEVEL or gtk.WINDOW_POPUP.</entry>
	    </row>

	    <row valign="top">
	      <entry>"type_hint"</entry>
	      <entry>Read</entry>
	      <entry>The window's type hint. See the <link
linkend="method-gtkwindow--set-type-hint"><methodname>set_type_hint</methodname>()</link> 
method.</entry>
	    </row>

	    <row valign="top">
	      <entry>"wmclass_class"</entry>
	      <entry>Read</entry>
	      <entry>The window system class hint. See the <link
linkend="method-gtkwindow--set-wmclass"><methodname>set_wmclass</methodname>()</link> 
method.</entry>
	    </row>

	    <row valign="top">
	      <entry>"wmclass_name"</entry>
	      <entry>Read</entry>
	      <entry>The window system name hint. See the <link
linkend="method-gtkwindow--set-wmclass"><methodname>set_wmclass</methodname>()</link> 
method.</entry>
	    </row>

	    <row valign="top">
	      <entry>"wm_role"</entry>
	      <entry>Read</entry>
	      <entry>The unique identifier for the window. See the <link
linkend="method-gtkwindow--set-role"><methodname>set_role</methodname>()</link> 
method.</entry>
	    </row>

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

  </refsect1>

  <refsect1 id="signal-prototypes-gtkwindow">
    <title>gtk.Window 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-gtkwindow--activate-default">activate-default</link>"</term>
        <listitem>
          <methodsynopsis
	    language="python"><methodname>callback</methodname>
            <methodparam><parameter>window</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link
linkend="signal-gtkwindow--activate-focus">activate-focus</link>"</term>
        <listitem>
          <methodsynopsis
	    language="python"><methodname>callback</methodname>
            <methodparam><parameter>window</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link
linkend="signal-gtkwindow--frame-event">frame-event</link>"</term>
        <listitem>
          <methodsynopsis
	    language="python"><methodname>callback</methodname>
            <methodparam><parameter>window</parameter></methodparam>
            <methodparam><parameter>event</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link
linkend="signal-gtkwindow--keys-changed">keys-changed</link>"</term>
        <listitem>
          <methodsynopsis
	    language="python"><methodname>callback</methodname>
            <methodparam><parameter>window</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link
linkend="signal-gtkwindow--move-focus">move-focus</link>"</term>
        <listitem>
          <methodsynopsis
	    language="python"><methodname>callback</methodname>
            <methodparam><parameter>window</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-gtkwindow--set-focus">set-focus</link>"</term>
        <listitem>
          <methodsynopsis
	    language="python"><methodname>callback</methodname>
            <methodparam><parameter>window</parameter></methodparam>
            <methodparam><parameter>widget</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
    </variablelist>

  </refsect1>

  <refsect1>
    <title>Description</title>

    <para>A <link
linkend="class-gtkwindow"><classname>gtk.Window</classname></link> provides
a widget that users commonly think of as a window. That is, an area of the
display that is managed by the window manager and usually decorated with a
title bar, and items to allow the user to close, resize and move the
window. <literal>PyGTK</literal> provides two types of windows (see the
<xref linkend="gtk-window-type-constants"
endterm="gtk-window-type-constants-title"></xref> section for more
information):</para>

    <variablelist>
      <varlistentry>
        <term><literal>gtk.WINDOW_TOPLEVEL</literal></term>
        <listitem>
	  <simpara>A window that has no parent and usually has a frame and
decorations supplied by a window manager. Toplevels windows are the main
application window and dialogs.</simpara>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term><literal>gtk.WINDOW_POPUP</literal></term>
        <listitem>
	  <simpara>A window that is ignored by the window manager and has no
frame or decorations. A popup window is used for menus and
tooltips.</simpara>
        </listitem>
      </varlistentry>
    </variablelist>

    <para>Typically, applications only directly create and use toplevel
windows.</para>

    <para>A <link linkend="class-gtkwindow"><classname>gtk.Window</classname></link> is a container (subclass of <link linkend="class-gtkbin"><classname>gtk.Bin</classname></link>) holding one child widget.</para>

  </refsect1>

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

    <programlisting><constructorsynopsis language="python">
	<methodname>gtk.Window</methodname>
	<methodparam><parameter role="keyword">type</parameter>
	  <initializer>gtk.WINDOW_TOPLEVEL</initializer></methodparam>
      </constructorsynopsis></programlisting>
    <variablelist>
      <varlistentry>
	<term><parameter role="keyword">type</parameter>&nbsp;:</term>
	<listitem><simpara>the type of window:
<literal>gtk.WINDOW_TOPLEVEL</literal> or
<literal>gtk.WINDOW_POPUP</literal></simpara></listitem>
      </varlistentry>
      <varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	<listitem><simpara>a new <link
linkend="class-gtkwindow"><classname>gtk.Window</classname></link>.</simpara></listitem>
      </varlistentry>
    </variablelist>

    <para>Creates a new <link
linkend="class-gtkwindow"><classname>gtk.Window</classname></link>, which is
a toplevel window that can contain other widgets. Nearly always, the type of
the window should be <literal>gtk.WINDOW_TOPLEVEL</literal> (see the <xref
linkend="gtk-window-type-constants"
endterm="gtk-window-type-constants-title"></xref> for more details).
<literal>gtk.WINDOW_POPUP</literal> is used to create a pop-up menu or
pop-up tooltip. On X11, popup windows are not controlled by the window
manager. If you simply want an undecorated window (no window borders), use
the <link
linkend="method-gtkwindow--set-decorated"><methodname>set_decorated</methodname>()</link>
method with a toplevel window, don't use a popup window.</para>


  </refsect1>

  <refsect1>
    <title>Methods</title>

    <refsect2 id="method-gtkwindow--set-title">
      <title>gtk.Window.set_title</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_title</methodname>
	  <methodparam><parameter
			 role="keyword">title</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">title</parameter>&nbsp;:</term>
	  <listitem><simpara>the title of the window</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_title</methodname>() method sets the "title" property
of the <link
linkend="class-gtkwindow"><classname>gtk.Window</classname></link> to the
value specified by <parameter>title</parameter>. The title of a window will
be displayed in its title bar. On the X Window System, the title bar is
rendered by the window manager, so exactly how the title appears to users
may vary according to a user's exact configuration. The title should help a
user distinguish this window from other windows they may have open. A good
title might include the application name and current document
filename.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-title">
      <title>gtk.Window.get_title</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_title</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the title of the window, or
<literal>None</literal>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_title</methodname>() method returns the
value of the "title" property of the window. See the <link
linkend="method-gtkwindow--set-title"><methodname>set_title</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-wmclass">
      <title>gtk.Window.set_wmclass</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_wmclass</methodname>
	  <methodparam><parameter
			 role="keyword">wmclass_name</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">wmclass_class</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">wmclass_name</parameter>&nbsp;:</term>
	  <listitem><simpara>the window name hint</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">wmclass_class</parameter>&nbsp;:</term>
	  <listitem><simpara>the window class hint</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_wmclass</methodname>() method sets the X
Window System "class" and "name" hints for a window. Applications should not
call this method. According to the ICCCM, you should always set these to the
same value for all windows in an application, and <literal>PyGTK</literal>
sets them to that value by default, so calling this method is sort of
pointless. However, you may want to call the <link
linkend="method-gtkwindow--set-role"><methodname>set_role</methodname>()</link> 
method on each window in your application, for the benefit of the session
manager. Setting the role allows the window manager to restore window
positions when loading a saved session.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-role">
      <title>gtk.Window.set_role</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_role</methodname>
	  <methodparam><parameter
			 role="keyword">role</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">role</parameter>&nbsp;:</term>
	  <listitem><simpara>a unique identifier for the
window</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_role</methodname>() method sets a unique
identifier (specified by <parameter>role</parameter>) for the window to be
used when restoring a session. This method is only useful on X11. In
combination with the window title, the window role allows a window manager
to identify "the same" window when an application is restarted. So for
example you might set the "toolbox" role on your app's toolbox window, so
that when the user restarts their session, the window manager can put the
toolbox back in the same place. If a window already has a unique title, you
don't need to set the role, since the WM can use the title to identify the
window when restoring the session.d</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-role">
      <title>gtk.Window.get_role</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_role</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the role of the window if set, or
<literal>None</literal>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_role</methodname>() method returns the role
of the window. See the <link
linkend="method-gtkwindow--set-role"><methodname>set_role</methodname>()</link> 
method for further explanation.</para>

    </refsect2>

  <refsect2 id="method-gtkwindow--add-accel-group">
      <title>gtk.Window.add_accel_group</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>add_accel_group</methodname>
	  <methodparam><parameter
			 role="keyword">accel_group</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">accel_group</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtkaccelgroup"><classname>gtk.AccelGroup</classname></link></simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>add_accel_group</methodname>() method associates
the accelerator group specified by <parameter>accel_group</parameter> with
the window.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--remove-accel-group">
      <title>gtk.Window.remove_accel_group</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>remove_accel_group</methodname>
	  <methodparam><parameter
			 role="keyword">accel_group</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">accel_group</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtkaccelgroup"><classname>gtk.AccelGroup</classname></link></simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>remove_accel_group</methodname>() method
dissociates the accelerator group specified by
<parameter>accel_group</parameter> from the widget. This method reverses the
effects of the <link
linkend="method-gtkwindow--add-accel-group"><methodname>add_accel_group</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-position">
      <title>gtk.Window.set_position</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_position</methodname>
	  <methodparam><parameter
			 role="keyword">position</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">position</parameter>&nbsp;:</term>
	  <listitem><simpara>a position constraint.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_position</methodname>() method sets the
"window-position" property to the value of <parameter>position</parameter>.
The value of <parameter>position</parameter> must be one of the <xref
linkend="gtk-window-position-constants"
endterm="gtk-window-position-constants-title"></xref>.</para>

      <para>If the old or new window position constraint is
<literal>gtk.WIN_POS_CENTER_ALWAYS</literal>, this will also cause the
window to be repositioned to satisfy the new constraint.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--activate-focus">
      <title>gtk.Window.activate_focus</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>activate_focus</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the window has a
focus widget</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>activate_focus</methodname>() method activates
the child widget with the focus. This method returns <literal>True</literal>
if the window has a widget with the focus.</para>

  </refsect2>

    <refsect2 id="method-gtkwindow--set-focus">
      <title>gtk.Window.set_focus</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_focus</methodname>
	  <methodparam><parameter
			 role="keyword">focus</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">focus</parameter>&nbsp;:</term>
	  <listitem><simpara>the widget to be the new focus
widget or <literal>None</literal> to unset a focus widget</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_focus</methodname>() method sets the widget
specified by <parameter>focus</parameter> to be the focus widget for the
window. If <parameter>focus</parameter> is <literal>None</literal> the
window's focus widget is unset. To set the focus to a particular widget in
the toplevel, it is usually more convenient to use the <link
linkend="method-gtkwidget--grab-focus"><methodname>gtk.Widget.grab_focus</methodname>()</link> 
method instead of this method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-focus">
      <title>gtk.Window.get_focus</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_focus</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the currently focused
widget.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_focus</methodname>() method returns the
current focused widget within the window. The focus widget is the widget
that would have the focus if the toplevel window is focused.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-default">
      <title>gtk.Window.set_default</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_default</methodname>
	  <methodparam><parameter
			 role="keyword">default_widget</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">default_widget</parameter>&nbsp;:</term>
	  <listitem><simpara>the widget to be the default, or
<literal>None</literal> to unset the default widget.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_default</methodname>() method sets the
window's default widget to the value specified by
<parameter>default_widget</parameter>. If
<parameter>default_widget</parameter> is <literal>None</literal> the
window's default widget is unset. The default widget is the widget that's
activated when the user presses <keycap>Enter</keycap> in a window. When
setting (rather than unsetting) the default widget it's generally easier to
call the <link
linkend="method-gtkwidget--grab-default"><methodname>gtk.Widget.grab_default</methodname>()</link> 
method on the widget. Before making a widget the default widget, you must
set the <literal>gtk.CAN_DEFAULT</literal> flag on the widget you'd like to
make the default using the <link
linkend="method-gtkobject--set-flags"><methodname>gtk.Object.set_flags</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--activate-default">
      <title>gtk.Window.activate_default</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>activate_default</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the window has a
default widget or a focus widget.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>activate_default</methodname>() method activates
the default widget. If there is no default widget or the default widget
cannot be activated, the window's focus widget (if any) is activated. This
method returns <literal>False</literal> if no default widget could be
activated or there is no focus widget.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-transient-for">
      <title>gtk.Window.set_transient_for</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_transient_for</methodname>
	  <methodparam><parameter
			 role="keyword">parent</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">parent</parameter>&nbsp;:</term>
	  <listitem><simpara>the parent window or <literal>None</literal> to
remove the transient parent</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_transient_for</methodname>() method sets the
window as a transient window for the window specified by
<parameter>parent</parameter>. Dialog windows should be set transient for
the main application window they were spawned from. This allows window
managers to keep the dialog on top of the main window, or center the dialog
over the main window. The <link
linkend="constructor-gtkdialog">gtk.Dialog</link>() constructor and other
convenience functions in <literal>PyGTK</literal> will sometimes call the
<methodname>set_transient_for</methodname>() method on your behalf.
</para>
      <para>
On Windows, this method will and put the child window on top of the parent,
much as the window manager would have done on X.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-transient-for">
      <title>gtk.Window.get_transient_for</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_transient_for</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the transient parent for this window, or
<literal>None</literal> if no transient parent has been
set.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_transient_for</methodname>() method returns
the transient parent for this window or <literal>None</literal> if no
transient window is set. See the <link
linkend="method-gtkwindow--set-transient-for"><methodname>set_transient_for</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-type-hint">
      <title>gtk.Window.set_type_hint</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_type_hint</methodname>
	  <methodparam><parameter
			 role="keyword">hint</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">hint</parameter>&nbsp;:</term>
	  <listitem><simpara>the window type</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_type_hint</methodname>() method sets the
window type hint for the window to the value specified by
<parameter>hint</parameter>. The value of <parameter>hint</parameter> must
be one of the <xref linkend="gdk-window-type-hint-constants"
endterm="gdk-window-type-hint-constants-title"></xref>.</para>

      <para>By setting the type hint for the window, you allow the window
manager to decorate and handle the window in a way which is suitable to the
method of the window in your application. This method should be called
before the window becomes visible. The <link
linkend="constructor-gtkdialog">gtk.Dialog</link>() constructor and other
convenience functions in <literal>PyGTK</literal> will sometimes call this
method on your behalf.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-type-hint">
      <title>gtk.Window.get_type_hint</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_type_hint</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the type hint for the
window.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_type_hint</methodname>() method returns the
type hint for this window. See the <link
linkend="method-gtkwindow--set-type-hint">s<methodname>et_type_hint</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-destroy-with-parent">
      <title>gtk.Window.set_destroy_with_parent</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_destroy_with_parent</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> destroy the window
with its transient parent</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_destroy_with_parent</methodname>() method
sets the "destroy-with-parent" property to the value specified by
<parameter>setting</parameter>. If <parameter>setting</parameter> is
<literal>True</literal>, destroying the transient parent of the window will
also destroy the window itself. This is useful for dialogs that shouldn't
persist beyond the lifetime of the main window they're associated
with.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-destroy-with-parent">
      <title>gtk.Window.get_destroy_with_parent</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_destroy_with_parent</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the window will be
destroyed with its transient parent.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_destroy_with_parent</methodname>() method
returns the value of the "destroy-with-parent" property that determines if
the window will be destroyed with its transient parent. See the <link
linkend="method-gtkwindow--set-destroy-with-parent"><methodname>set_destroy_with_parent</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-resizable">
      <title>gtk.Window.set_resizable</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_resizable</methodname>
	  <methodparam><parameter
			 role="keyword">resizable</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">resizable</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> the user can resize
this window</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_resizable</methodname>() method sets the
"resizable" property to  the value of <parameter>resizable</parameter>. If
<parameter>resizable</parameter> is <literal>True</literal> the user can
resize the window. Windows are user resizable by default.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-resizable">
      <title>gtk.Window.get_resizable</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_resizable</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the user can resize
the window</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_resizable</methodname>() method returns the
value of the "resizable" property. See the <link
linkend="method-gtkwindow--set-resizable"><methodname>set_resizable</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-gravity">
      <title>gtk.Window.set_gravity</title>

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


      <para>The <methodname>set_gravity</methodname>() method sets the
gravity of the window to the value specified by
<parameter>gravity</parameter>. The window gravity defines the meaning of
coordinates passed to the <link
linkend="method-gtkwindow--move"><methodname>move</methodname>()</link>
method. The value of gravity must be one of the <xref
linkend="gdk-gravity-constants"
endterm="gdk-gravity-constants-title"></xref>.</para>

      <para>The default window gravity is
<literal>gtk.gdk.GRAVITY_NORTH_WEST</literal> which will typically "do what
you want."</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-gravity">
      <title>gtk.Window.get_gravity</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_gravity</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara> the window gravity</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_gravity</methodname>() method returns window
gravity. See the <link
linkend="method-gtkwindow--set-gravity"><methodname>set_gravity</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-geometry-hints">
      <title>gtk.Window.set_geometry_hints</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_geometry_hints</methodname>
	  <methodparam><parameter
			 role="keyword">geometry_widget</parameter></methodparam>
	  <methodparam><parameter role="keyword">min_width</parameter>
	    <initializer>-1</initializer></methodparam>
	  <methodparam><parameter role="keyword">min_height</parameter>
	    <initializer>-1</initializer></methodparam>
	  <methodparam><parameter role="keyword">max_width</parameter>
	    <initializer>-1</initializer></methodparam>
	  <methodparam><parameter role="keyword">max_height</parameter>
	    <initializer>-1</initializer></methodparam>
	  <methodparam><parameter role="keyword">base_width</parameter>
	    <initializer>-1</initializer></methodparam>
	  <methodparam><parameter role="keyword">base_height</parameter>
	    <initializer>-1</initializer></methodparam>
	  <methodparam><parameter role="keyword">width_inc</parameter>
	    <initializer>-1</initializer></methodparam>
	  <methodparam><parameter role="keyword">height_inc</parameter>
	    <initializer>-1</initializer></methodparam>
	  <methodparam><parameter role="keyword">min_aspect</parameter>
	    <initializer>-1.0</initializer></methodparam>
	  <methodparam><parameter role="keyword">max_aspect</parameter>
	    <initializer>-1.0</initializer></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">geometry_widget</parameter>&nbsp;:</term>
	  <listitem><simpara>the widget the geometry hints will be applied
to</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">min_width</parameter>&nbsp;:</term>
	  <listitem><simpara>the minimum width of window (or -1 to use
requisition)</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">min_height</parameter>&nbsp;:</term>
	  <listitem><simpara>the minimum height of window (or -1 to use
requisition)</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">max_width</parameter>&nbsp;:</term>
	  <listitem><simpara>the maximum width of window (or -1 to use
requisition)</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">max_height</parameter>&nbsp;:</term>
	  <listitem><simpara>the maximum height of window (or -1 to use
requisition)</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">base_width</parameter>&nbsp;:</term>
	  <listitem><simpara>allowed window widths are base_width +
width_inc * N where N is any integer</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">base_height</parameter>&nbsp;:</term>
	  <listitem><simpara>allowed window heights are base_height +
width_inc * N where N is any integer</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">width_inc</parameter>&nbsp;:</term>
	  <listitem><simpara>the width resize increment</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">height_inc</parameter>&nbsp;:</term>
	  <listitem><simpara>the height resize
increment</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">min_aspect</parameter>&nbsp;:</term>
	  <listitem><simpara>the minimum width to height
ratio</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">max_aspect</parameter>&nbsp;:</term>
	  <listitem><simpara>the maximum width to height
ratio</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_geometry_hints</methodname>() method sets up
hints about how a window can be resized by the user. You can set the minimum
and maximum widths and heights, the base width and height for resizing, the
allowed width and height resize increments (e.g. for xterm, you can only
resize by the size of a character), and the minimum and maximum aspect
ratios. If <parameter>geometry_widget</parameter> is not
<literal>None</literal> it specifies the widget to figure the geometry
on.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-screen">
      <title>gtk.Window.set_screen</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_screen</methodname>
	  <methodparam><parameter role="keyword">screen</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">screen</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
	  linkend="class-gdkscreen"><classname>gtk.gdk.Screen</classname></link>.</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>set_screen</methodname>() method sets the
"screen" property to the <link
linkend="class-gdkscreen"><classname>gtk.gdk.Screen</classname></link>
specified by <parameter>screen</parameter>. The "screen" property contains
the screen that the window is displayed on. If the window is already mapped,
it will be unmapped, and then remapped on the new screen.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-screen">
      <title>gtk.Window.get_screen</title>

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

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

      <para>The <methodname>get_screen</methodname>() method returns the
<link linkend="class-gdkscreen"><classname>gtk.gdk.Screen</classname></link>
that the window is displayed on.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--is-active">
      <title>gtk.Window.is_active</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>is_active</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the window is part
	  of the current active window.</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>is_active</methodname>() method returns
<literal>True</literal> if the window is part of the current active
toplevel, i.e., the toplevel window receiving keystrokes.  The return value
is <literal>True</literal> if the window is active the toplevel itself, or
if it is, for example, a <link
linkend="class-gtkplug"><classname>gtk.Plug</classname></link> embedded in
the active toplevel. You might use this method if you wanted to draw a
widget differently in an active window from a widget in an inactive window.
See the <link
linkend="method-gtkwindow--has-toplevel-focus"><methodname>has_toplevel_focus()</methodname></link>
method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--has-toplevel-focus">
      <title>gtk.Window.has_toplevel_focus</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>has_toplevel_focus</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the the input focus
	  is within the window</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>has_toplevel_focus</methodname>() method returns
<literal>True</literal> if the input focus is within the window.  For real
toplevel windows, this is identical to <link
linkend="method-gtkwindow--is-active"><methodname>is_active()</methodname></link>,
but for embedded windows, like a <link
linkend="class-gtkplug"><classname>gtk.Plug</classname></link>, the results
will differ.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-has-frame">
      <title>gtk.Window.set_has_frame</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_has_frame</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> PyGTK draws the
window border</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_has_frame</methodname>() method sets the
flag that causes <literal>PyGTK</literal> to draw its own window border for
the window.</para>

      <note>
	<para>This is a special-purpose method for the framebuffer port. For
most applications, you want the <link
linkend="method-gtkwindow--set-decorated"><methodname>set_decorated</methodname>()</link> 
method instead,that tells the window manager whether to draw the window
border.</para>
      </note>

      <para>If this method is called on a window with setting of
<literal>True</literal>, before it is realized or showed, it will have a
"frame" window around the window's <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link>,
accessible in the window's frame. Using the signal "frame-event" you can
receive all events targeted at the frame. This method is used by the
linux-fb port to implement managed windows, but it could conceivably be used
by X-programs that want to do their own window decorations.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-has-frame">
      <title>gtk.Window.get_has_frame</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_has_frame</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if a frame has been
added to the window via the <link
linkend="method-gtkwindow--set-has-frame"><methodname>set_has_frame</methodname>()</link> 
method.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_has_frame</methodname>() method returns the
value of the window's "has_frame" flag that determines if the window has a
frame window exterior to its <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link>. See
the <link
linkend="method-gtkwindow--set-has-frame"><methodname>set_has_frame</methodname>()</link> 
method for more information.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-frame-dimensions">
      <title>gtk.Window.set_frame_dimensions</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_frame_dimensions</methodname>
	  <methodparam><parameter
			 role="keyword">left</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">top</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">right</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">bottom</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">left</parameter>&nbsp;:</term>
	  <listitem><simpara>the width of the left
border</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">top</parameter>&nbsp;:</term>
	  <listitem><simpara>the height of the top
border</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">right</parameter>&nbsp;:</term>
	  <listitem><simpara>the width of the right
border</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">bottom</parameter>&nbsp;:</term>
	  <listitem><simpara>the height of the bottom
border</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_frame_dimensions</methodname>() method sets
the size of the frame around the window to the values specified by
<parameter>left</parameter>, <parameter>top</parameter>,
<parameter>bottom</parameter> and <parameter>right</parameter>.</para>

      <note>
	<para>This is a special-purpose method intended for the framebuffer
port. See the <link
linkend="method-gtkwindow--set-has-frame"><methodname>set_has_frame</methodname>()</link> 
method. It will have no effect on the window border drawn by the window
manager, which is the normal case when using the X Window system.</para>
      </note>

      <para>For windows with frames (see the <link
linkend="method-gtkwindow--set-has-frame"><methodname>set_has_frame</methodname>()</link> 
method) this method can be used to change the size of the frame
border.</para>

    </refsect2>

  <refsect2 id="method-gtkwindow--get-frame-dimensions">
      <title>gtk.Window.get_frame_dimensions</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_frame_dimensions</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a tuple containing the frame dimensions: the
width of the frame at the left; the height of the frame at the top; the
width of the frame at the right; and, the height of the frame at the
bottom.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_frame_dimensions</methodname>() method
returns a tuple containing the frame dimensions:  the width of the frame at
the left; the height of the frame at the top; the width of the frame at the
right; and, the height of the frame at the bottom.</para>

      <note>
	<para>This is a special-purpose method intended for the framebuffer
port See the <link
linkend="method-gtkwindow--set-has-frame"><methodname>set_has_frame</methodname>()</link> 
method. It will not return the size of the window border drawn by the window
manager, which is the normal case when using a windowing system.  See the
<link
linkend="method-gdkwindow--get-frame-extents"><methodname>get_frame_extents</methodname>()</link> 
to get the standard window border extents.</para>
      </note>

      <para>See the <link
linkend="method-gtkwindow--set-has-frame"><methodname>set_has_frame</methodname>()</link> 
and <link
linkend="method-gtkwindow--set-frame-dimensions"><methodname>set_frame_dimensions</methodname>()</link> 
methods for more information.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-decorated">
      <title>gtk.Window.set_decorated</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_decorated</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> decorate the
window</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_decorated</methodname>() method sets the
decorated flag to the value specified by <parameter>setting</parameter>. If
<parameter>setting</parameter> is <literal>True</literal> the window will be
decorated. By default, windows are decorated with a title bar, resize
controls, etc. Some window managers allow PyGTK to disable these
decorations, creating a borderless window. If you set the decorated property
to <literal>False</literal> using this method, <literal>PyGTK</literal> will
do its best to convince the window manager not to decorate the window. On
Windows, this method always works, since there's no window manager policy
involved.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-decorated">
      <title>gtk.Window.get_decorated</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_decorated</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the window has been
set to have decorations</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_decorated</methodname>() method returns the
value of the decorated flag that determines if the window has been set to
have decorations such as a title bar. See the <link
linkend="method-gtkwindow--set-decorated"><methodname>set_decorated</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-icon-list">
      <title>gtk.Window.set_icon_list</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_icon_list</methodname>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>zero or more <link
linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link>
objects</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_icon_list</methodname>() method sets up the
icon representing the window using the set of <link
linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link>
objects passed as arguments. If no <link
linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link>
objects are passed in the icon is unset and reverts to the default icon. The
icon is used when the window is minimized (also known as iconified). Some
window managers or desktop environments may also place it in the window
frame, or display it in other contexts. This method allows you to pass in
the same icon in several hand-drawn sizes. The <link
linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link>
objects should contain the natural sizes your icon is available in; i.e.,
don't scale the image before passing it to <literal>PyGTK</literal>. Scaling
is postponed until the last minute, when the desired final size is known, to
allow best quality. By passing several sizes, you may improve the final
image quality of the icon, by reducing or eliminating automatic image
scaling. The recommended sizes to provide are: 16x16, 32x32, 48x48 at
minimum, and larger images (64x64, 128x128) if you have them.</para>

      <para>See the <link
linkend="function-gtk--window-set-default-icon-list"><methodname>gtk.window_set_default_icon_list</methodname>()</link> 
function to set the icon for all windows in your application in one go. Note
that transient windows (those who have been set transient for another window
using the <link
linkend="method-gtkwindow--set-transient-for"><methodname>set_transient_for</methodname>()</link> 
method) will inherit their icon from their transient parent. So there's no
need to explicitly set the icon on transient windows.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-icon-list">
      <title>gtk.Window.get_icon_list</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_icon_list</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a copy of the window's icon
list</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_icon_list</methodname>() method returns the
list of icons set by the <link
linkend="method-gtkwindow--set-icon-list"><methodname>set_icon_list</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-icon">
      <title>gtk.Window.set_icon</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_icon</methodname>
	  <methodparam><parameter
			 role="keyword">icon</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">icon</parameter>&nbsp;:</term>
	  <listitem><simpara>an icon image, or
<literal>None</literal></simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_icon</methodname>() method sets the "icon"
property to the value specified by <parameter>icon</parameter>. This icon is
used when the window is minimized (also known as iconified). Some window
managers or desktop environments may also place it in the window frame, or
display it in other contexts. The icon should be provided in whatever size
it was naturally drawn; that is, don't scale the image before passing it to
<literal>PyGTK</literal>. Scaling is postponed until the last minute, when
the desired final size is known, to allow best quality. If you have your
icon hand-drawn in multiple sizes, use the <link
linkend="method-gtkwindow--set-icon-list"><methodname>set_icon_list</methodname>()</link> 
method. Then the best size will be used.</para>

      <para>This method is equivalent to calling the <link
linkend="method-gtkwindow--set-icon-list"><methodname>set_icon_list</methodname>()</link> 
method with a 1-element list. See the <link
linkend="function-gtk--window-set-default-icon-list"><methodname>gtk.window_set_default_icon_list</methodname>()</link> 
function to set the icon for all windows in your application in one
go.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-icon-from-file">
      <title>gtk.Window.set_icon_from_file</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_icon_from_file</methodname>
	  <methodparam><parameter
			 role="keyword">filename</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">filename</parameter>&nbsp;:</term>
	  <listitem><simpara>the name of a file containing an icon
	  image</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the icon was
	  loaded.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_icon_from_file</methodname>() method sets
the "icon" property to the icon loaded from the file specified by
<parameter>filename</parameter>. The icon is used when the window is
minimized (also known as iconified). See the <link
linkend="method-gtkwindow--set-icon"><methodname>set_icon</methodname>()</link>)
method for more information. This method is equivalent to calling the <link
linkend="method-gtkwindow--set-icon"><methodname>set_icon</methodname>()</link>
method with a pixbuf created by loading the image from
<parameter>filename</parameter>.</para>

      <para>The GError exception is raised if an error occurs while loading
the pixbuf from <parameter>filename</parameter>.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-icon">
      <title>gtk.Window.get_icon</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_icon</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the icon for window</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_icon</methodname>() method returns the value
of the "icon" property set by the <link
linkend="method-gtkwindow--set-icon"><methodname>set_icon</methodname>()</link> 
(or if you've called the <link
linkend="method-gtkwindow--set-icon-list"><methodname>set_icon_list</methodname>()</link> 
method, returns the first icon in the icon list).</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-modal">
      <title>gtk.Window.set_modal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_modal</methodname>
	  <methodparam><parameter
			 role="keyword">modal</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">modal</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> the window is
modal</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_modal</methodname>() method sets the "modal"
property to the value of <parameter>modal</parameter>. If
<parameter>modal</parameter> is <literal>True</literal> the window becomes
modal. Modal windows prevent interaction with other windows in the same
application. Typically modal windows are used for <link
linkend="class-gtkdialog"><classname>gtk.Dialog</classname></link> windows
that require a user response before the application can continue. To keep
modal dialogs on top of the main application windows, use the <link
linkend="method-gtkwindow--set-transient-for"><methodname>set_transient_for</methodname>()</link> 
method to make the dialog transient for the parent - most window managers
will then disallow lowering the dialog below the parent.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-modal">
      <title>gtk.Window.get_modal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_modal</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the window is set to
be modal and establishes a grab when shown</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_modal</methodname>() method returns the
value of the "modal" property. If "modal" is <literal>True</literal> the
window is modal. See the <link
linkend="method-gtkwindow--set-modal"><methodname>set_modal</methodname>()</link> 
method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--add-mnemonic">
      <title>gtk.Window.add_mnemonic</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>add_mnemonic</methodname>
	  <methodparam><parameter
			 role="keyword">keyval</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">target</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">keyval</parameter>&nbsp;:</term>
	  <listitem><simpara>the mnemonic key</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">target</parameter>&nbsp;:</term>
	  <listitem><simpara>the widget that gets activated by the
mnemonic</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>add_mnemonic</methodname>() method adds a
mnemonic key specified by <parameter>keyval</parameter> to this window. When
the mnemonic key is pressed the widget specified by
<parameter>target</parameter> will be activated.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--remove-mnemonic">
      <title>gtk.Window.remove_mnemonic</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>remove_mnemonic</methodname>
	  <methodparam><parameter
			 role="keyword">keyval</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">target</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">keyval</parameter>&nbsp;:</term>
	  <listitem><simpara>the mnemonic key</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">target</parameter>&nbsp;:</term>
	  <listitem><simpara>the widget that gets activated by the
mnemonic</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>remove_mnemonic</methodname>() method removes
the mnemonic specified by <parameter>keyval</parameter> for the widget
specified by <parameter>target</parameter> from this window.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--mnemonic-activate">
      <title>gtk.Window.mnemonic_activate</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>mnemonic_activate</methodname>
	  <methodparam><parameter
			 role="keyword">keyval</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">modifier</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">keyval</parameter>&nbsp;:</term>
	  <listitem><simpara>the mnemonic key</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">modifier</parameter>&nbsp;:</term>
	  <listitem><simpara>the modifiers</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>True if the activation was
done</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The<methodname> mnemonic_activate</methodname>() method
activates the targets associated with the mnemonic specified by
<parameter>keyval</parameter>. The window's mnemonic modifier must match
<parameter>modifier</parameter> to allow the activation to proceed. See the
<link
linkend="method-gtkwindow--set-mnemonic-modifier"><methodname>set_mnemonic_modifier</methodname>()</link> 
method for more information.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-mnemonic-modifier">
      <title>gtk.Window.set_mnemonic_modifier</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_mnemonic_modifier</methodname>
	  <methodparam><parameter
			 role="keyword">modifier</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">modifier</parameter>&nbsp;:</term>
	  <listitem><simpara>the modifier mask used to activate mnemonics on
this window.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_mnemonic_modifier</methodname>() method sets
the mnemonic modifier for this window to the value specified by
<parameter>modifier</parameter>. The value of
<parameter>modifier</parameter> is one of:</para>

      <variablelist>
	<varlistentry>
          <term><literal>gtk.gdk.SHIFT_MASK</literal></term>
	  <listitem>
            <simpara>The Shift key.</simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
          <term><literal>gtk.gdk.CONTROL_MASK</literal></term>
	  <listitem>
            <simpara>The Control key. </simpara>
	  </listitem>
	</varlistentry>
	<varlistentry>
          <term><literal>gtk.gdk.MOD1_MASK</literal></term>
	  <listitem>
            <simpara>The fourth modifier key (it depends on the modifier
mapping of the X server which key is interpreted as this modifier, but
normally it is the Alt key).</simpara>
	  </listitem>
	</varlistentry>
      </variablelist>

      <para></para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-mnemonic-modifier">
      <title>gtk.Window.get_mnemonic_modifier</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_mnemonic_modifier</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>the modifier mask used to activate mnemonics on
this window.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_mnemonic_modifier</methodname>() method
returns the mnemonic modifier for this window. See the <link
linkend="method-gtkwindow--set-mnemonic-modifier"><methodname>set_mnemonic_modifier</methodname>()</link> 
method for more detail.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-mnemonics-visible">
      <title>gtk.Window.set_mnemonics_visible</title>

      <programlisting><methodsynopsis language="python">
        <methodname>set_mnemonics_visible</methodname>
        <methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis></programlisting>
      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">setting</parameter>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if mnemomics should be visible in the window, <literal>False</literal> otherwise.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>The <methodname>set_mnemonics_visible</methodname>() method sets whether mnemonics are currently visible in the window.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-mnemonics-visible">
      <title>gtk.Window.get_mnemonics_visible</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_mnemonics_visible</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>
      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if mnemomics are currently visible in the window, <literal>False</literal> otherwise.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>The <methodname>get_mnemonics_visible</methodname>() method returns whether mnemonics are currently visible in the window.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--activate-key">
      <title>gtk.Window.activate_key</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>activate_key</methodname>
	  <methodparam><parameter role="keyword">event</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">event</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
	  linkend="class-gdkevent"><classname>gtk.gdk.Event</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if a mnemonic or
	  accelerator was found and activated.</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>activate_key</methodname>() method activates
mnemonics and accelerators for the window. This is normally called by the
default <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> "<link
linkend="signal-gtkwidget--key-press-event">key-press-event</link>" signal
handler for toplevel windows, however in some cases it may be useful to call
this directly when overriding the standard key handling for a toplevel
window.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--propagate-key-event">
      <title>gtk.Window.propagate_key_event</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>propagate_key_event</methodname>
	  <methodparam><parameter role="keyword">event</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">event</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
	  linkend="class-gdkevent"><classname>gtk.gdk.Event</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if a widget in the
	  focus chain handled the event.</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>propagate_key_event</methodname>() method
propagates a key press or release event to the focus widget and up the focus
container chain until a widget handles the key event specified by
<parameter>event</parameter>. This is normally called by the default <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> "<link
linkend="signal-gtkwidget--key-press-event">key-press-event</link>" and
"<link
linkend="signal-gtkwidget--key-release-event">key-release-event</link>"
signal handlers for toplevel windows, however in some cases it may be useful
to call this directly when overriding the standard key handling for a
toplevel window.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--present">
      <title>gtk.Window.present</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>present</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>


      <para>The <methodname>present</methodname>() method presents a window
to the user. This may mean raising the window in the stacking order,
deiconifying it, moving it to the current desktop, and/or giving it the
keyboard focus, possibly dependent on the user's platform, window manager,
and preferences. If the window is hidden, this method calls the the <link
linkend="method-gtkwidget--show"><methodname>gtk.Widget.show</methodname>()</link> 
method as well. This method should be used when the user tries to open a
window that's already open. Say for example the preferences dialog is
currently open, and the user chooses <guimenuitem>Preferences</guimenuitem>
from the menu a second time; use the <methodname>present</methodname>()
method to move the already-open dialog where the user can see it.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--iconify">
      <title>gtk.Window.iconify</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>iconify</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>

      <para>The <methodname>iconify</methodname>() method asks the window
manager to iconify (i.e. minimize) the specified the window. Note that you
shouldn't assume the window is definitely iconified afterward, because other
entities (e.g. the user or window manager) could deiconify it again, or
there may not be a window manager in which case iconification isn't
possible, etc. But normally the window will end up iconified. Just don't
write code that crashes if not. This method can be called before showing a
window, in which case the window will be iconified before it ever appears
on-screen. You can track iconification via the <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> "<link
linkend="signal-gtkwidget--window-state-event">window-state-event</link>"
signal.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--deiconify">
      <title>gtk.Window.deiconify</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>deiconify</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>

      <para>The <methodname>deiconify</methodname>() method asks the window
manager to deiconify (i.e. unminimize) the specified the window. Note that
you shouldn't assume the window is definitely deiconified afterward, because
other entities (e.g. the user or window manager) could iconify it again
before your code which assumes deiconification gets to run. You can track
iconification via the <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> "<link
linkend="signal-gtkwidget--window-state-event">window-state-event</link>"
signal.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--stick">
      <title>gtk.Window.stick</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>stick</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>

      <para>The <methodname>stick</methodname>() method asks the window
manager to stick the window, which means that it will appear on all user
desktops. Note that you shouldn't assume the window is definitely stuck
afterward, because other entities (e.g. the user or window manager) could
unstick it again, and some window managers do not support sticking windows.
But normally the window will end up stuck. Just don't write code that
crashes if not. This method can be called before showing a window. You can
track stickiness via the <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> "<link
linkend="signal-gtkwidget--window-state-event">window-state-event</link>"
signal.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--unstick">
      <title>gtk.Window.unstick</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>unstick</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>

      <para>The unstick() method asks the window manager to unstick the
window, which means that it will appear on only one of the user's desktops.
Note that you shouldn't assume the window is definitely unstuck afterward,
because other entities (e.g. the user or window manager) could stick it
again. But normally the window will end up stuck. Just don't write code that
crashes if not. You can track stickiness via the <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> "<link
linkend="signal-gtkwidget--window-state-event">window-state-event</link>"
signal.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--maximize">
      <title>gtk.Window.maximize</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>maximize</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>

      <para>The <methodname>maximize</methodname>() method asks the window
manager to maximize the window, so that it becomes full-screen. Note that
you shouldn't assume the window is definitely maximized afterward, because
other entities (e.g. the user or window manager) could unmaximize it again,
and not all window managers support maximization. But normally the window
will end up maximized. This method can be called before showing a window, in
which case the window will be maximized when it appears on-screen initially.
You can track maximization via the <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> "<link
linkend="signal-gtkwidget--window-state-event">window-state-event</link>"
signal.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--unmaximize">
      <title>gtk.Window.unmaximize</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>unmaximize</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>

      <para>The <methodname>unmaximize</methodname>() method asks the window
manager to unmaximize the window. Note that you shouldn't assume the window
is definitely unmaximized afterward, because other entities (e.g. the user
or window manager) could maximize it again, and not all window managers
honor requests to unmaximize. But normally the window will end up
unmaximized. You can track maximization via the <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> "<link
linkend="signal-gtkwidget--window-state-event">window-state-event</link>"
signal.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--fullscreen">
      <title>gtk.Window.fullscreen</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>fullscreen</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>

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

      <para>The <methodname>fullscreen</methodname>() method requests the
window manager to place the window in the fullscreen state. Note you
shouldn't assume the window is definitely full screen afterward, because
other entities (e.g. the user or window manager) could unfullscreen it
again, and not all window managers honor requests to fullscreen windows. But
normally the window will end up fullscreen. Just don't write code that
crashes if not.</para>

      <para>You can track the fullscreen state via the <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> "<link
linkend="signal-gtkwidget--window-state-event">window-state-event</link>"
signal.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--unfullscreen">
      <title>gtk.Window.unfullscreen</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>unfullscreen</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>

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

      <para>The <methodname>unfullscreen</methodname>() method requests the
window manager to toggle off the fullscreen state for the window. Note that
you shouldn't assume the window is definitely not full screen afterward,
because other entities (e.g. the user or window manager) could fullscreen it
again, and not all window managers honor requests to unfullscreen
windows. But normally the window will end up restored to its normal
state. Just don't write code that crashes if not.</para>

      <para>You can track the fullscreen state via the <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> "<link
linkend="signal-gtkwidget--window-state-event">window_state_event</link>"
signal.</para> </refsect2>

    <refsect2 id="method-gtkwindow--set-keep-above">
      <title>gtk.Window.set_keep_above</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_keep_above</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> keep the window
	  above other windows</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>set_keep_above</methodname>() method requests
the window manager to keep the window on top if
<parameter>setting</parameter> is <literal>True</literal>. Note that you
shouldn't assume the window is definitely above afterward, because other
entities (e.g. the user or window manager) could not keep it above, and not
all window managers support keeping windows above. But normally the window
will end kept above. Just don't write code that crashes if not.</para>

      <para>It's permitted to call this method before showing a window, so
the window will be kept above when it appears on-screen initially.</para>

      <para>You can track the above state via the <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> "<link
linkend="signal-gtkwidget--window-state-event">window_state_event</link>"
signal.</para>

      <para>Note that, according to the <ulink
url="http://standards.freedesktop.org/wm-spec/wm-spec-latest.html">Extended
Window Manager Hints</ulink> specification, the above state is mainly meant
for user preferences and should not be used by applications e.g. for drawing
attention to their dialogs.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-keep-below">
      <title>gtk.Window.set_keep_below</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_keep_below</methodname>
	  <methodparam><parameter>setting</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter>setting</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> keep the window
	  below other windows</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>set_keep_below</methodname>() method requests
the window manager to keep the window on the bottom (i.e. below all other
windows). Note that you shouldn't assume the window is definitely below
afterward, because other entities (e.g. the user or window manager) could
not keep it below, and not all window managers support putting windows
below. But normally the window will be kept below. Just don't write code
that crashes if not.</para>

      <para>It's permitted to call this function before showing a window, in
which case the window will be kept below when it appears on-screen
initially.</para>

      <para>You can track the below state via the <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> "<link
linkend="signal-gtkwidget--window-state-event">window_state_event</link>"
signal.</para>

      <para>Note that, according to the <ulink
url="http://standards.freedesktop.org/wm-spec/wm-spec-latest.html">Extended
Window Manager Hints</ulink> specification, the above state is mainly meant
for user preferences and should not be used by applications e.g. for drawing
attention to their dialogs.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--begin-resize-drag">
      <title>gtk.Window.begin_resize_drag</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>begin_resize_drag</methodname>
	  <methodparam><parameter
			 role="keyword">edge</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">button</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">root_x</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">root_y</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">timestamp</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">edge</parameter>&nbsp;:</term>
	  <listitem><simpara>the position of the resize
control</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">button</parameter>&nbsp;:</term>
	  <listitem><simpara>the mouse button that initiated the
drag</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">root_x</parameter>&nbsp;:</term>
	  <listitem><simpara>the X position where the user clicked to
initiate the drag, in root window coordinates</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">root_y</parameter>&nbsp;:</term>
	  <listitem><simpara>the Y position where the user clicked to
initiate the drag</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">timestamp</parameter>&nbsp;:</term>
	  <listitem><simpara>the timestamp from the click event that
initiated the drag</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>begin_resize_drag</methodname>() method starts
resizing a window from the edge specified by <parameter>edge</parameter>.
The mouse button that started the resize is specified by
<parameter>button</parameter>; the location, by
<parameter>root_x</parameter> and <parameter>root_y</parameter>; and the
time of the event, by <parameter>timestamp</parameter>. The value of
<parameter>edge</parameter> must be one of the <xref
linkend="gdk-window-edge-constants"
endterm="gdk-window-edge-constants-title"></xref>.</para>

      <para>This method is used if an application has window resizing
controls. When <literal>PyGTK</literal> can support it, the resize will be
done using the standard mechanism for the window manager or windowing
system. Otherwise, <literal>PyGTK</literal> will try to emulate window
resizing, potentially not all that well, depending on the windowing
system.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--begin-move-drag">
      <title>gtk.Window.begin_move_drag</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>begin_move_drag</methodname>
	  <methodparam><parameter
			 role="keyword">button</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">root_x</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">root_y</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">timestamp</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">button</parameter>&nbsp;:</term>
	  <listitem><simpara>the mouse button that initiated the
drag</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">root_x</parameter>&nbsp;:</term>
	  <listitem><simpara>the X position where the user clicked to
initiate the drag, in root window coordinates</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">root_y</parameter>&nbsp;:</term>
	  <listitem><simpara>the Y position where the user clicked to
initiate the drag</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
role="keyword">timestamp</parameter>&nbsp;:</term>
	  <listitem><simpara>the timestamp from the click event that
initiated the drag</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>begin_move_drag</methodname>() method starts
moving a window when the user presses the mouse button specified by
<parameter>button</parameter> at the location specified by
<parameter>root_x</parameter> and <parameter>root_y</parameter> at the time
specified by <parameter>timestamp</parameter>. This method is used if an
application has window movement grips. When <literal>PyGTK</literal> can
support it, the window movement will be done using the standard mechanism
for the window manager or windowing system. Otherwise,
<literal>PyGTK</literal> will try to emulate window movement, potentially
not all that well, depending on the windowing system.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-default-size">
      <title>gtk.Window.set_default_size</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_default_size</methodname>
	  <methodparam><parameter
			 role="keyword">width</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">height</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">width</parameter>&nbsp;:</term>
	  <listitem><simpara>the width in pixels, or -1 to unset the default
width</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">height</parameter>&nbsp;:</term>
	  <listitem><simpara>the height in pixels, or -1 to unset the
default height</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_default_size</methodname>() method sets the
default size of the window to the specified <parameter>width</parameter> and
<parameter>height</parameter>. If the window's "natural" size (its size
request) is larger than the default, the default will be ignored. More
generally, if the default size does not obey the geometry hints for the
window (the <link
linkend="method-gtkwindow--set-geometry-hints"><methodname>set_geometry_hints</methodname>()</link> 
method can be used to set these explicitly), the default size will be
clamped to the nearest permitted size.</para>

      <para>Unlike the <link
linkend="method-gtkwidget--set-size-request"><methodname>gtk.Widget.set_size_request</methodname>()</link> 
method, which sets a size request for a widget and thus would keep users
from shrinking the window, this method only sets the initial size, just as
if the user had resized the window themselves. Users can still shrink the
window again as they normally would. Setting a default size of -1 means to
use the "natural" default size (the size request of the window). For more
control over a window's initial size and how resizing works, investigate the
<link
linkend="method-gtkwindow--set-geometry-hints"><methodname>set_geometry_hints</methodname>()</link> 
method.</para>

      <para>For some uses, the <link
linkend="method-gtkwindow--resize"><methodname>resize</methodname>()</link>
method is more appropriate as it changes the current size of the window,
rather than the size to be used on initial display. The <link
linkend="method-gtkwindow--resize"><methodname>resize</methodname>()</link>
method always affects the window itself, not the geometry widget. The
default size of a window only affects the first time a window is shown; if a
window is hidden and re-shown, it will remember the size it had prior to
hiding, rather than using the default size. Windows can't actually be 0x0 in
size, they must be at least 1x1, but passing 0 for
<parameter>width</parameter> and <parameter>height</parameter> is OK,
resulting in a 1x1 default size.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-default-size">
      <title>gtk.Window.get_default_size</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_default_size</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a tuple containing the default width and height
of the window</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_default_size</methodname>() method returns a
tuple containing the default width and height of the window. A value of -1
for the returned width or height indicates that a default size has not been
explicitly set for that dimension, so the "natural" size of the window will
be used. See the <link linkend="method-gtkwindow--set-default-size"><methodname>set_default_size</methodname>()</link>
method for more information</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--resize">
      <title>gtk.Window.resize</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>resize</methodname>
	  <methodparam><parameter
			 role="keyword">width</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">height</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">width</parameter>&nbsp;:</term>
	  <listitem><simpara>the width in pixels to resize the window
to</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">height</parameter>&nbsp;:</term>
	  <listitem><simpara>the height in pixels to resize the window
to</simpara></listitem>
	</varlistentry>
      </variablelist>


      <para>The <methodname>resize</methodname>() method resizes the window
to the specified <parameter>width</parameter> and
<parameter>height</parameter> as if the user had done so, obeying geometry
constraints. The default geometry constraint is that windows may not be
smaller than their size request; to override this constraint, call the <link
linkend="method-gtkwidget--set-size-request"><methodname>gtk.Widget.set_size_request</methodname>()</link> 
method to set the window's request to a smaller value. If the
<methodname>resize</methodname>() method is called before showing a window
for the first time, it overrides any default size set with the <link
linkend="method-gtkwindow--set-default-size"><methodname>set_default_size</methodname>()</link> 
method. Windows may not be resized smaller than 1 by 1 pixels.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-size">
      <title>gtk.Window.get_size</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_size</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a tuple containing the width and height of the
window</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_size</methodname>() method returns a tuple
containing the current width and height of the window. If the window is not
on-screen, it returns the size <literal>PyGTK</literal> will suggest to the
window manager for the initial window size (but this is not reliably the
same as the size the window manager will actually select). The size obtained
by the <methodname>get_size</methodname>() method is the last size received
in a configure event, that is, <literal>PyGTK</literal> uses its
locally-stored size, rather than querying the X server for the size. As a
result, if you call the <link
linkend="method-gtkwindow--resize"><methodname>resize</methodname>()</link>
method then immediately call the <methodname>get_size</methodname>() method,
the size won't have taken effect yet. After the window manager processes the
resize request, PyGTK receives notification that the size has changed via a
configure event, and the size of the window gets updated.</para>

      <note>
	<para>Nearly any use of this method creates a race condition,
because the size of the window may change between the time that you get the
size and the time that you perform some action assuming that size is the
current size. To avoid race conditions, connect to "configure_event" on the
window and adjust your size-dependent state to match the size delivered in
the configure event.</para>

	<para>The returned size does <emphasis>not</emphasis> include the
size of the window manager decorations (aka the window frame or border).
Those are not drawn by <literal>PyGTK</literal> which has no reliable method
of determining their size.</para>

	<para>If you are getting a window size in order to position the
window on-screen, there may be a better way. The preferred way is to simply
set the window's semantic type with the <link
linkend="method-gtkwindow--set-type-hint"><methodname>set_type_hint</methodname>()</link> 
method, that allows the window manager to center dialogs, etc. Also, if you
set the transient parent of dialogs with the <link
linkend="method-gtkwindow--set-transient-for"><methodname>set_transient_for</methodname>()</link> 
method, window managers will often center the dialog over its parent window.
It's much preferred to let the window manager handle these things rather
than doing it yourself, because all apps will behave consistently and
according to user prefs if the window manager handles it. Also, the window
manager can take the size of the window decorations/border into account,
while your application cannot.</para>

	<para>In any case, if you insist on application-specified window
positioning, there's <emphasis>still</emphasis> a better way than doing it
yourself - the <link
linkend="method-gtkwindow--set-position"><methodname>set_position</methodname>()</link> 
method will frequently handle the details for you.</para>
      </note>

    </refsect2>

    <refsect2 id="method-gtkwindow--move">
      <title>gtk.Window.move</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>move</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>the X coordinate to move window
to</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">y</parameter>&nbsp;:</term>
	  <listitem><simpara>the Y coordinate to move window
to</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>move</methodname>() method asks the window
manager to move the window to the position specified by
<parameter>x</parameter> and <parameter>y</parameter>.  Window managers are
free to ignore this. In fact, most window managers ignore requests for
initial window positions (instead using a user-defined placement algorithm)
and honor requests after the window has already been shown.</para>

	<para>The position is the position of the gravity-determined
reference point for the window. The gravity determines two things: first,
the location of the reference point in root window coordinates; and second,
which point on the window is positioned at the reference point. By default
the gravity is <literal>gtk.gdk.GRAVITY_NORTH_WEST</literal>, so the
reference point is simply the <parameter>x</parameter>,
<parameter>y</parameter> supplied to the <methodname>move</methodname>()
method. The top-left corner of the window decorations (aka window frame or
border) will be placed at <parameter>x</parameter>,
<parameter>y</parameter>. Therefore, to position a window at the top left of
the screen, you want to use the default gravity (which is
<literal>gtk.gdk.GRAVITY_NORTH_WEST</literal>) and move the window to
0,0.</para>

	<para>To position a window at the bottom right corner of the screen,
you would set <literal>gtk.gdk.GRAVITY_SOUTH_EAST</literal>, which means
that the reference point is at <parameter>x</parameter> + the window width
and <parameter>y</parameter> + the window height, and the bottom-right
corner of the window border will be placed at that reference point. So, to
place a window in the bottom right corner you would first set gravity to
south east, then move the window:</para>

	<programlisting>
  window.set_gravity(gtk.gdk.GRAVITY_SOUTH_EAST)
  width, height = window.get_size()
  window.move(gtk.gdk.screen_width() - width, gtk.gdk.screen_height() - height)
</programlisting>

	<para>The <ulink
url="http://standards.freedesktop.org/wm-spec/wm-spec-latest.html">Extended
Window Manager Hints</ulink> specification has a nice table of gravities in
the "implementation notes" section. The <link
linkend="method-gtkwindow--get-position"><methodname>get_position</methodname>()</link>
method documentation may also be relevant.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-position">
      <title>gtk.Window.get_position</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_position</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a tuple containing the X and Y coordinates of
the gravity-determined reference point</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_position</methodname>() method returns a
tuple containing the x and y coordinates of the window that you would need
to pass to the <link
linkend="method-gtkwindow--move"><methodname>move</methodname>()</link>
method to keep the window in its current position. This means that the
meaning of the returned value varies with window gravity. See the <link
linkend="method-gtkwindow--move"><methodname>move</methodname>()</link>
method for more details. If you haven't changed the window gravity, its
gravity will be <literal>gtk.gdk.GRAVITY_NORTH_WEST</literal>. This means
that the <methodname>get_position</methodname>() method gets the position of
the top-left corner of the window manager frame for the window. The <link
linkend="method-gtkwindow--move"><methodname>move</methodname>()</link>
method sets the position of this same top-left corner.</para>

      <para>The <methodname>get_position</methodname>() method is not 100%
reliable because the X Window System does not specify a way to obtain the
geometry of the decorations placed on a window by the window manager. Thus
<literal>PyGTK</literal> is using a "best guess" that works with most window
managers. Moreover, nearly all window managers are historically broken with
respect to their handling of window gravity. So moving a window to its
current position as returned by the <methodname>get_position</methodname>()
method tends to result in moving the window slightly. Window managers are
slowly getting better over time.</para>

      <para>If a window has gravity
<literal>gtk.gdk.GRAVITY_STATIC</literal> the window manager frame is not
relevant, and thus the <methodname>get_position</methodname>() method will
always produce accurate results. However you can't use static gravity to do
things like place a window in a corner of the screen, because static gravity
ignores the window manager decorations. If you are saving and restoring your
application's window positions, you should know that it's impossible for
applications to do this without getting it somewhat wrong because
applications do not have sufficient knowledge of window manager state. The
correct mechanism is to support the session management protocol (see the
"GnomeClient" object in the GNOME libraries for example) and allow the
window manager to save your window sizes and positions.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--parse-geometry">
      <title>gtk.Window.parse_geometry</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>parse_geometry</methodname>
	  <methodparam><parameter
			 role="keyword">geometry</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">geometry</parameter>&nbsp;:</term>
	  <listitem><simpara>the geometry string</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if string was parsed
successfully</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>parse_geometry</methodname>() method parses the
standard X Window System geometry string specified by
<parameter>geometry</parameter>. The geometry string has the format
"WIDTHxHEIGHT+XOFFSET+YOFFSET" where WIDTH, HEIGHT, XOFFSET and YOFFSET are
specified in pixels (see the X documentation for more details). This method
works work on all <literal>PyGTK</literal> ports including Win32 but is
primarily intended for an X environment. If either a size or a position can
be extracted from the geometry string, the
<methodname>parse_geometry</methodname>() method returns
<literal>True</literal> and calls the <link
linkend="method-gtkwindow--set-default-size"><methodname>set_default_size</methodname>()</link> 
and <link
linkend="method-gtkwindow--move"><methodname>move</methodname>()</link>
methods to resize and move the window.</para>

      <para>If the <methodname>parse_geometry</methodname>() method returns
<literal>True</literal>, it will also set the
<literal>gtk.gdk.HINT_USER_POS</literal> and
<literal>gtk.gdk.HINT_USER_SIZE</literal> hints indicating to the window
manager that the size and position of the window was user-specified. This
causes most window managers to honor the geometry.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--reshow-with-initial-size">
      <title>gtk.Window.reshow_with_initial_size</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>reshow_with_initial_size</methodname>
	  <methodparam></methodparam>
        </methodsynopsis></programlisting>

      <para>The <methodname>reshow_with_initial_size</methodname>() method
hides the window, then reshows it, resetting the default size and position
of the window. Used by GUI builders only.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--tooltips-get-info-from-tip-window">
      <title>gtk.Window.tooltips_get_info_from_tip_window</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>tooltips_get_info_from_tip_window</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a 2-tuple containing the <link
	  linkend="class-gtktooltips"><classname>gtk.Tooltips</classname></link>
	  and <link
	  linkend="class-gtkwidget"><classname>gtk.Widget</classname></link>
	  displayed in the window or <literal>None</literal>.</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>tooltips_get_info_from_tip_window</methodname>()
method returns a 2-tuple containing the <link
linkend="class-gtktooltips"><classname>gtk.Tooltips</classname></link> and
<link linkend="class-gtkwidget"><classname>gtk.Widget</classname></link>
displayed in the window. If the window is not displaying tooltips this
method returns None. This method is mostly intended for use by accessibility
technologies - applications should have little use for it.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-focus-on-map">
      <title>gtk.Window.set_focus_on_map</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_focus_on_map</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> this window would
like to receive focus when mapped.</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>set_focus_on_map</methodname>() method sets the
"focus-on-map" property to the value of <parameter>setting</parameter>. If
<parameter>setting</parameter> is <literal>True</literal> a hint is set
asking the desktop environment to give focus to the window when it is
mapped.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-focus-on-map">
      <title>gtk.Window.get_focus_on_map</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_focus_on_map</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the window would
like to receive focus when mapped.</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>get_focus_on_map</methodname>() method returns
the value of the "focus-on-map" property. See the <link
linkend="method-gtkwindow--set-focus-on-map"><methodname>set_focus_on_map</methodname>()</link>
method for more information.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-icon-name">
      <title>gtk.Window.set_icon_name</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_icon_name</methodname>
	  <methodparam><parameter
			 role="keyword">name</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">name</parameter>&nbsp;:</term>
	  <listitem><simpara>the name of the themed icon or
<literal>None</literal></simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>set_icon_name</methodname>() method sets the
"icon-name" property to the value of <parameter>name</parameter>. If
<parameter>name</parameter> is <literal>None</literal>, then the default
themed icon will be used. The "icon-name" property contains the name of the
icon used for the window. See the <link
linkend="class-gtkicontheme"><classname>gtk.IconTheme</classname></link>
reference for more information.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-icon-name">
      <title>gtk.Window.get_icon_name</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_icon_name</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>The name of the themed icon used for the
window icon or <literal>None</literal> if no icon is set.</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>get_icon_name</methodname>() method returns the
name of the themed icon for the window, see the <link
linkend="method-gtkwindow--set-icon-name"><methodname>set_icon_name</methodname>()</link>
method for more information.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-urgency-hint">
      <title>gtk.Window.set_urgency_hint</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_urgency_hint</methodname>
	  <methodparam><parameter
			 role="keyword">urgency_hint</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">urgency_hint</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> mark this window
as needing urgent attention.</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>set_urgency_hint</methodname>() method sets the
"urgency-hint" property to the value of
<parameter>urgency_hint</parameter>. If the "urgency-hint" property is True
the window sets a hint to the desktop environment to draw the users
attention to the window.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-urgency-hint">
      <title>gtk.Window.get_urgency_hint</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_urgency_hint</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the window is marked
as needing urgent user attention.</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>get_urgency_hint</methodname>() method returns
the value of the "urgency-hint" property. See the <link
linkend="method-gtkwindow--set-urgency-hint"><methodname>set_urgency_hint</methodname>()</link>
method for more information.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--present-with-time">
      <title>gtk.Window.present_with_time</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>present_with_time</methodname>
	  <methodparam><parameter role="keyword">timestamp</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
	  role="keyword">timestamp</parameter>&nbsp;:</term>
	  <listitem><simpara>the timestamp of the user interaction (typically
a button or key press event) which triggered this call</simpara></listitem>
	</varlistentry>
      </variablelist>

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

      <para>The <methodname>present_with_time</methodname>() method presents
a window to the user in response to a user interaction. If you need to
present a window without a timestamp, use the <link
linkend="method-gtkwindow--present"><methodname>present</methodname>()</link>
method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-deletable">
      <title>gtk.Window.set_deletable</title>

      <programlisting><methodsynopsis language="python">
        <methodname>set_deletable</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> decorate the window
          as deletable</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>By default, windows have a close button in the window
      frame. Some window managers allow GTK+ to disable this button. If you
      set the deletable property to <literal>False</literal> using this
      method, GTK+ will do its best to convince the window manager not to
      show a close button. Depending on the system, this method may not have
      any effect when called on a window that is already visible, so you
      should call it before calling
      <methodname>gtk_window_show</methodname>().</para>
      
      <para>On Windows, this method always works, since there's no window
      manager policy involved.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-deletable">
      <title>gtk.Window.get_deletable</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_deletable</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if the window has been
          set to have a close button</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Returns whether the window has been set to have a close button
      via the <link
      linkend="method-gtkwindow--set-deletable"><methodname>gtk.Window.set_deletable()</methodname></link>
      method.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-group">
      <title>gtk.Window.get_group</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_group</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>the <link
          linkend="class-gtkwindowgroup"><classname>gtk.WindowGroup</classname></link>
          for a window or the default group</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Returns the <link
      linkend="class-gtkwindowgroup"><classname>gtk.WindowGroup</classname></link>
      or the default group, if the window does not have an explicit window
      group.</para>

    </refsect2>
    
    <refsect2 id="method-gtkwindow--has-group">
      <title>gtk.Window.has_group</title>

      <programlisting><methodsynopsis language="python">
        <methodname>has_group</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>
      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if the window has an explicit window group, <literal>False</literal> otherwise.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>The <methodname>has_group</methodname>() method returns whether window has an explicit window group.</para>

    </refsect2>

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

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

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

      <para>The <methodname>get_window_type</methodname>() method gets the type of the window.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-opacity">
      <title>gtk.Window.set_opacity</title>

      <programlisting><methodsynopsis language="python">
        <methodname>set_opacity</methodname>
        <methodparam><parameter role="keyword">opacity</parameter></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">opacity</parameter>&nbsp;:</term>
          <listitem><simpara>desired opacity, between 0 and 1.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>
        Request the windowing system to make window partially transparent, with
        opacity 0 being fully transparent and 1 fully opaque. (Values of the
        opacity parameter are clamped to the [0,1] range.) On X11 this has any
        effect only on X screens with a compositing manager running.
        See <methodname><link linkend="method-gtkwidget--is-composited">gtk.Widget.is_composited</link></methodname>().
        On Windows it should work always.
      </para>
      <para>        
        Note that setting a window's opacity after the window has been shown causes it to flicker once on Windows.
      </para>
    </refsect2>

    <refsect2 id="method-gtkwindow--get-opacity">
      <title>gtk.Window.get_opacity</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_opacity</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>the requested opacity for this window.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Fetches the requested opacity for this window. See
      <methodname><link linkend="method-gtkwindow--set-opacity">gtk.Window.set_opacity</link></methodname>().</para>

    </refsect2>
    
    <refsect2 id="method-gtkwindow--set-startup-id">
      <title>gtk.Window.set_startup_id</title>

      <programlisting><methodsynopsis language="python">
        <methodname>set_startup_id</methodname>
        <methodparam><parameter role="keyword">startup_id</parameter></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">startup_id</parameter>&nbsp;:</term>
          <listitem><simpara>a string with startup-notification identifier</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>
        Startup notification identifiers are used by desktop environment to track
        application startup, to provide user feedback and other features. This
        function changes the corresponding property on the underlying GdkWindow.
        Normally, startup identifier is managed automatically and you should only
        use this function in special cases like transferring focus from other processes.
        You should use this function before calling
        <methodname><link linkend="method-gtkwindow--present">gtk.Window.present</link></methodname>()
        or any equivalent function generating a window map event.
      </para>
      <para>        
        This function is only useful on X11, not with other GTK+ targets.
      </para>
    </refsect2>

    <refsect2 id="method-gtkwindow--get-default-widget">
      <title>gtk.Window.get_default_widget</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_default_widget</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>The default widget, or <literal>None</literal>
	  if there is none.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>
	Returns the default widget for window. See
	<methodname><link linkend="method-gtkwindow--set-default">gtk.Window.set_default</link></methodname>()()
	for more details.
      </para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-skip-taskbar-hint">
      <title>gtk.Window.set_skip_taskbar_hint</title>

      <programlisting><methodsynopsis language="python">
        <methodname>set_skip_taskbar_hint</methodname>
        <methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis></programlisting>
      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">setting</parameter>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> to keep this window from appearing in the task bar, <literal>False</literal> otherwise.</simpara></listitem>
        </varlistentry>
      </variablelist>

      <para>The <methodname>set_skip_taskbar_hint</methodname>() method set a hint
      asking the desktop environment not to display the window in the task bar.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-skip-taskbar-hint">
      <title>gtk.Window.get_skip_taskbar_hint</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_skip_taskbar_hint</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>
      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if this window is kept from appearing in the task bar, <literal>False</literal> otherwise.</simpara></listitem>
        </varlistentry>
      </variablelist>

      <para>The <methodname>get_skip_taskbar_hint</methodname>() method returns whether a hint
      is set asking the desktop environment not to display the window in the task bar.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-skip-pager-hint">
      <title>gtk.Window.set_skip_pager_hint</title>

      <programlisting><methodsynopsis language="python">
        <methodname>set_skip_pager_hint</methodname>
        <methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis></programlisting>
      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">setting</parameter>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> to keep this window from appearing in the pager, <literal>False</literal> otherwise.</simpara></listitem>
        </varlistentry>
      </variablelist>

      <para>The <methodname>set_skip_pager_hint</methodname>() method sets a hint asking the
      desktop environment not to display the window in the pager. A "pager" is any desktop
      navigation tool such as a workspace switcher that displays a thumbnail representation of
      the windows on the screen.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-skip-pager-hint">
      <title>gtk.Window.get_skip_pager_hint</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_skip_pager_hint</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>
      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if this window is kept from appearing in the pager, <literal>False</literal> otherwise.</simpara></listitem>
        </varlistentry>
      </variablelist>

      <para>The <methodname>get_skip_pager_hint</methodname>() method returns whether a hint
      is set asking the desktop environment not to display the window in the pager.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--set-accept-focus">
      <title>gtk.Window.set_accept_focus</title>

      <programlisting><methodsynopsis language="python">
        <methodname>set_accept_focus</methodname>
        <methodparam><parameter role="keyword">setting</parameter></methodparam>
      </methodsynopsis></programlisting>
      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">setting</parameter>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> to let this window receive input focus.</simpara></listitem>
        </varlistentry>
      </variablelist>

      <para>The <methodname>set_accept_focus</methodname>() method sets a hint asking
      the desktop environment to receive the input focus or not.</para>

    </refsect2>

    <refsect2 id="method-gtkwindow--get-accept-focus">
      <title>gtk.Window.get_accept_focus</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_accept_focus</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>
      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if the window should receive the input focus.</simpara></listitem>
        </varlistentry>
      </variablelist>

      <para>The <methodname>get_accept_focus</methodname>() method returns whether a hint
      is set asking the desktop environment to receive the input focus.</para>

    </refsect2>

  </refsect1>

  <refsect1>
    <title>Functions</title>

    <refsect2 id="function-gtk--window-set-default-icon-list">
      <title>gtk.window_set_default_icon_list</title>

      <programlisting><methodsynopsis language="python">
          <methodname>gtk.window_set_default_icon_list</methodname>
          <methodparam><parameter>...</parameter>
          </methodparam>
        </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><parameter>...</parameter>&nbsp;:</term>
          <listitem><simpara>zero or more <link
linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link>
objects</simpara></listitem>
        </varlistentry>
      </variablelist>

      <para>The <function>gtk.window_set_default_icon_list</function>()
function sets an icon list to be used as fallback for windows that haven't
had the <link
linkend="method-gtkwindow--set-icon-list"><methodname>set_icon_list</methodname>()</link> 
method called on them to set up a window-specific icon list. This function
allows you to set up the icon for all windows in your app at once. See the
<link
linkend="method-gtkwindow--set-icon-list"><methodname>set_icon_list</methodname>()</link> 
method documentation for more details.</para>

    </refsect2>

    <refsect2 id="function-gtk--window-set-default-icon">
      <title>gtk.window_set_default_icon</title>

      <programlisting><methodsynopsis language="python">
          <methodname>gtk.window_set_default_icon</methodname>
          <methodparam><parameter role="keyword">icon</parameter>
          </methodparam>
        </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">icon</parameter>&nbsp;:</term>
          <listitem><simpara>a <link
          linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link></simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>The <function>gtk.window_set_default_icon</function>() function
sets an icon specified by <parameter>icon</parameter> to be used as the
fallback for windows that haven't had the <link
linkend="method-gtkwindow--set-icon"><methodname>set_icon</methodname>()</link>
method called on them to set up a window-specific icon. This function allows
you to set up the icon for all windows in your app at once.</para>

    </refsect2>

    <refsect2 id="function-gtk--window-set-default-icon-from-file">
      <title>gtk.window_set_default_icon_from_file</title>

      <programlisting><methodsynopsis language="python">
          <methodname>gtk.window_set_default_icon_from_file</methodname>
          <methodparam><parameter role="keyword">filename</parameter>
          </methodparam>
        </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">filename</parameter>&nbsp;:</term>
          <listitem><simpara>an icon file name</simpara></listitem>
        </varlistentry>
      </variablelist>

      <note>
	<para>This function is available in PyGTK 2.2 and above.</para>
      </note>

      <para>The <function>gtk.window_set_default_icon_from_file</function>()
function sets an icon contained in the file specified by
<parameter>filename</parameter> to be used as the fallback for windows that
haven't had the <link
linkend="method-gtkwindow--set-icon"><methodname>set_icon</methodname>()</link>
method called on them to set up a window-specific icon. This function allows
you to set up the icon for all windows in your app at once.</para>

      <para>The GError exception is raised if an error occurs while loading
the icon pixbuf from <parameter>filename</parameter>.</para>

    </refsect2>

    <refsect2 id="function-gtk--window-get-default-icon-list">
      <title>gtk.window_get_default_icon_list</title>

      <programlisting><methodsynopsis language="python">
          <methodname>gtk.window_get_default_icon_list</methodname>
          <methodparam></methodparam>
        </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>a copy of the applications default icon
list</simpara></listitem>
        </varlistentry>
      </variablelist>

      <para>The <function>gtk.window_get_default_icon_list</function>()
function returns the application's default icon list as set by the <link
linkend="function-gtk--window-set-default-icon-list"><methodname>gtk.window_set_default_icon_list</methodname>()</link> 
function. See the <link
linkend="method-gtkwindow--set-icon-list"><methodname>set_icon_list</methodname>()</link> 
method documentation for more details.</para>

    </refsect2>

    <refsect2 id="function-gtk--window-set-auto-startup-notification">
      <title>gtk.window_set_auto_startup_notification</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>gtk.window_set_auto_startup_notification</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">setting</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal>, automatically do
	  startup notification</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
	<para>This function is available in PyGTK 2.2 and above.</para>
      </note>

      <para>The
<function>gtk.window_set_auto_startup_notification</function>() function
sets the auto startup notification setting to the value of <parameter>setting</parameter>. If <parameter>setting</parameter> is <literal>True</literal> startup notification will be done automatically.</para>

      <para>By default, after showing the first <link
linkend="class-gtkwindow"><classname>gtk.Window</classname></link> for each
<link
linkend="class-gdkscreen"><classname>gtk.gdk.Screen</classname></link>, GTK+
calls the <function>gdk_notify_startup_complete</function>() function. Call
this function to disable the automatic startup notification. You might do
this if your first window is a splash screen, and you want to delay
notification until after your real main window has been shown. In that
example, you would disable startup notification temporarily, show your
splash screen, then re-enable it so that showing the main window would
automatically result in notification.</para>

    </refsect2>

    <refsect2 id="function-gtk--window-list-toplevels">
      <title>gtk.window_list_toplevels</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>gtk.window_list_toplevels</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a list of all the toplevel <link
linkend="class-gtkwindow"><classname>gtk.Window</classname></link>
widgets</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <function>gtk.window_list_toplevels</function>() function
returns a list of all the toplevel <link
linkend="class-gtkwindow"><classname>gtk.Window</classname></link> widgets
in the application.</para>

    </refsect2>

    <refsect2 id="function-gtk--window-set-default-icon-name">
      <title>gtk.window_set_default_icon_name</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>gtk.window_set_default_icon_name</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">setting</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal>, automatically do
	  startup notification</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
	<para>This function is available in PyGTK 2.6 and above.</para>
      </note>

      <para>The <function>gtk.window_set_default_icon_name</function>()
function sets an icon to be used as fallback for windows that haven't had
the <link
linkend="method-gtkwindow--set-icon-list"><methodname>set_icon_list</methodname>()</link>
method called on them from a named themed icon, see the <link
linkend="method-gtkwindow--set-icon-name"><methodname>set_icon_name</methodname>()</link>
method.</para>

    </refsect2>

  </refsect1>

  <refsect1>
    <title>Signals</title>

    <refsect2 id="signal-gtkwindow--activate-default">
      <title>The "activate-default" gtk.Window Signal</title>

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

      <variablelist>
	<varlistentry>
	  <term><parameter>window</parameter>&nbsp;:</term>
	  <listitem><simpara>the window 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 "activate-default" signal is emitted when the default child
widget of <parameter>window</parameter> is activated usually by the user
pressing the <keycap>Return</keycap> or <keycap>Enter</keycap> key.</para>

    </refsect2>

    <refsect2 id="signal-gtkwindow--activate-focus">
      <title>The "activate-focus" gtk.Window Signal</title>

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

      <variablelist>
	<varlistentry>
	  <term><parameter>window</parameter>&nbsp;:</term>
	  <listitem><simpara>the window 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 "activate-focus" signal is emitted when the child widget
with the focus is activated usually by the user pressing the
<keycap>Space</keycap> key.</para>

    </refsect2>

    <refsect2 id="signal-gtkwindow--frame-event">
      <title>The "frame-event" gtk.Window Signal</title>

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

      <variablelist>
	<varlistentry>
	  <term><parameter>window</parameter>&nbsp;:</term>
	  <listitem><simpara>the window that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>event</parameter>&nbsp;:</term>
	  <listitem><simpara>the event that triggered 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>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> to stop other handlers
	  from being invoked for the event. <literal>False</literal> to
	  propagate the event further.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "frame-event" signal is emitted when an event other than key
press or release or focus change is received on the window's frame.</para>

    </refsect2>

    <refsect2 id="signal-gtkwindow--keys-changed">
      <title>The "keys-changed" gtk.Window Signal</title>

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

      <variablelist>
	<varlistentry>
	  <term><parameter>window</parameter>&nbsp;:</term>
	  <listitem><simpara>the window 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 "keys-changed" signal is emitted when a mnemonic accelerator
is added, removed or changed or the mnemonic modifier is set.</para>

    </refsect2>

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

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

      <variablelist>
	<varlistentry>
	  <term><parameter>window</parameter>&nbsp;:</term>
	  <listitem><simpara>the window that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>direction</parameter>&nbsp;:</term>
	  <listitem><simpara>the move direction:
<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></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 is changed
within the window's child widgets. Usually this happens when the user
presses the <keycap>Tab</keycap>, the <keycombo
action="simul"><keycap>Shift</keycap><keycap>Tab</keycap> </keycombo> or the
<keycap>Up</keycap>, <keycap>Down</keycap>, <keycap>Left</keycap> or
<keycap>Right</keycap> arrow keys.</para>

    </refsect2>

    <refsect2 id="signal-gtkwindow--set-focus">
      <title>The "set-focus" gtk.Window Signal</title>

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

      <variablelist>
	<varlistentry>
	  <term><parameter>window</parameter>&nbsp;:</term>
	  <listitem><simpara>the window that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>widget</parameter>&nbsp;:</term>
	  <listitem><simpara>the widget that receives 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 "set-focus" signal is emitted when the focus changes to <parameter>widget</parameter> in <parameter>window</parameter>.</para>

    </refsect2>

  </refsect1>

</refentry>