Compare commits
775 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dd70103f39 | |||
| 227d59c190 | |||
| 64812ce662 | |||
| 4fb6b9d579 | |||
| c1d36af3e8 | |||
| ba3e997dae | |||
| 33194ff5f4 | |||
| 5098f34234 | |||
| 0eaa177210 | |||
| bcfc53066a | |||
| dc00452d34 | |||
| 0a05a199c4 | |||
| b08a6750dc | |||
| 4cf9ac5b4d | |||
| 1782151092 | |||
| 201635a203 | |||
| 82647f274c | |||
| 89a645108d | |||
| f3b2632731 | |||
| c2ef54fa5f | |||
| 1cf85176e4 | |||
| 0d85671bc9 | |||
| db76c77b81 | |||
| 6ea712fe09 | |||
| e50c6e5837 | |||
| fc1450d55d | |||
| 556531b16f | |||
| 1335275548 | |||
| be3a1abc04 | |||
| d6bc1a99dc | |||
| ef4e7b2473 | |||
| fa3bb041eb | |||
| 3833ef5c35 | |||
| b3dd3a89d3 | |||
| 5d5d93e624 | |||
| 50656c74e3 | |||
| 6b939d57c7 | |||
| c8dd9895e4 | |||
| 3cc9575323 | |||
| a6ed128abf | |||
| 1e2dabf31d | |||
| d3d4cf0e84 | |||
| 5eaff47e85 | |||
| 538ec4efbb | |||
| 41a073263a | |||
| 45257e31c7 | |||
| 560e426f16 | |||
| b8ec73a52f | |||
| 621b415e5b | |||
| 91930f86b2 | |||
| f04a720348 | |||
| cd45dfaa1d | |||
| 15482528a5 | |||
| a0b61a5a72 | |||
| 36c3eaea81 | |||
| f285ed1348 | |||
| ff267664b8 | |||
| bcbd7cce13 | |||
| ff0eb03201 | |||
| 52887f0006 | |||
| 1ab3fc02f9 | |||
| 148ea63dba | |||
| 53fae3247c | |||
| 093722fcc8 | |||
| e816ab7cff | |||
| 85d166fbb9 | |||
| 5e22dd4e43 | |||
| 4d1cf25080 | |||
| 78e68d4548 | |||
| af06c64edb | |||
| 206f2bbfa8 | |||
| 3f78773862 | |||
| 909ca43c1a | |||
| 2a5272647d | |||
| 9306a73dfd | |||
| 95fd5011c2 | |||
| 504ec365a7 | |||
| 7db18bb726 | |||
| a3a245ab56 | |||
| 4d06d75dce | |||
| 680d7762ba | |||
| 630357beb3 | |||
| dfd311497d | |||
| d5b31c303c | |||
| 17883f3ce6 | |||
| 80428e7745 | |||
| 4ed5e6d526 | |||
| b7a05d1832 | |||
| c927f5e60d | |||
| 0330658a7f | |||
| 3a9ab87489 | |||
| 0b92348077 | |||
| b0fc43e958 | |||
| 8ae5e01225 | |||
| de4a8f8ddc | |||
| ee8db39393 | |||
| 119267d7c8 | |||
| 3783a0a54f | |||
| e9e3725ee7 | |||
| 51a1af7aa4 | |||
| 4e50724471 | |||
| a141c66253 | |||
| 0dff033a64 | |||
| 4c1fa76520 | |||
| e997ac37a7 | |||
| 6dc5cdb981 | |||
| fe257d23dd | |||
| 3cbd9e9313 | |||
| da318411dc | |||
| 35cc52f418 | |||
| 33039c1452 | |||
| 791962e06d | |||
| 72d5cc8cd5 | |||
| 508ed4bbab | |||
| c3d5faf6b7 | |||
| 5f767e2c48 | |||
| 51e32fe67a | |||
| 8e8d302d10 | |||
| 4c0cf04688 | |||
| e8a365ce36 | |||
| b802be45b3 | |||
| 64e23c42bd | |||
| 8b57ad94c0 | |||
| b30445c927 | |||
| 19ff8cb026 | |||
| b6a6142556 | |||
| 6cdeb370a1 | |||
| 25b6994cba | |||
| 7693026e44 | |||
| 75ffa7983a | |||
| 6a9b72525a | |||
| 9247bc8d6d | |||
| 46fe9c3f00 | |||
| caba7992b8 | |||
| d4a159d488 | |||
| edfcc3dd41 | |||
| 06f66c185a | |||
| 8cde95bc5f | |||
| 6680266093 | |||
| 9cac8f23d5 | |||
| 878cde53d0 | |||
| ece97b2359 | |||
| fdf936b5ad | |||
| 5a52d2a2f0 | |||
| 8432f54c51 | |||
| 615f91dadd | |||
| 9990b14d1a | |||
| 9b34203cb6 | |||
| 7dcb7ec357 | |||
| 100ecea239 | |||
| 72c51a5a6a | |||
| f5781b42cf | |||
| f6c1d54b3f | |||
| af0a7aea5f | |||
| 9f6e03f231 | |||
| e534897216 | |||
| d2c35ec62a | |||
| d5585745f1 | |||
| 5bcf3ba72a | |||
| 3e5d49f52b | |||
| b3bd16e8bb | |||
| 34916b01ec | |||
| e544602065 | |||
| 8d17d157ba | |||
| 1b2be80f10 | |||
| 6b89f05a99 | |||
| 639e396147 | |||
| 24950ec144 | |||
| 629bb5a265 | |||
| c0e950f17b | |||
| c67559ad03 | |||
| 1041a186c7 | |||
| 35e2dfce08 | |||
| d36b281a58 | |||
| eb7121c4e6 | |||
| b4adea7477 | |||
| 73056e92d8 | |||
| b3303727ad | |||
| 7304e4227f | |||
| ffffa7361c | |||
| 531b449580 | |||
| 99425f15f5 | |||
| 1706608de3 | |||
| 36ef655061 | |||
| 143660eff6 | |||
| f5344f8d93 | |||
| faf0beede0 | |||
| a812fcb305 | |||
| b10f2fc001 | |||
| 51ffd59884 | |||
| 85a55b2921 | |||
| 0efb24f589 | |||
| 388ad4090c | |||
| b9516e70f5 | |||
| d92ee6dc68 | |||
| b9002febd8 | |||
| a17e12c87d | |||
| 59dafa77dc | |||
| 3128bd0937 | |||
| bb86e61171 | |||
| 7beb83cea4 | |||
| 8263633478 | |||
| 68c38e0ffd | |||
| ef32192329 | |||
| 92309019e5 | |||
| 20dacce4d8 | |||
| 5651cbc4b4 | |||
| 52eabce3c4 | |||
| 24ed2f8aa1 | |||
| eb537a6773 | |||
| e13ab6c53a | |||
| b6d9bb6e1e | |||
| 4b1315cedc | |||
| 75b8f7d3ae | |||
| 1212f263c3 | |||
| ae2c0b02c3 | |||
| 5d83f5eba5 | |||
| a33053db74 | |||
| 8413f22d90 | |||
| 61fab15139 | |||
| 22de1a7c65 | |||
| a18af0b980 | |||
| 894e887370 | |||
| 0fbdb3c73f | |||
| c4dec47536 | |||
| f48299c86e | |||
| 67eccabfca | |||
| 923e37e908 | |||
| 829cfe21e1 | |||
| 65a322c94d | |||
| 93df7c133e | |||
| 299cd7fec1 | |||
| 523283bb36 | |||
| 9fe9898045 | |||
| 96793999df | |||
| 80efec2a8c | |||
| 9441d96620 | |||
| 0df8e5e3f0 | |||
| a4a0019586 | |||
| 69b241c66d | |||
| e8f9085426 | |||
| 5559cbeb70 | |||
| 8e0088dcea | |||
| 839a347db1 | |||
| b19d76a156 | |||
| d995132ca5 | |||
| 61a73b3df6 | |||
| 7ef003f7d4 | |||
| aaf541903b | |||
| 6af58c6208 | |||
| 3be389fe96 | |||
| 5a5a24d4dc | |||
| 39779813ab | |||
| f743b2460a | |||
| cbfdfb8450 | |||
| 381d892079 | |||
| 7431550129 | |||
| a22afdb642 | |||
| 15bc2b787b | |||
| 177973bdfc | |||
| b1ca3163a6 | |||
| 2055066d92 | |||
| 449bc50b24 | |||
| 69e86f56be | |||
| 472ffe7539 | |||
| 0b0b960122 | |||
| 99b6a3df76 | |||
| cf87932bba | |||
| 984a16df2a | |||
| deb012bd34 | |||
| 5f7e8547f9 | |||
| ad87a23ffe | |||
| 637df00c87 | |||
| fe34ee4ff3 | |||
| 95dbbe2bda | |||
| e64cc4edeb | |||
| 151c6c2a78 | |||
| 036fa03550 | |||
| 291e8bd913 | |||
| 643c7c2060 | |||
| 837b998810 | |||
| bc57726d91 | |||
| add084329c | |||
| 7a6e782184 | |||
| 5f30ba46ea | |||
| 1f3a57691f | |||
| 4b7b8e513f | |||
| ed9cff6fbb | |||
| c8ee1927a5 | |||
| 56c488e690 | |||
| 5b20892a3d | |||
| a0508bc64c | |||
| d240b649e7 | |||
| 0f90c49440 | |||
| de1b75aabb | |||
| 908915c9da | |||
| 9408915114 | |||
| df95db7649 | |||
| b04186d272 | |||
| f909f3866f | |||
| 1b61e9dc2b | |||
| e85b9b3523 | |||
| 63d03344f9 | |||
| 2b1ec1b227 | |||
| 74c7588040 | |||
| 08bce451b7 | |||
| 48cc791fb2 | |||
| 2e00e16650 | |||
| 68e833dc1b | |||
| 8cc486ace5 | |||
| b447f59fe0 | |||
| c470e592a3 | |||
| 167413e7c3 | |||
| 07f2bb0b84 | |||
| 6750ffebc8 | |||
| 7b7f8f1e5d | |||
| 04fd3f14ac | |||
| 040d8d1414 | |||
| d50cd83fd0 | |||
| 94e80bbbed | |||
| f185967ba1 | |||
| 57a3de1bcd | |||
| b229aa8d5e | |||
| 4c86b6112e | |||
| 870fefbfaf | |||
| 8ea37e551b | |||
| ca43e7d3be | |||
| f77c10b0b0 | |||
| e566c96137 | |||
| 313e1b9c2f | |||
| ba4695e8e5 | |||
| 0a12113d9d | |||
| 248719c771 | |||
| 9a19752da4 | |||
| 39ff3a4822 | |||
| 6b1126ab54 | |||
| 7eedb7a0b3 | |||
| f000d83f00 | |||
| 8411cd3282 | |||
| 92c6be8ac0 | |||
| 1931a8db5d | |||
| bbf5e95c41 | |||
| 9f3d23a900 | |||
| 5c2c742c8d | |||
| a602ff82eb | |||
| e082783fbb | |||
| e2f79c33ff | |||
| e5aca4ac88 | |||
| 01bb46fefe | |||
| 70d2c392ca | |||
| fe0a89e251 | |||
| 09e4738682 | |||
| 190096f41e | |||
| 8ad3276a77 | |||
| 828c4f7aa5 | |||
| 0cdcfcca9f | |||
| ba22b91e31 | |||
| 83430719d1 | |||
| 15a797e8e9 | |||
| a0441bcb4c | |||
| cb4f39c7a8 | |||
| fa934294a7 | |||
| ee0bf98769 | |||
| e53efb120a | |||
| 8c1f5dbc03 | |||
| 2bb5e9e75a | |||
| 289948f1d3 | |||
| 3ffee3e6e5 | |||
| 2dc372a657 | |||
| 6d8fee9879 | |||
| 2dd2650215 | |||
| e6572c0939 | |||
| ec20658b51 | |||
| 76943117be | |||
| 6379f64a37 | |||
| aabe0b16cf | |||
| 2d96f39335 | |||
| 5d4af6ca80 | |||
| 3ebbee6958 | |||
| 08d42ed8fe | |||
| edc65ce1d2 | |||
| eb90ec7513 | |||
| c3f8b4226d | |||
| c44c026ee9 | |||
| e7127daf84 | |||
| 04aba4bde2 | |||
| 126133a927 | |||
| 9a33ab970f | |||
| 79453a952f | |||
| f5aa0fad6c | |||
| 2e78caa5a2 | |||
| 7044a9d027 | |||
| fe2cb223ea | |||
| 9dd2609525 | |||
| 1d34e445e9 | |||
| d3db379573 | |||
| 4e8d4ead22 | |||
| 87e7f3c0c1 | |||
| 9c054e3029 | |||
| 7c9f3072eb | |||
| 109ca57aa8 | |||
| af51a093fe | |||
| 599d6f0a2c | |||
| 4e3c3baac2 | |||
| f8cd486871 | |||
| 0fa5fb2894 | |||
| 76a752b69d | |||
| 9889445169 | |||
| 83518ec77c | |||
| b51edbe745 | |||
| 468a947285 | |||
| daf00f6f94 | |||
| 53bebef4bf | |||
| b23c114b95 | |||
| 3fe334c3a8 | |||
| f5d67c8b44 | |||
| 462a491fa7 | |||
| 21b1a03e1e | |||
| d1babc7775 | |||
| db0faed54c | |||
| f6a173d302 | |||
| 938795f922 | |||
| 9160cf1af7 | |||
| 28dda32acc | |||
| c5dc38c142 | |||
| 4815119eab | |||
| df32ea9960 | |||
| 624ac853ba | |||
| d405d997bd | |||
| f90b880ce8 | |||
| d316798685 | |||
| 2f772399ce | |||
| dc8965f9ea | |||
| 2eab767d4c | |||
| 5781ea200b | |||
| 2c6b8680c3 | |||
| 9414dc2cf6 | |||
| 087ff5f220 | |||
| 12b8b8bf7c | |||
| f773c8975d | |||
| 7edbc6b6ee | |||
| 576f2770c7 | |||
| 7835a51040 | |||
| 7a8a188b4c | |||
| 3394c2fbe5 | |||
| d170fb7983 | |||
| 87fb3d9e08 | |||
| c393ce993f | |||
| 54f851b5b5 | |||
| 62a5e11483 | |||
| 71df0c45ba | |||
| eee7bb2b2e | |||
| 87334d465c | |||
| 91302444cc | |||
| 58d7a0e2d7 | |||
| 3d71d992a6 | |||
| 998591adf6 | |||
| 2140a5b107 | |||
| f148059b7b | |||
| 94480795c7 | |||
| 9cd074b663 | |||
| 4b8a91bb85 | |||
| 100c6dc513 | |||
| 501f327b56 | |||
| 29efd9a753 | |||
| 966b619705 | |||
| ce07f4403b | |||
| 800fbc513f | |||
| 42f920c77b | |||
| fc246a9305 | |||
| c59386ba1d | |||
| 92b1c9150d | |||
| 78b42c67e6 | |||
| 5eccd0d20e | |||
| 11788b71e1 | |||
| 96e42fb1ee | |||
| 5438a7b608 | |||
| d154b115e5 | |||
| 9983f2e551 | |||
| 6247ef7a32 | |||
| 2c53b675c3 | |||
| 7485d64249 | |||
| a4186b6aa5 | |||
| b6139abb37 | |||
| 067cce5d63 | |||
| 541448732d | |||
| 239570abdd | |||
| 8633c6ffc6 | |||
| 935a3f7b65 | |||
| 987256968b | |||
| 9bc658f6ed | |||
| 2e9a0028fb | |||
| 442f7a9d26 | |||
| 029b7b6361 | |||
| 931ed06beb | |||
| cc895cc924 | |||
| ca9e029838 | |||
| e9d53fd675 | |||
| d0c4e2d762 | |||
| fe7af7a9e5 | |||
| bc01a0cbcf | |||
| 2194ee02e3 | |||
| b6d139f954 | |||
| 9dfadca46c | |||
| 0a037fa4fe | |||
| 4b85311951 | |||
| e193b20d50 | |||
| a9f0710686 | |||
| fb0c247e30 | |||
| b802beb0b1 | |||
| 686efe8145 | |||
| a86bbf759f | |||
| 453ac4a2ec | |||
| 39945324bc | |||
| a622ca52a0 | |||
| 05bc895378 | |||
| 1ae55844f7 | |||
| 21ef8f9ad9 | |||
| bffcae28d7 | |||
| 36b1586f86 | |||
| 5067f69ff1 | |||
| 8a9dabd683 | |||
| 47c66ad3bc | |||
| 7e978d3447 | |||
| d8453e7826 | |||
| 4343bc8d0a | |||
| 539545688c | |||
| c51d3805a7 | |||
| a7e91ca4ca | |||
| a17acc0572 | |||
| 30101c195c | |||
| 2bd8ea3084 | |||
| 6d84afc2f5 | |||
| 8f49f935df | |||
| bb7ff7b586 | |||
| 1c9cc0acf0 | |||
| 88977f73eb | |||
| 5585335dd9 | |||
| 189a35fe59 | |||
| b8a0ff9e04 | |||
| c81131ff21 | |||
| b26536162c | |||
| 06eb74410d | |||
| 8f125f9b93 | |||
| 26d5674b65 | |||
| 3dcb9d4bfc | |||
| 23d870de2f | |||
| 2de67d907b | |||
| e9da5b95de | |||
| 4aa4093b6e | |||
| 04bc35f060 | |||
| c8fdec0419 | |||
| 2a762bf6ca | |||
| ef3dc5fd42 | |||
| 9743d2e83c | |||
| eed0dd0944 | |||
| 2091807b24 | |||
| c31f02b455 | |||
| b5061249e7 | |||
| 58956ad7e2 | |||
| 38c309869d | |||
| ac4d89113b | |||
| 51b774f59a | |||
| 07d3c79945 | |||
| 84c77b7ca5 | |||
| 0d0f3a1e4c | |||
| 18b7ad4182 | |||
| 27f81d8918 | |||
| e40dcff11b | |||
| 4f37e160af | |||
| 905edf9478 | |||
| 74a104d73a | |||
| 149f5891fa | |||
| 29e8460604 | |||
| eaac92f621 | |||
| f01e0670f8 | |||
| c0d7fe2ad4 | |||
| e3cf8611b2 | |||
| f0d57f40f5 | |||
| 82956742c0 | |||
| 57ca68d591 | |||
| cf9edf9ff7 | |||
| 4285f21b3b | |||
| 6860f86724 | |||
| 43572af86e | |||
| cad18bbfe3 | |||
| 174c126b6e | |||
| a821df1577 | |||
| 99e2f97f30 | |||
| 4f0619de15 | |||
| 66882103cc | |||
| 7673c45fec | |||
| 675ead1d82 | |||
| b3e06e8302 | |||
| e9d18c8e07 | |||
| 01a3ad45b8 | |||
| 694bf7230e | |||
| f8d1cf58af | |||
| 69de358b38 | |||
| 312263233f | |||
| bd5431e620 | |||
| 95ccaa02de | |||
| 9d7ef2875d | |||
| 6972375688 | |||
| e4d9e5dd63 | |||
| bfadb65fb0 | |||
| 5c35215457 | |||
| 02b2810a0e | |||
| 7ed2cbcfce | |||
| 4b03789551 | |||
| 5db40e41b3 | |||
| bcb255593d | |||
| fc2cbf960c | |||
| 20dcd8a723 | |||
| ea7bd00e92 | |||
| d3e91fbba6 | |||
| 54573f1582 | |||
| 62a2dd6c78 | |||
| 699fc85a67 | |||
| e337bd8583 | |||
| facb5e7d60 | |||
| 37e71e4e28 | |||
| 1566b3af8a | |||
| 3dca3822fb | |||
| 51f9ce390f | |||
| 91663e0791 | |||
| b2d6bf1526 | |||
| 3871291ba3 | |||
| 9242d1414d | |||
| e4ac9609a2 | |||
| 753e30667f | |||
| 80a015529d | |||
| b48c8318a1 | |||
| b8fa675a6a | |||
| 969ff4c863 | |||
| 81cf73ae8a | |||
| 8273349eca | |||
| 50c7d672c1 | |||
| 0d51400b29 | |||
| f7daeec10f | |||
| 5d3e414994 | |||
| b86b00b387 | |||
| 1fa4359218 | |||
| a739d9fb80 | |||
| 2831ef6b19 | |||
| b7fd519822 | |||
| 4c14a043eb | |||
| a078bd09b0 | |||
| da2d84c0bf | |||
| 4c4f795da9 | |||
| e0e2c768dd | |||
| f76e9f5804 | |||
| cab66c128c | |||
| 6b9924db1c | |||
| 87487cea62 | |||
| ddf4cde3af | |||
| e9b593c2e6 | |||
| 324c3e4ced | |||
| f099bf1f58 | |||
| 1d3707ca56 | |||
| 3e9dabbdb8 | |||
| fa60b41c52 | |||
| 3750e4fb67 | |||
| 8928fd096e | |||
| 33a021868a | |||
| 1de99c2c95 | |||
| a763546c8f | |||
| 0cbf76ed47 | |||
| 00ec5fcd7a | |||
| a75065a458 | |||
| afbc052916 | |||
| 58f7b084b5 | |||
| a8fcc1c482 | |||
| 87075b3b97 | |||
| d1c3745b07 | |||
| 94f6a09585 | |||
| af09dd08c1 | |||
| dab1cacba7 | |||
| f746afc794 | |||
| 9889c4db88 | |||
| 1f50800129 | |||
| 132276fa75 | |||
| 779d3d58ea | |||
| 9de876c222 | |||
| 2abf1056c9 | |||
| 14724073a4 | |||
| c12194feae | |||
| d68d78de81 | |||
| ce9c3df4c8 | |||
| 4bc8dcede8 | |||
| 3659db3a4a | |||
| 71d7b97a90 | |||
| 7545e7211c | |||
| acca24e9c1 | |||
| 507bf6a85f | |||
| 750a96e4cc | |||
| b68bbbb892 | |||
| 1abc649b8c | |||
| f8b8bb4bf9 | |||
| 360820e9bf | |||
| 214d5efdd4 | |||
| 600ae2db92 | |||
| 5cb043d5dd | |||
| f289f667e7 | |||
| 89ac81e767 | |||
| 0c991c5645 | |||
| 901aa0d645 | |||
| 2336ebca5c | |||
| 9d4e82a0dc | |||
| b0e01bee7f | |||
| 944bf11cee | |||
| 3a4f027074 | |||
| a8bf73cfa7 | |||
| 4330bd6e52 | |||
| 6c9bfc5f39 | |||
| 9d4674a5ec | |||
| cd50594db8 | |||
| fcbbd763cd | |||
| 99de88c452 | |||
| 7c0624aa92 | |||
| b1397c64e4 | |||
| 1ba7e8eb15 | |||
| f584679cfa | |||
| 41342b23e5 | |||
| 3546feb389 | |||
| af37f76bc6 | |||
| e5b4a51b6b | |||
| 750fa5398e | |||
| e70ef71c3a | |||
| fb0968a99f | |||
| 4f0f6243c9 | |||
| 52e84a9ecc | |||
| 0c90bacff8 | |||
| b416198a18 | |||
| 9d2168ded2 | |||
| da3efeb746 | |||
| 8809f33b65 | |||
| 0a1ad1a4e2 | |||
| 6ced4f526c | |||
| 0cbffefde8 | |||
| e1f73a1984 | |||
| b4d09fd5fb | |||
| 7e43059e84 | |||
| 133e3e84a7 | |||
| 9514e741cd | |||
| b84d4a308e | |||
| 9e607a572b | |||
| 7d90caca4f | |||
| 23fa7fcc6e | |||
| a34ddc38b6 | |||
| 484c40bab0 | |||
| e11db0ea01 | |||
| f896f48dcc | |||
| 9c1ad44ed9 | |||
| ffbd007c50 | |||
| 22b0149b78 | |||
| 014c28c208 | |||
| a0f23e1706 | |||
| eb42c9e9ce | |||
| 42ef281ea4 | |||
| a2a990aa0b | |||
| d99742e1cb | |||
| 5e62f81196 | |||
| d4b1f0cadf | |||
| 56edab3553 | |||
| 9a48091064 | |||
| 5e8045b14d | |||
| 7a69bdc5f0 | |||
| 21ebf5df86 | |||
| 24c1a4f24b | |||
| 462dc0643b | |||
| 9724366289 | |||
| c659d1a505 | |||
| e08d04b561 | |||
| a8ec02c930 |
@@ -7,6 +7,8 @@ GTK+ requires the following packages:
|
||||
location as GTK+. GTK+ @GTK_VERSION@ requires at least GLib 2.23.6,
|
||||
Pango 1.20, ATK 1.29.2 and cairo 1.6.0.
|
||||
|
||||
- gobject-introspection 0.6.7 or newer.
|
||||
|
||||
- The TIFF, PNG, and JPEG image loading libraries. You most
|
||||
likely have these installed on your system already. If not
|
||||
these libraries are available from:
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
include $(top_srcdir)/Makefile.decl
|
||||
|
||||
SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
|
||||
SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
|
||||
SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros build
|
||||
|
||||
# require automake 1.4
|
||||
AUTOMAKE_OPTIONS = 1.7
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
Overview of Changes from GTK+ 2.20.x to 2.90.0
|
||||
==============================================
|
||||
|
||||
* GtkExtendedLayout: Width-for-height geometry management
|
||||
|
||||
* gtk_icon_theme_load_symbolic: Support for 'symbolic' icons
|
||||
|
||||
|
||||
Overview of Changes from GTK+ 2.19.7 to 2.20.0
|
||||
==============================================
|
||||
|
||||
|
||||
@@ -41,6 +41,11 @@ Release notes for 2.20
|
||||
attribute of the <object>. Use gtk_buildable_get_name() instead of
|
||||
gtk_widget_get_name() to obtain the ID.
|
||||
|
||||
* GTK+ now includes introspection data, as a consequence, it gained a
|
||||
dependency on gobject-introspection. It is possible to build without
|
||||
introspection by passing --disable-introspection to configure.
|
||||
|
||||
|
||||
Release notes for 2.18
|
||||
======================
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
include $(top_srcdir)/Makefile.decl
|
||||
|
||||
SUBDIRS = \
|
||||
win32
|
||||
@@ -0,0 +1,4 @@
|
||||
include $(top_srcdir)/Makefile.decl
|
||||
|
||||
SUBDIRS = \
|
||||
vs9
|
||||
@@ -0,0 +1,16 @@
|
||||
include $(top_srcdir)/Makefile.decl
|
||||
|
||||
EXTRA_DIST = \
|
||||
README.txt \
|
||||
gtk+.sln \
|
||||
gtk+.vsprops \
|
||||
gdk-pixbuf.vcproj \
|
||||
gdk-pixbuf-csource.vcproj \
|
||||
gdk-pixbuf-query-loaders.vcproj \
|
||||
gdk-win32.vcproj \
|
||||
gdk.vcproj \
|
||||
gdk.vcprojin \
|
||||
gtk.vcproj \
|
||||
gtk.vcprojin \
|
||||
gtk-demo.vcproj \
|
||||
install.vcproj
|
||||
@@ -0,0 +1,22 @@
|
||||
Note that all this is rather experimental.
|
||||
|
||||
This VS9 solution and the projects it includes are intented to be used
|
||||
in a GTK+ source tree unpacked from a tarball. In a git checkout you
|
||||
first need to use some Unix-like environment or manual work to expand
|
||||
the files needed, like config.h.win32.in into config.h.win32 and the
|
||||
.vcprojin files here into corresponding actual .vcproj files.
|
||||
|
||||
You will need the parts from below in the GTK+ stack: pango, atk and
|
||||
glib. External dependencies are at least zlib, libpng, proxy-libintl,
|
||||
fontconfig, freetype, expat. See the corresponding README.txt file in
|
||||
glib for details where to unpack them.
|
||||
|
||||
The "install" project will copy build results and headers into their
|
||||
appropriate location under <root>\vs9\<PlatformName>. For instance,
|
||||
built DLLs go into <root>\vs9\<PlatformName>\bin, built LIBs into
|
||||
<root>\vs9\<PlatformName>\lib and GTK+ headers into
|
||||
<root>\vs9\<PlatformName>\include\gtk-2.0. This is then from where
|
||||
project files higher in the stack are supposed to look for them, not
|
||||
from a specific GLib source tree.
|
||||
|
||||
--Tor Lillqvist <tml@iki.fi>
|
||||
@@ -0,0 +1,166 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9,00"
|
||||
Name="gdk-pixbuf-csource"
|
||||
ProjectGUID="{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F8}"
|
||||
RootNamespace="gdkpixbufcsource"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="131072"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
<Platform
|
||||
Name="x64"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="_CRT_NONSTDC_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="4"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|x64"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="_CRT_NONSTDC_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="17"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="_CRT_NONSTDC_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|x64"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="_CRT_NONSTDC_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="17"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\gdk-pixbuf-csource.c" />
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
@@ -0,0 +1,166 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
Name="gdk-pixbuf-query-loaders"
|
||||
ProjectGUID="{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F9}"
|
||||
RootNamespace="gdkpixbufqueryloaders"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="131072"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
<Platform
|
||||
Name="x64"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="_DEBUG;GDK_PIXBUF_COMPILATION;GDK_PIXBUF_ENABLE_BACKEND;$(GtkPrefixDefine);$(GdkPixbufLibdirDefine)"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="4"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|x64"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="_DEBUG;GDK_PIXBUF_COMPILATION;GDK_PIXBUF_ENABLE_BACKEND"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="17"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="GDK_PIXBUF_COMPILATION;GDK_PIXBUF_ENABLE_BACKEND"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|x64"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="GDK_PIXBUF_COMPILATION;GDK_PIXBUF_ENABLE_BACKEND"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="17"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\queryloaders.c" />
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
@@ -0,0 +1,258 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
Name="gdk_pixbuf"
|
||||
ProjectGUID="{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}"
|
||||
RootNamespace="gdk_pixbuf"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="0"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
<Platform
|
||||
Name="x64"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="_DEBUG;$(GdkPixbufDefines)"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="libpng.lib"
|
||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
||||
LinkIncremental="2"
|
||||
ModuleDefinitionFile="$(IntDir)\gdk-pixbuf.def"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
ImportLibrary="$(TargetDir)$(ProjectName)-$(GtkApiVersion).lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="$(GdkPixbufDefines)"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="libpng.lib"
|
||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
||||
LinkIncremental="2"
|
||||
ModuleDefinitionFile="$(IntDir)\gdk-pixbuf.def"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
ImportLibrary="$(TargetDir)$(ProjectName)-$(GtkApiVersion).lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|x64"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="_DEBUG;$(GdkPixbufDefines)"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="libpng.lib"
|
||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
||||
LinkIncremental="2"
|
||||
ModuleDefinitionFile="$(IntDir)\gdk-pixbuf.def"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
ImportLibrary="$(TargetDir)$(ProjectName)-$(GtkApiVersion).lib"
|
||||
TargetMachine="17"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|x64"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="$(GdkPixbufDefines)"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="libpng.lib"
|
||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll"
|
||||
LinkIncremental="2"
|
||||
ModuleDefinitionFile="$(IntDir)\gdk-pixbuf.def"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
ImportLibrary="$(TargetDir)$(ProjectName)-$(GtkApiVersion).lib"
|
||||
TargetMachine="17"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\..\gdk-pixbuf\gdk-pixbuf.symbols"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Generating gdk-pixbuf.def"
|
||||
CommandLine="$(GtkGenerateGdkPixbufDef)"
|
||||
Outputs="$(IntDir)\gdk-pixbuf.def"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|x64"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Generating gdk-pixbuf.def"
|
||||
CommandLine="$(GtkGenerateGdkPixbufDef)"
|
||||
Outputs="$(IntDir)\gdk-pixbuf.def"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Generating gdk-pixbuf.def"
|
||||
CommandLine="$(GtkGenerateGdkPixbufDef)"
|
||||
Outputs="$(IntDir)\gdk-pixbuf.def"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|x64"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Generating gdk-pixbuf.def"
|
||||
CommandLine="$(GtkGenerateGdkPixbufDef)"
|
||||
Outputs="$(IntDir)\gdk-pixbuf.def"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\gdk-pixbuf.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\gdk-pixbuf-aliasdef.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\gdk-pixbuf-animation.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\gdk-pixbuf-data.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\gdk-pixbuf-enum-types.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\gdk-pixbuf-io.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\gdk-pixbuf-loader.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\gdk-pixbuf-scale.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\gdk-pixbuf-scaled-anim.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\gdk-pixbuf-simple-anim.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\gdk-pixbuf-util.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\gdk-pixdata.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-ani.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-ani-animation.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-gdip-utils.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-gdip-animation.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-gdip-bmp.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-gdip-emf.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-gdip-gif.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-gdip-ico.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-gdip-jpeg.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-gdip-tiff.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-gdip-wmf.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-gif-animation.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-icns.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-pcx.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-png.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-pnm.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-ras.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-tga.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-wbmp.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-xbm.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\io-xpm.c" />
|
||||
<File RelativePath="..\..\..\gdk-pixbuf\pixops\pixops.c" />
|
||||
</Filter>
|
||||
</Files>
|
||||
</VisualStudioProject>
|
||||
@@ -0,0 +1,153 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
Name="gdk-win32"
|
||||
ProjectGUID="{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FA}"
|
||||
RootNamespace="gdkwin32"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="0"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
<Platform
|
||||
Name="x64"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gdk\win32"
|
||||
PreprocessorDefinitions="_DEBUG;$(GdkDefines);INSIDE_GDK_WIN32"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gdk\win32"
|
||||
PreprocessorDefinitions="$(GdkDefines);INSIDE_GDK_WIN32"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|x64"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gdk\win32"
|
||||
PreprocessorDefinitions="_DEBUG;$(GdkDefines);INSIDE_GDK_WIN32"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|x64"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gdk\win32"
|
||||
PreprocessorDefinitions="$(GdkDefines);INSIDE_GDK_WIN32"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkapplaunchcontext-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkcolor-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkcursor-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkdisplay-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkdnd-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkdrawable-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkevents-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkfont-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkgc-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkgeometry-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkglobals-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkim-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkimage-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkinput-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkinput.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkkeys-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkmain-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkpixmap-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkproperty-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkscreen-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkselection-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkspawn-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdktestutils-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkvisual-win32.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkwin32id.c" />
|
||||
<File RelativePath="..\..\..\gdk\win32\gdkwindow-win32.c" />
|
||||
</Filter>
|
||||
</Files>
|
||||
</VisualStudioProject>
|
||||
@@ -0,0 +1,220 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
Name="gdk"
|
||||
ProjectGUID="{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}"
|
||||
RootNamespace="gdk"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="0"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
<Platform
|
||||
Name="x64"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk"
|
||||
PreprocessorDefinitions="_DEBUG;$(GdkDefines)"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="cairo.lib pango-1.0.lib pangocairo-1.0.lib imm32.lib"
|
||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)-win32$(GtkDllSuffix).dll"
|
||||
LinkIncremental="2"
|
||||
ModuleDefinitionFile="$(IntDir)\gdk.def"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
ImportLibrary="$(TargetDir)$(ProjectName)-win32-$(GtkApiVersion).lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gdk\win32"
|
||||
PreprocessorDefinitions="$(GdkDefines)"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="cairo.lib"
|
||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)-win32$(GtkDllSuffix).dll"
|
||||
LinkIncremental="2"
|
||||
ModuleDefinitionFile="$(IntDir)\gdk.def"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
ImportLibrary="$(TargetDir)$(ProjectName)-win32-$(GtkApiVersion).lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|x64"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gdk\win32"
|
||||
PreprocessorDefinitions="_DEBUG;$(GdkDefines)"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="cairo.lib"
|
||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)-win32$(GtkDllSuffix).dll"
|
||||
LinkIncremental="2"
|
||||
ModuleDefinitionFile="$(IntDir)\gdk.def"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
ImportLibrary="$(TargetDir)$(ProjectName)-win32-$(GtkApiVersion).lib"
|
||||
TargetMachine="17"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|x64"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gdk\win32"
|
||||
PreprocessorDefinitions="$(GdkDefines)"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="cairo.lib"
|
||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)-win32$(GtkDllSuffix).dll"
|
||||
LinkIncremental="2"
|
||||
ModuleDefinitionFile="$(IntDir)\gdk.def"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
ImportLibrary="$(TargetDir)$(ProjectName)-win32-$(GtkApiVersion).lib"
|
||||
TargetMachine="17"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\..\gdk\gdk.symbols"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Generating gdk.def"
|
||||
CommandLine="$(GtkGenerateGdkDef)"
|
||||
Outputs="$(IntDir)\gdk.def"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|x64"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Generating gdk.def"
|
||||
CommandLine="$(GtkGenerateGdkDef)"
|
||||
Outputs="$(IntDir)\gdk.def"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Generating gdk.def"
|
||||
CommandLine="$(GtkGenerateGdkDef)"
|
||||
Outputs="$(IntDir)\gdk.def"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|x64"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Generating gdk.def"
|
||||
CommandLine="$(GtkGenerateGdkDef)"
|
||||
Outputs="$(IntDir)\gdk.def"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
#include "libgdk.sourcefiles"
|
||||
</Filter>
|
||||
</Files>
|
||||
</VisualStudioProject>
|
||||
@@ -0,0 +1,122 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual Studio 2008
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gdk-pixbuf", "gdk-pixbuf.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gdk-pixbuf-csource", "gdk-pixbuf-csource.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F8}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gdk-pixbuf-query-loaders", "gdk-pixbuf-query-loaders.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F9}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gdk-win32", "gdk-win32.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FA}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gdk", "gdk.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FA} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FA}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk", "gtk.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtk-demo", "gtk-demo.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "install", "install.vcproj", "{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F8} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F8}
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F9} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F9}
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC} = {FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Debug|x64 = Debug|x64
|
||||
Release|Win32 = Release|Win32
|
||||
Release|x64 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}.Debug|x64.Build.0 = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}.Release|Win32.Build.0 = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}.Release|x64.ActiveCfg = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F6}.Release|x64.Build.0 = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F8}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F8}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F8}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F8}.Debug|x64.Build.0 = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F8}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F8}.Release|Win32.Build.0 = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F8}.Release|x64.ActiveCfg = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F8}.Release|x64.Build.0 = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F9}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F9}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F9}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F9}.Debug|x64.Build.0 = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F9}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F9}.Release|Win32.Build.0 = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F9}.Release|x64.ActiveCfg = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F9}.Release|x64.Build.0 = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Debug|x64.Build.0 = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release|Win32.Build.0 = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release|x64.ActiveCfg = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F7}.Release|x64.Build.0 = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FA}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FA}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FA}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FA}.Debug|x64.Build.0 = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FA}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FA}.Release|Win32.Build.0 = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FA}.Release|x64.ActiveCfg = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FA}.Release|x64.Build.0 = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Debug|x64.Build.0 = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Release|Win32.Build.0 = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Release|x64.ActiveCfg = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}.Release|x64.Build.0 = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Debug|x64.Build.0 = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release|Win32.Build.0 = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release|x64.ActiveCfg = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}.Release|x64.Build.0 = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Debug|x64.Build.0 = Debug|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Release|Win32.Build.0 = Release|Win32
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Release|x64.ActiveCfg = Release|x64
|
||||
{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}.Release|x64.Build.0 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,390 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioPropertySheet
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="gtk+props"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin"
|
||||
IntermediateDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\obj"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\..\..;$(GlibEtcInstallRoot)\lib\glib-2.0\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\cairo;$(GlibEtcInstallRoot)\include\atk-1.0;$(GlibEtcInstallRoot)\include\pango-1.0"
|
||||
PreprocessorDefinitions="HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_DISABLE_SINGLE_INCLUDES;ATK_DISABLE_SINGLE_INCLUDES;GDK_PIXBUF_DISABLE_SINGLE_INCLUDES;GTK_DISABLE_SINGLE_INCLUDES"
|
||||
ForcedIncludeFiles="msvc_recommended_pragmas.h"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="gio-2.0.lib gmodule-2.0.lib gobject-2.0.lib glib-2.0.lib intl.lib"
|
||||
AdditionalLibraryDirectories="$(GlibEtcInstallRoot)\lib"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="
|
||||
if exist ..\..\..\config.h goto DONE_CONFIG_H

|
||||
copy ..\..\..\config.h.win32 ..\..\..\config.h

|
||||
:DONE_CONFIG_H

|
||||
|
||||
if exist ..\..\..\gdk\gdkconfig.h goto DONE_GDKCONFIG_H

|
||||
copy ..\..\..\gdk\gdkconfig.h.win32 ..\..\..\gdk\gdkconfig.h

|
||||
:DONE_GDKCONFIG_H

|
||||
"
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkApiVersion"
|
||||
Value="2.0"
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkBinaryVersion"
|
||||
Value="2.10.0"
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkDummyPrefix"
|
||||
Value="/dummy"
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkPrefixDefine"
|
||||
Value="GTK_PREFIX=\"$(GtkDummyPrefix)\""
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GdkPixbufIncludedLoaderDefines"
|
||||
Value="INCLUDE_ani;INCLUDE_icns;INCLUDE_pcx;INCLUDE_ras;INCLUDE_tga;INCLUDE_png;INCLUDE_pnm;INCLUDE_wbmp;INCLUDE_xbm;INCLUDE_xpm;INCLUDE_gdiplus"
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GdkPixbufDefines"
|
||||
Value="GDK_PIXBUF_COMPILATION;GDK_PIXBUF_ENABLE_BACKEND;$(GtkPrefixDefine);$(GdkPixbufIncludedLoaderDefines)"
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GdkPixbufLibdirDefine"
|
||||
Value="PIXBUF_LIBDIR=\"$(GtkDummyPrefix)/lib/gtk-$(GtkApiVersion)/$(GtkBinaryVersion)/loaders\""
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GdkDefines"
|
||||
Value="GDK_COMPILATION;G_LOG_DOMAIN=\"Gdk\""
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkIncludedImmodulesDefines"
|
||||
Value="INCLUDE_IM_am_et;INCLUDE_IM_cedilla;INCLUDE_IM_cyrillic_translit;INCLUDE_IM_ime;INCLUDE_IM_inuktitut;INCLUDE_IM_ipa;INCLUDE_IM_multipress;INCLUDE_IM_thai;INCLUDE_IM_ti_er;INCLUDE_IM_ti_et;INCLUDE_IM_viqr"
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkDefines"
|
||||
Value="GTK_COMPILATION;G_LOG_DOMAIN=\"Gtk\";GTK_HOST=\"i686-pc-vs9\";GTK_PRINT_BACKENDS=\"file\";GTK_PRINT_PREVIEW_COMMAND=\"undefined-gtk-print-preview-command\";$(GtkIncludedImmodulesDefines);GTK_LIBDIR=\"$(GtkDummyPrefix)/lib\";GTK_DATADIR=\"$(GtkDummyPrefix)/share\"GTK_DATA_PREFIX=\"$(GtkDummyPrefix)\";GTK_SYSCONFDIR=\"$(GtkDummyPrefix)/etc\";MULTIPRESS_CONFDIR=\"$(GtkDummyPrefix)/etc/gtk-$(GtkApiVersion)\";MULTIPRESS_LOCALEDIR=\"$(GtkDummyPrefix)/share/locale\";GTK_VERSION=\"$(GtkVersion)/etc\";GTK_BINARY_VERSION=\"$(GtkBinaryVersion)/etc\";GDK_DISABLE_DEPRECATED"
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkDoInstall"
|
||||
Value="
|
||||
echo on

|
||||
mkdir $(OutDir)\bin

|
||||
copy $(ConfigurationName)\$(PlatformName)\bin\*.dll $(OutDir)\bin

|
||||
copy $(ConfigurationName)\$(PlatformName)\bin\*.exe $(OutDir)\bin

|
||||
|
||||
mkdir $(OutDir)\lib

|
||||
copy $(ConfigurationName)\$(PlatformName)\bin\*-$(GtkApiVersion).lib $(OutDir)\lib

|
||||
|
||||
mkdir $(OutDir)\include\gtk-$(GtkApiVersion)\gdk-pixbuf

|
||||
copy ..\..\..\gdk-pixbuf\gdk-pixbuf-animation.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk-pixbuf

|
||||
copy ..\..\..\gdk-pixbuf\gdk-pixbuf-core.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk-pixbuf

|
||||
copy ..\..\..\gdk-pixbuf\gdk-pixbuf-enum-types.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk-pixbuf

|
||||
copy ..\..\..\gdk-pixbuf\gdk-pixbuf-features.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk-pixbuf

|
||||
copy ..\..\..\gdk-pixbuf\gdk-pixbuf-io.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk-pixbuf

|
||||
copy ..\..\..\gdk-pixbuf\gdk-pixbuf-loader.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk-pixbuf

|
||||
copy ..\..\..\gdk-pixbuf\gdk-pixbuf-marshal.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk-pixbuf

|
||||
copy ..\..\..\gdk-pixbuf\gdk-pixbuf-simple-anim.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk-pixbuf

|
||||
copy ..\..\..\gdk-pixbuf\gdk-pixbuf-transform.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk-pixbuf

|
||||
copy ..\..\..\gdk-pixbuf\gdk-pixbuf.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk-pixbuf

|
||||
copy ..\..\..\gdk-pixbuf\gdk-pixdata.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk-pixbuf

|
||||
|
||||
mkdir $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdk.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkapplaunchcontext.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkcairo.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkcolor.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkcursor.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkdisplay.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkdisplaymanager.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkdnd.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkdrawable.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkenumtypes.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkevents.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkfont.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkgc.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdki18n.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkimage.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkinput.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkkeys.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkkeysyms.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkpango.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkpixbuf.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkpixmap.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkprivate.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkproperty.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkregion.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkrgb.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkscreen.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkselection.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkspawn.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdktestutils.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdktypes.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkvisual.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\win32\gdkwin32.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
copy ..\..\..\gdk\gdkwindow.h $(OutDir)\include\gtk-$(GtkApiVersion)\gdk

|
||||
|
||||
mkdir $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtk.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkaboutdialog.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkaccelgroup.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkaccellabel.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkaccelmap.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkaccessible.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkaction.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkactiongroup.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkactivatable.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkadjustment.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkalignment.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkarrow.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkaspectframe.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkassistant.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkbbox.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkbin.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkbindings.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkbox.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkbuildable.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkbuilder.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkbutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcalendar.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcelleditable.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcelllayout.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcellrenderer.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcellrendereraccel.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcellrenderercombo.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcellrendererpixbuf.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcellrendererprogress.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcellrendererspin.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcellrenderertext.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcellrenderertoggle.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcellview.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcheckbutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcheckmenuitem.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkclipboard.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkclist.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcolorbutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcolorsel.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcolorseldialog.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcombo.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcombobox.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcomboboxentry.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcontainer.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkctree.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkcurve.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkdebug.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkdialog.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkdnd.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkdrawingarea.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkeditable.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkentry.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkentrybuffer.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkentrycompletion.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkenums.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkeventbox.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkexpander.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkfilechooser.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkfilechooserbutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkfilechooserdialog.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkfilechooserwidget.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkfilefilter.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkfilesel.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkfixed.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkfontbutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkfontsel.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkframe.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkgamma.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkgc.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkhandlebox.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkhbbox.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkhbox.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkhpaned.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkhruler.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkhscale.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkhscrollbar.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkhseparator.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkhsv.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkiconfactory.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkicontheme.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkiconview.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkimage.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkimagemenuitem.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkimcontext.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkimcontextsimple.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkimmodule.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkimmulticontext.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkinfobar.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkinputdialog.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkinvisible.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkitem.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkitemfactory.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtklabel.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtklayout.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtklinkbutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtklist.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtklistitem.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkliststore.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkmain.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkmarshal.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkmenu.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkmenubar.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkmenuitem.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkmenushell.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkmenutoolbutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkmessagedialog.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkmisc.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkmodules.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkmountoperation.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtknotebook.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkobject.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkoldeditable.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkoptionmenu.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkorientable.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkpagesetup.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkpaned.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkpapersize.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkpixmap.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkplug.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkpreview.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkprintcontext.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkprintoperation.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkprintoperationpreview.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkprintsettings.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkprivate.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkprogress.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkprogressbar.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkradioaction.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkradiobutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkradiomenuitem.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkradiotoolbutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkrange.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkrc.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkrecentaction.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkrecentchooser.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkrecentchooserdialog.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkrecentchoosermenu.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkrecentchooserwidget.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkrecentfilter.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkrecentmanager.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkruler.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkscale.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkscalebutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkscrollbar.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkscrolledwindow.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkselection.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkseparator.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkseparatormenuitem.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkseparatortoolitem.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtksettings.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkshow.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtksignal.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtksizegroup.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtksocket.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkspinbutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkstatusbar.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkstatusicon.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkstock.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkstyle.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktable.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktearoffmenuitem.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktestutils.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktext.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktextbuffer.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktextbufferrichtext.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktextchild.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktextdisplay.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktextiter.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktextlayout.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktextmark.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktexttag.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktexttagtable.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktextview.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktipsquery.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktoggleaction.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktogglebutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktoggletoolbutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktoolbar.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktoolbutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktoolitem.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktoolshell.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktooltip.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktooltips.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktree.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktreednd.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktreeitem.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktreemodel.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktreemodelfilter.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktreemodelsort.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktreeselection.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktreesortable.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktreestore.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktreeview.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktreeviewcolumn.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktypebuiltins.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtktypeutils.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkuimanager.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkvbbox.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkvbox.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkversion.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkviewport.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkvolumebutton.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkvpaned.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkvruler.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkvscale.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkvscrollbar.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkvseparator.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkwidget.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
copy ..\..\..\gtk\gtkwindow.h $(OutDir)\include\gtk-$(GtkApiVersion)\gtk

|
||||
|
||||
mkdir $(OutDir)\lib\gtk-$(GtkApiVersion)\include

|
||||
copy ..\..\..\gdk\gdkconfig.h $(OutDir)\lib\gtk-$(GtkApiVersion)\include

|
||||
|
||||
copy $(ConfigurationName)\$(PlatformName)\bin\*-$(GtkApiVersion).lib $(OutDir)\lib

|
||||
"
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkGenerateGdkPixbufDef"
|
||||
Value="echo EXPORTS >"$(IntDir)\gdk-pixbuf.def" && cl /EP -DG_OS_WIN32 -DINCLUDE_VARIABLES -DALL_FILES -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= ..\..\..\gdk-pixbuf\gdk-pixbuf.symbols >>"$(IntDir)\gdk-pixbuf.def""
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkGenerateGdkDef"
|
||||
Value="echo EXPORTS >"$(IntDir)\gdk.def" && cl /EP -DGDK_WINDOWING_WIN32 -DALL_FILES -DG_GNUC_CONST= ..\..\..\gdk\gdk.symbols >>"$(IntDir)\gdk.def""
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkGenerateGtkDef"
|
||||
Value="echo EXPORTS >"$(IntDir)\gtk.def" && cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES -DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_PRINTF=;G_GNUC_PRINTF ..\..\..\gtk\gtk.symbols >>"$(IntDir)\gtk.def""
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkLibtoolCompatibleDllPrefix"
|
||||
Value="lib"
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkLibtoolCompatibleDllSuffix"
|
||||
Value="-$(GtkApiVersion)-0"
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkSeparateVS9DllPrefix"
|
||||
Value=""
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkSeparateVS9DllSuffix"
|
||||
Value="-2-vs9"
|
||||
/>
|
||||
<!-- Change these two to GtkLibtoolCompatibleDllPrefix and
|
||||
GtkLibtoolCompatibleDllSuffix if that is what you want -->
|
||||
<UserMacro
|
||||
Name="GtkDllPrefix"
|
||||
Value="$(GtkLibtoolCompatibleDllPrefix)"
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GtkDllSuffix"
|
||||
Value="$(GtkLibtoolCompatibleDllSuffix)"
|
||||
/>
|
||||
<UserMacro
|
||||
Name="GlibEtcInstallRoot"
|
||||
Value="..\..\..\..\..\vs9\$(PlatformName)"
|
||||
/>
|
||||
</VisualStudioPropertySheet>
|
||||
@@ -0,0 +1,209 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
Name="gtk-demo"
|
||||
ProjectGUID="{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FC}"
|
||||
RootNamespace="gtkdemo"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="131072"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
<Platform
|
||||
Name="x64"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gtk"
|
||||
PreprocessorDefinitions="_DEBUG;$(GtkPrefixDefine)"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="4"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="cairo.lib pango-1.0.lib pangocairo-1.0.lib"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|x64"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gtk"
|
||||
PreprocessorDefinitions="_DEBUG;$(GtkPrefixDefine)"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="17"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gtk"
|
||||
PreprocessorDefinitions="$(GtkPrefixDefine)"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|x64"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gtk"
|
||||
PreprocessorDefinitions="$(GtkPrefixDefine)"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
RandomizedBaseAddress="1"
|
||||
DataExecutionPrevention="0"
|
||||
TargetMachine="17"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\appwindow.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\assistant.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\builder.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\button_box.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\changedisplay.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\clipboard.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\colorsel.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\combobox.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\dialog.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\drawingarea.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\editable_cells.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\entry_buffer.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\entry_completion.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\expander.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\hypertext.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\iconview.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\iconview_edit.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\images.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\infobar.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\links.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\list_store.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\main.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\menus.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\offscreen_window.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\offscreen_window2.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\panes.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\pickers.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\pixbufs.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\printing.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\rotated_text.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\search_entry.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\sizegroup.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\spinner.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\stock_browser.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\textscroll.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\textview.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\toolpalette.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\tree_store.c" />
|
||||
<File RelativePath="..\..\..\demos\gtk-demo\ui_manager.c" />
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
@@ -0,0 +1,235 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
Name="gtk"
|
||||
ProjectGUID="{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073F5}"
|
||||
RootNamespace="gtk"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="0"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
<Platform
|
||||
Name="x64"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gtk"
|
||||
PreprocessorDefinitions="_DEBUG;$(GtkDefines)"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="cairo.lib atk-1.0.lib pango-1.0.lib pangocairo-1.0.lib pangowin32-1.0.lib imm32.lib winspool.lib comctl32.lib"
|
||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)-win32$(GtkDllSuffix).dll"
|
||||
LinkIncremental="2"
|
||||
ModuleDefinitionFile="$(IntDir)\gtk.def"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
ImportLibrary="$(TargetDir)$(ProjectName)-win32-$(GtkApiVersion).lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gdk\win32"
|
||||
PreprocessorDefinitions="$(GtkDefines)"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="cairo.lib atk-1.0.lib pango-1.0.lib pangocairo-1.0.lib pangowin32-1.0.lib imm32.lib winspool.lib comctl32.lib"
|
||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)-win32$(GtkDllSuffix).dll"
|
||||
LinkIncremental="2"
|
||||
ModuleDefinitionFile="$(IntDir)\gtk.def"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
ImportLibrary="$(TargetDir)$(ProjectName)-win32-$(GtkApiVersion).lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|x64"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gdk\win32"
|
||||
PreprocessorDefinitions="_DEBUG;$(GtkDefines)"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="cairo.lib atk-1.0.lib pango-1.0.lib pangocairo-1.0.lib pangowin32-1.0.lib imm32.lib winspool.lib comctl32.lib"
|
||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)-win32$(GtkDllSuffix).dll"
|
||||
LinkIncremental="2"
|
||||
ModuleDefinitionFile="$(IntDir)\gtk.def"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
ImportLibrary="$(TargetDir)$(ProjectName)-win32-$(GtkApiVersion).lib"
|
||||
TargetMachine="17"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|x64"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\..\..\gdk-pixbuf;..\..\..\gdk;..\..\..\gdk\win32"
|
||||
PreprocessorDefinitions="$(GtkDefines)"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="cairo.lib atk-1.0.lib pango-1.0.lib pangocairo-1.0.lib pangowin32-1.0.lib imm32.lib winspool.lib comctl32.lib"
|
||||
OutputFile="$(OutDir)\$(GtkDllPrefix)$(ProjectName)-win32$(GtkDllSuffix).dll"
|
||||
LinkIncremental="2"
|
||||
ModuleDefinitionFile="$(IntDir)\gtk.def"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
ImportLibrary="$(TargetDir)$(ProjectName)-win32-$(GtkApiVersion).lib"
|
||||
TargetMachine="17"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\..\gdk\gtk.symbols"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Generating gtk.def"
|
||||
CommandLine="$(GtkGenerateGtkDef)"
|
||||
Outputs="$(IntDir)\gtk.def"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|x64"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Generating gtk.def"
|
||||
CommandLine="$(GtkGenerateGtkDef)"
|
||||
Outputs="$(IntDir)\gtk.def"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Generating gtk.def"
|
||||
CommandLine="$(GtkGenerateGtkDef)"
|
||||
Outputs="$(IntDir)\gtk.def"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|x64"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Generating gtk.def"
|
||||
CommandLine="$(GtkGenerateGtkDef)"
|
||||
Outputs="$(IntDir)\gtk.def"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
#include "libgtk.sourcefiles"
|
||||
<File RelativePath="..\..\..\modules\input\gtkimcontextime.c" />
|
||||
<File RelativePath="..\..\..\modules\input\gtkimcontextmultipress.c" />
|
||||
<File RelativePath="..\..\..\modules\input\gtkimcontextthai.c" />
|
||||
<File RelativePath="..\..\..\modules\input\imam-et.c" />
|
||||
<File RelativePath="..\..\..\modules\input\imcedilla.c" />
|
||||
<File RelativePath="..\..\..\modules\input\imcyrillic-translit.c" />
|
||||
<File RelativePath="..\..\..\modules\input\imime.c" />
|
||||
<File RelativePath="..\..\..\modules\input\iminuktitut.c" />
|
||||
<File RelativePath="..\..\..\modules\input\imipa.c" />
|
||||
<File RelativePath="..\..\..\modules\input\immultipress.c" />
|
||||
<File RelativePath="..\..\..\modules\input\imthai.c" />
|
||||
<File RelativePath="..\..\..\modules\input\imti-er.c" />
|
||||
<File RelativePath="..\..\..\modules\input\imti-et.c" />
|
||||
<File RelativePath="..\..\..\modules\input\imviqr.c" />
|
||||
<File RelativePath="..\..\..\modules\input\thai-charprop.c" />
|
||||
</Filter>
|
||||
</Files>
|
||||
</VisualStudioProject>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
Name="install"
|
||||
ProjectGUID="{FC5AADB5-95CD-4BF0-BA8B-0C16FE7073FB}"
|
||||
RootNamespace="install"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="131072"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
<Platform
|
||||
Name="x64"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
OutputDirectory="$(GlibEtcInstallRoot)"
|
||||
|
||||
ConfigurationType="10"
|
||||
CharacterSet="2"
|
||||
DeleteExtensionsOnClean=""
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="$(GtkDoInstall)"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|x64"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
OutputDirectory="$(GlibEtcInstallRoot)"
|
||||
ConfigurationType="10"
|
||||
CharacterSet="2"
|
||||
DeleteExtensionsOnClean=""
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="$(GtkDoInstall)"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
OutputDirectory="$(GlibEtcInstallRoot)"
|
||||
ConfigurationType="10"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
DeleteExtensionsOnClean=""
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="$(GtkDoInstall)"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|x64"
|
||||
InheritedPropertySheets=".\gtk+.vsprops"
|
||||
OutputDirectory="$(GlibEtcInstallRoot)"
|
||||
ConfigurationType="10"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
DeleteExtensionsOnClean=""
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
CommandLine="$(GtkDoInstall)"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
</VisualStudioProject>
|
||||
+19
-5
@@ -5,6 +5,9 @@
|
||||
/* always defined to indicate that i18n is enabled */
|
||||
#define ENABLE_NLS 1
|
||||
|
||||
/* Define if gio can sniff image data */
|
||||
/* #undef GDK_PIXBUF_USE_GIO_MIME */
|
||||
|
||||
/* The prefix for our gettext translation domains. */
|
||||
#define GETTEXT_PACKAGE "@GETTEXT_PACKAGE@"
|
||||
|
||||
@@ -12,7 +15,7 @@
|
||||
#define GTK_COMPILED_WITH_DEBUGGING "yes"
|
||||
|
||||
/* Define the location where the catalogs will be installed */
|
||||
#define GTK_LOCALEDIR "c:/devel/target/HEAD/share/locale"
|
||||
#define GTK_LOCALEDIR "NONE/share/locale"
|
||||
|
||||
/* Define to 1 if you have the `bind_textdomain_codeset' function. */
|
||||
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
|
||||
@@ -97,6 +100,9 @@
|
||||
/* Define to 1 if you have a working `mmap' system call. */
|
||||
/* #undef HAVE_MMAP */
|
||||
|
||||
/* Define to 1 if libpapi available */
|
||||
/* #undef HAVE_PAPI */
|
||||
|
||||
/* Define to 1 is libjpeg supports progressive JPEG */
|
||||
/* #undef HAVE_PROGRESSIVE_JPEG */
|
||||
|
||||
@@ -106,9 +112,6 @@
|
||||
/* Have the Xrandr extension library */
|
||||
/* #undef HAVE_RANDR */
|
||||
|
||||
/* Define to 1 if the XShape extension is available */
|
||||
/* #undef HAVE_SHAPE_EXT */
|
||||
|
||||
/* Define to 1 if shm.h is available */
|
||||
/* #undef HAVE_SHM_H */
|
||||
|
||||
@@ -199,7 +202,7 @@
|
||||
/* Define to 1 if XFree Xinerama is available */
|
||||
/* #undef HAVE_XFREE_XINERAMA */
|
||||
|
||||
/* Define to 1 is Xinerama is available */
|
||||
/* Define to 1 if xinerama is available */
|
||||
/* #undef HAVE_XINERAMA */
|
||||
|
||||
/* Define to 1 if you have the `XInternAtoms' function. */
|
||||
@@ -229,12 +232,23 @@
|
||||
/* Define to 1 if you have the `_NSGetEnviron' function. */
|
||||
/* #undef HAVE__NSGETENVIRON */
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
#define LT_OBJDIR ".libs/"
|
||||
|
||||
/* Define if <X11/extensions/XIproto.h> needed for xReply */
|
||||
/* #undef NEED_XIPROTO_H_FOR_XREPLY */
|
||||
|
||||
/* Define to 1 if fd_set is not available */
|
||||
#define NO_FD_SET 1
|
||||
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
|
||||
#ifndef _MSC_VER
|
||||
/* #undef NO_MINUS_C_MINUS_O */
|
||||
#else
|
||||
#define NO_MINUS_C_MINUS_O 1
|
||||
#endif
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B"
|
||||
|
||||
|
||||
+10
-2
@@ -11,7 +11,7 @@ AC_PREREQ(2.62)
|
||||
# set GTK_BINARY_AGE and GTK_INTERFACE_AGE to 0.
|
||||
|
||||
m4_define([gtk_major_version], [2])
|
||||
m4_define([gtk_minor_version], [20])
|
||||
m4_define([gtk_minor_version], [21])
|
||||
m4_define([gtk_micro_version], [0])
|
||||
m4_define([gtk_interface_age], [0])
|
||||
m4_define([gtk_binary_age],
|
||||
@@ -1720,7 +1720,12 @@ CFLAGS="$saved_cflags"
|
||||
LDFLAGS="$saved_ldflags"
|
||||
|
||||
# Pull in gio-unix for GDesktopAppInfo usage, see at least gdkapplaunchcontext-x11.c
|
||||
GDK_PACKAGES="$PANGO_PACKAGES gio-unix-2.0 $X_PACKAGES cairo-$cairo_backend"
|
||||
if test "x$gdktarget" = "xx11"; then
|
||||
GDK_PACKAGES="$PANGO_PACKAGES gio-unix-2.0 $X_PACKAGES cairo-$cairo_backend"
|
||||
else
|
||||
GDK_PACKAGES="$PANGO_PACKAGES $X_PACKAGES cairo-$cairo_backend"
|
||||
fi
|
||||
|
||||
GDK_DEP_LIBS="$GDK_EXTRA_LIBS `$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $GDK_PACKAGES` $GDK_PIXBUF_EXTRA_LIBS"
|
||||
GDK_DEP_CFLAGS="`$PKG_CONFIG --cflags gthread-2.0 $GDK_PIXBUF_PACKAGES $GDK_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_EXTRA_CFLAGS"
|
||||
#
|
||||
@@ -2132,6 +2137,9 @@ docs/reference/libgail-util/Makefile
|
||||
docs/faq/Makefile
|
||||
docs/tools/Makefile
|
||||
docs/tutorial/Makefile
|
||||
build/Makefile
|
||||
build/win32/Makefile
|
||||
build/win32/vs9/Makefile
|
||||
gdk-pixbuf/Makefile
|
||||
gdk-pixbuf/gdk_pixbuf.rc
|
||||
gdk-pixbuf/gdk-pixbuf-features.h
|
||||
|
||||
@@ -317,6 +317,7 @@ do_images (GtkWidget *do_widget)
|
||||
GtkWidget *align;
|
||||
GtkWidget *button;
|
||||
GdkPixbuf *pixbuf;
|
||||
GIcon *gicon;
|
||||
GError *error = NULL;
|
||||
char *filename;
|
||||
|
||||
@@ -415,6 +416,26 @@ do_images (GtkWidget *do_widget)
|
||||
|
||||
gtk_container_add (GTK_CONTAINER (frame), image);
|
||||
|
||||
/* Symbolic icon */
|
||||
|
||||
label = gtk_label_new (NULL);
|
||||
gtk_label_set_markup (GTK_LABEL (label),
|
||||
"<u>Symbolic themed icon</u>");
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||
|
||||
frame = gtk_frame_new (NULL);
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
|
||||
/* The alignment keeps the frame from growing when users resize
|
||||
* the window
|
||||
*/
|
||||
align = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_container_add (GTK_CONTAINER (align), frame);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), align, FALSE, FALSE, 0);
|
||||
|
||||
gicon = g_themed_icon_new_with_default_fallbacks ("battery-critical-charging-symbolic");
|
||||
image = gtk_image_new_from_gicon (gicon, GTK_ICON_SIZE_DIALOG);
|
||||
|
||||
gtk_container_add (GTK_CONTAINER (frame), image);
|
||||
|
||||
/* Progressive */
|
||||
|
||||
|
||||
@@ -29,7 +29,9 @@ enum
|
||||
COLUMN_SEVERITY,
|
||||
COLUMN_DESCRIPTION,
|
||||
COLUMN_PULSE,
|
||||
COLUMN_ICON,
|
||||
COLUMN_ACTIVE,
|
||||
COLUMN_SENSITIVE,
|
||||
NUM_COLUMNS
|
||||
};
|
||||
|
||||
@@ -92,11 +94,24 @@ create_model (void)
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_UINT,
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_BOOLEAN,
|
||||
G_TYPE_BOOLEAN);
|
||||
|
||||
/* add data to the list store */
|
||||
for (i = 0; i < G_N_ELEMENTS (data); i++)
|
||||
{
|
||||
gchar *icon_name;
|
||||
gboolean sensitive;
|
||||
|
||||
if (i == 1 || i == 3)
|
||||
icon_name = "battery-critical-charging-symbolic";
|
||||
else
|
||||
icon_name = NULL;
|
||||
if (i == 3)
|
||||
sensitive = FALSE;
|
||||
else
|
||||
sensitive = TRUE;
|
||||
gtk_list_store_append (store, &iter);
|
||||
gtk_list_store_set (store, &iter,
|
||||
COLUMN_FIXED, data[i].fixed,
|
||||
@@ -104,7 +119,9 @@ create_model (void)
|
||||
COLUMN_SEVERITY, data[i].severity,
|
||||
COLUMN_DESCRIPTION, data[i].description,
|
||||
COLUMN_PULSE, 0,
|
||||
COLUMN_ICON, icon_name,
|
||||
COLUMN_ACTIVE, FALSE,
|
||||
COLUMN_SENSITIVE, sensitive,
|
||||
-1);
|
||||
}
|
||||
|
||||
@@ -199,6 +216,19 @@ add_columns (GtkTreeView *treeview)
|
||||
NULL);
|
||||
gtk_tree_view_column_set_sort_column_id (column, COLUMN_PULSE);
|
||||
gtk_tree_view_append_column (treeview, column);
|
||||
|
||||
/* column for symbolic icon */
|
||||
renderer = gtk_cell_renderer_pixbuf_new ();
|
||||
g_object_set (G_OBJECT (renderer), "follow-state", TRUE, NULL);
|
||||
column = gtk_tree_view_column_new_with_attributes ("Symbolic icon",
|
||||
renderer,
|
||||
"icon-name",
|
||||
COLUMN_ICON,
|
||||
"sensitive",
|
||||
COLUMN_SENSITIVE,
|
||||
NULL);
|
||||
gtk_tree_view_column_set_sort_column_id (column, COLUMN_ICON);
|
||||
gtk_tree_view_append_column (treeview, column);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
||||
@@ -187,7 +187,6 @@ but also to apply coordinate transformations.
|
||||
</para>
|
||||
<para>
|
||||
To integrate an offscreen window into a window hierarchy, one has to call
|
||||
gdk_window_set_embedder() and handle a number of signals. The
|
||||
gdk_offscreen_window_set_embedder() and handle a number of signals. The
|
||||
#GdkWindow::pick-embedded-child signal on the embedder window is used to
|
||||
select an offscreen child at given coordinates, and the #GdkWindow::to-embedder
|
||||
|
||||
@@ -244,17 +244,24 @@ How to compile GTK+ itself
|
||||
<para>
|
||||
The <ulink url="http://www.fontconfig.org">fontconfig</ulink>
|
||||
library provides Pango with a standard way of locating
|
||||
fonts and matching them against font names.
|
||||
fonts and matching them against font names.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<ulink url="http://www.cairographics.org">Cairo</ulink>
|
||||
is a graphics library that supports vector graphics and image
|
||||
is a graphics library that supports vector graphics and image
|
||||
compositing. Both Pango and GTK+ use cairo for much of their
|
||||
drawing.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<ulink url="http://live.gnome.org/GObjectIntrospection">gobject-introspection</ulink>
|
||||
is a framework for making introspection data available to
|
||||
language bindings.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
The <ulink url="http://www.freedesktop.org/wiki/Software/shared-mime-info">shared-mime-info</ulink>
|
||||
@@ -368,6 +375,9 @@ How to compile GTK+ itself
|
||||
<group>
|
||||
<arg>--with-gdktarget=[x11|win32|quartz|directfb]</arg>
|
||||
</group>
|
||||
<group>
|
||||
<arg>--disable-introspection</arg>
|
||||
</group>
|
||||
</cmdsynopsis>
|
||||
</para>
|
||||
|
||||
@@ -580,7 +590,13 @@ How to compile GTK+ itself
|
||||
for the Linux framebuffer.
|
||||
</para>
|
||||
</formalpara>
|
||||
<formalpara>
|
||||
<title><systemitem>--disable-introspection</systemitem></title>
|
||||
|
||||
<para>
|
||||
Build without introspection support.
|
||||
</para>
|
||||
</formalpara>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
@@ -294,6 +294,7 @@ that is, GUI components such as #GtkButton or #GtkTextView.
|
||||
<xi:include href="xml/gtktable.xml" />
|
||||
<xi:include href="xml/gtkexpander.xml" />
|
||||
<xi:include href="xml/gtkorientable.xml" />
|
||||
<xi:include href="xml/gtkextendedlayout.xml" />
|
||||
</chapter>
|
||||
|
||||
<chapter id="Ornaments">
|
||||
@@ -500,6 +501,14 @@ that is, GUI components such as #GtkButton or #GtkTextView.
|
||||
<title>Index of new symbols in 2.20</title>
|
||||
<xi:include href="xml/api-index-2.20.xml"><xi:fallback /></xi:include>
|
||||
</index>
|
||||
<index id="api-index-2-22" role="2.22">
|
||||
<title>Index of new symbols in 2.20</title>
|
||||
<xi:include href="xml/api-index-2.22.xml"><xi:fallback /></xi:include>
|
||||
</index>
|
||||
<index id="api-index-3-0" role="3.0">
|
||||
<title>Index of new symbols in 3.0</title>
|
||||
<xi:include href="xml/api-index-3.0.xml"><xi:fallback /></xi:include>
|
||||
</index>
|
||||
|
||||
<xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
|
||||
|
||||
|
||||
@@ -154,6 +154,7 @@ gtk_accel_label_accelerator_width
|
||||
<TITLE>GtkAccessible</TITLE>
|
||||
GtkAccessible
|
||||
gtk_accessible_connect_widget_destroyed
|
||||
gtk_accessible_get_widget
|
||||
|
||||
<SUBSECTION Standard>
|
||||
GTK_ACCESSIBLE
|
||||
@@ -1374,7 +1375,9 @@ GTK_ENTRY_BUFFER_CLASS
|
||||
GTK_IS_ENTRY_BUFFER_CLASS
|
||||
GTK_ENTRY_BUFFER_GET_CLASS
|
||||
GTK_ENTRY_BUFFER_MAX_SIZE
|
||||
|
||||
<SUBSECTION Private>
|
||||
GtkEntryBufferPrivate
|
||||
gtk_entry_buffer_get_type
|
||||
</SECTION>
|
||||
|
||||
@@ -2658,8 +2661,8 @@ GTK_IS_INFO_BAR_CLASS
|
||||
GTK_INFO_BAR_GET_CLASS
|
||||
|
||||
<SUBSECTION Private>
|
||||
GtkInfoBarPrivate
|
||||
gtk_info_bar_get_type
|
||||
GtkMessageAreaPrivate
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
@@ -3618,6 +3621,7 @@ GtkSpinner
|
||||
gtk_spinner_new
|
||||
gtk_spinner_start
|
||||
gtk_spinner_stop
|
||||
|
||||
<SUBSECTION Standard>
|
||||
GTK_SPINNER
|
||||
GTK_IS_SPINNER
|
||||
@@ -3625,7 +3629,10 @@ GTK_TYPE_SPINNER
|
||||
GTK_SPINNER_CLASS
|
||||
GTK_IS_SPINER_CLASS
|
||||
GTK_SPINNER_GET_CLASS
|
||||
GTK_IS_SPINNER_CLASS
|
||||
|
||||
<SUBSECTION Private>
|
||||
GtkSpinnerPrivate
|
||||
gtk_spinner_get_type
|
||||
</SECTION>
|
||||
|
||||
@@ -4063,6 +4070,8 @@ gtk_text_view_new
|
||||
gtk_text_view_new_with_buffer
|
||||
gtk_text_view_set_buffer
|
||||
gtk_text_view_get_buffer
|
||||
gtk_text_view_get_hadjustment
|
||||
gtk_text_view_get_vadjustment
|
||||
gtk_text_view_scroll_to_mark
|
||||
gtk_text_view_scroll_to_iter
|
||||
gtk_text_view_scroll_mark_onscreen
|
||||
@@ -4512,6 +4521,7 @@ gtk_tool_item_group_set_item_position
|
||||
gtk_tool_item_group_set_label
|
||||
gtk_tool_item_group_set_label_widget
|
||||
gtk_tool_item_group_set_header_relief
|
||||
|
||||
<SUBSECTION Standard>
|
||||
GtkToolItemGroupClass
|
||||
GTK_TOOL_ITEM_GROUP
|
||||
@@ -4520,7 +4530,9 @@ GTK_TYPE_TOOL_ITEM_GROUP
|
||||
GTK_TOOL_ITEM_GROUP_CLASS
|
||||
GTK_IS_TOOL_ITEM_GROUP_CLASS
|
||||
GTK_TOOL_ITEM_GROUP_GET_CLASS
|
||||
|
||||
<SUBSECTION Private>
|
||||
GtkToolItemGroupPrivate
|
||||
gtk_tool_item_group_get_type
|
||||
</SECTION>
|
||||
|
||||
@@ -4663,6 +4675,7 @@ gtk_tree_path_append_index
|
||||
gtk_tree_path_prepend_index
|
||||
gtk_tree_path_get_depth
|
||||
gtk_tree_path_get_indices
|
||||
gtk_tree_path_get_indices_with_depth
|
||||
gtk_tree_path_free
|
||||
gtk_tree_path_copy
|
||||
gtk_tree_path_compare
|
||||
@@ -5661,6 +5674,7 @@ gtk_widget_modify_text
|
||||
gtk_widget_modify_base
|
||||
gtk_widget_modify_font
|
||||
gtk_widget_modify_cursor
|
||||
gtk_widget_modify_symbolic_color
|
||||
gtk_widget_create_pango_context
|
||||
gtk_widget_get_pango_context
|
||||
gtk_widget_create_pango_layout
|
||||
@@ -5683,6 +5697,7 @@ gtk_widget_class_find_style_property
|
||||
gtk_widget_class_list_style_properties
|
||||
gtk_widget_region_intersect
|
||||
gtk_widget_send_expose
|
||||
gtk_widget_send_focus_change
|
||||
gtk_widget_style_get
|
||||
gtk_widget_style_get_property
|
||||
gtk_widget_style_get_valist
|
||||
@@ -6683,6 +6698,7 @@ gtk_icon_info_get_base_size
|
||||
gtk_icon_info_get_filename
|
||||
gtk_icon_info_get_builtin_pixbuf
|
||||
gtk_icon_info_load_icon
|
||||
gtk_icon_info_load_symbolic
|
||||
gtk_icon_info_set_raw_coordinates
|
||||
gtk_icon_info_get_embedded_rect
|
||||
gtk_icon_info_get_attach_points
|
||||
@@ -6828,6 +6844,8 @@ GTK_IS_PRINT_OPERATION_PREVIEW
|
||||
GTK_PRINT_OPERATION_PREVIEW
|
||||
GTK_PRINT_OPERATION_PREVIEW_GET_IFACE
|
||||
GTK_TYPE_PRINT_OPERATION_PREVIEW
|
||||
GtkPrintOperationClass
|
||||
GtkPrintOperationPreviewIface
|
||||
|
||||
<SUBSECTION Private>
|
||||
gtk_print_error_quark
|
||||
@@ -7088,10 +7106,20 @@ gtk_paper_size_to_key_file
|
||||
|
||||
<SUBSECTION Standard>
|
||||
GTK_TYPE_PAPER_SIZE
|
||||
GTK_CUSTOM_PAPER_UNIX_DIALOG
|
||||
GTK_CUSTOM_PAPER_UNIX_DIALOG_CLASS
|
||||
GTK_CUSTOM_PAPER_UNIX_DIALOG_GET_CLASS
|
||||
GTK_IS_CUSTOM_PAPER_UNIX_DIALOG
|
||||
GTK_IS_CUSTOM_PAPER_UNIX_DIALOG_CLASS
|
||||
GTK_TYPE_CUSTOM_PAPER_UNIX_DIALOG
|
||||
GtkCustomPaperUnixDialog
|
||||
GtkCustomPaperUnixDialogClass
|
||||
|
||||
|
||||
<SUBSECTION Private>
|
||||
gtk_paper_size_get_type
|
||||
gtk_custom_paper_unix_dialog_get_type
|
||||
GtkCustomPaperUnixDialogPrivate
|
||||
</SECTION>
|
||||
|
||||
|
||||
@@ -7259,6 +7287,7 @@ GTK_MOUNT_OPERATION_CLASS
|
||||
GTK_MOUNT_OPERATION_GET_CLASS
|
||||
GTK_TYPE_MOUNT_OPERATION
|
||||
<SUBSECTION Private>
|
||||
GtkMountOperationLookupContext
|
||||
gtk_mount_operation_get_type
|
||||
GtkMountOperationPrivate
|
||||
</SECTION>
|
||||
@@ -7282,3 +7311,26 @@ GTK_TYPE_ORIENTABLE
|
||||
<SUBSECTION Private>
|
||||
gtk_orientable_get_type
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>gtkextendedlayout</FILE>
|
||||
<TITLE>GtkExtendedLayout</TITLE>
|
||||
GtkExtendedLayout
|
||||
GtkExtendedLayoutIface
|
||||
gtk_extended_layout_get_desired_height
|
||||
gtk_extended_layout_get_desired_size
|
||||
gtk_extended_layout_get_desired_width
|
||||
gtk_extended_layout_get_height_for_width
|
||||
gtk_extended_layout_get_width_for_height
|
||||
gtk_extended_layout_is_height_for_width
|
||||
|
||||
<SUBSECTION Standard>
|
||||
GTK_EXTENDED_LAYOUT
|
||||
GTK_EXTENDED_LAYOUT_CLASS
|
||||
GTK_EXTENDED_LAYOUT_GET_IFACE
|
||||
GTK_IS_EXTENDED_LAYOUT
|
||||
GTK_TYPE_EXTENDED_LAYOUT
|
||||
|
||||
<SUBSECTION Private>
|
||||
gtk_extended_layout_get_type
|
||||
</SECTION>
|
||||
|
||||
@@ -54,6 +54,7 @@ gtk_entry_completion_get_type
|
||||
gtk_entry_get_type
|
||||
gtk_event_box_get_type
|
||||
gtk_expander_get_type
|
||||
gtk_extended_layout_get_type
|
||||
gtk_file_chooser_button_get_type
|
||||
gtk_file_chooser_dialog_get_type
|
||||
gtk_file_chooser_get_type
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
gtkbbox.sgml
|
||||
gtkbox.sgml
|
||||
gtkbuilder.sgml
|
||||
gtkhbox.sgml
|
||||
gtkmessagedialog.sgml
|
||||
gtktesting.sgml
|
||||
@@ -1,560 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkAction
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
An action which can be triggered by a menu or toolbar item
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
Actions represent operations that the user can be perform, along with
|
||||
some information how it should be presented in the interface. Each action
|
||||
provides methods to create icons, menu items and toolbar items representing
|
||||
itself.
|
||||
</para>
|
||||
<para>
|
||||
As well as the callback that is called when the action gets activated, the
|
||||
following also gets associated with the action:
|
||||
<itemizedlist>
|
||||
<listitem><para>a name (not translated, for path lookup)</para></listitem>
|
||||
<listitem><para>a label (translated, for display)</para></listitem>
|
||||
<listitem><para>an accelerator</para></listitem>
|
||||
<listitem><para>whether label indicates a stock id</para></listitem>
|
||||
<listitem><para>a tooltip (optional, translated)</para></listitem>
|
||||
<listitem><para>a toolbar label (optional, shorter than label)</para></listitem>
|
||||
</itemizedlist>
|
||||
The action will also have some state information:
|
||||
<itemizedlist>
|
||||
<listitem><para>visible (shown/hidden)</para></listitem>
|
||||
<listitem><para>sensitive (enabled/disabled)</para></listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
<para>
|
||||
Apart from regular actions, there are <link linkend="GtkToggleAction">toggle
|
||||
actions</link>, which can be toggled between two states and <link
|
||||
linkend="GtkRadioAction">radio actions</link>, of which only one in a group
|
||||
can be in the "active" state. Other actions can be implemented as #GtkAction
|
||||
subclasses.
|
||||
</para>
|
||||
<para>
|
||||
Each action can have one or more proxy menu item, toolbar button or
|
||||
other proxy widgets. Proxies mirror the state of the action (text
|
||||
label, tooltip, icon, visible, sensitive, etc), and should change when
|
||||
the action's state changes. When the proxy is activated, it should
|
||||
activate its action.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
#GtkActionGroup, #GtkUIManager
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkAction ##### -->
|
||||
<para>
|
||||
The <structname>GtkAction</structname> struct contains only private members
|
||||
and should not be accessed directly.
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### SIGNAL GtkAction::activate ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action: the object which received the signal.
|
||||
|
||||
<!-- ##### ARG GtkAction:action-group ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:always-show-image ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:gicon ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:hide-if-empty ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:icon-name ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:is-important ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:label ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:name ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:sensitive ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:short-label ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:stock-id ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:tooltip ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:visible ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:visible-horizontal ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:visible-overflown ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAction:visible-vertical ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_new ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@name:
|
||||
@label:
|
||||
@tooltip:
|
||||
@stock_id:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_name ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_is_sensitive ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_sensitive ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_sensitive ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@sensitive:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_is_visible ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_visible ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_visible ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@visible:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_activate ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_create_icon ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@icon_size:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_create_menu_item ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_create_tool_item ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_create_menu ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_connect_proxy ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@proxy:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_disconnect_proxy ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@proxy:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_proxies ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_connect_accelerator ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_disconnect_accelerator ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_block_activate ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_unblock_activate ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_block_activate_from ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@proxy:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_unblock_activate_from ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@proxy:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_always_show_image ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_always_show_image ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@always_show:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_accel_path ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_accel_path ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@accel_path:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_accel_closure ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_accel_group ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@accel_group:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_label ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@label:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_label ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_short_label ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@short_label:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_short_label ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_tooltip ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@tooltip:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_tooltip ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_stock_id ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@stock_id:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_stock_id ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_gicon ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@icon:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_gicon ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_icon_name ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@icon_name:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_icon_name ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_visible_horizontal ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@visible_horizontal:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_visible_horizontal ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_visible_vertical ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@visible_vertical:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_visible_vertical ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_set_is_important ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@is_important:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_action_get_is_important ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@action:
|
||||
@Returns:
|
||||
|
||||
|
||||
@@ -1,141 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkAlignment
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
A widget which controls the alignment and size of its child
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
The #GtkAlignment widget controls the alignment and size of its child widget.
|
||||
It has four settings: xscale, yscale, xalign, and yalign.
|
||||
</para>
|
||||
<para>
|
||||
The scale settings are used to specify how much the child widget should
|
||||
expand to fill the space allocated to the #GtkAlignment.
|
||||
The values can range from 0 (meaning the child doesn't expand at all) to
|
||||
1 (meaning the child expands to fill all of the available space).
|
||||
</para>
|
||||
<para>
|
||||
The align settings are used to place the child widget within the available
|
||||
area. The values range from 0 (top or left) to 1 (bottom or right).
|
||||
Of course, if the scale settings are both set to 1, the alignment settings
|
||||
have no effect.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkAlignment ##### -->
|
||||
<para>
|
||||
The #GtkAlignment-struct struct contains private data only, and should
|
||||
be accessed using the functions below.
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### ARG GtkAlignment:bottom-padding ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAlignment:left-padding ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAlignment:right-padding ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAlignment:top-padding ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAlignment:xalign ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAlignment:xscale ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAlignment:yalign ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAlignment:yscale ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### FUNCTION gtk_alignment_new ##### -->
|
||||
<para>
|
||||
Creates a new #GtkAlignment.
|
||||
</para>
|
||||
|
||||
@xalign: the horizontal alignment of the child widget, from 0 (left) to 1
|
||||
(right).
|
||||
@yalign: the vertical alignment of the child widget, from 0 (top) to 1
|
||||
(bottom).
|
||||
@xscale: the amount that the child widget expands horizontally to fill up
|
||||
unused space, from 0 to 1.
|
||||
A value of 0 indicates that the child widget should never expand.
|
||||
A value of 1 indicates that the child widget will expand to fill all of the
|
||||
space allocated for the #GtkAlignment.
|
||||
@yscale: the amount that the child widget expands vertically to fill up
|
||||
unused space, from 0 to 1. The values are similar to @xscale.
|
||||
@Returns: the new #GtkAlignment.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_alignment_set ##### -->
|
||||
<para>
|
||||
Sets the #GtkAlignment values.
|
||||
</para>
|
||||
|
||||
@alignment: a #GtkAlignment.
|
||||
@xalign: the horizontal alignment of the child widget, from 0 (left) to 1
|
||||
(right).
|
||||
@yalign: the vertical alignment of the child widget, from 0 (top) to 1
|
||||
(bottom).
|
||||
@xscale: the amount that the child widget expands horizontally to fill up
|
||||
unused space, from 0 to 1.
|
||||
A value of 0 indicates that the child widget should never expand.
|
||||
A value of 1 indicates that the child widget will expand to fill all of the
|
||||
space allocated for the #GtkAlignment.
|
||||
@yscale: the amount that the child widget expands vertically to fill up
|
||||
unused space, from 0 to 1. The values are similar to @xscale.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_alignment_get_padding ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@alignment:
|
||||
@padding_top:
|
||||
@padding_bottom:
|
||||
@padding_left:
|
||||
@padding_right:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_alignment_set_padding ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@alignment:
|
||||
@padding_top:
|
||||
@padding_bottom:
|
||||
@padding_left:
|
||||
@padding_right:
|
||||
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkArrow
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
Displays an arrow
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
GtkArrow should be used to draw simple arrows that need to point in
|
||||
one of the four cardinal directions (up, down, left, or right). The
|
||||
style of the arrow can be one of shadow in, shadow out, etched in, or
|
||||
etched out. Note that these directions and style types may be
|
||||
ammended in versions of Gtk to come.
|
||||
</para>
|
||||
<para>
|
||||
GtkArrow will fill any space alloted to it, but since it is inherited
|
||||
from #GtkMisc, it can be padded and/or aligned, to fill exactly the
|
||||
space the programmer desires.
|
||||
</para>
|
||||
<para>
|
||||
Arrows are created with a call to gtk_arrow_new(). The direction or
|
||||
style of an arrow can be changed after creation by using gtk_arrow_set().
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
<variablelist>
|
||||
|
||||
<varlistentry>
|
||||
<term>gtk_paint_arrow()</term>
|
||||
<listitem><para>the function used internally to paint the arrow.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkArrow ##### -->
|
||||
<para>
|
||||
The #GtkArrow struct containes the following fields.
|
||||
(These fields should be considered read-only. They should never be set by
|
||||
an application.)
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### ARG GtkArrow:arrow-type ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkArrow:shadow-type ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkArrow:arrow-scaling ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### FUNCTION gtk_arrow_new ##### -->
|
||||
<para>
|
||||
Creates a new arrow widget.
|
||||
</para>
|
||||
|
||||
@arrow_type: a valid #GtkArrowType.
|
||||
@shadow_type: a valid #GtkShadowType.
|
||||
@Returns: the new #GtkArrow widget.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_arrow_set ##### -->
|
||||
<para>
|
||||
Sets the direction and style of the #GtkArrow, @arrow.
|
||||
</para>
|
||||
|
||||
@arrow: a widget of type #GtkArrow.
|
||||
@arrow_type: a valid #GtkArrowType.
|
||||
@shadow_type: a valid #GtkShadowType.
|
||||
|
||||
|
||||
@@ -1,88 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkAspectFrame
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
A frame that constrains its child to a particular aspect ratio
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
The #GtkAspectFrame is useful when you want
|
||||
pack a widget so that it can resize but always retains
|
||||
the same aspect ratio. For instance, one might be
|
||||
drawing a small preview of a larger image. #GtkAspectFrame
|
||||
derives from #GtkFrame, so it can draw a label and
|
||||
a frame around the child. The frame will be
|
||||
"shrink-wrapped" to the size of the child.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkAspectFrame ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### ARG GtkAspectFrame:obey-child ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAspectFrame:ratio ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAspectFrame:xalign ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAspectFrame:yalign ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### FUNCTION gtk_aspect_frame_new ##### -->
|
||||
<para>
|
||||
Create a new #GtkAspectFrame.
|
||||
</para>
|
||||
|
||||
@label: Label text.
|
||||
@xalign: Horizontal alignment of the child within the allocation of
|
||||
the #GtkAspectFrame. This ranges from 0.0 (left aligned)
|
||||
to 1.0 (right aligned)
|
||||
@yalign: Vertical alignment of the child within the allocation of
|
||||
the #GtkAspectFrame. This ranges from 0.0 (left aligned)
|
||||
to 1.0 (right aligned)
|
||||
@ratio: The desired aspect ratio.
|
||||
@obey_child: If %TRUE, @ratio is ignored, and the aspect
|
||||
ratio is taken from the requistion of the child.
|
||||
@Returns: the new #GtkAspectFrame.
|
||||
<!-- # Unused Parameters # -->
|
||||
@ratio: The desired aspect ratio.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_aspect_frame_set ##### -->
|
||||
<para>
|
||||
Set parameters for an existing #GtkAspectFrame.
|
||||
</para>
|
||||
|
||||
@aspect_frame: a #GtkAspectFrame
|
||||
@xalign: Horizontal alignment of the child within the allocation of
|
||||
the #GtkAspectFrame. This ranges from 0.0 (left aligned)
|
||||
to 1.0 (right aligned)
|
||||
@yalign: Vertical alignment of the child within the allocation of
|
||||
the #GtkAspectFrame. This ranges from 0.0 (left aligned)
|
||||
to 1.0 (right aligned)
|
||||
@ratio: The desired aspect ratio.
|
||||
@obey_child: If %TRUE, @ratio is ignored, and the aspect
|
||||
ratio is taken from the requistion of the child.
|
||||
|
||||
|
||||
@@ -1,344 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkAssistant
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
A widget used to guide users through multi-step operations
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
A #GtkAssistant is a widget used to represent a generally complex
|
||||
operation splitted in several steps, guiding the user through its pages
|
||||
and controlling the page flow to collect the necessary data.
|
||||
</para>
|
||||
<refsect2 id="GtkAssistant-BUILDER-UI"><title>GtkAssistant as GtkBuildable</title>
|
||||
<para>
|
||||
The GtkAssistant implementation of the GtkBuildable interface exposes the
|
||||
@action_area as internal children with the name "action_area".
|
||||
</para>
|
||||
<para>
|
||||
To add pages to an assistant in GtkBuilder, simply add it as a <child>
|
||||
to the GtkAssistant object, and set its child properties as necessary.
|
||||
</para>
|
||||
</refsect2>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkAssistant ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### SIGNAL GtkAssistant::apply ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant: the object which received the signal.
|
||||
|
||||
<!-- ##### SIGNAL GtkAssistant::cancel ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant: the object which received the signal.
|
||||
|
||||
<!-- ##### SIGNAL GtkAssistant::close ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant: the object which received the signal.
|
||||
|
||||
<!-- ##### SIGNAL GtkAssistant::prepare ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant: the object which received the signal.
|
||||
@widget:
|
||||
|
||||
<!-- ##### ARG GtkAssistant:complete ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAssistant:header-image ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAssistant:page-type ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAssistant:sidebar-image ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAssistant:title ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAssistant:content-padding ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkAssistant:header-padding ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_new ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_get_current_page ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_set_current_page ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page_num:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_get_n_pages ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_get_nth_page ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page_num:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_prepend_page ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_append_page ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_insert_page ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page:
|
||||
@position:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### USER_FUNCTION GtkAssistantPageFunc ##### -->
|
||||
<para>
|
||||
A function used by gtk_assistant_set_forward_page_func() to know which
|
||||
is the next page given a current one. It's called both for computing the
|
||||
next page when the user presses the "forward" button and for handling
|
||||
the behavior of the "last" button.
|
||||
</para>
|
||||
|
||||
@current_page: The page number used to calculate the next page.
|
||||
@data: user data.
|
||||
@Returns: The next page number.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_set_forward_page_func ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page_func:
|
||||
@data:
|
||||
@destroy:
|
||||
|
||||
|
||||
<!-- ##### ENUM GtkAssistantPageType ##### -->
|
||||
<para>
|
||||
An enum for determining the page role inside the #GtkAssistant. It's used to
|
||||
handle buttons sensitivity and visibility.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Note that an assistant needs to end its page flow with a page of type GTK_ASSISTANT_PAGE_CONFIRM
|
||||
or GTK_ASSISTANT_PAGE_SUMMARY to be correct.
|
||||
</para>
|
||||
|
||||
@GTK_ASSISTANT_PAGE_CONTENT: The page has regular contents.
|
||||
@GTK_ASSISTANT_PAGE_INTRO: The page contains an introduction to the assistant task.
|
||||
@GTK_ASSISTANT_PAGE_CONFIRM: The page lets the user confirm or deny the changes.
|
||||
@GTK_ASSISTANT_PAGE_SUMMARY: The page informs the user of the changes done.
|
||||
@GTK_ASSISTANT_PAGE_PROGRESS: Used for tasks that take a long time to complete, blocks the assistant until the page is marked as complete.
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_set_page_type ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page:
|
||||
@type:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_get_page_type ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_set_page_title ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page:
|
||||
@title:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_get_page_title ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_set_page_header_image ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page:
|
||||
@pixbuf:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_get_page_header_image ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_set_page_side_image ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page:
|
||||
@pixbuf:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_get_page_side_image ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_set_page_complete ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page:
|
||||
@complete:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_get_page_complete ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@page:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_add_action_widget ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@child:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_remove_action_widget ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
@child:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_assistant_update_buttons_state ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@assistant:
|
||||
|
||||
|
||||
@@ -1,210 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkButtonBox
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
Base class for GtkHButtonBox and GtkVButtonBox
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
The primary purpose of this class is to keep track of the various properties
|
||||
of #GtkHButtonBox and #GtkVButtonBox widgets.
|
||||
</para>
|
||||
<para>
|
||||
gtk_button_box_get_child_size() retrieves the minimum width and height
|
||||
for widgets in a given button box. gtk_button_box_set_child_size()
|
||||
allows those properties to be changed.
|
||||
</para>
|
||||
<para>
|
||||
The internal padding of buttons can be retrieved and changed per button box using
|
||||
gtk_button_box_get_child_ipadding() and gtk_button_box_set_child_ipadding()
|
||||
respectively.
|
||||
</para>
|
||||
<para>
|
||||
gtk_button_box_get_spacing() and gtk_button_box_set_spacing() retrieve and
|
||||
change default number of pixels between buttons, respectively.
|
||||
</para>
|
||||
<para>
|
||||
gtk_button_box_get_layout() and gtk_button_box_set_layout() retrieve and alter the method
|
||||
used to spread the buttons in a button box across the container, respectively.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The main purpose of GtkButtonBox is to make sure the children have all the same size.
|
||||
Therefore it ignores the homogeneous property which it inherited from GtkBox, and always
|
||||
behaves as if homogeneous was %TRUE.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>#GtkVButtonBox</term>
|
||||
<listitem><para>Vertical sub-class of #GtkButtonBox.</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>#GtkHButtonBox</term>
|
||||
<listitem><para>Horizontal sub-class of #GtkButtonBox.</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkButtonBox ##### -->
|
||||
<para>
|
||||
This is a read-only struct; no members should be modified directly.
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### ARG GtkButtonBox:layout-style ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkButtonBox:secondary ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkButtonBox:child-internal-pad-x ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkButtonBox:child-internal-pad-y ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkButtonBox:child-min-height ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkButtonBox:child-min-width ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### MACRO GTK_BUTTONBOX_DEFAULT ##### -->
|
||||
<para>
|
||||
Used internally only.
|
||||
</para>
|
||||
|
||||
|
||||
|
||||
<!-- ##### MACRO gtk_button_box_get_spacing ##### -->
|
||||
<para>
|
||||
Retrieves how much space a button box is placing between each child button.
|
||||
</para>
|
||||
|
||||
@b: a #GtkButtonBox
|
||||
@Returns: the current spacing applied to the buttons in @widget
|
||||
@Deprecated: Use gtk_box_get_spacing() instead.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_button_box_get_layout ##### -->
|
||||
<para>
|
||||
Retrieves the method being used to arrange the buttons in a button box.
|
||||
</para>
|
||||
|
||||
@widget: a #GtkButtonBox.
|
||||
@Returns: the method used to layout buttons in @widget.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_button_box_get_child_size ##### -->
|
||||
<para>
|
||||
Retrieves the current width and height of all child widgets in a button box.
|
||||
@min_width and @min_height are filled with those values, respectively.
|
||||
</para>
|
||||
|
||||
@widget: a #GtkButtonBox.
|
||||
@min_width: the width of the buttons contained by @widget.
|
||||
@min_height: the height of the buttons contained by @widget.
|
||||
@Deprecated: Use the style properties
|
||||
<literal>"child-min-width/-height"</literal> instead.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_button_box_get_child_ipadding ##### -->
|
||||
<para>
|
||||
Gets the default number of pixels that pad the buttons in a given button box.
|
||||
</para>
|
||||
|
||||
@widget: a #GtkButtonBox.
|
||||
@ipad_x: the horizontal padding used by buttons in @widget.
|
||||
@ipad_y: the vertical padding used by buttons in @widget.
|
||||
@Deprecated: Use the style properties
|
||||
"<link linkend="GtkButtonBox--s-child-internal-pad-x">child-internal-pad-x</link>"
|
||||
and
|
||||
"<link linkend="GtkButtonBox--s-child-internal-pad-y">child-internal-pad-y</link>"
|
||||
instead.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_button_box_get_child_secondary ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@child:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### MACRO gtk_button_box_set_spacing ##### -->
|
||||
<para>
|
||||
Sets the amount of spacing between buttons in a given button box.
|
||||
</para>
|
||||
|
||||
@b: a #GtkButtonBox
|
||||
@s: the number of pixels of spacing
|
||||
@Deprecated: Use gtk_box_set_spacing() instead.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_button_box_set_layout ##### -->
|
||||
<para>
|
||||
Changes the way buttons are arranged in their container.
|
||||
</para>
|
||||
|
||||
@widget: a #GtkButtonBox.
|
||||
@layout_style: the new layout style.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_button_box_set_child_size ##### -->
|
||||
<para>
|
||||
Sets a new default size for the children of a given button box.
|
||||
</para>
|
||||
|
||||
@widget: a #GtkButtonBox
|
||||
@min_width: a default width for buttons in @widget
|
||||
@min_height: a default height for buttons in @widget
|
||||
@Deprecated: Use the style properties
|
||||
"<link linkend="GtkButtonBox--s-child-min-width">child-min-width</link>"
|
||||
and
|
||||
"<link linkend="GtkButtonBox--s-child-min-height">child-min-height</link>"
|
||||
instead.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_button_box_set_child_ipadding ##### -->
|
||||
<para>
|
||||
Changes the amount of internal padding used by all buttons in a given button
|
||||
box.
|
||||
</para>
|
||||
|
||||
@widget: a #GtkButtonBox.
|
||||
@ipad_x: the horizontal padding that should be used by each button in @widget.
|
||||
@ipad_y: the vertical padding that should be used by each button in @widget.
|
||||
@Deprecated: Use the style properties
|
||||
<literal>"child-internal-pad-x/-y"</literal> instead.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_button_box_set_child_secondary ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@child:
|
||||
@is_secondary:
|
||||
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkBin
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
A container with just one child
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
The #GtkBin widget is a container with just one child.
|
||||
It is not very useful itself, but it is useful for deriving subclasses,
|
||||
since it provides common code needed for handling a single child widget.
|
||||
</para>
|
||||
<para>
|
||||
Many GTK+ widgets are subclasses of #GtkBin, including #GtkWindow, #GtkButton,
|
||||
#GtkFrame, #GtkHandleBox, and #GtkScrolledWindow.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkBin ##### -->
|
||||
<para>
|
||||
The #GtkBin-struct struct contains the following fields.
|
||||
(These fields should be considered read-only. They should never be set by
|
||||
an application.)
|
||||
|
||||
<informaltable pgwide="1" frame="none" role="struct">
|
||||
<tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/>
|
||||
<tbody>
|
||||
|
||||
<row>
|
||||
<entry>#GtkWidget *child;</entry>
|
||||
<entry>the child widget.</entry>
|
||||
</row>
|
||||
|
||||
</tbody></tgroup></informaltable>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_bin_get_child ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@bin:
|
||||
@Returns:
|
||||
|
||||
|
||||
@@ -1,291 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkBox
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
Base class for box containers
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
GtkBox is an abstract widget which encapsulates functionality for a
|
||||
particular kind of container, one that organizes a variable number of
|
||||
widgets into a rectangular area. GtkBox has a number of derived
|
||||
classes, e.g. #GtkHBox and #GtkVBox.
|
||||
</para>
|
||||
<para>
|
||||
The rectangular area of a GtkBox is organized into either a single row
|
||||
or a single column of child widgets depending upon whether the box is
|
||||
of type #GtkHBox or #GtkVBox, respectively. Thus, all children of a
|
||||
GtkBox are allocated one dimension in common, which is the height of a
|
||||
row, or the width of a column.
|
||||
</para>
|
||||
<para>
|
||||
GtkBox uses a notion of <emphasis>packing</emphasis>. Packing refers to
|
||||
adding widgets with reference to a particular position in a
|
||||
#GtkContainer. For a GtkBox, there are two reference positions: the
|
||||
<emphasis>start</emphasis> and the <emphasis>end</emphasis> of the box.
|
||||
For a #GtkVBox, the start is defined as the top of the box and the end is
|
||||
defined as the bottom. For a #GtkHBox the start is defined as the
|
||||
left side and the end is defined as the right side.
|
||||
</para>
|
||||
<para>
|
||||
Use repeated calls to gtk_box_pack_start() to pack widgets into a
|
||||
GtkBox from start to end. Use gtk_box_pack_end() to add widgets from
|
||||
end to start. You may intersperse these calls and add widgets from
|
||||
both ends of the same GtkBox.
|
||||
</para>
|
||||
<para>
|
||||
Use gtk_box_pack_start_defaults() or gtk_box_pack_end_defaults()
|
||||
to pack widgets into a GtkBox if you do not need to specify the
|
||||
#GtkBox:expand, #GtkBox:fill, or #GtkBox:padding child properties
|
||||
for the child to be added.
|
||||
</para>
|
||||
<para>
|
||||
Because GtkBox is a #GtkContainer, you may also use
|
||||
gtk_container_add() to insert widgets into the box, and they will be
|
||||
packed as if with gtk_box_pack_start_defaults(). Use
|
||||
gtk_container_remove() to remove widgets from the GtkBox.
|
||||
</para>
|
||||
<para>
|
||||
Use gtk_box_set_homogeneous() to specify whether or not all children
|
||||
of the GtkBox are forced to get the same amount of space.
|
||||
</para>
|
||||
<para>
|
||||
Use gtk_box_set_spacing() to determine how much space will be
|
||||
minimally placed between all children in the GtkBox.
|
||||
</para>
|
||||
<para>
|
||||
Use gtk_box_reorder_child() to move a GtkBox child to a different
|
||||
place in the box.
|
||||
</para>
|
||||
<para>
|
||||
Use gtk_box_set_child_packing() to reset the #GtkBox:expand,
|
||||
#GtkBox:fill and #GtkBox:padding child properties.
|
||||
Use gtk_box_query_child_packing() to query these fields.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
<variablelist>
|
||||
|
||||
<varlistentry>
|
||||
<term>#GtkHBox</term>
|
||||
<listitem><para>a derived class that organizes widgets into a row.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>#GtkVBox</term>
|
||||
<listitem><para>a derived class that organizes widgets into a column.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>#GtkFrame</term>
|
||||
<listitem><para>a #GtkWidget useful for drawing a border around a GtkBox.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>#GtkTable</term>
|
||||
<listitem><para>a #GtkContainer for organizing widgets into a grid,
|
||||
rather than independent rows or columns.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>#GtkLayout</term>
|
||||
<listitem><para>a #GtkContainer for organizing widgets into arbitrary
|
||||
layouts.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkBox ##### -->
|
||||
<para>
|
||||
The #GtkBox-struct describes an instance of GtkBox and contains the
|
||||
following fields. (These fields should be considered read-only.
|
||||
They should never be set by an application.)
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### ARG GtkBox:homogeneous ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkBox:spacing ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkBox:expand ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkBox:fill ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkBox:pack-type ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkBox:padding ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkBox:position ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### STRUCT GtkBoxChild ##### -->
|
||||
<para>
|
||||
The #GtkBoxChild-struct holds a child widget of GtkBox and describes
|
||||
how the child is to be packed into the GtkBox. Use
|
||||
gtk_box_query_child_packing() and gtk_box_set_child_packing() to query
|
||||
and reset the <structfield>padding</structfield>,
|
||||
<structfield>expand</structfield>, <structfield>fill</structfield>,
|
||||
and <structfield>pack</structfield> fields.
|
||||
</para>
|
||||
<para>
|
||||
#GtkBoxChild-struct contains the following fields. (These fields
|
||||
should be considered read-only. They should never be directly set by an
|
||||
application.)
|
||||
</para>
|
||||
|
||||
@widget: the child widget, packed into the GtkBox.
|
||||
@padding: the number of extra pixels to put between this child and its
|
||||
neighbors, set when packed, zero by default.
|
||||
@expand: flag indicates whether extra space should be given to this
|
||||
child. Any extra space given to the parent GtkBox is divided up
|
||||
among all children with this attribute set to %TRUE; set when packed,
|
||||
%TRUE by default.
|
||||
@fill: flag indicates whether any extra space given to this child due
|
||||
to its @expand attribute being set is actually allocated to the child,
|
||||
rather than being used as padding around the widget; set when packed,
|
||||
%TRUE by default.
|
||||
@pack: one of #GtkPackType indicating whether the child is packed with
|
||||
reference to the start (top/left) or end (bottom/right) of the GtkBox.
|
||||
@is_secondary: %TRUE if the child is secondary
|
||||
|
||||
<!-- ##### FUNCTION gtk_box_pack_start ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@box:
|
||||
@child:
|
||||
@expand:
|
||||
@box
|
||||
@fill:
|
||||
@padding:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_box_pack_end ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@box:
|
||||
@child:
|
||||
@expand:
|
||||
@fill:
|
||||
@padding:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_box_pack_start_defaults ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@box:
|
||||
@widget:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_box_pack_end_defaults ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@box:
|
||||
@widget:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_box_get_homogeneous ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@box:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_box_set_homogeneous ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@box:
|
||||
@homogeneous:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_box_get_spacing ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@box:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_box_set_spacing ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@box:
|
||||
@spacing:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_box_reorder_child ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@box:
|
||||
@child:
|
||||
@position:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_box_query_child_packing ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@box:
|
||||
@child:
|
||||
@expand:
|
||||
@fill:
|
||||
@padding:
|
||||
@pack_type:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_box_set_child_packing ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@box:
|
||||
@child:
|
||||
@expand:
|
||||
@fill:
|
||||
@padding:
|
||||
@pack_type:
|
||||
|
||||
|
||||
@@ -1,193 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkBuildable
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
Interface for objects that can be built by GtkBuilder
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
In order to allow construction from a <link linkend="BUILDER-UI">GtkBuilder
|
||||
UI description</link>, an object class must implement the
|
||||
GtkBuildable interface. The interface includes methods for setting
|
||||
names and properties of objects, parsing custom tags, constructing
|
||||
child objects.
|
||||
</para>
|
||||
<para>
|
||||
The GtkBuildable interface is implemented by all widgets and
|
||||
many of the non-widget objects that are provided by GTK+. The
|
||||
main user of this interface is #GtkBuilder, there should be
|
||||
very little need for applications to call any
|
||||
<function>gtk_buildable_...</function> functions.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkBuildable ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkBuildableIface ##### -->
|
||||
<para>
|
||||
The GtkBuildableIface interface contains method that are
|
||||
necessary to allow #GtkBuilder to construct an object from
|
||||
a GtkBuilder UI definition.
|
||||
</para>
|
||||
|
||||
@g_iface: the parent class
|
||||
@set_name: Stores the name attribute given in the GtkBuilder UI definition.
|
||||
#GtkWidget stores the name as object data. Implement this method if your
|
||||
object has some notion of "name" and it makes sense to map the XML name
|
||||
attribute to it.
|
||||
@get_name: The getter corresponding to @set_name. Implement this
|
||||
if you implement @set_name.
|
||||
@add_child: Adds a child. The @type parameter can be used to
|
||||
differentiate the kind of child. #GtkContainer implements this
|
||||
to add add a child widget to the container, #GtkNotebook uses
|
||||
the @type to distinguish between page labels (of type "page-label")
|
||||
and normal children.
|
||||
@set_buildable_property: Sets a property of a buildable object.
|
||||
It is normally not necessary to implement this, g_object_set_property()
|
||||
is used by default. #GtkWindow implements this to delay showing itself
|
||||
(i.e. setting the #GtkWidget:visible property) until the whole interface
|
||||
is created.
|
||||
@construct_child: Constructs a child of a buildable that has been
|
||||
specified as "constructor" in the UI definition. #GtkUIManager implements
|
||||
this to reference to a widget created in a <ui> tag which is outside
|
||||
of the normal GtkBuilder UI definition hierarchy. A reference to the
|
||||
constructed object is returned and becomes owned by the caller.
|
||||
@custom_tag_start: Implement this if the buildable needs to parse
|
||||
content below <child>. To handle an element, the implementation
|
||||
must fill in the @parser structure and @user_data and return %TRUE.
|
||||
#GtkWidget implements this to parse keyboard accelerators specified
|
||||
in <accelerator> elements. #GtkContainer implements it to map
|
||||
properties defined via <packing> elements to child properties.
|
||||
Note that @user_data must be freed in @custom_tag_end or @custom_finished.
|
||||
@custom_tag_end: Called for the end tag of each custom element that is
|
||||
handled by the buildable (see @custom_tag_start).
|
||||
@custom_finished: Called for each custom tag handled by the buildable
|
||||
when the builder finishes parsing (see @custom_tag_start)
|
||||
@parser_finished: Called when a builder finishes the parsing
|
||||
of a UI definition. It is normally not necessary to implement this,
|
||||
unless you need to perform special cleanup actions. #GtkWindow sets
|
||||
the #GtkWidget:visible property here.
|
||||
@get_internal_child: Returns an internal child of a buildable.
|
||||
#GtkDialog implements this to give access to its @vbox, making
|
||||
it possible to add children to the vbox in a UI definition.
|
||||
Implement this if the buildable has internal children that may
|
||||
need to be accessed from a UI definition.
|
||||
|
||||
<!-- ##### FUNCTION gtk_buildable_set_name ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@buildable:
|
||||
@name:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_buildable_get_name ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@buildable:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_buildable_add_child ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@buildable:
|
||||
@builder:
|
||||
@child:
|
||||
@type:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_buildable_set_buildable_property ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@buildable:
|
||||
@builder:
|
||||
@name:
|
||||
@value:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_buildable_construct_child ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@buildable:
|
||||
@builder:
|
||||
@name:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_buildable_custom_tag_start ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@buildable:
|
||||
@builder:
|
||||
@child:
|
||||
@tagname:
|
||||
@parser:
|
||||
@data:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_buildable_custom_tag_end ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@buildable:
|
||||
@builder:
|
||||
@child:
|
||||
@tagname:
|
||||
@data:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_buildable_custom_finished ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@buildable:
|
||||
@builder:
|
||||
@child:
|
||||
@tagname:
|
||||
@data:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_buildable_parser_finished ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@buildable:
|
||||
@builder:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_buildable_get_internal_child ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@buildable:
|
||||
@builder:
|
||||
@childname:
|
||||
@Returns:
|
||||
|
||||
|
||||
@@ -1,462 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkBuilder
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
Build an interface from an XML UI definition
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
A GtkBuilder is an auxiliary object that reads textual descriptions
|
||||
of a user interface and instantiates the described objects. To pass a
|
||||
description to a GtkBuilder, call gtk_builder_add_from_file() or
|
||||
gtk_builder_add_from_string(). These functions can be called multiple
|
||||
times; the builder merges the content of all descriptions.
|
||||
</para>
|
||||
<para>
|
||||
A GtkBuilder holds a reference to all objects that it has constructed
|
||||
and drops these references when it is finalized. This finalization can
|
||||
cause the destruction of non-widget objects or widgets which are not
|
||||
contained in a toplevel window. For toplevel windows constructed by a
|
||||
builder, it is the responsibility of the user to call gtk_widget_destroy()
|
||||
to get rid of them and all the widgets they contain.
|
||||
</para>
|
||||
<para>
|
||||
The functions gtk_builder_get_object() and gtk_builder_get_objects()
|
||||
can be used to access the widgets in the interface by the names assigned
|
||||
to them inside the UI description. Toplevel windows returned by these
|
||||
functions will stay around until the user explicitly destroys them
|
||||
with gtk_widget_destroy(). Other widgets will either be part of a
|
||||
larger hierarchy constructed by the builder (in which case you should
|
||||
not have to worry about their lifecycle), or without a parent, in which
|
||||
case they have to be added to some container to make use of them.
|
||||
Non-widget objects need to be reffed with g_object_ref() to keep them
|
||||
beyond the lifespan of the builder.
|
||||
</para>
|
||||
<para>
|
||||
The function gtk_builder_connect_signals() and variants thereof can be
|
||||
used to connect handlers to the named signals in the description.
|
||||
</para>
|
||||
|
||||
<refsect2 id="BUILDER-UI"><title>GtkBuilder UI Definitions</title>
|
||||
<para>
|
||||
GtkBuilder parses textual descriptions of user interfaces which
|
||||
are specified in an XML format which can be roughly described
|
||||
by the DTD below. We refer to these descriptions as
|
||||
<firstterm>GtkBuilder UI definitions</firstterm> or just
|
||||
<firstterm>UI definitions</firstterm> if the context is clear.
|
||||
Do not confuse GtkBuilder UI Definitions with
|
||||
<link linkend="XML-UI">GtkUIManager UI Definitions</link>,
|
||||
which are more limited in scope.
|
||||
</para>
|
||||
<para>
|
||||
<programlisting><![CDATA[
|
||||
<!ELEMENT interface (requires|object)* >
|
||||
<!ELEMENT object (property|signal|child|ANY)* >
|
||||
<!ELEMENT property PCDATA >
|
||||
<!ELEMENT signal EMPTY >
|
||||
<!ELEMENT requires EMPTY >
|
||||
<!ELEMENT child (object|ANY*) >
|
||||
|
||||
<!ATTLIST interface domain #IMPLIED >
|
||||
<!ATTLIST object id #REQUIRED
|
||||
class #REQUIRED
|
||||
type-func #IMPLIED
|
||||
constructor #IMPLIED >
|
||||
<!ATTLIST requires lib #REQUIRED
|
||||
version #REQUIRED >
|
||||
<!ATTLIST property name #REQUIRED
|
||||
translatable #IMPLIED
|
||||
comments #IMPLIED
|
||||
context #IMPLIED >
|
||||
<!ATTLIST signal name #REQUIRED
|
||||
handler #REQUIRED
|
||||
after #IMPLIED
|
||||
swapped #IMPLIED
|
||||
object #IMPLIED
|
||||
last_modification_time #IMPLIED >
|
||||
<!ATTLIST child type #IMPLIED
|
||||
internal-child #IMPLIED >
|
||||
]]></programlisting>
|
||||
</para>
|
||||
<para>
|
||||
The toplevel element is <interface>.
|
||||
It optionally takes a "domain" attribute, which will make
|
||||
the builder look for translated strings using dgettext() in the
|
||||
domain specified. This can also be done by calling
|
||||
gtk_builder_set_translation_domain() on the builder.
|
||||
Objects are described by <object> elements, which can
|
||||
contain <property> elements to set properties, <signal>
|
||||
elements which connect signals to handlers, and <child>
|
||||
elements, which describe child objects (most often widgets
|
||||
inside a container, but also e.g. actions in an action group,
|
||||
or columns in a tree model). A <child> element contains
|
||||
an <object> element which describes the child object.
|
||||
The target toolkit version(s) are described by <requires>
|
||||
elements, the "lib" attribute specifies the widget library in
|
||||
question (currently the only supported value is "gtk+") and the "version"
|
||||
attribute specifies the target version in the form "<major>.<minor>".
|
||||
The builder will error out if the version requirements are not met.
|
||||
</para>
|
||||
<para>
|
||||
Typically, the specific kind of object represented by an
|
||||
<object> element is specified by the "class" attribute.
|
||||
If the type has not been loaded yet, GTK+ tries to find the
|
||||
<function>_get_type()</function> from the class name by applying
|
||||
heuristics. This works in most cases, but if necessary, it is
|
||||
possible to specify the name of the <function>_get_type()</function>
|
||||
explictly with the "type-func" attribute. As a special case,
|
||||
GtkBuilder allows to use an object that has been constructed
|
||||
by a #GtkUIManager in another part of the UI definition by
|
||||
specifying the id of the #GtkUIManager in the "constructor"
|
||||
attribute and the name of the object in the "id" attribute.
|
||||
</para>
|
||||
<para>
|
||||
Objects must be given a name with the "id" attribute, which
|
||||
allows the application to retrieve them from the builder with
|
||||
gtk_builder_get_object(). An id is also necessary to use the
|
||||
object as property value in other parts of the UI definition.
|
||||
</para>
|
||||
<note><para>Prior to 2.20, GtkBuilder was setting the "name"
|
||||
property of constructed widgets to the "id" attribute. In GTK+
|
||||
2.20 or newer, you have to use gtk_buildable_get_name() instead
|
||||
of gtk_widget_get_name() to obtain the "id", or set the "name"
|
||||
property in your UI definition.
|
||||
</para></note>
|
||||
<para>
|
||||
Setting properties of objects is pretty straightforward with
|
||||
the <property> element: the "name" attribute specifies
|
||||
the name of the property, and the content of the element
|
||||
specifies the value. If the "translatable" attribute is
|
||||
set to a true value, GTK+ uses gettext() (or dgettext() if
|
||||
the builder has a translation domain set) to find a translation
|
||||
for the value. This happens before the value is parsed, so
|
||||
it can be used for properties of any type, but it is probably
|
||||
most useful for string properties. It is also possible to
|
||||
specify a context to disambiguate short strings, and comments
|
||||
which may help the translators.
|
||||
</para>
|
||||
<para>
|
||||
GtkBuilder can parse textual representations for the most
|
||||
common property types: characters, strings, integers, floating-point
|
||||
numbers, booleans (strings like "TRUE", "t", "yes", "y", "1" are
|
||||
interpreted as %TRUE, strings like "FALSE, "f", "no", "n", "0" are
|
||||
interpreted as %FALSE), enumerations (can be specified by their
|
||||
name, nick or integer value), flags (can be specified by their name,
|
||||
nick, integer value, optionally combined with "|", e.g.
|
||||
"GTK_VISIBLE|GTK_REALIZED") and colors (in a format understood by
|
||||
gdk_color_parse()). Objects can be referred to by their name.
|
||||
Pixbufs can be specified as a filename of an image file to load.
|
||||
In general, GtkBuilder allows forward references to objects —
|
||||
an object doesn't have to constructed before it can be referred to.
|
||||
The exception to this rule is that an object has to be constructed
|
||||
before it can be used as the value of a construct-only property.
|
||||
</para>
|
||||
<para>
|
||||
Signal handlers are set up with the <signal> element.
|
||||
The "name" attribute specifies the name of the signal, and the
|
||||
"handler" attribute specifies the function to connect to the signal.
|
||||
By default, GTK+ tries to find the handler using g_module_symbol(),
|
||||
but this can be changed by passing a custom #GtkBuilderConnectFunc
|
||||
to gtk_builder_connect_signals_full(). The remaining attributes,
|
||||
"after", "swapped" and "object", have the same meaning as the
|
||||
corresponding parameters of the g_signal_connect_object() or
|
||||
g_signal_connect_data() functions. A "last_modification_time" attribute
|
||||
is also allowed, but it does not have a meaning to the builder.
|
||||
</para>
|
||||
<para>
|
||||
Sometimes it is necessary to refer to widgets which have implicitly
|
||||
been constructed by GTK+ as part of a composite widget, to set
|
||||
properties on them or to add further children (e.g. the @vbox
|
||||
of a #GtkDialog). This can be achieved by setting the "internal-child"
|
||||
propery of the <child> element to a true value. Note that
|
||||
GtkBuilder still requires an <object> element for the internal
|
||||
child, even if it has already been constructed.
|
||||
</para>
|
||||
<para>
|
||||
A number of widgets have different places where a child can be
|
||||
added (e.g. tabs vs. page content in notebooks). This can be reflected
|
||||
in a UI definition by specifying the "type" attribute on a <child>
|
||||
The possible values for the "type" attribute are described in
|
||||
the sections describing the widget-specific portions of UI definitions.
|
||||
</para>
|
||||
<example>
|
||||
<title>A GtkBuilder UI Definition</title>
|
||||
<programlisting><![CDATA[
|
||||
<interface>
|
||||
<object class="GtkDialog" id="dialog1">
|
||||
<child internal-child="vbox">
|
||||
<object class="GtkVBox" id="vbox1">
|
||||
<property name="border-width">10</property>
|
||||
<child internal-child="action_area">
|
||||
<object class="GtkHButtonBox" id="hbuttonbox1">
|
||||
<property name="border-width">20</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="ok_button">
|
||||
<property name="label">gtk-ok</property>
|
||||
<property name="use-stock">TRUE</property>
|
||||
<signal name="clicked" handler="ok_button_clicked"/>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
]]></programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Beyond this general structure, several object classes define
|
||||
their own XML DTD fragments for filling in the ANY placeholders
|
||||
in the DTD above. Note that a custom element in a <child>
|
||||
element gets parsed by the custom tag handler of the parent
|
||||
object, while a custom element in an <object> element
|
||||
gets parsed by the custom tag handler of the object.
|
||||
</para>
|
||||
<para>
|
||||
These XML fragments are explained in the documentation of the
|
||||
respective objects, see
|
||||
<link linkend="GtkWidget-BUILDER-UI">GtkWidget</link>,
|
||||
<link linkend="GtkLabel-BUILDER-UI">GtkLabel</link>,
|
||||
<link linkend="GtkWindow-BUILDER-UI">GtkWindow</link>,
|
||||
<link linkend="GtkContainer-BUILDER-UI">GtkContainer</link>,
|
||||
<link linkend="GtkDialog-BUILDER-UI">GtkDialog</link>,
|
||||
<link linkend="GtkCellLayout-BUILDER-UI">GtkCellLayout</link>,
|
||||
<link linkend="GtkColorSelectionDialog-BUILDER-UI">GtkColorSelectionDialog</link>,
|
||||
<link linkend="GtkFontSelectionDialog-BUILDER-UI">GtkFontSelectionDialog</link>,
|
||||
<link linkend="GtkComboBoxEntry-BUILDER-UI">GtkComboBoxEntry</link>,
|
||||
<link linkend="GtkExpander-BUILDER-UI">GtkExpander</link>,
|
||||
<link linkend="GtkFrame-BUILDER-UI">GtkFrame</link>,
|
||||
<link linkend="GtkListStore-BUILDER-UI">GtkListStore</link>,
|
||||
<link linkend="GtkTreeStore-BUILDER-UI">GtkTreeStore</link>,
|
||||
<link linkend="GtkNotebook-BUILDER-UI">GtkNotebook</link>,
|
||||
<link linkend="GtkSizeGroup-BUILDER-UI">GtkSizeGroup</link>,
|
||||
<link linkend="GtkTreeView-BUILDER-UI">GtkTreeView</link>,
|
||||
<link linkend="GtkUIManager-BUILDER-UI">GtkUIManager</link>,
|
||||
<link linkend="GtkActionGroup-BUILDER-UI">GtkActionGroup</link>.
|
||||
<link linkend="GtkMenuItem-BUILDER-UI">GtkMenuItem</link>,
|
||||
<link linkend="GtkAssistant-BUILDER-UI">GtkAssistant</link>,
|
||||
<link linkend="GtkScale-BUILDER-UI">GtkScale</link>.
|
||||
</para>
|
||||
</refsect2>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkBuilder ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### ARG GtkBuilder:translation-domain ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### USER_FUNCTION GtkBuilderConnectFunc ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@object:
|
||||
@signal_name:
|
||||
@handler_name:
|
||||
@connect_object:
|
||||
@flags:
|
||||
@user_data:
|
||||
|
||||
|
||||
<!-- ##### ENUM GtkBuilderError ##### -->
|
||||
<para>
|
||||
Error codes that identify various errors that can occur while
|
||||
using #GtkBuilder.
|
||||
</para>
|
||||
|
||||
@GTK_BUILDER_ERROR_INVALID_TYPE_FUNCTION: A type-func attribute didn't name
|
||||
a function that returns a #GType.
|
||||
@GTK_BUILDER_ERROR_UNHANDLED_TAG: The input contained a tag that #GtkBuilder
|
||||
can't handle.
|
||||
@GTK_BUILDER_ERROR_MISSING_ATTRIBUTE: An attribute that is required by
|
||||
#GtkBuilder was missing.
|
||||
@GTK_BUILDER_ERROR_INVALID_ATTRIBUTE: #GtkBuilder found an attribute that
|
||||
it doesn't understand.
|
||||
@GTK_BUILDER_ERROR_INVALID_TAG: #GtkBuilder found a tag that
|
||||
it doesn't understand.
|
||||
@GTK_BUILDER_ERROR_MISSING_PROPERTY_VALUE: A required property value was
|
||||
missing.
|
||||
@GTK_BUILDER_ERROR_INVALID_VALUE: #GtkBuilder couldn't parse
|
||||
some attribute value.
|
||||
@GTK_BUILDER_ERROR_VERSION_MISMATCH: The input file requires a newer version
|
||||
of GTK+.
|
||||
@GTK_BUILDER_ERROR_DUPLICATE_ID: An object id occurred twice.
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_new ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_add_from_file ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@filename:
|
||||
@error:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_add_from_string ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@buffer:
|
||||
@length:
|
||||
@error:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_add_objects_from_file ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@filename:
|
||||
@object_ids:
|
||||
@error:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_add_objects_from_string ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@buffer:
|
||||
@length:
|
||||
@object_ids:
|
||||
@error:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_get_object ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@name:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_get_objects ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_connect_signals ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@user_data:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_connect_signals_full ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@func:
|
||||
@user_data:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_set_translation_domain ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@domain:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_get_translation_domain ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_get_type_from_name ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@type_name:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_value_from_string ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@pspec:
|
||||
@string:
|
||||
@value:
|
||||
@error:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_builder_value_from_string_type ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@builder:
|
||||
@type:
|
||||
@string:
|
||||
@value:
|
||||
@error:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### MACRO GTK_BUILDER_WARN_INVALID_CHILD_TYPE ##### -->
|
||||
<para>
|
||||
This macro should be used to emit a warning about and unexpected
|
||||
@type value in a #GtkBuildable add_child implementation.
|
||||
</para>
|
||||
|
||||
@object: the #GtkBuildable on which the warning ocurred
|
||||
@type: the unexpected type value
|
||||
|
||||
|
||||
<!-- ##### MACRO GTK_BUILDER_ERROR ##### -->
|
||||
<para>
|
||||
The #GError quark for #GtkBuilder errors
|
||||
</para>
|
||||
|
||||
|
||||
|
||||
@@ -6,100 +6,107 @@ Base class for widgets which contain other widgets
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
A GTK+ user interface is constructed by nesting widgets inside widgets.
|
||||
Container widgets are the inner nodes in the resulting tree of widgets:
|
||||
they contain other widgets. So, for example, you might have a #GtkWindow
|
||||
containing a #GtkFrame containing a GtkLabel. If you wanted an image instead
|
||||
of a textual label inside the frame, you might replace the #GtkLabel widget
|
||||
A GTK+ user interface is constructed by nesting widgets inside widgets.
|
||||
Container widgets are the inner nodes in the resulting tree of widgets:
|
||||
they contain other widgets. So, for example, you might have a #GtkWindow
|
||||
containing a #GtkFrame containing a GtkLabel. If you wanted an image instead
|
||||
of a textual label inside the frame, you might replace the #GtkLabel widget
|
||||
with a #GtkImage widget.
|
||||
</para>
|
||||
<para>
|
||||
There are two major kinds of container widgets in GTK+. Both are subclasses
|
||||
There are two major kinds of container widgets in GTK+. Both are subclasses
|
||||
of the abstract #GtkContainer base class.
|
||||
</para>
|
||||
<para>
|
||||
The first type of container widget has a single child widget and derives
|
||||
from #GtkBin. These containers are <firstterm>decorators</firstterm>, which
|
||||
add some kind of functionality to the child. For example, a #GtkButton makes
|
||||
its child into a clickable button; a #GtkFrame draws a frame around its child
|
||||
The first type of container widget has a single child widget and derives
|
||||
from #GtkBin. These containers are <firstterm>decorators</firstterm>, which
|
||||
add some kind of functionality to the child. For example, a #GtkButton makes
|
||||
its child into a clickable button; a #GtkFrame draws a frame around its child
|
||||
and a #GtkWindow places its child widget inside a top-level window.
|
||||
</para>
|
||||
<para>
|
||||
The second type of container can have more than one child; its purpose is to
|
||||
manage <firstterm>layout</firstterm>. This means that these containers assign
|
||||
sizes and positions to their children. For example, a #GtkHBox arranges its
|
||||
children in a horizontal row, and a #GtkTable arranges the widgets it contains
|
||||
in a two-dimensional grid.
|
||||
The second type of container can have more than one child; its purpose is to
|
||||
manage <firstterm>layout</firstterm>. This means that these containers assign
|
||||
sizes and positions to their children. For example, a #GtkHBox arranges its
|
||||
children in a horizontal row, and a #GtkTable arranges the widgets it contains
|
||||
in a two-dimensional grid.
|
||||
</para>
|
||||
<para>
|
||||
To fulfill its task, a layout container must negotiate the size requirements
|
||||
with its parent and its children. This negotiation is carried out in two
|
||||
phases, <firstterm>size requisition</firstterm> and <firstterm>size
|
||||
allocation</firstterm>.
|
||||
To fulfill its task, a layout container must negotiate the size requirements
|
||||
with its parent and its children. The basic form of this negotiation is
|
||||
carried out in two phases, <firstterm>size requisition</firstterm> and
|
||||
<firstterm>size allocation</firstterm>, which are implemented by the
|
||||
size_request() and size_allocate() virtual functions in #GtkWidget.
|
||||
</para>
|
||||
<para>
|
||||
GTK+ also supports a more complicated form of size negotiation called
|
||||
<firstterm>width-for-height</firstterm> (and its dual
|
||||
<firstterm>height-for-width</firstterm>). See #GtkExtendedLayout
|
||||
to learn more about width-for-height geometry management.
|
||||
</para>
|
||||
<refsect2 id="size-requisition"><title>Size Requisition</title>
|
||||
<para>
|
||||
The size requisition of a widget is it's desired width and height.
|
||||
The size requisition of a widget is it's desired width and height.
|
||||
This is represented by a #GtkRequisition.
|
||||
</para>
|
||||
<para>
|
||||
How a widget determines its desired size depends on the widget.
|
||||
A #GtkLabel, for example, requests enough space to display all its text.
|
||||
Container widgets generally base their size request on the requisitions
|
||||
of their children.
|
||||
How a widget determines its desired size depends on the widget.
|
||||
A #GtkLabel, for example, requests enough space to display all its text.
|
||||
Container widgets generally base their size request on the requisitions
|
||||
of their children.
|
||||
</para>
|
||||
<para>
|
||||
The size requisition phase of the widget layout process operates top-down.
|
||||
It starts at a top-level widget, typically a #GtkWindow. The top-level widget
|
||||
asks its child for its size requisition by calling gtk_widget_size_request().
|
||||
To determine its requisition, the child asks its own children for their
|
||||
requisitions and so on. Finally, the top-level widget will get a requisition
|
||||
back from its child.
|
||||
The size requisition phase of the widget layout process operates top-down.
|
||||
It starts at a top-level widget, typically a #GtkWindow. The top-level widget
|
||||
asks its child for its size requisition by calling gtk_widget_size_request().
|
||||
To determine its requisition, the child asks its own children for their
|
||||
requisitions and so on. Finally, the top-level widget will get a requisition
|
||||
back from its child.
|
||||
</para>
|
||||
</refsect2>
|
||||
<refsect2 id="size-allocation"><title>Size Allocation</title>
|
||||
<para>
|
||||
When the top-level widget has determined how much space its child would like
|
||||
to have, the second phase of the size negotiation, size allocation, begins.
|
||||
Depending on its configuration (see gtk_window_set_resizable()), the top-level
|
||||
widget may be able to expand in order to satisfy the size request or it may
|
||||
have to ignore the size request and keep its fixed size. It then tells its
|
||||
child widget how much space it gets by calling gtk_widget_size_allocate().
|
||||
The child widget divides the space among its children and tells each child
|
||||
how much space it got, and so on. Under normal circumstances, a #GtkWindow
|
||||
When the top-level widget has determined how much space its child would like
|
||||
to have, the second phase of the size negotiation, size allocation, begins.
|
||||
Depending on its configuration (see gtk_window_set_resizable()), the top-level
|
||||
widget may be able to expand in order to satisfy the size request or it may
|
||||
have to ignore the size request and keep its fixed size. It then tells its
|
||||
child widget how much space it gets by calling gtk_widget_size_allocate().
|
||||
The child widget divides the space among its children and tells each child
|
||||
how much space it got, and so on. Under normal circumstances, a #GtkWindow
|
||||
will always give its child the amount of space the child requested.
|
||||
</para>
|
||||
<para>
|
||||
A child's size allocation is represented by a #GtkAllocation. This struct
|
||||
contains not only a width and height, but also a position (i.e. X and Y
|
||||
A child's size allocation is represented by a #GtkAllocation. This struct
|
||||
contains not only a width and height, but also a position (i.e. X and Y
|
||||
coordinates), so that containers can tell their children not only how much
|
||||
space they have gotten, but also where they are positioned inside the space
|
||||
available to the container.
|
||||
space they have gotten, but also where they are positioned inside the space
|
||||
available to the container.
|
||||
</para>
|
||||
<para>
|
||||
Widgets are required to honor the size allocation they receive; a size
|
||||
Widgets are required to honor the size allocation they receive; a size
|
||||
request is only a request, and widgets must be able to cope with any size.
|
||||
</para>
|
||||
</refsect2>
|
||||
<refsect2 id="child-properties"><title>Child properties</title>
|
||||
<para>
|
||||
<structname>GtkContainer</structname> introduces <firstterm>child
|
||||
<structname>GtkContainer</structname> introduces <firstterm>child
|
||||
properties</firstterm> - these are object properties that are not specific
|
||||
to either the container or the contained widget, but rather to their relation.
|
||||
Typical examples of child properties are the position or pack-type of a widget
|
||||
which is contained in a #GtkBox.</para>
|
||||
<para>
|
||||
Use gtk_container_class_install_child_property() to install child properties
|
||||
Use gtk_container_class_install_child_property() to install child properties
|
||||
for a container class and gtk_container_class_find_child_property() or
|
||||
gtk_container_class_list_child_properties() to get information about existing
|
||||
child properties.
|
||||
</para>
|
||||
<para>
|
||||
To set the value of a child property, use gtk_container_child_set_property(),
|
||||
gtk_container_child_set() or gtk_container_child_set_valist().
|
||||
To obtain the value of a child property, use
|
||||
To set the value of a child property, use gtk_container_child_set_property(),
|
||||
gtk_container_child_set() or gtk_container_child_set_valist().
|
||||
To obtain the value of a child property, use
|
||||
gtk_container_child_get_property(), gtk_container_child_get() or
|
||||
gtk_container_child_get_valist(). To emit notification about child property
|
||||
gtk_container_child_get_valist(). To emit notification about child property
|
||||
changes, use gtk_widget_child_notify().
|
||||
</para>
|
||||
</refsect2>
|
||||
@@ -107,7 +114,7 @@ changes, use gtk_widget_child_notify().
|
||||
<refsect2 id="GtkContainer-BUILDER-UI">
|
||||
<title>GtkContainer as GtkBuildable</title>
|
||||
<para>
|
||||
The GtkContainer implementation of the GtkBuildable interface
|
||||
The GtkContainer implementation of the GtkBuildable interface
|
||||
supports a <packing> element for children, which can
|
||||
contain multiple <property> elements that specify
|
||||
child properties for the child.
|
||||
@@ -152,7 +159,7 @@ for regular properties.
|
||||
</para>
|
||||
|
||||
@container: the object which received the signal.
|
||||
@widget:
|
||||
@widget:
|
||||
|
||||
<!-- ##### SIGNAL GtkContainer::check-resize ##### -->
|
||||
<para>
|
||||
@@ -167,7 +174,7 @@ for regular properties.
|
||||
</para>
|
||||
|
||||
@container: the object which received the signal.
|
||||
@widget:
|
||||
@widget:
|
||||
|
||||
<!-- ##### SIGNAL GtkContainer::set-focus-child ##### -->
|
||||
<para>
|
||||
@@ -175,7 +182,7 @@ for regular properties.
|
||||
</para>
|
||||
|
||||
@container: the object which received the signal.
|
||||
@widget:
|
||||
@widget:
|
||||
|
||||
<!-- ##### ARG GtkContainer:border-width ##### -->
|
||||
<para>
|
||||
@@ -197,7 +204,7 @@ for regular properties.
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@widget:
|
||||
|
||||
|
||||
<!-- ##### MACRO GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID ##### -->
|
||||
@@ -206,7 +213,7 @@ This macro should be used to emit a standard warning about unexpected
|
||||
properties in set_child_property() and get_child_property() implementations.
|
||||
</para>
|
||||
|
||||
@object: the #GObject on which set_child_property() or get_child_property()
|
||||
@object: the #GObject on which set_child_property() or get_child_property()
|
||||
was called
|
||||
@property_id: the numeric id of the property
|
||||
@pspec: the #GParamSpec of the property
|
||||
@@ -225,8 +232,8 @@ Does the same as gtk_container_set_border_width().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@widget:
|
||||
@container:
|
||||
@widget:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_remove ##### -->
|
||||
@@ -234,8 +241,8 @@ Does the same as gtk_container_set_border_width().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@widget:
|
||||
@container:
|
||||
@widget:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_add_with_properties ##### -->
|
||||
@@ -243,10 +250,10 @@ Does the same as gtk_container_set_border_width().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@widget:
|
||||
@first_prop_name:
|
||||
@Varargs:
|
||||
@container:
|
||||
@widget:
|
||||
@first_prop_name:
|
||||
@Varargs:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_get_resize_mode ##### -->
|
||||
@@ -254,8 +261,8 @@ Does the same as gtk_container_set_border_width().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@Returns:
|
||||
@container:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_set_resize_mode ##### -->
|
||||
@@ -263,8 +270,8 @@ Does the same as gtk_container_set_border_width().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@resize_mode:
|
||||
@container:
|
||||
@resize_mode:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_check_resize ##### -->
|
||||
@@ -272,7 +279,7 @@ Does the same as gtk_container_set_border_width().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@container:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_foreach ##### -->
|
||||
@@ -280,9 +287,9 @@ Does the same as gtk_container_set_border_width().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@callback:
|
||||
@callback_data:
|
||||
@container:
|
||||
@callback:
|
||||
@callback_data:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_foreach_full ##### -->
|
||||
@@ -290,11 +297,11 @@ Does the same as gtk_container_set_border_width().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@callback:
|
||||
@marshal:
|
||||
@callback_data:
|
||||
@notify:
|
||||
@container:
|
||||
@callback:
|
||||
@marshal:
|
||||
@callback_data:
|
||||
@notify:
|
||||
@Deprecated: Use gtk_container_foreach() instead.
|
||||
|
||||
|
||||
@@ -311,8 +318,8 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@Returns:
|
||||
@container:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_set_reallocate_redraws ##### -->
|
||||
@@ -320,8 +327,8 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@needs_redraws:
|
||||
@container:
|
||||
@needs_redraws:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_get_focus_child ##### -->
|
||||
@@ -329,8 +336,8 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@Returns:
|
||||
@container:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_set_focus_child ##### -->
|
||||
@@ -338,8 +345,8 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@child:
|
||||
@container:
|
||||
@child:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_get_focus_vadjustment ##### -->
|
||||
@@ -347,8 +354,8 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@Returns:
|
||||
@container:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_set_focus_vadjustment ##### -->
|
||||
@@ -356,8 +363,8 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@adjustment:
|
||||
@container:
|
||||
@adjustment:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_get_focus_hadjustment ##### -->
|
||||
@@ -365,8 +372,8 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@Returns:
|
||||
@container:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_set_focus_hadjustment ##### -->
|
||||
@@ -374,8 +381,8 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@adjustment:
|
||||
@container:
|
||||
@adjustment:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_resize_children ##### -->
|
||||
@@ -383,7 +390,7 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@container:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_child_type ##### -->
|
||||
@@ -391,8 +398,8 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@Returns:
|
||||
@container:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_child_get ##### -->
|
||||
@@ -400,10 +407,10 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@child:
|
||||
@first_prop_name:
|
||||
@Varargs:
|
||||
@container:
|
||||
@child:
|
||||
@first_prop_name:
|
||||
@Varargs:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_child_set ##### -->
|
||||
@@ -411,10 +418,10 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@child:
|
||||
@first_prop_name:
|
||||
@Varargs:
|
||||
@container:
|
||||
@child:
|
||||
@first_prop_name:
|
||||
@Varargs:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_child_get_property ##### -->
|
||||
@@ -422,10 +429,10 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@child:
|
||||
@property_name:
|
||||
@value:
|
||||
@container:
|
||||
@child:
|
||||
@property_name:
|
||||
@value:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_child_set_property ##### -->
|
||||
@@ -433,10 +440,10 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@child:
|
||||
@property_name:
|
||||
@value:
|
||||
@container:
|
||||
@child:
|
||||
@property_name:
|
||||
@value:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_child_get_valist ##### -->
|
||||
@@ -444,10 +451,10 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@child:
|
||||
@first_property_name:
|
||||
@var_args:
|
||||
@container:
|
||||
@child:
|
||||
@first_property_name:
|
||||
@var_args:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_child_set_valist ##### -->
|
||||
@@ -455,10 +462,10 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@child:
|
||||
@first_property_name:
|
||||
@var_args:
|
||||
@container:
|
||||
@child:
|
||||
@first_property_name:
|
||||
@var_args:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_forall ##### -->
|
||||
@@ -466,9 +473,9 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@callback:
|
||||
@callback_data:
|
||||
@container:
|
||||
@callback:
|
||||
@callback_data:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_get_border_width ##### -->
|
||||
@@ -476,8 +483,8 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@Returns:
|
||||
@container:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_set_border_width ##### -->
|
||||
@@ -485,8 +492,8 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@border_width:
|
||||
@container:
|
||||
@border_width:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_propagate_expose ##### -->
|
||||
@@ -494,9 +501,9 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@child:
|
||||
@event:
|
||||
@container:
|
||||
@child:
|
||||
@event:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_get_focus_chain ##### -->
|
||||
@@ -504,9 +511,9 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@focusable_widgets:
|
||||
@Returns:
|
||||
@container:
|
||||
@focusable_widgets:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_set_focus_chain ##### -->
|
||||
@@ -514,8 +521,8 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@focusable_widgets:
|
||||
@container:
|
||||
@focusable_widgets:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_unset_focus_chain ##### -->
|
||||
@@ -523,7 +530,7 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@container:
|
||||
@container:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_class_find_child_property ##### -->
|
||||
@@ -531,9 +538,9 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@cclass:
|
||||
@property_name:
|
||||
@Returns:
|
||||
@cclass:
|
||||
@property_name:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_class_install_child_property ##### -->
|
||||
@@ -541,9 +548,9 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@cclass:
|
||||
@property_id:
|
||||
@pspec:
|
||||
@cclass:
|
||||
@property_id:
|
||||
@pspec:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_container_class_list_child_properties ##### -->
|
||||
@@ -551,8 +558,8 @@ Does the same as gtk_container_get_children().
|
||||
|
||||
</para>
|
||||
|
||||
@cclass:
|
||||
@n_properties:
|
||||
@Returns:
|
||||
@cclass:
|
||||
@n_properties:
|
||||
@Returns:
|
||||
|
||||
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkHBox
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
A horizontal container box
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
GtkHBox is a container that organizes child widgets into a single row.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Use the #GtkBox packing interface to determine the arrangement,
|
||||
spacing, width, and alignment of GtkHBox children.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
All children are allocated the same height.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
<variablelist>
|
||||
|
||||
<varlistentry>
|
||||
<term>#GtkVBox</term>
|
||||
<listitem><para>a sister class that organizes widgets into a column.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkHBox ##### -->
|
||||
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_hbox_new ##### -->
|
||||
<para>
|
||||
Creates a new GtkHBox.
|
||||
</para>
|
||||
|
||||
@homogeneous: %TRUE if all children are to be given equal space allotments.
|
||||
@spacing: the number of pixels to place by default between children.
|
||||
@Returns: a new GtkHBox.
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ the clipboard. Only labels that contain useful-to-copy information
|
||||
</para>
|
||||
</refsect2>
|
||||
|
||||
<refsect2>
|
||||
<refsect2 id="label-text-layout">
|
||||
<title>Text layout</title>
|
||||
|
||||
<para>
|
||||
@@ -155,11 +155,23 @@ Labels can automatically wrap text if you call
|
||||
gtk_label_set_line_wrap().
|
||||
</para>
|
||||
<para>
|
||||
gtk_label_set_justify() sets how the lines in a label align
|
||||
with one another. If you want to set how the label as a whole
|
||||
gtk_label_set_justify() sets how the lines in a label align
|
||||
with one another. If you want to set how the label as a whole
|
||||
aligns in its available space, see gtk_misc_set_alignment().
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The #GtkLabel:width-chars and #GtkLabel:max-width-chars properties
|
||||
can be used to control the size allocation of ellipsized or wrapped
|
||||
labels. For ellipsizing labels, if either is specified (and less
|
||||
than the actual text size), it is used as the minimum width, and the actual
|
||||
text size is used as the natural width of the label. For wrapping labels,
|
||||
width-chars is used as the minimum width, if specified, and max-width-chars
|
||||
is used as the natural width. Even if max-width-chars specified, wrapping
|
||||
labels will be rewrapped to use all of the available width.
|
||||
</para>
|
||||
<note><para>Note that the interpretation of #GtkLabel:width-chars and
|
||||
#GtkLabel:max-width-chars has changed a bit with the introduction of
|
||||
width-for-height geometry management and #GtkExtendedLayout.</para></note>
|
||||
</refsect2>
|
||||
|
||||
<refsect2>
|
||||
|
||||
@@ -1,213 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkMessageDialog
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
A convenient message window
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
#GtkMessageDialog presents a dialog with an image representing the type of
|
||||
message (Error, Question, etc.) alongside some message text. It's simply a
|
||||
convenience widget; you could construct the equivalent of #GtkMessageDialog
|
||||
from #GtkDialog without too much effort, but #GtkMessageDialog saves typing.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The easiest way to do a modal message dialog is to use gtk_dialog_run(), though
|
||||
you can also pass in the %GTK_DIALOG_MODAL flag, gtk_dialog_run() automatically
|
||||
makes the dialog modal and waits for the user to respond to it. gtk_dialog_run()
|
||||
returns when any dialog button is clicked.
|
||||
<example>
|
||||
<title>A modal dialog.</title>
|
||||
<programlisting>
|
||||
dialog = gtk_message_dialog_new (main_application_window,
|
||||
GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||
GTK_MESSAGE_ERROR,
|
||||
GTK_BUTTONS_CLOSE,
|
||||
"Error loading file '%s': %s",
|
||||
filename, g_strerror (errno));
|
||||
gtk_dialog_run (GTK_DIALOG (dialog));
|
||||
gtk_widget_destroy (dialog);
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
You might do a non-modal #GtkMessageDialog as follows:
|
||||
<example>
|
||||
<title>A non-modal dialog.</title>
|
||||
<programlisting>
|
||||
dialog = gtk_message_dialog_new (main_application_window,
|
||||
GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||
GTK_MESSAGE_ERROR,
|
||||
GTK_BUTTONS_CLOSE,
|
||||
"Error loading file '%s': %s",
|
||||
filename, g_strerror (errno));
|
||||
|
||||
/* Destroy the dialog when the user responds to it (e.g. clicks a button) */
|
||||
g_signal_connect_swapped (dialog, "response",
|
||||
G_CALLBACK (gtk_widget_destroy),
|
||||
dialog);
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
#GtkDialog
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkMessageDialog ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### ARG GtkMessageDialog:buttons ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkMessageDialog:image ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkMessageDialog:message-type ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkMessageDialog:secondary-text ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkMessageDialog:secondary-use-markup ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkMessageDialog:text ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkMessageDialog:use-markup ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkMessageDialog:message-border ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkMessageDialog:use-separator ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ENUM GtkMessageType ##### -->
|
||||
<para>
|
||||
The type of message being displayed in the dialog.
|
||||
</para>
|
||||
|
||||
@GTK_MESSAGE_INFO: Informational message
|
||||
@GTK_MESSAGE_WARNING: Nonfatal warning message
|
||||
@GTK_MESSAGE_QUESTION: Question requiring a choice
|
||||
@GTK_MESSAGE_ERROR: Fatal error message
|
||||
@GTK_MESSAGE_OTHER: None of the above, doesn't get an icon
|
||||
|
||||
<!-- ##### ENUM GtkButtonsType ##### -->
|
||||
<para>
|
||||
Prebuilt sets of buttons for the dialog. If
|
||||
none of these choices are appropriate, simply use %GTK_BUTTONS_NONE
|
||||
then call gtk_dialog_add_buttons().
|
||||
</para>
|
||||
|
||||
@GTK_BUTTONS_NONE: no buttons at all
|
||||
@GTK_BUTTONS_OK: an OK button
|
||||
@GTK_BUTTONS_CLOSE: a Close button
|
||||
@GTK_BUTTONS_CANCEL: a Cancel button
|
||||
@GTK_BUTTONS_YES_NO: Yes and No buttons
|
||||
@GTK_BUTTONS_OK_CANCEL: OK and Cancel buttons
|
||||
|
||||
<!-- ##### FUNCTION gtk_message_dialog_new ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@parent:
|
||||
@flags:
|
||||
@type:
|
||||
@buttons:
|
||||
@message_format:
|
||||
@Varargs:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_message_dialog_new_with_markup ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@parent:
|
||||
@flags:
|
||||
@type:
|
||||
@buttons:
|
||||
@message_format:
|
||||
@Varargs:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_message_dialog_set_markup ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@message_dialog:
|
||||
@str:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_message_dialog_set_image ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@dialog:
|
||||
@image:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_message_dialog_get_image ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@dialog:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_message_dialog_format_secondary_text ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@message_dialog:
|
||||
@message_format:
|
||||
@Varargs:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_message_dialog_format_secondary_markup ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@message_dialog:
|
||||
@message_format:
|
||||
@Varargs:
|
||||
|
||||
|
||||
@@ -1,170 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkSocket
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
Container for widgets from other processes
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
Together with #GtkPlug, #GtkSocket provides the ability
|
||||
to embed widgets from one process into another process
|
||||
in a fashion that is transparent to the user. One
|
||||
process creates a #GtkSocket widget and, passes the
|
||||
that widget's window ID to the other process,
|
||||
which then creates a #GtkPlug with that window ID.
|
||||
Any widgets contained in the #GtkPlug then will appear
|
||||
inside the first applications window.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The socket's window ID is obtained by using
|
||||
gtk_socket_get_id(). Before using this function,
|
||||
the socket must have been realized, and for hence,
|
||||
have been added to its parent.
|
||||
|
||||
<example>
|
||||
<title>Obtaining the window ID of a socket.</title>
|
||||
<programlisting>
|
||||
GtkWidget *socket = gtk_socket_new (<!-- -->);
|
||||
gtk_widget_show (socket);
|
||||
gtk_container_add (GTK_CONTAINER (parent), socket);
|
||||
|
||||
/* The following call is only necessary if one of
|
||||
* the ancestors of the socket is not yet visible.
|
||||
*/
|
||||
gtk_widget_realize (socket);
|
||||
g_print ("The ID of the sockets window is %#x\n",
|
||||
gtk_socket_get_id (socket));
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Note that if you pass the window ID of the socket to another
|
||||
process that will create a plug in the socket, you
|
||||
must make sure that the socket widget is not destroyed
|
||||
until that plug is created. Violating this rule will
|
||||
cause unpredictable consequences, the most likely
|
||||
consequence being that the plug will appear as a
|
||||
separate toplevel window. You can check if the plug
|
||||
has been created by examining the
|
||||
<structfield>plug_window</structfield> field of the
|
||||
#GtkSocket structure. If this field is non-%NULL,
|
||||
then the plug has been successfully created inside
|
||||
of the socket.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
When GTK+ is notified that the embedded window has been
|
||||
destroyed, then it will destroy the socket as well. You
|
||||
should always, therefore, be prepared for your sockets
|
||||
to be destroyed at any time when the main event loop
|
||||
is running. To prevent this from happening, you can
|
||||
connect to the #GtkSocket::plug-removed signal.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The communication between a #GtkSocket and a #GtkPlug follows the
|
||||
<ulink url="http://www.freedesktop.org/standards/xembed-spec">XEmbed</ulink>
|
||||
protocol. This protocol has also been implemented in other toolkits, e.g.
|
||||
<application>Qt</application>, allowing the same level of integration
|
||||
when embedding a <application>Qt</application> widget in GTK or vice versa.</para>
|
||||
|
||||
<para>
|
||||
A socket can also be used to swallow arbitrary
|
||||
pre-existing top-level windows using gtk_socket_steal(),
|
||||
though the integration when this is done will not be as close
|
||||
as between a #GtkPlug and a #GtkSocket.</para>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
The #GtkPlug and #GtkSocket widgets are currently not available
|
||||
on all platforms supported by GTK+.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
<variablelist>
|
||||
|
||||
<varlistentry>
|
||||
<term>#GtkPlug</term>
|
||||
<listitem><para>the widget that plugs into a #GtkSocket.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><ulink url="http://www.freedesktop.org/standards/xembed-spec">XEmbed</ulink></term>
|
||||
<listitem><para>the XEmbed Protocol Specification.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkSocket ##### -->
|
||||
<para>
|
||||
The #GtkSocket structure contains the <structfield>plug_window</structfield>
|
||||
field. (This field should be considered read-only. It should
|
||||
never be set by an application.)
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### SIGNAL GtkSocket::plug-added ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@socket_:
|
||||
|
||||
<!-- ##### SIGNAL GtkSocket::plug-removed ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@socket_:
|
||||
@Returns:
|
||||
|
||||
<!-- ##### FUNCTION gtk_socket_new ##### -->
|
||||
<para>
|
||||
</para>
|
||||
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_socket_steal ##### -->
|
||||
<para>
|
||||
</para>
|
||||
|
||||
@socket_: a #GtkSocket.
|
||||
@wid:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_socket_add_id ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@socket_:
|
||||
@window_id:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_socket_get_id ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@socket_:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_socket_get_plug_window ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@socket_:
|
||||
@Returns:
|
||||
|
||||
|
||||
@@ -1,177 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
Testing
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
Utilities for testing GTK+ applications
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_create_simple_window ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@window_title:
|
||||
@dialog_text:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_create_widget ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget_type:
|
||||
@first_property_name:
|
||||
@Varargs:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_display_button_window ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@window_title:
|
||||
@dialog_text:
|
||||
@Varargs:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_find_label ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@label_pattern:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_find_sibling ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@base_widget:
|
||||
@widget_type:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_find_widget ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@label_pattern:
|
||||
@widget_type:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_init ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@argcp:
|
||||
@argvp:
|
||||
@Varargs:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_list_all_types ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@n_types:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_register_all_types ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_slider_get_value ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_slider_set_perc ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@percentage:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_spin_button_click ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@spinner:
|
||||
@button:
|
||||
@upwards:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_text_get ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_text_set ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@string:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_widget_click ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@button:
|
||||
@modifiers:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_test_widget_send_key ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@keyval:
|
||||
@modifiers:
|
||||
@Returns:
|
||||
|
||||
|
||||
@@ -412,6 +412,16 @@ compatibility reasons.
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_tree_path_get_indices_with_depth ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@path:
|
||||
@depth:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_tree_path_free ##### -->
|
||||
<para>
|
||||
|
||||
|
||||
@@ -1,98 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkVButtonBox
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
A container for arranging buttons vertically
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
A button box should be used to provide a consistent layout of buttons
|
||||
throughout your application. The layout/spacing can be altered by the
|
||||
programmer, or if desired, by the user to alter the 'feel' of a
|
||||
program to a small degree.
|
||||
</para>
|
||||
<para>
|
||||
A #GtkVButtonBox is created with gtk_vbutton_box_new(). Buttons are
|
||||
packed into a button box the same way widgets are added to any other
|
||||
container, using gtk_container_add(). You can also use
|
||||
gtk_box_pack_start() or gtk_box_pack_end(), but for button boxes both
|
||||
these functions work just like gtk_container_add(), ie., they pack the
|
||||
button in a way that depends on the current layout style and on
|
||||
whether the button has had gtk_button_box_set_child_secondary() called
|
||||
on it.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The spacing between buttons can be set with gtk_box_set_spacing(). The
|
||||
arrangement and layout of the buttons can be changed with
|
||||
gtk_button_box_set_layout().
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>#GtkBox</term>
|
||||
<listitem><para>Used to pack widgets into button boxes.</para></listitem>
|
||||
</varlistentry><varlistentry>
|
||||
<term>#GtkButtonBox</term>
|
||||
<listitem><para>Provides functions for controlling button boxes.</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>#GtkHButtonBox</term>
|
||||
<listitem><para>Pack buttons horizontally</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkVButtonBox ##### -->
|
||||
<para>
|
||||
GtkVButtonBox does not contain any public fields.
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_vbutton_box_new ##### -->
|
||||
<para>
|
||||
Creates a new vertical button box.
|
||||
</para>
|
||||
|
||||
@Returns: a new button box #GtkWidget.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_vbutton_box_get_spacing_default ##### -->
|
||||
<para>
|
||||
Retrieves the current default spacing for vertical button boxes. This is the number of pixels
|
||||
to be placed between the buttons when they are arranged.
|
||||
</para>
|
||||
|
||||
@Returns: the default number of pixels between buttons.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_vbutton_box_set_spacing_default ##### -->
|
||||
<para>
|
||||
Changes the default spacing that is placed between widgets in an
|
||||
vertical button box.
|
||||
</para>
|
||||
|
||||
@spacing: an integer value.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_vbutton_box_get_layout_default ##### -->
|
||||
<para>
|
||||
Retrieves the current layout used to arrange buttons in button box widgets.
|
||||
</para>
|
||||
|
||||
@Returns: the current #GtkButtonBoxStyle.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_vbutton_box_set_layout_default ##### -->
|
||||
<para>
|
||||
Sets a new layout mode that will be used by all button boxes.
|
||||
</para>
|
||||
|
||||
@layout: a new #GtkButtonBoxStyle.
|
||||
|
||||
|
||||
@@ -1,134 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkViewport
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
An adapter which makes widgets scrollable
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
The #GtkViewport widget acts as an adaptor class, implementing
|
||||
scrollability for child widgets that lack their own scrolling
|
||||
capabilities. Use #GtkViewport to scroll child widgets such as
|
||||
#GtkTable, #GtkBox, and so on.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If a widget has native scrolling abilities, such as #GtkTextView,
|
||||
#GtkTreeView or #GtkIconview, it can be added to a #GtkScrolledWindow
|
||||
with gtk_container_add(). If a widget does not, you must first add the
|
||||
widget to a #GtkViewport, then add the viewport to the scrolled window.
|
||||
The convenience function gtk_scrolled_window_add_with_viewport() does
|
||||
exactly this, so you can ignore the presence of the viewport.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
#GtkScrolledWindow, #GtkAdjustment
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkViewport ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### SIGNAL GtkViewport::set-scroll-adjustments ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@viewport: the object which received the signal.
|
||||
@arg1:
|
||||
@arg2:
|
||||
|
||||
<!-- ##### ARG GtkViewport:hadjustment ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkViewport:shadow-type ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG GtkViewport:vadjustment ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### FUNCTION gtk_viewport_new ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@hadjustment:
|
||||
@vadjustment:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_viewport_get_hadjustment ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@viewport:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_viewport_get_vadjustment ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@viewport:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_viewport_set_hadjustment ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@viewport:
|
||||
@adjustment:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_viewport_set_vadjustment ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@viewport:
|
||||
@adjustment:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_viewport_set_shadow_type ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@viewport:
|
||||
@type:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_viewport_get_shadow_type ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@viewport:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_viewport_get_bin_window ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@viewport:
|
||||
@Returns:
|
||||
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkVolumeButton
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
A button which pops up a volume control
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
#GtkVolumeButton is a subclass of #GtkScaleButton that has
|
||||
been tailored for use as a volume control widget with suitable
|
||||
icons, tooltips and accessible labels.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkVolumeButton ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_volume_button_new ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@Returns:
|
||||
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkVPaned
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
A container with two panes arranged vertically
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
The VPaned widget is a container widget with two
|
||||
children arranged vertically. The division between
|
||||
the two panes is adjustable by the user by dragging
|
||||
a handle. See #GtkPaned for details.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkVPaned ##### -->
|
||||
<para>
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_vpaned_new ##### -->
|
||||
<para>
|
||||
Create a new #GtkVPaned
|
||||
</para>
|
||||
|
||||
@Returns: the new #GtkVPaned
|
||||
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GtkVRuler
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
A vertical ruler
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<note>
|
||||
<para>
|
||||
This widget is considered too specialized/little-used for
|
||||
GTK+, and will in the future be moved to some other package. If
|
||||
your application needs this widget, feel free to use it, as the
|
||||
widget does work and is useful in some applications; it's just not
|
||||
of general interest. However, we are not accepting new features for
|
||||
the widget, and it will eventually move out of the GTK+
|
||||
distribution.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
The VRuler widget is a widget arranged vertically creating a ruler that is
|
||||
utilized around other widgets such as a text widget. The ruler is used to show
|
||||
the location of the mouse on the window and to show the size of the window in
|
||||
specified units. The available units of measurement are GTK_PIXELS, GTK_INCHES
|
||||
and GTK_CENTIMETERS. GTK_PIXELS is the default.
|
||||
rulers.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GtkVRuler ##### -->
|
||||
<para>
|
||||
The #GtkVRuler struct contains private data and should be accessed
|
||||
using the functions below.
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_vruler_new ##### -->
|
||||
<para>
|
||||
Creates a new vertical ruler
|
||||
</para>
|
||||
|
||||
@Returns: a new #GtkVRuler.
|
||||
|
||||
|
||||
@@ -1,125 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GailMisc
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
GailMisc is a set of utility functions which may be useful to implementors of
|
||||
Atk interfaces for custom widgets.
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
GailMisc is a set of utility function which are used in the implemementation
|
||||
of Atk interfaces for Gtk widgets. They may be useful to implementors of
|
||||
Atk interfaces for custom widgets.
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gail_misc_add_attribute ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@attrib_set:
|
||||
@attr:
|
||||
@value:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gail_misc_layout_get_run_attributes ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@attrib_set:
|
||||
@layout:
|
||||
@text:
|
||||
@offset:
|
||||
@start_offset:
|
||||
@end_offset:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gail_misc_get_default_attributes ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@attrib_set:
|
||||
@layout:
|
||||
@widget:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gail_misc_get_extents_from_pango_rectangle ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@char_rect:
|
||||
@x_layout:
|
||||
@y_layout:
|
||||
@x:
|
||||
@y:
|
||||
@width:
|
||||
@height:
|
||||
@coords:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gail_misc_get_index_at_point_in_layout ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@layout:
|
||||
@x_layout:
|
||||
@y_layout:
|
||||
@x:
|
||||
@y:
|
||||
@coords:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gail_misc_get_origins ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@widget:
|
||||
@x_window:
|
||||
@y_window:
|
||||
@x_toplevel:
|
||||
@y_toplevel:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gail_misc_add_to_attr_set ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@attrib_set:
|
||||
@attrs:
|
||||
@attr:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gail_misc_buffer_get_run_attributes ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@buffer:
|
||||
@offset:
|
||||
@start_offset:
|
||||
@end_offset:
|
||||
@Returns:
|
||||
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
<!-- ##### SECTION Title ##### -->
|
||||
GailTextUtil
|
||||
|
||||
<!-- ##### SECTION Short_Description ##### -->
|
||||
GailTextUtil is a utility class which can be used to implement some of
|
||||
the AtkText functions for accessible objects which implement AtkText.
|
||||
|
||||
<!-- ##### SECTION Long_Description ##### -->
|
||||
<para>
|
||||
GailTextUtil is a utility class which can be used to implement the
|
||||
AtkText functions which get text for accessible objects which implement
|
||||
AtkText.
|
||||
|
||||
In GAIL it is used by the accsesible objects for GnomeCanvasText, GtkEntry,
|
||||
GtkLabel, GtkCellRendererText and GtkTextview.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GailTextUtil ##### -->
|
||||
<para>
|
||||
The GailTextCell structure should not be accessed directly.
|
||||
|
||||
</para>
|
||||
|
||||
@parent:
|
||||
@buffer:
|
||||
|
||||
<!-- ##### ENUM GailOffsetType ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@GAIL_BEFORE_OFFSET:
|
||||
@GAIL_AT_OFFSET:
|
||||
@GAIL_AFTER_OFFSET:
|
||||
|
||||
<!-- ##### FUNCTION gail_text_util_new ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gail_text_util_text_setup ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@textutil:
|
||||
@text:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gail_text_util_buffer_setup ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@textutil:
|
||||
@buffer:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gail_text_util_get_text ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@textutil:
|
||||
@layout:
|
||||
@function:
|
||||
@boundary_type:
|
||||
@offset:
|
||||
@start_offset:
|
||||
@end_offset:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gail_text_util_get_substring ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@textutil:
|
||||
@start_pos:
|
||||
@end_pos:
|
||||
@Returns:
|
||||
|
||||
|
||||
@@ -4,11 +4,10 @@ CC = gcc
|
||||
CFLAGS = -Wall \
|
||||
-DG_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGTK_DISABLE_DEPRECATED
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED
|
||||
|
||||
scribble-xinput: scribble-xinput.c
|
||||
$(CC) scribble-xinput.c -o scribble-xinput $(CFLAGS) `pkg-config gtk+-2.0 --cflags --libs`
|
||||
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` scribble-xinput.c -o scribble-xinput $(LDFLAGS) `pkg-config --libs gtk+-2.0`
|
||||
|
||||
clean:
|
||||
rm -f *.o scribble-xinput
|
||||
|
||||
@@ -221,9 +221,13 @@ gdk_pixbuf_loader_set_size (GdkPixbufLoader *loader,
|
||||
gint width,
|
||||
gint height)
|
||||
{
|
||||
GdkPixbufLoaderPrivate *priv = GDK_PIXBUF_LOADER (loader)->priv;
|
||||
GdkPixbufLoaderPrivate *priv;
|
||||
|
||||
g_return_if_fail (GDK_IS_PIXBUF_LOADER (loader));
|
||||
g_return_if_fail (width >= 0 && height >= 0);
|
||||
|
||||
priv = GDK_PIXBUF_LOADER (loader)->priv;
|
||||
|
||||
if (!priv->size_fixed)
|
||||
{
|
||||
priv->width = width;
|
||||
|
||||
+2
-2
@@ -261,7 +261,7 @@ gdk_pixbuf__png_image_load (FILE *f, GError **error)
|
||||
gchar *icc_profile_base64;
|
||||
const gchar *icc_profile_title;
|
||||
const gchar *icc_profile;
|
||||
guint icc_profile_size;
|
||||
gulong icc_profile_size;
|
||||
guint32 retval;
|
||||
gint compression_type;
|
||||
|
||||
@@ -607,7 +607,7 @@ png_info_callback (png_structp png_read_ptr,
|
||||
gchar *icc_profile_base64;
|
||||
const gchar *icc_profile_title;
|
||||
const gchar *icc_profile;
|
||||
guint icc_profile_size;
|
||||
gulong icc_profile_size;
|
||||
guint32 retval;
|
||||
gint compression_type;
|
||||
|
||||
|
||||
@@ -323,6 +323,18 @@ stamp-gc-h: $(top_builddir)/config.status
|
||||
cd $(top_builddir) && $(SHELL) ./config.status gdk/gdkconfig.h
|
||||
echo timestamp > stamp-gc-h
|
||||
|
||||
dist-hook: ../build/win32/vs9/gdk.vcproj
|
||||
|
||||
../build/win32/vs9/gdk.vcproj: ../build/win32/vs9/gdk.vcprojin
|
||||
for F in $(libgdk_win32_2_0_la_SOURCES); do \
|
||||
case $$F in \
|
||||
*.c) echo ' <File RelativePath="..\..\..\gdk\'$$F'" />' \
|
||||
;; \
|
||||
esac; \
|
||||
done >libgdk.sourcefiles
|
||||
$(CPP) -P - <$(top_srcdir)/build/win32/vs9/gdk.vcprojin >$@
|
||||
rm libgdk.sourcefiles
|
||||
|
||||
DISTCLEANFILES = gdkconfig.h stamp-gc-h
|
||||
|
||||
install-data-local: install-ms-lib install-def-file
|
||||
|
||||
@@ -1998,6 +1998,21 @@ gdk_keymap_lookup_key (GdkKeymap *keymap,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
gdk_keymap_add_virtual_modifiers (GdkKeymap *keymap,
|
||||
GdkModifierType *state)
|
||||
{
|
||||
g_warning ("gdk_keymap_add_virtual_modifiers unimplemented \n");
|
||||
}
|
||||
|
||||
gboolean
|
||||
gdk_keymap_map_virtual_modifiers (GdkKeymap *keymap,
|
||||
GdkModifierType *state)
|
||||
{
|
||||
g_warning ("gdk_keymap_map_virtual_modifiers unimplemented \n");
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
#define __GDK_KEYS_DIRECTFB_C__
|
||||
#include "gdkaliasdef.c"
|
||||
|
||||
@@ -685,6 +685,8 @@ gdk_window_clear
|
||||
gdk_window_clear_area
|
||||
gdk_window_clear_area_e
|
||||
gdk_window_constrain_size
|
||||
gdk_window_coords_from_parent
|
||||
gdk_window_coords_to_parent
|
||||
gdk_window_destroy
|
||||
gdk_window_end_paint
|
||||
gdk_window_flush
|
||||
@@ -694,10 +696,12 @@ gdk_window_freeze_updates
|
||||
gdk_window_get_children
|
||||
gdk_window_get_internal_paint_info
|
||||
gdk_window_get_parent
|
||||
gdk_window_get_effective_parent
|
||||
gdk_window_get_pointer
|
||||
gdk_window_get_position
|
||||
gdk_window_get_state
|
||||
gdk_window_get_toplevel
|
||||
gdk_window_get_effective_toplevel
|
||||
#ifndef GDK_DISABLE_DEPRECATED
|
||||
gdk_window_get_toplevels
|
||||
#endif
|
||||
@@ -869,6 +873,8 @@ gdk_keymap_get_for_display
|
||||
gdk_keymap_get_caps_lock_state
|
||||
gdk_keymap_lookup_key
|
||||
gdk_keymap_translate_keyboard_state
|
||||
gdk_keymap_add_virtual_modifiers
|
||||
gdk_keymap_map_virtual_modifiers
|
||||
gdk_keyval_from_name
|
||||
gdk_keyval_name G_GNUC_CONST
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -511,7 +511,7 @@ gdk_event_copy (const GdkEvent *event)
|
||||
* Frees a #GdkEvent, freeing or decrementing any resources associated with it.
|
||||
* Note that this function should only be called with events returned from
|
||||
* functions such as gdk_event_peek(), gdk_event_get(),
|
||||
* gdk_event_get_graphics_expose() and gdk_event_copy().
|
||||
* gdk_event_get_graphics_expose() and gdk_event_copy() and gdk_event_new().
|
||||
**/
|
||||
void
|
||||
gdk_event_free (GdkEvent *event)
|
||||
|
||||
+4
-4
@@ -3671,7 +3671,7 @@ gdk_rgb_ditherable (void)
|
||||
* render to any colormap and visual. So there's no need to call this
|
||||
* function.
|
||||
*
|
||||
* Return value: the preferred colormap
|
||||
* Return value: (transfer none): the preferred colormap
|
||||
**/
|
||||
GdkColormap *
|
||||
gdk_rgb_get_colormap (void)
|
||||
@@ -3696,7 +3696,7 @@ gdk_rgb_get_colormap (void)
|
||||
* it can render to any colormap and visual. So there's no need to
|
||||
* call this function.
|
||||
*
|
||||
* Return value: the preferred colormap
|
||||
* Return value: (transfer none): the preferred colormap
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
@@ -3727,7 +3727,7 @@ gdk_screen_get_rgb_colormap (GdkScreen *screen)
|
||||
* the optimal one in those previous versions. GdkRGB can now render to
|
||||
* drawables with any visual.
|
||||
*
|
||||
* Return value: The #GdkVisual chosen by GdkRGB.
|
||||
* Return value: (transfer none): The #GdkVisual chosen by GdkRGB.
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
@@ -3748,7 +3748,7 @@ gdk_screen_get_rgb_visual (GdkScreen *screen)
|
||||
* in those previous versions. GdkRGB can now render to drawables with
|
||||
* any visual.
|
||||
*
|
||||
* Return value: The #GdkVisual chosen by GdkRGB.
|
||||
* Return value: (transfer none): The #GdkVisual chosen by GdkRGB.
|
||||
**/
|
||||
GdkVisual *
|
||||
gdk_rgb_get_visual (void)
|
||||
|
||||
+231
-49
@@ -855,7 +855,7 @@ should_apply_clip_as_shape (GdkWindowObject *private)
|
||||
return
|
||||
gdk_window_has_impl (private) &&
|
||||
/* Not for offscreens */
|
||||
private->window_type != GDK_WINDOW_OFFSCREEN &&
|
||||
!gdk_window_is_offscreen (private) &&
|
||||
/* or for toplevels */
|
||||
!gdk_window_is_toplevel (private) &&
|
||||
/* or for foreign windows */
|
||||
@@ -1438,7 +1438,7 @@ gdk_window_new (GdkWindow *parent,
|
||||
attributes->visual != gdk_drawable_get_visual ((GdkDrawable *)private->parent))))
|
||||
native = TRUE; /* InputOutput window with different colormap or visual than parent, needs native window */
|
||||
|
||||
if (private->window_type == GDK_WINDOW_OFFSCREEN)
|
||||
if (gdk_window_is_offscreen (private))
|
||||
{
|
||||
_gdk_offscreen_window_new (window, screen, visual, attributes, attributes_mask);
|
||||
private->impl_window = private;
|
||||
@@ -1843,7 +1843,7 @@ gdk_window_ensure_native (GdkWindow *window)
|
||||
|
||||
impl_window = gdk_window_get_impl_window (private);
|
||||
|
||||
if (impl_window->window_type == GDK_WINDOW_OFFSCREEN)
|
||||
if (gdk_window_is_offscreen (impl_window))
|
||||
return FALSE; /* native in offscreens not supported */
|
||||
|
||||
if (impl_window == private)
|
||||
@@ -2237,6 +2237,30 @@ gdk_window_is_destroyed (GdkWindow *window)
|
||||
return GDK_WINDOW_DESTROYED (window);
|
||||
}
|
||||
|
||||
static void
|
||||
to_embedder (GdkWindowObject *window,
|
||||
gdouble offscreen_x,
|
||||
gdouble offscreen_y,
|
||||
gdouble *embedder_x,
|
||||
gdouble *embedder_y)
|
||||
{
|
||||
g_signal_emit (window, signals[TO_EMBEDDER], 0,
|
||||
offscreen_x, offscreen_y,
|
||||
embedder_x, embedder_y);
|
||||
}
|
||||
|
||||
static void
|
||||
from_embedder (GdkWindowObject *window,
|
||||
gdouble embedder_x,
|
||||
gdouble embedder_y,
|
||||
gdouble *offscreen_x,
|
||||
gdouble *offscreen_y)
|
||||
{
|
||||
g_signal_emit (window, signals[FROM_EMBEDDER], 0,
|
||||
embedder_x, embedder_y,
|
||||
offscreen_x, offscreen_y);
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_window_get_position:
|
||||
* @window: a #GdkWindow
|
||||
@@ -2280,6 +2304,11 @@ gdk_window_get_position (GdkWindow *window,
|
||||
* matter for toplevel windows, because the window manager may choose
|
||||
* to reparent them.
|
||||
*
|
||||
* Note that you should use gdk_window_get_effective_parent() when
|
||||
* writing generic code that walks up a window hierarchy, because
|
||||
* gdk_window_get_parent() will most likely not do what you expect if
|
||||
* there are offscreen windows in the hierarchy.
|
||||
*
|
||||
* Return value: parent of @window
|
||||
**/
|
||||
GdkWindow*
|
||||
@@ -2290,6 +2319,35 @@ gdk_window_get_parent (GdkWindow *window)
|
||||
return (GdkWindow*) ((GdkWindowObject*) window)->parent;
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_window_get_effective_parent:
|
||||
* @window: a #GdkWindow
|
||||
*
|
||||
* Obtains the parent of @window, as known to GDK. Works like
|
||||
* gdk_window_get_parent() for normal windows, but returns the
|
||||
* window's embedder for offscreen windows.
|
||||
*
|
||||
* See also: gdk_offscreen_window_get_embedder()
|
||||
*
|
||||
* Return value: effective parent of @window
|
||||
*
|
||||
* Since: 2.22
|
||||
**/
|
||||
GdkWindow *
|
||||
gdk_window_get_effective_parent (GdkWindow *window)
|
||||
{
|
||||
GdkWindowObject *obj;
|
||||
|
||||
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
|
||||
|
||||
obj = (GdkWindowObject *)window;
|
||||
|
||||
if (gdk_window_is_offscreen (obj))
|
||||
return gdk_offscreen_window_get_embedder (window);
|
||||
else
|
||||
return (GdkWindow *) obj->parent;
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_window_get_toplevel:
|
||||
* @window: a #GdkWindow
|
||||
@@ -2300,9 +2358,14 @@ gdk_window_get_parent (GdkWindow *window)
|
||||
* toplevel window, as is a %GDK_WINDOW_CHILD window that
|
||||
* has a root window as parent.
|
||||
*
|
||||
* Note that you should use gdk_window_get_effective_toplevel() when
|
||||
* you want to get to a window's toplevel as seen on screen, because
|
||||
* gdk_window_get_toplevel() will most likely not do what you expect
|
||||
* if there are offscreen windows in the hierarchy.
|
||||
*
|
||||
* Return value: the toplevel window containing @window
|
||||
**/
|
||||
GdkWindow*
|
||||
GdkWindow *
|
||||
gdk_window_get_toplevel (GdkWindow *window)
|
||||
{
|
||||
GdkWindowObject *obj;
|
||||
@@ -2321,6 +2384,35 @@ gdk_window_get_toplevel (GdkWindow *window)
|
||||
return GDK_WINDOW (obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_window_get_effective_toplevel:
|
||||
* @window: a #GdkWindow
|
||||
*
|
||||
* Gets the toplevel window that's an ancestor of @window.
|
||||
*
|
||||
* Works like gdk_window_get_toplevel(), but treats an offscreen window's
|
||||
* embedder as its parent, using gdk_window_get_effective_parent().
|
||||
*
|
||||
* See also: gdk_offscreen_window_get_embedder()
|
||||
*
|
||||
* Return value: the effective toplevel window containing @window
|
||||
*
|
||||
* Since: 2.22
|
||||
**/
|
||||
GdkWindow *
|
||||
gdk_window_get_effective_toplevel (GdkWindow *window)
|
||||
{
|
||||
GdkWindow *parent;
|
||||
|
||||
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
|
||||
|
||||
while ((parent = gdk_window_get_effective_parent (window)) != NULL &&
|
||||
(gdk_window_get_window_type (parent) != GDK_WINDOW_ROOT))
|
||||
window = parent;
|
||||
|
||||
return window;
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_window_get_children:
|
||||
* @window: a #GdkWindow
|
||||
@@ -7977,10 +8069,10 @@ gdk_window_get_geometry (GdkWindow *window,
|
||||
}
|
||||
else
|
||||
{
|
||||
if (x)
|
||||
*x = private->x;
|
||||
if (y)
|
||||
*y = private->y;
|
||||
if (x)
|
||||
*x = private->x;
|
||||
if (y)
|
||||
*y = private->y;
|
||||
if (width)
|
||||
*width = private->width;
|
||||
if (height)
|
||||
@@ -8079,6 +8171,129 @@ gdk_window_get_root_coords (GdkWindow *window,
|
||||
root_x, root_y);
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_window_coords_to_parent:
|
||||
* @window: a child window
|
||||
* @x: X coordinate in child's coordinate system
|
||||
* @y: Y coordinate in child's coordinate system
|
||||
* @parent_x: return location for X coordinate in parent's coordinate system
|
||||
* @parent_y: return location for Y coordinate in parent's coordinate system
|
||||
*
|
||||
* Transforms window coordinates from a child window to its parent
|
||||
* window, where the parent window is the normal parent as returned by
|
||||
* gdk_window_get_parent() for normal windows, and the window's
|
||||
* embedder as returned by gdk_offscreen_window_get_embedder() for
|
||||
* offscreen windows.
|
||||
*
|
||||
* For normal windows, calling this function is equivalent to adding
|
||||
* the return values of gdk_window_get_position() to the child coordinates.
|
||||
* For offscreen windows however (which can be arbitrarily transformed),
|
||||
* this function calls the GdkWindow::to-embedder: signal to translate
|
||||
* the coordinates.
|
||||
*
|
||||
* You should always use this function when writing generic code that
|
||||
* walks up a window hierarchy.
|
||||
*
|
||||
* See also: gdk_window_coords_from_parent()
|
||||
*
|
||||
* Since: 2.22
|
||||
**/
|
||||
void
|
||||
gdk_window_coords_to_parent (GdkWindow *window,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble *parent_x,
|
||||
gdouble *parent_y)
|
||||
{
|
||||
GdkWindowObject *obj;
|
||||
|
||||
g_return_if_fail (GDK_IS_WINDOW (window));
|
||||
|
||||
obj = (GdkWindowObject *) window;
|
||||
|
||||
if (gdk_window_is_offscreen (obj))
|
||||
{
|
||||
gdouble px, py;
|
||||
|
||||
to_embedder (obj, x, y, &px, &py);
|
||||
|
||||
if (parent_x)
|
||||
*parent_x = px;
|
||||
|
||||
if (parent_y)
|
||||
*parent_y = py;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (parent_x)
|
||||
*parent_x = x + obj->x;
|
||||
|
||||
if (parent_y)
|
||||
*parent_y = y + obj->y;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_window_coords_from_parent:
|
||||
* @window: a child window
|
||||
* @parent_x: X coordinate in parent's coordinate system
|
||||
* @parent_y: Y coordinate in parent's coordinate system
|
||||
* @x: return location for X coordinate in child's coordinate system
|
||||
* @y: return location for Y coordinate in child's coordinate system
|
||||
*
|
||||
* Transforms window coordinates from a parent window to a child
|
||||
* window, where the parent window is the normal parent as returned by
|
||||
* gdk_window_get_parent() for normal windows, and the window's
|
||||
* embedder as returned by gdk_offscreen_window_get_embedder() for
|
||||
* offscreen windows.
|
||||
*
|
||||
* For normal windows, calling this function is equivalent to subtracting
|
||||
* the return values of gdk_window_get_position() from the parent coordinates.
|
||||
* For offscreen windows however (which can be arbitrarily transformed),
|
||||
* this function calls the GdkWindow::from-embedder: signal to translate
|
||||
* the coordinates.
|
||||
*
|
||||
* You should always use this function when writing generic code that
|
||||
* walks down a window hierarchy.
|
||||
*
|
||||
* See also: gdk_window_coords_to_parent()
|
||||
*
|
||||
* Since: 2.22
|
||||
**/
|
||||
void
|
||||
gdk_window_coords_from_parent (GdkWindow *window,
|
||||
gdouble parent_x,
|
||||
gdouble parent_y,
|
||||
gdouble *x,
|
||||
gdouble *y)
|
||||
{
|
||||
GdkWindowObject *obj;
|
||||
|
||||
g_return_if_fail (GDK_IS_WINDOW (window));
|
||||
|
||||
obj = (GdkWindowObject *) window;
|
||||
|
||||
if (gdk_window_is_offscreen (obj))
|
||||
{
|
||||
gdouble cx, cy;
|
||||
|
||||
from_embedder (obj, parent_x, parent_y, &cx, &cy);
|
||||
|
||||
if (x)
|
||||
*x = cx;
|
||||
|
||||
if (y)
|
||||
*y = cy;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (x)
|
||||
*x = parent_x - obj->x;
|
||||
|
||||
if (y)
|
||||
*y = parent_y - obj->y;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_window_get_deskrelative_origin:
|
||||
@@ -8892,7 +9107,7 @@ gdk_window_redirect_free (GdkWindowRedirect *redirect)
|
||||
static GdkWindowObject *
|
||||
get_event_parent (GdkWindowObject *window)
|
||||
{
|
||||
if (window->window_type == GDK_WINDOW_OFFSCREEN)
|
||||
if (gdk_window_is_offscreen (window))
|
||||
return (GdkWindowObject *)gdk_offscreen_window_get_embedder ((GdkWindow *)window);
|
||||
else
|
||||
return window->parent;
|
||||
@@ -8969,39 +9184,6 @@ update_cursor (GdkDisplay *display)
|
||||
impl_iface->set_cursor ((GdkWindow *)toplevel, cursor_window->cursor);
|
||||
}
|
||||
|
||||
static void
|
||||
from_embedder (GdkWindowObject *window,
|
||||
gdouble embedder_x,
|
||||
gdouble embedder_y,
|
||||
gdouble *offscreen_x,
|
||||
gdouble *offscreen_y)
|
||||
{
|
||||
g_signal_emit (window,
|
||||
signals[FROM_EMBEDDER], 0,
|
||||
embedder_x, embedder_y,
|
||||
offscreen_x, offscreen_y,
|
||||
NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
convert_coords_to_child (GdkWindowObject *child,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble *child_x,
|
||||
gdouble *child_y)
|
||||
{
|
||||
if (gdk_window_is_offscreen (child))
|
||||
{
|
||||
from_embedder (child, x, y,
|
||||
child_x, child_y);
|
||||
}
|
||||
else
|
||||
{
|
||||
*child_x = x - child->x;
|
||||
*child_y = y - child->y;
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
point_in_window (GdkWindowObject *window,
|
||||
gdouble x,
|
||||
@@ -9070,7 +9252,7 @@ convert_toplevel_coords_to_window (GdkWindow *window,
|
||||
}
|
||||
|
||||
for (l = children; l != NULL; l = l->next)
|
||||
convert_coords_to_child (l->data, x, y, &x, &y);
|
||||
gdk_window_coords_from_parent (l->data, x, y, &x, &y);
|
||||
|
||||
g_list_free (children);
|
||||
|
||||
@@ -9114,9 +9296,9 @@ _gdk_window_find_child_at (GdkWindow *window,
|
||||
if (!GDK_WINDOW_IS_MAPPED (sub))
|
||||
continue;
|
||||
|
||||
convert_coords_to_child (sub,
|
||||
x, y,
|
||||
&child_x, &child_y);
|
||||
gdk_window_coords_from_parent ((GdkWindow *)sub,
|
||||
x, y,
|
||||
&child_x, &child_y);
|
||||
if (point_in_window (sub, child_x, child_y))
|
||||
return (GdkWindow *)sub;
|
||||
}
|
||||
@@ -9160,9 +9342,9 @@ _gdk_window_find_descendant_at (GdkWindow *toplevel,
|
||||
if (!GDK_WINDOW_IS_MAPPED (sub))
|
||||
continue;
|
||||
|
||||
convert_coords_to_child (sub,
|
||||
x, y,
|
||||
&child_x, &child_y);
|
||||
gdk_window_coords_from_parent ((GdkWindow *)sub,
|
||||
x, y,
|
||||
&child_x, &child_y);
|
||||
if (point_in_window (sub, child_x, child_y))
|
||||
{
|
||||
x = child_x;
|
||||
|
||||
@@ -546,6 +546,16 @@ void gdk_window_get_root_coords (GdkWindow *window,
|
||||
gint y,
|
||||
gint *root_x,
|
||||
gint *root_y);
|
||||
void gdk_window_coords_to_parent (GdkWindow *window,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble *parent_x,
|
||||
gdouble *parent_y);
|
||||
void gdk_window_coords_from_parent (GdkWindow *window,
|
||||
gdouble parent_x,
|
||||
gdouble parent_y,
|
||||
gdouble *x,
|
||||
gdouble *y);
|
||||
|
||||
#if !defined (GDK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION) || defined (GDK_COMPILATION)
|
||||
/* Used by gtk_handle_box_button_changed () */
|
||||
@@ -566,6 +576,9 @@ GdkWindow* gdk_window_get_pointer (GdkWindow *window,
|
||||
GdkWindow * gdk_window_get_parent (GdkWindow *window);
|
||||
GdkWindow * gdk_window_get_toplevel (GdkWindow *window);
|
||||
|
||||
GdkWindow * gdk_window_get_effective_parent (GdkWindow *window);
|
||||
GdkWindow * gdk_window_get_effective_toplevel (GdkWindow *window);
|
||||
|
||||
GList * gdk_window_get_children (GdkWindow *window);
|
||||
GList * gdk_window_peek_children (GdkWindow *window);
|
||||
GdkEventMask gdk_window_get_events (GdkWindow *window);
|
||||
|
||||
@@ -25,7 +25,9 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/extensions/shape.h>
|
||||
|
||||
|
||||
+38
-11
@@ -748,6 +748,7 @@ init_randr13 (GdkScreen *screen)
|
||||
Display *dpy = GDK_SCREEN_XDISPLAY (screen);
|
||||
XRRScreenResources *resources;
|
||||
RROutput primary_output;
|
||||
RROutput first_output = None;
|
||||
int i;
|
||||
GArray *monitors;
|
||||
gboolean randr12_compat = FALSE;
|
||||
@@ -763,21 +764,13 @@ init_randr13 (GdkScreen *screen)
|
||||
monitors = g_array_sized_new (FALSE, TRUE, sizeof (GdkX11Monitor),
|
||||
resources->noutput);
|
||||
|
||||
primary_output = XRRGetOutputPrimary (screen_x11->xdisplay,
|
||||
screen_x11->xroot_window);
|
||||
|
||||
for (i = 0; i < resources->noutput; ++i)
|
||||
{
|
||||
XRROutputInfo *output =
|
||||
XRRGetOutputInfo (dpy, resources, resources->outputs[i]);
|
||||
|
||||
if (resources->outputs[i] == primary_output)
|
||||
{
|
||||
screen_x11->primary_monitor = i;
|
||||
}
|
||||
|
||||
/* Non RandR1.2 X driver have output name "default" */
|
||||
randr12_compat |= !g_strcmp0(output->name, "default");
|
||||
randr12_compat |= !g_strcmp0 (output->name, "default");
|
||||
|
||||
if (output->connection == RR_Disconnected)
|
||||
{
|
||||
@@ -810,6 +803,9 @@ init_randr13 (GdkScreen *screen)
|
||||
XRRFreeOutputInfo (output);
|
||||
}
|
||||
|
||||
if (resources->noutput > 0)
|
||||
first_output = resources->outputs[0];
|
||||
|
||||
XRRFreeScreenResources (resources);
|
||||
|
||||
/* non RandR 1.2 X driver doesn't return any usable multihead data */
|
||||
@@ -828,9 +824,35 @@ init_randr13 (GdkScreen *screen)
|
||||
screen_x11->n_monitors = monitors->len;
|
||||
screen_x11->monitors = (GdkX11Monitor *)g_array_free (monitors, FALSE);
|
||||
|
||||
screen_x11->primary_monitor = 0;
|
||||
|
||||
primary_output = XRRGetOutputPrimary (screen_x11->xdisplay,
|
||||
screen_x11->xroot_window);
|
||||
|
||||
for (i = 0; i < screen_x11->n_monitors; ++i)
|
||||
{
|
||||
if (screen_x11->monitors[i].output == primary_output)
|
||||
{
|
||||
screen_x11->primary_monitor = i;
|
||||
break;
|
||||
}
|
||||
|
||||
/* No RandR1.3+ available or no primary set, fall back to prefer LVDS as primary if present */
|
||||
if (primary_output == None &&
|
||||
g_ascii_strncasecmp (screen_x11->monitors[i].output_name, "LVDS", 4) == 0)
|
||||
{
|
||||
screen_x11->primary_monitor = i;
|
||||
break;
|
||||
}
|
||||
|
||||
/* No primary specified and no LVDS found */
|
||||
if (screen_x11->monitors[i].output == first_output)
|
||||
screen_x11->primary_monitor = i;
|
||||
}
|
||||
|
||||
return screen_x11->n_monitors > 0;
|
||||
#endif
|
||||
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -869,7 +891,9 @@ init_solaris_xinerama (GdkScreen *screen)
|
||||
monitors[i].x, monitors[i].y,
|
||||
monitors[i].width, monitors[i].height);
|
||||
}
|
||||
|
||||
|
||||
screen_x11->primary_monitor = 0;
|
||||
|
||||
return TRUE;
|
||||
#endif /* HAVE_SOLARIS_XINERAMA */
|
||||
|
||||
@@ -916,6 +940,8 @@ init_xfree_xinerama (GdkScreen *screen)
|
||||
|
||||
XFree (monitors);
|
||||
|
||||
screen_x11->primary_monitor = 0;
|
||||
|
||||
return TRUE;
|
||||
#endif /* HAVE_XFREE_XINERAMA */
|
||||
|
||||
@@ -1008,6 +1034,7 @@ init_multihead (GdkScreen *screen)
|
||||
/* No multihead support of any kind for this screen */
|
||||
screen_x11->n_monitors = 1;
|
||||
screen_x11->monitors = g_new0 (GdkX11Monitor, 1);
|
||||
screen_x11->primary_monitor = 0;
|
||||
|
||||
init_monitor_geometry (screen_x11->monitors, 0, 0,
|
||||
WidthOfScreen (screen_x11->xscreen),
|
||||
|
||||
@@ -4610,10 +4610,7 @@ _xwindow_get_shape (Display *xdisplay,
|
||||
window,
|
||||
shape_type, &rn, &ord);
|
||||
|
||||
if (xrl == NULL)
|
||||
return NULL; /* XShape not supported */
|
||||
|
||||
if (rn == 0)
|
||||
if (xrl == NULL || rn == 0)
|
||||
return gdk_region_new (); /* Empty */
|
||||
|
||||
if (ord != YXBanded)
|
||||
@@ -4652,7 +4649,7 @@ _gdk_windowing_get_shape_for_mask (GdkBitmap *mask)
|
||||
display = gdk_drawable_get_display (GDK_DRAWABLE (mask));
|
||||
|
||||
window = XCreateSimpleWindow (GDK_DISPLAY_XDISPLAY (display),
|
||||
GDK_SCREEN_XROOTWIN (gdk_display_get_default_screen (display)),
|
||||
GDK_SCREEN_XROOTWIN (gdk_drawable_get_screen (mask)),
|
||||
-1, -1, 1, 1, 0,
|
||||
0, 0);
|
||||
XShapeCombineMask (GDK_DISPLAY_XDISPLAY (display),
|
||||
|
||||
+20
-2
@@ -212,6 +212,7 @@ gtk_public_h_sources = \
|
||||
gtkenums.h \
|
||||
gtkeventbox.h \
|
||||
gtkexpander.h \
|
||||
gtkextendedlayout.h \
|
||||
gtkfilechooser.h \
|
||||
gtkfilechooserbutton.h \
|
||||
gtkfilechooserdialog.h \
|
||||
@@ -251,6 +252,8 @@ gtk_public_h_sources = \
|
||||
gtkmenu.h \
|
||||
gtkmenubar.h \
|
||||
gtkmenuitem.h \
|
||||
gtkmenuproxy.h \
|
||||
gtkmenuproxymodule.h \
|
||||
gtkmenushell.h \
|
||||
gtkmenutoolbutton.h \
|
||||
gtkmessagedialog.h \
|
||||
@@ -466,6 +469,7 @@ gtk_base_c_sources = \
|
||||
gtkentrycompletion.c \
|
||||
gtkeventbox.c \
|
||||
gtkexpander.c \
|
||||
gtkextendedlayout.c \
|
||||
gtkfilechooser.c \
|
||||
gtkfilechooserbutton.c \
|
||||
gtkfilechooserdefault.c \
|
||||
@@ -518,6 +522,8 @@ gtk_base_c_sources = \
|
||||
gtkmenu.c \
|
||||
gtkmenubar.c \
|
||||
gtkmenuitem.c \
|
||||
gtkmenuproxy.c \
|
||||
gtkmenuproxymodule.c \
|
||||
gtkmenushell.c \
|
||||
gtkmenutoolbutton.c \
|
||||
gtkmessagedialog.c \
|
||||
@@ -646,9 +652,9 @@ gtk_public_h_sources += \
|
||||
gtkclist.h \
|
||||
gtkcombo.h \
|
||||
gtkctree.h \
|
||||
gtkcurve.h \
|
||||
gtkcurve.h \
|
||||
gtkfilesel.h \
|
||||
gtkgamma.h \
|
||||
gtkgamma.h \
|
||||
gtkinputdialog.h \
|
||||
gtkitemfactory.h \
|
||||
gtklist.h \
|
||||
@@ -943,6 +949,18 @@ install-mac-key-theme:
|
||||
uninstall-mac-key-theme:
|
||||
endif
|
||||
|
||||
dist-hook: ../build/win32/vs9/gtk.vcproj
|
||||
|
||||
../build/win32/vs9/gtk.vcproj: ../build/win32/vs9/gtk.vcprojin
|
||||
for F in $(gtk_base_c_sources) $(gtk_os_win32_c_sources) $(gtk_use_win32_c_sources); do \
|
||||
case $$F in \
|
||||
*.c) echo ' <File RelativePath="..\..\..\gtk\'$$F'" />' \
|
||||
;; \
|
||||
esac; \
|
||||
done >libgtk.sourcefiles
|
||||
$(CPP) -P - <$(top_srcdir)/build/win32/vs9/gtk.vcprojin >$@
|
||||
rm libgtk.sourcefiles
|
||||
|
||||
# Install a RC file for the default GTK+ theme, and key themes
|
||||
install-data-local: install-ms-lib install-def-file install-mac-key-theme
|
||||
$(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Raleigh/gtk-2.0
|
||||
|
||||
@@ -65,6 +65,8 @@
|
||||
#include <gtk/gtkcellview.h>
|
||||
#include <gtk/gtkcheckbutton.h>
|
||||
#include <gtk/gtkcheckmenuitem.h>
|
||||
#include <gtk/gtkmenuproxy.h>
|
||||
#include <gtk/gtkmenuproxymodule.h>
|
||||
#include <gtk/gtkclipboard.h>
|
||||
#include <gtk/gtkcolorbutton.h>
|
||||
#include <gtk/gtkcolorsel.h>
|
||||
@@ -83,6 +85,7 @@
|
||||
#include <gtk/gtkenums.h>
|
||||
#include <gtk/gtkeventbox.h>
|
||||
#include <gtk/gtkexpander.h>
|
||||
#include <gtk/gtkextendedlayout.h>
|
||||
#include <gtk/gtkfixed.h>
|
||||
#include <gtk/gtkfilechooser.h>
|
||||
#include <gtk/gtkfilechooserbutton.h>
|
||||
|
||||
@@ -138,6 +138,7 @@ gtk_accel_map_unlock_path
|
||||
#if IN_FILE(__GTK_ACCESSIBLE_C__)
|
||||
gtk_accessible_connect_widget_destroyed
|
||||
gtk_accessible_get_type G_GNUC_CONST
|
||||
gtk_accessible_get_widget
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1503,6 +1504,18 @@ gtk_expander_set_use_underline
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if IN_HEADER(__GTK_EXTENDED_LAYOUT_H__)
|
||||
#if IN_FILE(__GTK_EXTENDED_LAYOUT_C__)
|
||||
gtk_extended_layout_get_type G_GNUC_CONST
|
||||
gtk_extended_layout_get_desired_height
|
||||
gtk_extended_layout_get_desired_size
|
||||
gtk_extended_layout_get_desired_width
|
||||
gtk_extended_layout_get_height_for_width
|
||||
gtk_extended_layout_get_width_for_height
|
||||
gtk_extended_layout_is_height_for_width
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if IN_HEADER(__GTK_FILE_CHOOSER_H__)
|
||||
#if IN_FILE(__GTK_FILE_CHOOSER_C__)
|
||||
gtk_file_chooser_add_filter
|
||||
@@ -1964,6 +1977,7 @@ gtk_icon_info_get_filename_utf8
|
||||
#endif
|
||||
gtk_icon_info_get_type G_GNUC_CONST
|
||||
gtk_icon_info_load_icon
|
||||
gtk_icon_info_load_symbolic
|
||||
gtk_icon_info_set_raw_coordinates
|
||||
gtk_icon_theme_add_builtin_icon
|
||||
#ifndef _WIN64
|
||||
@@ -4251,6 +4265,7 @@ gtk_text_view_get_buffer
|
||||
gtk_text_view_get_cursor_visible
|
||||
gtk_text_view_get_default_attributes
|
||||
gtk_text_view_get_editable
|
||||
gtk_text_view_get_hadjustment
|
||||
gtk_text_view_get_indent
|
||||
gtk_text_view_get_iter_at_location
|
||||
gtk_text_view_get_iter_at_position
|
||||
@@ -4266,6 +4281,7 @@ gtk_text_view_get_pixels_inside_wrap
|
||||
gtk_text_view_get_right_margin
|
||||
gtk_text_view_get_tabs
|
||||
gtk_text_view_get_type G_GNUC_CONST
|
||||
gtk_text_view_get_vadjustment
|
||||
gtk_text_view_get_visible_rect
|
||||
gtk_text_view_get_window
|
||||
gtk_text_view_get_window_type
|
||||
@@ -4655,6 +4671,7 @@ gtk_tree_path_down
|
||||
gtk_tree_path_free
|
||||
gtk_tree_path_get_depth
|
||||
gtk_tree_path_get_indices
|
||||
gtk_tree_path_get_indices_with_depth
|
||||
gtk_tree_path_get_type G_GNUC_CONST
|
||||
gtk_tree_path_is_ancestor
|
||||
gtk_tree_path_is_descendant
|
||||
@@ -5166,6 +5183,7 @@ gtk_widget_modify_cursor
|
||||
gtk_widget_modify_font
|
||||
gtk_widget_modify_style
|
||||
gtk_widget_modify_text
|
||||
gtk_widget_modify_symbolic_color
|
||||
gtk_widget_new
|
||||
gtk_widget_path
|
||||
gtk_widget_pop_colormap
|
||||
@@ -5195,6 +5213,7 @@ gtk_widget_reparent
|
||||
gtk_widget_reset_rc_styles
|
||||
gtk_widget_reset_shapes
|
||||
gtk_widget_send_expose
|
||||
gtk_widget_send_focus_change
|
||||
gtk_widget_set_accel_path
|
||||
gtk_widget_set_allocation
|
||||
gtk_widget_set_app_paintable
|
||||
|
||||
@@ -1131,6 +1131,9 @@ is_hyper (const gchar *string)
|
||||
* "<Release>z" (the last one is for key release).
|
||||
* The parser is fairly liberal and allows lower or upper case,
|
||||
* and also abbreviations such as "<Ctl>" and "<Ctrl>".
|
||||
* Key names are parsed using gdk_keyval_from_name(). For character keys the
|
||||
* name is not the symbol, but the lowercase name, e.g. one would use
|
||||
* "<Ctrl>minus" instead of "<Ctrl>-".
|
||||
*
|
||||
* If the parse fails, @accelerator_key and @accelerator_mods will
|
||||
* be set to 0 (zero).
|
||||
|
||||
@@ -47,6 +47,26 @@ gtk_accessible_class_init (GtkAccessibleClass *klass)
|
||||
klass->connect_widget_destroyed = gtk_accessible_real_connect_widget_destroyed;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accessible_get_widget:
|
||||
* @accessible: a #GtkAccessible
|
||||
*
|
||||
* Gets the #GtkWidget corresponding to the #GtkAccessible. The returned widget
|
||||
* does not have a reference added, so you do not need to unref it.
|
||||
*
|
||||
* Returns: (transfer none): pointer to the #GtkWidget corresponding to
|
||||
* the #GtkAccessible, or %NULL.
|
||||
*
|
||||
* Since: 2.22
|
||||
**/
|
||||
GtkWidget*
|
||||
gtk_accessible_get_widget (GtkAccessible *accessible)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_ACCESSIBLE (accessible), NULL);
|
||||
|
||||
return accessible->widget;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accessible_connect_widget_destroyed
|
||||
* @accessible: a #GtkAccessible
|
||||
|
||||
+2
-1
@@ -68,7 +68,8 @@ struct _GtkAccessibleClass
|
||||
|
||||
GType gtk_accessible_get_type (void) G_GNUC_CONST;
|
||||
|
||||
void gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible);
|
||||
GtkWidget* gtk_accessible_get_widget (GtkAccessible *accessible);
|
||||
void gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -28,6 +28,45 @@
|
||||
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
||||
*/
|
||||
|
||||
/**
|
||||
* SECTION:gtkaction
|
||||
* @Short_description: An action which can be triggered by a menu or toolbar item
|
||||
* @Title: GtkAction
|
||||
* @See_also: #GtkActionGroup, #GtkUIManager
|
||||
*
|
||||
* Actions represent operations that the user can be perform, along with
|
||||
* some information how it should be presented in the interface. Each action
|
||||
* provides methods to create icons, menu items and toolbar items
|
||||
* representing itself.
|
||||
*
|
||||
* As well as the callback that is called when the action gets activated,
|
||||
* the following also gets associated with the action:
|
||||
* <itemizedlist>
|
||||
* <listitem><para>a name (not translated, for path lookup)</para></listitem>
|
||||
* <listitem><para>a label (translated, for display)</para></listitem>
|
||||
* <listitem><para>an accelerator</para></listitem>
|
||||
* <listitem><para>whether label indicates a stock id</para></listitem>
|
||||
* <listitem><para>a tooltip (optional, translated)</para></listitem>
|
||||
* <listitem><para>a toolbar label (optional, shorter than label)</para></listitem>
|
||||
* </itemizedlist>
|
||||
* The action will also have some state information:
|
||||
* <itemizedlist>
|
||||
* <listitem><para>visible (shown/hidden)</para></listitem>
|
||||
* <listitem><para>sensitive (enabled/disabled)</para></listitem>
|
||||
* </itemizedlist>
|
||||
* Apart from regular actions, there are <link linkend="GtkToggleAction">toggle
|
||||
* actions</link>, which can be toggled between two states and <link
|
||||
* linkend="GtkRadioAction">radio actions</link>, of which only one in a group
|
||||
* can be in the "active" state. Other actions can be implemented as #GtkAction
|
||||
* subclasses.
|
||||
*
|
||||
* Each action can have one or more proxy menu item, toolbar button or
|
||||
* other proxy widgets. Proxies mirror the state of the action (text
|
||||
* label, tooltip, icon, visible, sensitive, etc), and should change when
|
||||
* the action's state changes. When the proxy is activated, it should
|
||||
* activate its action.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gtkaction.h"
|
||||
|
||||
+166
-40
@@ -24,8 +24,28 @@
|
||||
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
||||
*/
|
||||
|
||||
/**
|
||||
* SECTION:gtkalignment
|
||||
* @Short_description: A widget which controls the alignment and size of its child
|
||||
* @Title: GtkAlignment
|
||||
*
|
||||
* The #GtkAlignment widget controls the alignment and size of its child widget.
|
||||
* It has four settings: xscale, yscale, xalign, and yalign.
|
||||
*
|
||||
* The scale settings are used to specify how much the child widget should
|
||||
* expand to fill the space allocated to the #GtkAlignment.
|
||||
* The values can range from 0 (meaning the child doesn't expand at all) to
|
||||
* 1 (meaning the child expands to fill all of the available space).
|
||||
*
|
||||
* The align settings are used to place the child widget within the available
|
||||
* area. The values range from 0 (top or left) to 1 (bottom or right).
|
||||
* Of course, if the scale settings are both set to 1, the alignment settings
|
||||
* have no effect.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "gtkalignment.h"
|
||||
#include "gtkextendedlayout.h"
|
||||
#include "gtkprivate.h"
|
||||
#include "gtkintl.h"
|
||||
#include "gtkalias.h"
|
||||
@@ -54,8 +74,6 @@ struct _GtkAlignmentPrivate
|
||||
guint padding_right;
|
||||
};
|
||||
|
||||
static void gtk_alignment_size_request (GtkWidget *widget,
|
||||
GtkRequisition *requisition);
|
||||
static void gtk_alignment_size_allocate (GtkWidget *widget,
|
||||
GtkAllocation *allocation);
|
||||
static void gtk_alignment_set_property (GObject *object,
|
||||
@@ -67,7 +85,17 @@ static void gtk_alignment_get_property (GObject *object,
|
||||
GValue *value,
|
||||
GParamSpec *pspec);
|
||||
|
||||
G_DEFINE_TYPE (GtkAlignment, gtk_alignment, GTK_TYPE_BIN)
|
||||
static void gtk_alignment_extended_layout_init (GtkExtendedLayoutIface *iface);
|
||||
static void gtk_alignment_get_desired_width (GtkExtendedLayout *layout,
|
||||
gint *minimum_size,
|
||||
gint *natural_size);
|
||||
static void gtk_alignment_get_desired_height (GtkExtendedLayout *layout,
|
||||
gint *minimum_size,
|
||||
gint *natural_size);
|
||||
|
||||
G_DEFINE_TYPE_WITH_CODE (GtkAlignment, gtk_alignment, GTK_TYPE_BIN,
|
||||
G_IMPLEMENT_INTERFACE (GTK_TYPE_EXTENDED_LAYOUT,
|
||||
gtk_alignment_extended_layout_init))
|
||||
|
||||
static void
|
||||
gtk_alignment_class_init (GtkAlignmentClass *class)
|
||||
@@ -81,7 +109,6 @@ gtk_alignment_class_init (GtkAlignmentClass *class)
|
||||
gobject_class->set_property = gtk_alignment_set_property;
|
||||
gobject_class->get_property = gtk_alignment_get_property;
|
||||
|
||||
widget_class->size_request = gtk_alignment_size_request;
|
||||
widget_class->size_allocate = gtk_alignment_size_allocate;
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
@@ -215,6 +242,24 @@ gtk_alignment_init (GtkAlignment *alignment)
|
||||
priv->padding_right = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_alignment_new:
|
||||
* @xalign: the horizontal alignment of the child widget, from 0 (left) to 1
|
||||
* (right).
|
||||
* @yalign: the vertical alignment of the child widget, from 0 (top) to 1
|
||||
* (bottom).
|
||||
* @xscale: the amount that the child widget expands horizontally to fill up
|
||||
* unused space, from 0 to 1.
|
||||
* A value of 0 indicates that the child widget should never expand.
|
||||
* A value of 1 indicates that the child widget will expand to fill all of the
|
||||
* space allocated for the #GtkAlignment.
|
||||
* @yscale: the amount that the child widget expands vertically to fill up
|
||||
* unused space, from 0 to 1. The values are similar to @xscale.
|
||||
*
|
||||
* Creates a new #GtkAlignment.
|
||||
*
|
||||
* Returns: the new #GtkAlignment.
|
||||
*/
|
||||
GtkWidget*
|
||||
gtk_alignment_new (gfloat xalign,
|
||||
gfloat yalign,
|
||||
@@ -359,6 +404,23 @@ gtk_alignment_get_property (GObject *object,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_alignment_set:
|
||||
* @alignment: a #GtkAlignment.
|
||||
* @xalign: the horizontal alignment of the child widget, from 0 (left) to 1
|
||||
* (right).
|
||||
* @yalign: the vertical alignment of the child widget, from 0 (top) to 1
|
||||
* (bottom).
|
||||
* @xscale: the amount that the child widget expands horizontally to fill up
|
||||
* unused space, from 0 to 1.
|
||||
* A value of 0 indicates that the child widget should never expand.
|
||||
* A value of 1 indicates that the child widget will expand to fill all of the
|
||||
* space allocated for the #GtkAlignment.
|
||||
* @yscale: the amount that the child widget expands vertically to fill up
|
||||
* unused space, from 0 to 1. The values are similar to @xscale.
|
||||
*
|
||||
* Sets the #GtkAlignment values.
|
||||
*/
|
||||
void
|
||||
gtk_alignment_set (GtkAlignment *alignment,
|
||||
gfloat xalign,
|
||||
@@ -408,34 +470,6 @@ gtk_alignment_set (GtkAlignment *alignment,
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gtk_alignment_size_request (GtkWidget *widget,
|
||||
GtkRequisition *requisition)
|
||||
{
|
||||
GtkBin *bin;
|
||||
GtkAlignmentPrivate *priv;
|
||||
|
||||
bin = GTK_BIN (widget);
|
||||
priv = GTK_ALIGNMENT_GET_PRIVATE (widget);
|
||||
|
||||
requisition->width = GTK_CONTAINER (widget)->border_width * 2;
|
||||
requisition->height = GTK_CONTAINER (widget)->border_width * 2;
|
||||
|
||||
if (bin->child && gtk_widget_get_visible (bin->child))
|
||||
{
|
||||
GtkRequisition child_requisition;
|
||||
|
||||
gtk_widget_size_request (bin->child, &child_requisition);
|
||||
|
||||
requisition->width += child_requisition.width;
|
||||
requisition->height += child_requisition.height;
|
||||
|
||||
/* Request extra space for the padding: */
|
||||
requisition->width += (priv->padding_left + priv->padding_right);
|
||||
requisition->height += (priv->padding_top + priv->padding_bottom);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_alignment_size_allocate (GtkWidget *widget,
|
||||
GtkAllocation *allocation)
|
||||
@@ -443,7 +477,6 @@ gtk_alignment_size_allocate (GtkWidget *widget,
|
||||
GtkAlignment *alignment;
|
||||
GtkBin *bin;
|
||||
GtkAllocation child_allocation;
|
||||
GtkRequisition child_requisition;
|
||||
gint width, height;
|
||||
gint border_width;
|
||||
gint padding_horizontal, padding_vertical;
|
||||
@@ -458,7 +491,10 @@ gtk_alignment_size_allocate (GtkWidget *widget,
|
||||
|
||||
if (bin->child && gtk_widget_get_visible (bin->child))
|
||||
{
|
||||
gtk_widget_get_child_requisition (bin->child, &child_requisition);
|
||||
GtkExtendedLayout *layout = GTK_EXTENDED_LAYOUT (bin->child);
|
||||
gint child_nat_width;
|
||||
gint child_nat_height;
|
||||
gint child_width, child_height;
|
||||
|
||||
border_width = GTK_CONTAINER (alignment)->border_width;
|
||||
|
||||
@@ -468,16 +504,37 @@ gtk_alignment_size_allocate (GtkWidget *widget,
|
||||
|
||||
width = MAX (1, allocation->width - padding_horizontal - 2 * border_width);
|
||||
height = MAX (1, allocation->height - padding_vertical - 2 * border_width);
|
||||
|
||||
if (width > child_requisition.width)
|
||||
child_allocation.width = (child_requisition.width *
|
||||
|
||||
if (gtk_extended_layout_is_height_for_width (layout))
|
||||
{
|
||||
gtk_extended_layout_get_desired_width (layout, NULL, &child_nat_width);
|
||||
|
||||
child_width = MIN (width, child_nat_width);
|
||||
|
||||
gtk_extended_layout_get_height_for_width (layout, child_width, NULL, &child_nat_height);
|
||||
|
||||
child_height = MIN (height, child_nat_height);
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_extended_layout_get_desired_height (layout, NULL, &child_nat_height);
|
||||
|
||||
child_height = MIN (height, child_nat_height);
|
||||
|
||||
gtk_extended_layout_get_width_for_height (layout, child_height, NULL, &child_nat_width);
|
||||
|
||||
child_width = MIN (width, child_nat_width);
|
||||
}
|
||||
|
||||
if (width > child_width)
|
||||
child_allocation.width = (child_width *
|
||||
(1.0 - alignment->xscale) +
|
||||
width * alignment->xscale);
|
||||
else
|
||||
child_allocation.width = width;
|
||||
|
||||
if (height > child_requisition.height)
|
||||
child_allocation.height = (child_requisition.height *
|
||||
|
||||
if (height > child_height)
|
||||
child_allocation.height = (child_height *
|
||||
(1.0 - alignment->yscale) +
|
||||
height * alignment->yscale);
|
||||
else
|
||||
@@ -494,6 +551,75 @@ gtk_alignment_size_allocate (GtkWidget *widget,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gtk_alignment_extended_layout_init (GtkExtendedLayoutIface *iface)
|
||||
{
|
||||
iface->get_desired_width = gtk_alignment_get_desired_width;
|
||||
iface->get_desired_height = gtk_alignment_get_desired_height;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_alignment_get_desired_size (GtkExtendedLayout *layout,
|
||||
GtkOrientation orientation,
|
||||
gint *minimum_size,
|
||||
gint *natural_size)
|
||||
{
|
||||
GtkWidget *child;
|
||||
GtkAlignmentPrivate *priv;
|
||||
gint minimum, natural;
|
||||
|
||||
priv = GTK_ALIGNMENT_GET_PRIVATE (layout);
|
||||
|
||||
natural = minimum = GTK_CONTAINER (layout)->border_width * 2;
|
||||
|
||||
if ((child = gtk_bin_get_child (GTK_BIN (layout))) && gtk_widget_get_visible (child))
|
||||
{
|
||||
gint child_min, child_nat;
|
||||
|
||||
/* Request extra space for the padding: */
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
{
|
||||
minimum += (priv->padding_left + priv->padding_right);
|
||||
gtk_extended_layout_get_desired_width (GTK_EXTENDED_LAYOUT (child),
|
||||
&child_min, &child_nat);
|
||||
}
|
||||
else
|
||||
{
|
||||
minimum += (priv->padding_top + priv->padding_bottom);
|
||||
gtk_extended_layout_get_desired_height (GTK_EXTENDED_LAYOUT (child),
|
||||
&child_min, &child_nat);
|
||||
}
|
||||
|
||||
natural = minimum;
|
||||
|
||||
minimum += child_min;
|
||||
natural += child_nat;
|
||||
}
|
||||
|
||||
if (minimum_size)
|
||||
*minimum_size = minimum;
|
||||
|
||||
if (natural_size)
|
||||
*natural_size = natural;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_alignment_get_desired_width (GtkExtendedLayout *layout,
|
||||
gint *minimum_size,
|
||||
gint *natural_size)
|
||||
{
|
||||
gtk_alignment_get_desired_size (layout, GTK_ORIENTATION_HORIZONTAL, minimum_size, natural_size);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_alignment_get_desired_height (GtkExtendedLayout *layout,
|
||||
gint *minimum_size,
|
||||
gint *natural_size)
|
||||
{
|
||||
gtk_alignment_get_desired_size (layout, GTK_ORIENTATION_VERTICAL, minimum_size, natural_size);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_alignment_set_padding:
|
||||
* @alignment: a #GtkAlignment
|
||||
|
||||
@@ -24,6 +24,26 @@
|
||||
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
||||
*/
|
||||
|
||||
/**
|
||||
* SECTION:gtkarrow
|
||||
* @Short_description: Displays an arrow
|
||||
* @Title: GtkArrow
|
||||
* @See_also: gtk_paint_arrow()
|
||||
*
|
||||
* GtkArrow should be used to draw simple arrows that need to point in
|
||||
* one of the four cardinal directions (up, down, left, or right). The
|
||||
* style of the arrow can be one of shadow in, shadow out, etched in, or
|
||||
* etched out. Note that these directions and style types may be
|
||||
* ammended in versions of GTK+ to come.
|
||||
*
|
||||
* GtkArrow will fill any space alloted to it, but since it is inherited
|
||||
* from #GtkMisc, it can be padded and/or aligned, to fill exactly the
|
||||
* space the programmer desires.
|
||||
*
|
||||
* Arrows are created with a call to gtk_arrow_new(). The direction or
|
||||
* style of an arrow can be changed after creation by using gtk_arrow_set().
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include <math.h>
|
||||
#include "gtkarrow.h"
|
||||
@@ -155,6 +175,15 @@ gtk_arrow_init (GtkArrow *arrow)
|
||||
arrow->shadow_type = GTK_SHADOW_OUT;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_arrow_new:
|
||||
* @arrow_type: a valid #GtkArrowType.
|
||||
* @shadow_type: a valid #GtkShadowType.
|
||||
*
|
||||
* Creates a new #GtkArrow widget.
|
||||
*
|
||||
* Returns: the new #GtkArrow widget.
|
||||
*/
|
||||
GtkWidget*
|
||||
gtk_arrow_new (GtkArrowType arrow_type,
|
||||
GtkShadowType shadow_type)
|
||||
@@ -169,6 +198,14 @@ gtk_arrow_new (GtkArrowType arrow_type,
|
||||
return GTK_WIDGET (arrow);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_arrow_set:
|
||||
* @arrow: a widget of type #GtkArrow.
|
||||
* @arrow_type: a valid #GtkArrowType.
|
||||
* @shadow_type: a valid #GtkShadowType.
|
||||
*
|
||||
* Sets the direction and style of the #GtkArrow, @arrow.
|
||||
*/
|
||||
void
|
||||
gtk_arrow_set (GtkArrow *arrow,
|
||||
GtkArrowType arrow_type,
|
||||
|
||||
@@ -29,6 +29,20 @@
|
||||
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
||||
*/
|
||||
|
||||
/**
|
||||
* SECTION:gtkaspectframe
|
||||
* @Short_description: A frame that constrains its child to a particular aspect ratio
|
||||
* @Title: GtkAspectFrame
|
||||
*
|
||||
* The #GtkAspectFrame is useful when you want
|
||||
* pack a widget so that it can resize but always retains
|
||||
* the same aspect ratio. For instance, one might be
|
||||
* drawing a small preview of a larger image. #GtkAspectFrame
|
||||
* derives from #GtkFrame, so it can draw a label and
|
||||
* a frame around the child. The frame will be
|
||||
* "shrink-wrapped" to the size of the child.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "gtkaspectframe.h"
|
||||
#include "gtkprivate.h"
|
||||
@@ -185,6 +199,23 @@ gtk_aspect_frame_get_property (GObject *object,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_aspect_frame_new:
|
||||
* @label: Label text.
|
||||
* @xalign: Horizontal alignment of the child within the allocation of
|
||||
* the #GtkAspectFrame. This ranges from 0.0 (left aligned)
|
||||
* to 1.0 (right aligned)
|
||||
* @yalign: Vertical alignment of the child within the allocation of
|
||||
* the #GtkAspectFrame. This ranges from 0.0 (left aligned)
|
||||
* to 1.0 (right aligned)
|
||||
* @ratio: The desired aspect ratio.
|
||||
* @obey_child: If %TRUE, @ratio is ignored, and the aspect
|
||||
* ratio is taken from the requistion of the child.
|
||||
*
|
||||
* Create a new #GtkAspectFrame.
|
||||
*
|
||||
* Returns: the new #GtkAspectFrame.
|
||||
*/
|
||||
GtkWidget*
|
||||
gtk_aspect_frame_new (const gchar *label,
|
||||
gfloat xalign,
|
||||
@@ -206,6 +237,21 @@ gtk_aspect_frame_new (const gchar *label,
|
||||
return GTK_WIDGET (aspect_frame);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_aspect_frame_set:
|
||||
* @aspect_frame: a #GtkAspectFrame
|
||||
* @xalign: Horizontal alignment of the child within the allocation of
|
||||
* the #GtkAspectFrame. This ranges from 0.0 (left aligned)
|
||||
* to 1.0 (right aligned)
|
||||
* @yalign: Vertical alignment of the child within the allocation of
|
||||
* the #GtkAspectFrame. This ranges from 0.0 (left aligned)
|
||||
* to 1.0 (right aligned)
|
||||
* @ratio: The desired aspect ratio.
|
||||
* @obey_child: If %TRUE, @ratio is ignored, and the aspect
|
||||
* ratio is taken from the requistion of the child.
|
||||
*
|
||||
* Set parameters for an existing #GtkAspectFrame.
|
||||
*/
|
||||
void
|
||||
gtk_aspect_frame_set (GtkAspectFrame *aspect_frame,
|
||||
gfloat xalign,
|
||||
|
||||
+33
-6
@@ -23,6 +23,28 @@
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* SECTION:gtkassistant
|
||||
* @Short_description: A widget used to guide users through multi-step operations
|
||||
* @Title: GtkAssistant
|
||||
*
|
||||
* A #GtkAssistant is a widget used to represent a generally complex
|
||||
* operation splitted in several steps, guiding the user through its pages
|
||||
* and controlling the page flow to collect the necessary data.
|
||||
*
|
||||
* <refsect2 id="GtkAssistant-BUILDER-UI">
|
||||
* <title>GtkAssistant as GtkBuildable</title>
|
||||
* <para>
|
||||
* The GtkAssistant implementation of the GtkBuildable interface exposes the
|
||||
* @action_area as internal children with the name "action_area".
|
||||
*
|
||||
* To add pages to an assistant in GtkBuilder, simply add it as a
|
||||
* <child> to the GtkAssistant object, and set its child properties
|
||||
* as necessary.
|
||||
* </para>
|
||||
* </refsect2>
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <atk/atk.h>
|
||||
@@ -237,7 +259,7 @@ gtk_assistant_class_init (GtkAssistantClass *class)
|
||||
|
||||
/**
|
||||
* GtkAssistant::apply:
|
||||
* @assistant: the @GtkAssistant
|
||||
* @assistant: the #GtkAssistant
|
||||
*
|
||||
* The ::apply signal is emitted when the apply button is clicked. The default
|
||||
* behavior of the #GtkAssistant is to switch to the page after the current
|
||||
@@ -1145,13 +1167,14 @@ gtk_assistant_size_request (GtkWidget *widget,
|
||||
requisition->height = height;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gtk_assistant_size_allocate (GtkWidget *widget,
|
||||
GtkAllocation *allocation)
|
||||
{
|
||||
GtkAssistant *assistant = GTK_ASSISTANT (widget);
|
||||
GtkAssistantPrivate *priv = assistant->priv;
|
||||
GtkRequisition header_requisition;
|
||||
GtkRequisition header_requisition, action_requisition, sidebar_requisition;
|
||||
GtkAllocation child_allocation, header_allocation;
|
||||
gint header_padding, content_padding;
|
||||
gboolean rtl;
|
||||
@@ -1178,24 +1201,28 @@ gtk_assistant_size_allocate (GtkWidget *widget,
|
||||
gtk_widget_size_allocate (priv->header_image, &header_allocation);
|
||||
|
||||
/* Action area */
|
||||
gtk_widget_get_child_requisition (priv->action_area, &action_requisition);
|
||||
|
||||
child_allocation.x = GTK_CONTAINER (widget)->border_width;
|
||||
child_allocation.y = allocation->height -
|
||||
GTK_CONTAINER (widget)->border_width - priv->action_area->requisition.height;
|
||||
GTK_CONTAINER (widget)->border_width - action_requisition.height;
|
||||
child_allocation.width = allocation->width - 2 * GTK_CONTAINER (widget)->border_width;
|
||||
child_allocation.height = priv->action_area->requisition.height;
|
||||
child_allocation.height = action_requisition.height;
|
||||
|
||||
gtk_widget_size_allocate (priv->action_area, &child_allocation);
|
||||
|
||||
/* Sidebar */
|
||||
gtk_widget_get_child_requisition (priv->sidebar_image, &sidebar_requisition);
|
||||
|
||||
if (rtl)
|
||||
child_allocation.x = allocation->width -
|
||||
GTK_CONTAINER (widget)->border_width - priv->sidebar_image->requisition.width;
|
||||
GTK_CONTAINER (widget)->border_width - sidebar_requisition.width;
|
||||
else
|
||||
child_allocation.x = GTK_CONTAINER (widget)->border_width;
|
||||
|
||||
child_allocation.y = GTK_CONTAINER (widget)->border_width +
|
||||
priv->header_image->allocation.height + 2 * header_padding;
|
||||
child_allocation.width = priv->sidebar_image->requisition.width;
|
||||
child_allocation.width = sidebar_requisition.width;
|
||||
child_allocation.height = allocation->height - 2 * GTK_CONTAINER (widget)->border_width -
|
||||
priv->header_image->allocation.height - 2 * header_padding - priv->action_area->allocation.height;
|
||||
|
||||
|
||||
@@ -41,6 +41,24 @@ G_BEGIN_DECLS
|
||||
#define GTK_IS_ASSISTANT_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_ASSISTANT))
|
||||
#define GTK_ASSISTANT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_ASSISTANT, GtkAssistantClass))
|
||||
|
||||
/**
|
||||
* GtkAssistantPageType:
|
||||
* @GTK_ASSISTANT_PAGE_CONTENT: The page has regular contents.
|
||||
* @GTK_ASSISTANT_PAGE_INTRO: The page contains an introduction to the
|
||||
* assistant task.
|
||||
* @GTK_ASSISTANT_PAGE_CONFIRM: The page lets the user confirm or deny the
|
||||
* changes.
|
||||
* @GTK_ASSISTANT_PAGE_SUMMARY: The page informs the user of the changes
|
||||
* done.
|
||||
* @GTK_ASSISTANT_PAGE_PROGRESS: Used for tasks that take a long time to
|
||||
* complete, blocks the assistant until the page is marked as complete.
|
||||
*
|
||||
* An enum for determining the page role inside the #GtkAssistant. It's
|
||||
* used to handle buttons sensitivity and visibility.
|
||||
*
|
||||
* Note that an assistant needs to end its page flow with a page of type
|
||||
* %GTK_ASSISTANT_PAGE_CONFIRM or %GTK_ASSISTANT_PAGE_SUMMARY to be correct.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
GTK_ASSISTANT_PAGE_CONTENT,
|
||||
@@ -86,6 +104,18 @@ struct _GtkAssistantClass
|
||||
void (*_gtk_reserved5) (void);
|
||||
};
|
||||
|
||||
/**
|
||||
* GtkAssistantPageFunc:
|
||||
* @current_page: The page number used to calculate the next page.
|
||||
* @data: user data.
|
||||
*
|
||||
* A function used by gtk_assistant_set_forward_page_func() to know which
|
||||
* is the next page given a current one. It's called both for computing the
|
||||
* next page when the user presses the "forward" button and for handling
|
||||
* the behavior of the "last" button.
|
||||
*
|
||||
* Returns: The next page number.
|
||||
*/
|
||||
typedef gint (*GtkAssistantPageFunc) (gint current_page, gpointer data);
|
||||
|
||||
GType gtk_assistant_get_type (void) G_GNUC_CONST;
|
||||
|
||||
@@ -24,6 +24,34 @@
|
||||
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
||||
*/
|
||||
|
||||
/**
|
||||
* SECTION:gtkbbox
|
||||
* @Short_description: Base class for GtkHButtonBox and GtkVButtonBox
|
||||
* @Title: GtkButtonBox
|
||||
* @See_also: #GtkVButtonBox, #GtkHButtonBox
|
||||
*
|
||||
* The primary purpose of this class is to keep track of the various properties
|
||||
* of #GtkHButtonBox and #GtkVButtonBox widgets.
|
||||
*
|
||||
* gtk_button_box_get_child_size() retrieves the minimum width and height
|
||||
* for widgets in a given button box.
|
||||
*
|
||||
* The internal padding of buttons can be retrieved and changed per button box
|
||||
* using gtk_button_box_get_child_ipadding() and
|
||||
* gtk_button_box_set_child_ipadding() respectively.
|
||||
*
|
||||
* gtk_button_box_get_spacing() and gtk_button_box_set_spacing() retrieve and
|
||||
* change default number of pixels between buttons, respectively.
|
||||
*
|
||||
* gtk_button_box_get_layout() and gtk_button_box_set_layout() retrieve and
|
||||
* alter the method used to spread the buttons in a button box across the
|
||||
* container, respectively.
|
||||
*
|
||||
* The main purpose of GtkButtonBox is to make sure the children have all the
|
||||
* same size. Therefore it ignores the homogeneous property which it inherited
|
||||
* from GtkBox, and always behaves as if homogeneous was %TRUE.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "gtkbbox.h"
|
||||
#include "gtkhbbox.h"
|
||||
@@ -236,6 +264,21 @@ gtk_button_box_get_child_property (GtkContainer *container,
|
||||
|
||||
/* set per widget values for spacing, child size and child internal padding */
|
||||
|
||||
/**
|
||||
* gtk_button_box_set_child_size:
|
||||
* @widget: a #GtkButtonBox
|
||||
* @min_width: a default width for buttons in @widget
|
||||
* @min_height: a default height for buttons in @widget
|
||||
*
|
||||
* Sets a new default size for the children of a given button box.
|
||||
*
|
||||
* Deprecated: This is not supported anymore and can only be set through the
|
||||
* theme changing the style properties:
|
||||
* "<link linkend="GtkButtonBox--s-child-min-width">child-min-width</link>"
|
||||
* and
|
||||
* "<link linkend="GtkButtonBox--s-child-min-height">child-min-height</link>"
|
||||
* instead.
|
||||
*/
|
||||
void
|
||||
gtk_button_box_set_child_size (GtkButtonBox *widget,
|
||||
gint width, gint height)
|
||||
@@ -246,6 +289,18 @@ gtk_button_box_set_child_size (GtkButtonBox *widget,
|
||||
widget->child_min_height = height;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_button_box_set_child_ipadding:
|
||||
* @widget: a #GtkButtonBox
|
||||
* @ipad_x: the horizontal padding that should be used by each button in @widget
|
||||
* @ipad_y: the vertical padding that should be used by each button in @widget
|
||||
*
|
||||
* Changes the amount of internal padding used by all buttons in a given button
|
||||
* box.
|
||||
*
|
||||
* Deprecated: Use the style properties
|
||||
* <literal>"child-internal-pad-x/-y"</literal> instead.
|
||||
*/
|
||||
void
|
||||
gtk_button_box_set_child_ipadding (GtkButtonBox *widget,
|
||||
gint ipad_x, gint ipad_y)
|
||||
@@ -256,6 +311,13 @@ gtk_button_box_set_child_ipadding (GtkButtonBox *widget,
|
||||
widget->child_ipad_y = ipad_y;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_button_box_set_layout:
|
||||
* @widget: a #GtkButtonBox
|
||||
* @layout_style: the new layout style
|
||||
*
|
||||
* Changes the way buttons are arranged in their container.
|
||||
*/
|
||||
void
|
||||
gtk_button_box_set_layout (GtkButtonBox *widget,
|
||||
GtkButtonBoxStyle layout_style)
|
||||
@@ -275,6 +337,18 @@ gtk_button_box_set_layout (GtkButtonBox *widget,
|
||||
|
||||
/* get per widget values for spacing, child size and child internal padding */
|
||||
|
||||
/**
|
||||
* gtk_button_box_get_child_size:
|
||||
* @widget: a #GtkButtonBox
|
||||
* @min_width: the width of the buttons contained by @widget
|
||||
* @min_height: the height of the buttons contained by @widget
|
||||
*
|
||||
* Retrieves the current width and height of all child widgets in a button box.
|
||||
* @min_width and @min_height are filled with those values, respectively.
|
||||
*
|
||||
* Deprecated: Use the style properties
|
||||
* <literal>"child-min-width/-height"</literal> instead.
|
||||
*/
|
||||
void
|
||||
gtk_button_box_get_child_size (GtkButtonBox *widget,
|
||||
gint *width, gint *height)
|
||||
@@ -287,6 +361,20 @@ gtk_button_box_get_child_size (GtkButtonBox *widget,
|
||||
*height = widget->child_min_height;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_button_box_get_child_ipadding:
|
||||
* @widget: a #GtkButtonBox
|
||||
* @ipad_x: the horizontal padding used by buttons in @widget
|
||||
* @ipad_y: the vertical padding used by buttons in @widget
|
||||
*
|
||||
* Gets the default number of pixels that pad the buttons in a given button box.
|
||||
*
|
||||
* Deprecated: Use the style properties
|
||||
* "<link linkend="GtkButtonBox--s-child-internal-pad-x">child-internal-pad-x</link>"
|
||||
* and
|
||||
* "<link linkend="GtkButtonBox--s-child-internal-pad-y">child-internal-pad-y</link>"
|
||||
* instead.
|
||||
*/
|
||||
void
|
||||
gtk_button_box_get_child_ipadding (GtkButtonBox *widget,
|
||||
gint* ipad_x, gint *ipad_y)
|
||||
@@ -299,6 +387,14 @@ gtk_button_box_get_child_ipadding (GtkButtonBox *widget,
|
||||
*ipad_y = widget->child_ipad_y;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_button_box_get_layout:
|
||||
* @widget: a #GtkButtonBox
|
||||
*
|
||||
* Retrieves the method being used to arrange the buttons in a button box.
|
||||
*
|
||||
* Returns: the method used to layout buttons in @widget.
|
||||
*/
|
||||
GtkButtonBoxStyle
|
||||
gtk_button_box_get_layout (GtkButtonBox *widget)
|
||||
{
|
||||
|
||||
@@ -77,7 +77,26 @@ void gtk_button_box_set_child_secondary (GtkButtonBox *widget,
|
||||
gboolean is_secondary);
|
||||
|
||||
#ifndef GTK_DISABLE_DEPRECATED
|
||||
/**
|
||||
* gtk_button_box_set_spacing:
|
||||
* @b: a #GtkButtonBox
|
||||
* @s: the number of pixels of spacing
|
||||
*
|
||||
* Sets the amount of spacing between buttons in a given button box.
|
||||
*
|
||||
* Deprecated: Use gtk_box_set_spacing() instead.
|
||||
*/
|
||||
#define gtk_button_box_set_spacing(b,s) gtk_box_set_spacing (GTK_BOX (b), s)
|
||||
|
||||
/**
|
||||
* gtk_button_box_get_spacing:
|
||||
* @b: a #GtkButtonBox
|
||||
*
|
||||
* Retrieves how much space a button box is placing between each child button.
|
||||
*
|
||||
* Deprecated: Use gtk_box_get_spacing() instead.
|
||||
* Returns: the current spacing applied to the buttons in @widget
|
||||
*/
|
||||
#define gtk_button_box_get_spacing(b) gtk_box_get_spacing (GTK_BOX (b))
|
||||
|
||||
void gtk_button_box_set_child_size (GtkButtonBox *widget,
|
||||
|
||||
+133
-1
@@ -24,8 +24,22 @@
|
||||
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
||||
*/
|
||||
|
||||
/**
|
||||
* SECTION:gtkbin
|
||||
* @Short_description: A container with just one child
|
||||
* @Title: GtkBin
|
||||
*
|
||||
* The #GtkBin widget is a container with just one child.
|
||||
* It is not very useful itself, but it is useful for deriving subclasses,
|
||||
* since it provides common code needed for handling a single child widget.
|
||||
*
|
||||
* Many GTK+ widgets are subclasses of #GtkBin, including #GtkWindow,
|
||||
* #GtkButton, #GtkFrame, #GtkHandleBox or #GtkScrolledWindow.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "gtkbin.h"
|
||||
#include "gtkextendedlayout.h"
|
||||
#include "gtkintl.h"
|
||||
#include "gtkalias.h"
|
||||
|
||||
@@ -40,7 +54,22 @@ static void gtk_bin_forall (GtkContainer *container,
|
||||
static GType gtk_bin_child_type (GtkContainer *container);
|
||||
|
||||
|
||||
G_DEFINE_ABSTRACT_TYPE (GtkBin, gtk_bin, GTK_TYPE_CONTAINER)
|
||||
static void gtk_bin_extended_layout_init (GtkExtendedLayoutIface *iface);
|
||||
static gboolean gtk_bin_is_height_for_width (GtkExtendedLayout *layout);
|
||||
static void gtk_bin_get_width_for_height (GtkExtendedLayout *layout,
|
||||
gint height,
|
||||
gint *minimum_width,
|
||||
gint *natural_width);
|
||||
static void gtk_bin_get_height_for_width (GtkExtendedLayout *layout,
|
||||
gint width,
|
||||
gint *minimum_height,
|
||||
gint *natural_height);
|
||||
|
||||
static GtkExtendedLayoutIface *parent_extended_layout_iface;
|
||||
|
||||
G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GtkBin, gtk_bin, GTK_TYPE_CONTAINER,
|
||||
G_IMPLEMENT_INTERFACE (GTK_TYPE_EXTENDED_LAYOUT,
|
||||
gtk_bin_extended_layout_init))
|
||||
|
||||
static void
|
||||
gtk_bin_class_init (GtkBinClass *class)
|
||||
@@ -128,6 +157,109 @@ gtk_bin_forall (GtkContainer *container,
|
||||
(* callback) (bin->child, callback_data);
|
||||
}
|
||||
|
||||
|
||||
/* GtkBin widgets define the padding and borders independantly so
|
||||
* we cannot provide a generic get_desired_size() for the same reason
|
||||
* we never implemented size_request() here.
|
||||
*
|
||||
* But for cases where the GtkBin class's padding is constant and
|
||||
* does not vary based on allocation (most cases), we can at least
|
||||
* deduce a common code path for the get_width_for_height()/get_height_for_width()
|
||||
* cases by using the delta of the base size requsts.
|
||||
*/
|
||||
static void
|
||||
gtk_bin_extended_layout_init (GtkExtendedLayoutIface *iface)
|
||||
{
|
||||
parent_extended_layout_iface = g_type_interface_peek_parent (iface);
|
||||
|
||||
iface->is_height_for_width = gtk_bin_is_height_for_width;
|
||||
iface->get_width_for_height = gtk_bin_get_width_for_height;
|
||||
iface->get_height_for_width = gtk_bin_get_height_for_width;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gtk_bin_is_height_for_width (GtkExtendedLayout *layout)
|
||||
{
|
||||
GtkBin *bin = GTK_BIN (layout);
|
||||
|
||||
if (bin->child)
|
||||
return gtk_extended_layout_is_height_for_width (GTK_EXTENDED_LAYOUT (bin->child));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
get_child_padding_delta (GtkBin *bin,
|
||||
gint *delta_h,
|
||||
gint *delta_v)
|
||||
{
|
||||
gint hmin, vmin, child_hmin, child_vmin;
|
||||
|
||||
gtk_extended_layout_get_desired_width (GTK_EXTENDED_LAYOUT (bin), &hmin, NULL);
|
||||
gtk_extended_layout_get_desired_height (GTK_EXTENDED_LAYOUT (bin), &vmin, NULL);
|
||||
|
||||
gtk_extended_layout_get_desired_width (GTK_EXTENDED_LAYOUT (bin->child), &child_hmin, NULL);
|
||||
gtk_extended_layout_get_desired_height (GTK_EXTENDED_LAYOUT (bin->child), &child_vmin, NULL);
|
||||
|
||||
*delta_h = hmin - child_hmin;
|
||||
*delta_v = vmin - child_vmin;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_bin_get_width_for_height (GtkExtendedLayout *layout,
|
||||
gint height,
|
||||
gint *minimum_width,
|
||||
gint *natural_width)
|
||||
{
|
||||
GtkBin *bin = GTK_BIN (layout);
|
||||
gint hdelta, vdelta, child_min, child_nat;
|
||||
|
||||
if (bin->child)
|
||||
{
|
||||
get_child_padding_delta (bin, &hdelta, &vdelta);
|
||||
|
||||
gtk_extended_layout_get_width_for_height (GTK_EXTENDED_LAYOUT (bin->child),
|
||||
height - vdelta,
|
||||
&child_min, &child_nat);
|
||||
|
||||
if (minimum_width)
|
||||
*minimum_width = child_min + hdelta;
|
||||
|
||||
if (natural_width)
|
||||
*natural_width = child_nat + hdelta;
|
||||
}
|
||||
else
|
||||
GTK_EXTENDED_LAYOUT_GET_IFACE (layout)->get_desired_width (layout, minimum_width, natural_width);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_bin_get_height_for_width (GtkExtendedLayout *layout,
|
||||
gint width,
|
||||
gint *minimum_height,
|
||||
gint *natural_height)
|
||||
{
|
||||
GtkBin *bin = GTK_BIN (layout);
|
||||
gint hdelta, vdelta, child_min, child_nat;
|
||||
|
||||
if (bin->child)
|
||||
{
|
||||
get_child_padding_delta (bin, &hdelta, &vdelta);
|
||||
|
||||
gtk_extended_layout_get_height_for_width (GTK_EXTENDED_LAYOUT (bin->child),
|
||||
width - hdelta,
|
||||
&child_min, &child_nat);
|
||||
|
||||
if (minimum_height)
|
||||
*minimum_height = child_min + vdelta;
|
||||
|
||||
if (natural_height)
|
||||
*natural_height = child_nat + vdelta;
|
||||
}
|
||||
else
|
||||
GTK_EXTENDED_LAYOUT_GET_IFACE (layout)->get_desired_height (layout, minimum_height, natural_height);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_bin_get_child:
|
||||
* @bin: a #GtkBin
|
||||
|
||||
+773
-293
File diff suppressed because it is too large
Load Diff
@@ -65,6 +65,28 @@ struct _GtkBoxClass
|
||||
GtkContainerClass parent_class;
|
||||
};
|
||||
|
||||
/**
|
||||
* GtkBoxChild:
|
||||
* @widget: the child widget, packed into the GtkBox.
|
||||
* @padding: the number of extra pixels to put between this child and its
|
||||
* neighbors, set when packed, zero by default.
|
||||
* @expand: flag indicates whether extra space should be given to this child.
|
||||
* Any extra space given to the parent GtkBox is divided up among all children
|
||||
* with this attribute set to %TRUE; set when packed, %TRUE by default.
|
||||
* @fill: flag indicates whether any extra space given to this child due to its
|
||||
* @expand attribute being set is actually allocated to the child, rather than
|
||||
* being used as padding around the widget; set when packed, %TRUE by default.
|
||||
* @pack: one of #GtkPackType indicating whether the child is packed with
|
||||
* reference to the start (top/left) or end (bottom/right) of the GtkBox.
|
||||
* @is_secondary: %TRUE if the child is secondary
|
||||
*
|
||||
* The #GtkBoxChild holds a child widget of #GtkBox and describes how the child
|
||||
* is to be packed into the #GtkBox. All fields of this #GtkBoxChild should be
|
||||
* considered read-only and they should never be set directly by an application.
|
||||
* Use gtk_box_query_child_packing() and gtk_box_set_child_packing() to query
|
||||
* and set the #GtkBoxChild.padding, #GtkBoxChild.expand, #GtkBoxChild.fill and
|
||||
* #GtkBoxChild.pack fields.
|
||||
*/
|
||||
struct _GtkBoxChild
|
||||
{
|
||||
GtkWidget *widget;
|
||||
|
||||
+23
-11
@@ -18,6 +18,23 @@
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* SECTION:gtkbuildable
|
||||
* @Short_description: Interface for objects that can be built by GtkBuilder
|
||||
* @Title: GtkBuildable
|
||||
*
|
||||
* In order to allow construction from a <link linkend="BUILDER-UI">GtkBuilder
|
||||
* UI description</link>, an object class must implement the
|
||||
* GtkBuildable interface. The interface includes methods for setting
|
||||
* names and properties of objects, parsing custom tags, constructing
|
||||
* child objects.
|
||||
*
|
||||
* The GtkBuildable interface is implemented by all widgets and
|
||||
* many of the non-widget objects that are provided by GTK+. The
|
||||
* main user of this interface is #GtkBuilder, there should be
|
||||
* very little need for applications to call any
|
||||
* <function>gtk_buildable_...</function> functions.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "gtkbuildable.h"
|
||||
@@ -25,18 +42,13 @@
|
||||
#include "gtkintl.h"
|
||||
#include "gtkalias.h"
|
||||
|
||||
GType
|
||||
gtk_buildable_get_type (void)
|
||||
|
||||
typedef GtkBuildableIface GtkBuildableInterface;
|
||||
G_DEFINE_INTERFACE (GtkBuildable, gtk_buildable, G_TYPE_OBJECT)
|
||||
|
||||
static void
|
||||
gtk_buildable_default_init (GtkBuildableInterface *iface)
|
||||
{
|
||||
static GType buildable_type = 0;
|
||||
|
||||
if (!buildable_type)
|
||||
buildable_type =
|
||||
g_type_register_static_simple (G_TYPE_INTERFACE, I_("GtkBuildable"),
|
||||
sizeof (GtkBuildableIface),
|
||||
NULL, 0, NULL, 0);
|
||||
|
||||
return buildable_type;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -40,6 +40,55 @@ G_BEGIN_DECLS
|
||||
typedef struct _GtkBuildable GtkBuildable; /* Dummy typedef */
|
||||
typedef struct _GtkBuildableIface GtkBuildableIface;
|
||||
|
||||
/**
|
||||
* GtkBuildableIface:
|
||||
* @g_iface: the parent class
|
||||
* @set_name: Stores the name attribute given in the GtkBuilder UI definition.
|
||||
* #GtkWidget stores the name as object data. Implement this method if your
|
||||
* object has some notion of "name" and it makes sense to map the XML name
|
||||
* attribute to it.
|
||||
* @get_name: The getter corresponding to @set_name. Implement this
|
||||
* if you implement @set_name.
|
||||
* @add_child: Adds a child. The @type parameter can be used to
|
||||
* differentiate the kind of child. #GtkContainer implements this
|
||||
* to add add a child widget to the container, #GtkNotebook uses
|
||||
* the @type to distinguish between page labels (of type "page-label")
|
||||
* and normal children.
|
||||
* @set_buildable_property: Sets a property of a buildable object.
|
||||
* It is normally not necessary to implement this, g_object_set_property()
|
||||
* is used by default. #GtkWindow implements this to delay showing itself
|
||||
* (i.e. setting the #GtkWidget:visible property) until the whole interface
|
||||
* is created.
|
||||
* @construct_child: Constructs a child of a buildable that has been
|
||||
* specified as "constructor" in the UI definition. #GtkUIManager implements
|
||||
* this to reference to a widget created in a <ui> tag which is outside
|
||||
* of the normal GtkBuilder UI definition hierarchy. A reference to the
|
||||
* constructed object is returned and becomes owned by the caller.
|
||||
* @custom_tag_start: Implement this if the buildable needs to parse
|
||||
* content below <child>. To handle an element, the implementation
|
||||
* must fill in the @parser structure and @user_data and return %TRUE.
|
||||
* #GtkWidget implements this to parse keyboard accelerators specified
|
||||
* in <accelerator> elements. #GtkContainer implements it to map
|
||||
* properties defined via <packing> elements to child properties.
|
||||
* Note that @user_data must be freed in @custom_tag_end or @custom_finished.
|
||||
* @custom_tag_end: Called for the end tag of each custom element that is
|
||||
* handled by the buildable (see @custom_tag_start).
|
||||
* @custom_finished: Called for each custom tag handled by the buildable
|
||||
* when the builder finishes parsing (see @custom_tag_start)
|
||||
* @parser_finished: Called when a builder finishes the parsing
|
||||
* of a UI definition. It is normally not necessary to implement this,
|
||||
* unless you need to perform special cleanup actions. #GtkWindow sets
|
||||
* the #GtkWidget:visible property here.
|
||||
* @get_internal_child: Returns an internal child of a buildable.
|
||||
* #GtkDialog implements this to give access to its @vbox, making
|
||||
* it possible to add children to the vbox in a UI definition.
|
||||
* Implement this if the buildable has internal children that may
|
||||
* need to be accessed from a UI definition.
|
||||
*
|
||||
* The GtkBuildableIface interface contains method that are
|
||||
* necessary to allow #GtkBuilder to construct an object from
|
||||
* a GtkBuilder UI definition.
|
||||
*/
|
||||
struct _GtkBuildableIface
|
||||
{
|
||||
GTypeInterface g_iface;
|
||||
|
||||
+248
-5
@@ -20,6 +20,224 @@
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* SECTION:gtkbuilder
|
||||
* @Short_description: Build an interface from an XML UI definition
|
||||
* @Title: GtkBuilder
|
||||
*
|
||||
* A GtkBuilder is an auxiliary object that reads textual descriptions
|
||||
* of a user interface and instantiates the described objects. To pass a
|
||||
* description to a GtkBuilder, call gtk_builder_add_from_file() or
|
||||
* gtk_builder_add_from_string(). These functions can be called multiple
|
||||
* times; the builder merges the content of all descriptions.
|
||||
*
|
||||
* A GtkBuilder holds a reference to all objects that it has constructed
|
||||
* and drops these references when it is finalized. This finalization can
|
||||
* cause the destruction of non-widget objects or widgets which are not
|
||||
* contained in a toplevel window. For toplevel windows constructed by a
|
||||
* builder, it is the responsibility of the user to call gtk_widget_destroy()
|
||||
* to get rid of them and all the widgets they contain.
|
||||
*
|
||||
* The functions gtk_builder_get_object() and gtk_builder_get_objects()
|
||||
* can be used to access the widgets in the interface by the names assigned
|
||||
* to them inside the UI description. Toplevel windows returned by these
|
||||
* functions will stay around until the user explicitly destroys them
|
||||
* with gtk_widget_destroy(). Other widgets will either be part of a
|
||||
* larger hierarchy constructed by the builder (in which case you should
|
||||
* not have to worry about their lifecycle), or without a parent, in which
|
||||
* case they have to be added to some container to make use of them.
|
||||
* Non-widget objects need to be reffed with g_object_ref() to keep them
|
||||
* beyond the lifespan of the builder.
|
||||
*
|
||||
* The function gtk_builder_connect_signals() and variants thereof can be
|
||||
* used to connect handlers to the named signals in the description.
|
||||
*
|
||||
* <refsect2 id="BUILDER-UI">
|
||||
* <title>GtkBuilder UI Definitions</title>
|
||||
* <para>
|
||||
* GtkBuilder parses textual descriptions of user interfaces which are specified
|
||||
* in an XML format which can be roughly described by the DTD below. We refer to
|
||||
* these descriptions as <firstterm>GtkBuilder UI definitions</firstterm> or
|
||||
* just <firstterm>UI definitions</firstterm> if the context is clear. Do not
|
||||
* confuse GtkBuilder UI Definitions with
|
||||
* <link linkend="XML-UI">GtkUIManager UI Definitions</link>, which are more
|
||||
* limited in scope.
|
||||
* </para>
|
||||
* <programlisting><![CDATA[
|
||||
* <!ELEMENT interface (requires|object)* >
|
||||
* <!ELEMENT object (property|signal|child|ANY)* >
|
||||
* <!ELEMENT property PCDATA >
|
||||
* <!ELEMENT signal EMPTY >
|
||||
* <!ELEMENT requires EMPTY >
|
||||
* <!ELEMENT child (object|ANY*) >
|
||||
*
|
||||
* <!ATTLIST interface domain #IMPLIED >
|
||||
* <!ATTLIST object id #REQUIRED
|
||||
* class #REQUIRED
|
||||
* type-func #IMPLIED
|
||||
* constructor #IMPLIED >
|
||||
* <!ATTLIST requires lib #REQUIRED
|
||||
* version #REQUIRED >
|
||||
* <!ATTLIST property name #REQUIRED
|
||||
* translatable #IMPLIED
|
||||
* comments #IMPLIED
|
||||
* context #IMPLIED >
|
||||
* <!ATTLIST signal name #REQUIRED
|
||||
* handler #REQUIRED
|
||||
* after #IMPLIED
|
||||
* swapped #IMPLIED
|
||||
* object #IMPLIED
|
||||
* last_modification_time #IMPLIED >
|
||||
* <!ATTLIST child type #IMPLIED
|
||||
* internal-child #IMPLIED >
|
||||
* ]]></programlisting>
|
||||
* <para>
|
||||
* The toplevel element is <interface>. It optionally takes a "domain"
|
||||
* attribute, which will make the builder look for translated strings using
|
||||
* dgettext() in the domain specified. This can also be done by calling
|
||||
* gtk_builder_set_translation_domain() on the builder. Objects are described by
|
||||
* <object> elements, which can contain <property> elements to set
|
||||
* properties, <signal> elements which connect signals to handlers, and
|
||||
* <child> elements, which describe child objects (most often widgets
|
||||
* inside a container, but also e.g. actions in an action group, or columns in a
|
||||
* tree model). A <child> element contains an <object> element which
|
||||
* describes the child object. The target toolkit version(s) are described by
|
||||
* <requires> elements, the "lib" attribute specifies the widget library
|
||||
* in question (currently the only supported value is "gtk+") and the "version"
|
||||
* attribute specifies the target version in the form
|
||||
* "<major>.<minor>". The builder will error out if the version
|
||||
* requirements are not met.
|
||||
*
|
||||
* Typically, the specific kind of object represented by an <object>
|
||||
* element is specified by the "class" attribute. If the type has not been
|
||||
* loaded yet, GTK+ tries to find the <function>_get_type()</function> from the
|
||||
* class name by applying heuristics. This works in most cases, but if
|
||||
* necessary, it is possible to specify the name of the
|
||||
* <function>_get_type()</function> explictly with the "type-func" attribute.
|
||||
* As a special case, GtkBuilder allows to use an object that has been
|
||||
* constructed by a #GtkUIManager in another part of the UI definition by
|
||||
* specifying the id of the #GtkUIManager in the "constructor" attribute and the
|
||||
* name of the object in the "id" attribute.
|
||||
*
|
||||
* Objects must be given a name with the "id" attribute, which allows the
|
||||
* application to retrieve them from the builder with gtk_builder_get_object().
|
||||
* An id is also necessary to use the object as property value in other parts of
|
||||
* the UI definition.
|
||||
* </para>
|
||||
* <note><para>
|
||||
* Prior to 2.20, GtkBuilder was setting the "name" property of constructed widgets to the
|
||||
* "id" attribute. In GTK+ 2.20 or newer, you have to use gtk_buildable_get_name() instead
|
||||
* of gtk_widget_get_name() to obtain the "id", or set the "name" property in your UI
|
||||
* definition.
|
||||
* </para></note>
|
||||
* <para>
|
||||
* Setting properties of objects is pretty straightforward with the
|
||||
* <property> element: the "name" attribute specifies the name of the
|
||||
* property, and the content of the element specifies the value. If the
|
||||
* "translatable" attribute is set to a true value, GTK+ uses gettext() (or
|
||||
* dgettext() if the builder has a translation domain set) to find a translation
|
||||
* for the value. This happens before the value is parsed, so it can be used for
|
||||
* properties of any type, but it is probably most useful for string properties.
|
||||
* It is also possible to specify a context to disambiguate short strings, and
|
||||
* comments which may help the translators.
|
||||
*
|
||||
* GtkBuilder can parse textual representations for the most common property
|
||||
* types: characters, strings, integers, floating-point numbers, booleans
|
||||
* (strings like "TRUE", "t", "yes", "y", "1" are interpreted as %TRUE, strings
|
||||
* like "FALSE, "f", "no", "n", "0" are interpreted as %FALSE), enumerations
|
||||
* (can be specified by their name, nick or integer value), flags (can be
|
||||
* specified by their name, nick, integer value, optionally combined with "|",
|
||||
* e.g. "GTK_VISIBLE|GTK_REALIZED") and colors (in a format understood by
|
||||
* gdk_color_parse()). Objects can be referred to by their name. Pixbufs can be
|
||||
* specified as a filename of an image file to load. In general, GtkBuilder
|
||||
* allows forward references to objects — an object doesn't have to be
|
||||
* constructed before it can be referred to. The exception to this rule is that
|
||||
* an object has to be constructed before it can be used as the value of a
|
||||
* construct-only property.
|
||||
*
|
||||
* Signal handlers are set up with the <signal> element. The "name"
|
||||
* attribute specifies the name of the signal, and the "handler" attribute
|
||||
* specifies the function to connect to the signal. By default, GTK+ tries to
|
||||
* find the handler using g_module_symbol(), but this can be changed by passing
|
||||
* a custom #GtkBuilderConnectFunc to gtk_builder_connect_signals_full(). The
|
||||
* remaining attributes, "after", "swapped" and "object", have the same meaning
|
||||
* as the corresponding parameters of the g_signal_connect_object() or
|
||||
* g_signal_connect_data() functions. A "last_modification_time" attribute
|
||||
* is also allowed, but it does not have a meaning to the builder.
|
||||
*
|
||||
* Sometimes it is necessary to refer to widgets which have implicitly been
|
||||
* constructed by GTK+ as part of a composite widget, to set properties on them
|
||||
* or to add further children (e.g. the @vbox of a #GtkDialog). This can be
|
||||
* achieved by setting the "internal-child" propery of the <child> element
|
||||
* to a true value. Note that GtkBuilder still requires an <object>
|
||||
* element for the internal child, even if it has already been constructed.
|
||||
*
|
||||
* A number of widgets have different places where a child can be added (e.g.
|
||||
* tabs vs. page content in notebooks). This can be reflected in a UI definition
|
||||
* by specifying the "type" attribute on a <child>. The possible values
|
||||
* for the "type" attribute are described in the sections describing the
|
||||
* widget-specific portions of UI definitions.
|
||||
* </para>
|
||||
* <example>
|
||||
* <title>A GtkBuilder UI Definition</title>
|
||||
* <programlisting><![CDATA[
|
||||
* <interface>
|
||||
* <object class="GtkDialog" id="dialog1">
|
||||
* <child internal-child="vbox">
|
||||
* <object class="GtkVBox" id="vbox1">
|
||||
* <property name="border-width">10</property>
|
||||
* <child internal-child="action_area">
|
||||
* <object class="GtkHButtonBox" id="hbuttonbox1">
|
||||
* <property name="border-width">20</property>
|
||||
* <child>
|
||||
* <object class="GtkButton" id="ok_button">
|
||||
* <property name="label">gtk-ok</property>
|
||||
* <property name="use-stock">TRUE</property>
|
||||
* <signal name="clicked" handler="ok_button_clicked"/>
|
||||
* </object>
|
||||
* </child>
|
||||
* </object>
|
||||
* </child>
|
||||
* </object>
|
||||
* </child>
|
||||
* </object>
|
||||
* </interface>
|
||||
* ]]></programlisting>
|
||||
* </example>
|
||||
* <para>
|
||||
* Beyond this general structure, several object classes define their own XML
|
||||
* DTD fragments for filling in the ANY placeholders in the DTD above. Note that
|
||||
* a custom element in a <child> element gets parsed by the custom tag
|
||||
* handler of the parent object, while a custom element in an <object>
|
||||
* element gets parsed by the custom tag handler of the object.
|
||||
*
|
||||
* These XML fragments are explained in the documentation of the respective
|
||||
* objects, see
|
||||
* <link linkend="GtkWidget-BUILDER-UI">GtkWidget</link>,
|
||||
* <link linkend="GtkLabel-BUILDER-UI">GtkLabel</link>,
|
||||
* <link linkend="GtkWindow-BUILDER-UI">GtkWindow</link>,
|
||||
* <link linkend="GtkContainer-BUILDER-UI">GtkContainer</link>,
|
||||
* <link linkend="GtkDialog-BUILDER-UI">GtkDialog</link>,
|
||||
* <link linkend="GtkCellLayout-BUILDER-UI">GtkCellLayout</link>,
|
||||
* <link linkend="GtkColorSelectionDialog-BUILDER-UI">GtkColorSelectionDialog</link>,
|
||||
* <link linkend="GtkFontSelectionDialog-BUILDER-UI">GtkFontSelectionDialog</link>,
|
||||
* <link linkend="GtkComboBoxEntry-BUILDER-UI">GtkComboBoxEntry</link>,
|
||||
* <link linkend="GtkExpander-BUILDER-UI">GtkExpander</link>,
|
||||
* <link linkend="GtkFrame-BUILDER-UI">GtkFrame</link>,
|
||||
* <link linkend="GtkListStore-BUILDER-UI">GtkListStore</link>,
|
||||
* <link linkend="GtkTreeStore-BUILDER-UI">GtkTreeStore</link>,
|
||||
* <link linkend="GtkNotebook-BUILDER-UI">GtkNotebook</link>,
|
||||
* <link linkend="GtkSizeGroup-BUILDER-UI">GtkSizeGroup</link>,
|
||||
* <link linkend="GtkTreeView-BUILDER-UI">GtkTreeView</link>,
|
||||
* <link linkend="GtkUIManager-BUILDER-UI">GtkUIManager</link>,
|
||||
* <link linkend="GtkActionGroup-BUILDER-UI">GtkActionGroup</link>.
|
||||
* <link linkend="GtkMenuItem-BUILDER-UI">GtkMenuItem</link>,
|
||||
* <link linkend="GtkAssistant-BUILDER-UI">GtkAssistant</link>,
|
||||
* <link linkend="GtkScale-BUILDER-UI">GtkScale</link>.
|
||||
* </para>
|
||||
* </refsect2>
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include <errno.h> /* errno */
|
||||
#include <stdlib.h> /* strtol, strtoul */
|
||||
@@ -643,6 +861,10 @@ gtk_builder_new (void)
|
||||
* Parses a file containing a <link linkend="BUILDER-UI">GtkBuilder
|
||||
* UI definition</link> and merges it with the current contents of @builder.
|
||||
*
|
||||
* Upon errors 0 will be returned and @error will be assigned a
|
||||
* #GError from the #GTK_BUILDER_ERROR, #G_MARKUP_ERROR or #G_FILE_ERROR
|
||||
* domain.
|
||||
*
|
||||
* Returns: A positive value on success, 0 if an error occurred
|
||||
*
|
||||
* Since: 2.12
|
||||
@@ -698,6 +920,10 @@ gtk_builder_add_from_file (GtkBuilder *builder,
|
||||
* UI definition</link> building only the requested objects and merges
|
||||
* them with the current contents of @builder.
|
||||
*
|
||||
* Upon errors 0 will be returned and @error will be assigned a
|
||||
* #GError from the #GTK_BUILDER_ERROR, #G_MARKUP_ERROR or #G_FILE_ERROR
|
||||
* domain.
|
||||
*
|
||||
* <note><para>
|
||||
* If you are adding an object that depends on an object that is not
|
||||
* its child (for instance a #GtkTreeView that depends on its
|
||||
@@ -760,6 +986,9 @@ gtk_builder_add_objects_from_file (GtkBuilder *builder,
|
||||
* Parses a string containing a <link linkend="BUILDER-UI">GtkBuilder
|
||||
* UI definition</link> and merges it with the current contents of @builder.
|
||||
*
|
||||
* Upon errors 0 will be returned and @error will be assigned a
|
||||
* #GError from the #GTK_BUILDER_ERROR or #G_MARKUP_ERROR domain.
|
||||
*
|
||||
* Returns: A positive value on success, 0 if an error occurred
|
||||
*
|
||||
* Since: 2.12
|
||||
@@ -805,6 +1034,9 @@ gtk_builder_add_from_string (GtkBuilder *builder,
|
||||
* Parses a string containing a <link linkend="BUILDER-UI">GtkBuilder
|
||||
* UI definition</link> building only the requested objects and merges
|
||||
* them with the current contents of @builder.
|
||||
*
|
||||
* Upon errors 0 will be returned and @error will be assigned a
|
||||
* #GError from the #GTK_BUILDER_ERROR or #G_MARKUP_ERROR domain.
|
||||
*
|
||||
* <note><para>
|
||||
* If you are adding an object that depends on an object that is not
|
||||
@@ -1121,6 +1353,9 @@ gtk_builder_connect_signals_full (GtkBuilder *builder,
|
||||
* #GtkAdjustment type values. Support for #GtkWidget type values is
|
||||
* still to come.
|
||||
*
|
||||
* Upon errors %FALSE will be returned and @error will be assigned a
|
||||
* #GError from the #GTK_BUILDER_ERROR domain.
|
||||
*
|
||||
* Returns: %TRUE on success
|
||||
*
|
||||
* Since: 2.12
|
||||
@@ -1170,6 +1405,9 @@ gtk_builder_value_from_string (GtkBuilder *builder,
|
||||
* This function calls g_value_init() on the @value argument, so it
|
||||
* need not be initialised beforehand.
|
||||
*
|
||||
* Upon errors %FALSE will be returned and @error will be assigned a
|
||||
* #GError from the #GTK_BUILDER_ERROR domain.
|
||||
*
|
||||
* Returns: %TRUE on success
|
||||
*
|
||||
* Since: 2.12
|
||||
@@ -1390,14 +1628,19 @@ gtk_builder_value_from_string_type (GtkBuilder *builder,
|
||||
ret = FALSE;
|
||||
break;
|
||||
default:
|
||||
g_set_error (error,
|
||||
GTK_BUILDER_ERROR,
|
||||
GTK_BUILDER_ERROR_INVALID_VALUE,
|
||||
"Unsupported GType `%s'",
|
||||
g_type_name (type));
|
||||
ret = FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
/* Catch unassigned error for object types as well as any unsupported types.
|
||||
* While parsing GtkBuilder; object types are deserialized
|
||||
* without calling gtk_builder_value_from_string_type().
|
||||
*/
|
||||
if (!ret && error && *error == NULL)
|
||||
g_set_error (error,
|
||||
GTK_BUILDER_ERROR,
|
||||
GTK_BUILDER_ERROR_INVALID_VALUE,
|
||||
"Unsupported GType `%s'", g_type_name (type));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,29 @@ typedef struct _GtkBuilder GtkBuilder;
|
||||
typedef struct _GtkBuilderClass GtkBuilderClass;
|
||||
typedef struct _GtkBuilderPrivate GtkBuilderPrivate;
|
||||
|
||||
/**
|
||||
* GtkBuilderError:
|
||||
* @GTK_BUILDER_ERROR_INVALID_TYPE_FUNCTION: A type-func attribute didn't name
|
||||
* a function that returns a #GType.
|
||||
* @GTK_BUILDER_ERROR_UNHANDLED_TAG: The input contained a tag that #GtkBuilder
|
||||
* can't handle.
|
||||
* @GTK_BUILDER_ERROR_MISSING_ATTRIBUTE: An attribute that is required by
|
||||
* #GtkBuilder was missing.
|
||||
* @GTK_BUILDER_ERROR_INVALID_ATTRIBUTE: #GtkBuilder found an attribute that
|
||||
* it doesn't understand.
|
||||
* @GTK_BUILDER_ERROR_INVALID_TAG: #GtkBuilder found a tag that
|
||||
* it doesn't understand.
|
||||
* @GTK_BUILDER_ERROR_MISSING_PROPERTY_VALUE: A required property value was
|
||||
* missing.
|
||||
* @GTK_BUILDER_ERROR_INVALID_VALUE: #GtkBuilder couldn't parse
|
||||
* some attribute value.
|
||||
* @GTK_BUILDER_ERROR_VERSION_MISMATCH: The input file requires a newer version
|
||||
* of GTK+.
|
||||
* @GTK_BUILDER_ERROR_DUPLICATE_ID: An object id occurred twice.
|
||||
*
|
||||
* Error codes that identify various errors that can occur while using
|
||||
* #GtkBuilder.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
GTK_BUILDER_ERROR_INVALID_TYPE_FUNCTION,
|
||||
@@ -135,6 +158,14 @@ gboolean gtk_builder_value_from_string_type (GtkBuilder *builder,
|
||||
GValue *value,
|
||||
GError **error);
|
||||
|
||||
/**
|
||||
* GTK_BUILDER_WARN_INVALID_CHILD_TYPE:
|
||||
* @object: the #GtkBuildable on which the warning ocurred
|
||||
* @type: the unexpected type value
|
||||
*
|
||||
* This macro should be used to emit a warning about and unexpected @type value
|
||||
* in a #GtkBuildable add_child implementation.
|
||||
*/
|
||||
#define GTK_BUILDER_WARN_INVALID_CHILD_TYPE(object, type) \
|
||||
g_warning ("'%s' is not a valid child type of '%s'", type, g_type_name (G_OBJECT_TYPE (object)))
|
||||
|
||||
|
||||
+102
-48
@@ -37,6 +37,7 @@
|
||||
#include "gtkstock.h"
|
||||
#include "gtkiconfactory.h"
|
||||
#include "gtkactivatable.h"
|
||||
#include "gtkextendedlayout.h"
|
||||
#include "gtkprivate.h"
|
||||
#include "gtkintl.h"
|
||||
#include "gtkalias.h"
|
||||
@@ -111,8 +112,6 @@ static void gtk_button_unrealize (GtkWidget * widget);
|
||||
static void gtk_button_map (GtkWidget * widget);
|
||||
static void gtk_button_unmap (GtkWidget * widget);
|
||||
static void gtk_button_style_set (GtkWidget * widget, GtkStyle * prev_style);
|
||||
static void gtk_button_size_request (GtkWidget * widget,
|
||||
GtkRequisition * requisition);
|
||||
static void gtk_button_size_allocate (GtkWidget * widget,
|
||||
GtkAllocation * allocation);
|
||||
static gint gtk_button_expose (GtkWidget * widget, GdkEventExpose * event);
|
||||
@@ -148,7 +147,7 @@ static void gtk_button_grab_notify (GtkWidget *widget,
|
||||
gboolean was_grabbed);
|
||||
|
||||
|
||||
static void gtk_button_activatable_interface_init (GtkActivatableIface *iface);
|
||||
static void gtk_button_activatable_interface_init(GtkActivatableIface *iface);
|
||||
static void gtk_button_update (GtkActivatable *activatable,
|
||||
GtkAction *action,
|
||||
const gchar *property_name);
|
||||
@@ -159,11 +158,21 @@ static void gtk_button_set_related_action (GtkButton *button,
|
||||
static void gtk_button_set_use_action_appearance (GtkButton *button,
|
||||
gboolean use_appearance);
|
||||
|
||||
static void gtk_button_extended_layout_init (GtkExtendedLayoutIface *iface);
|
||||
static void gtk_button_get_desired_width (GtkExtendedLayout *layout,
|
||||
gint *minimum_size,
|
||||
gint *natural_size);
|
||||
static void gtk_button_get_desired_height (GtkExtendedLayout *layout,
|
||||
gint *minimum_size,
|
||||
gint *natural_size);
|
||||
|
||||
static guint button_signals[LAST_SIGNAL] = { 0 };
|
||||
|
||||
G_DEFINE_TYPE_WITH_CODE (GtkButton, gtk_button, GTK_TYPE_BIN,
|
||||
G_IMPLEMENT_INTERFACE (GTK_TYPE_ACTIVATABLE,
|
||||
gtk_button_activatable_interface_init))
|
||||
gtk_button_activatable_interface_init)
|
||||
G_IMPLEMENT_INTERFACE (GTK_TYPE_EXTENDED_LAYOUT,
|
||||
gtk_button_extended_layout_init))
|
||||
|
||||
static void
|
||||
gtk_button_class_init (GtkButtonClass *klass)
|
||||
@@ -191,7 +200,6 @@ gtk_button_class_init (GtkButtonClass *klass)
|
||||
widget_class->map = gtk_button_map;
|
||||
widget_class->unmap = gtk_button_unmap;
|
||||
widget_class->style_set = gtk_button_style_set;
|
||||
widget_class->size_request = gtk_button_size_request;
|
||||
widget_class->size_allocate = gtk_button_size_allocate;
|
||||
widget_class->expose_event = gtk_button_expose;
|
||||
widget_class->button_press_event = gtk_button_button_press;
|
||||
@@ -1331,49 +1339,6 @@ gtk_button_get_props (GtkButton *button,
|
||||
if (interior_focus)
|
||||
gtk_widget_style_get (widget, "interior-focus", interior_focus, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_button_size_request (GtkWidget *widget,
|
||||
GtkRequisition *requisition)
|
||||
{
|
||||
GtkButton *button = GTK_BUTTON (widget);
|
||||
GtkBorder default_border;
|
||||
GtkBorder inner_border;
|
||||
gint focus_width;
|
||||
gint focus_pad;
|
||||
|
||||
gtk_button_get_props (button, &default_border, NULL, &inner_border, NULL);
|
||||
gtk_widget_style_get (GTK_WIDGET (widget),
|
||||
"focus-line-width", &focus_width,
|
||||
"focus-padding", &focus_pad,
|
||||
NULL);
|
||||
|
||||
requisition->width = ((GTK_CONTAINER (widget)->border_width +
|
||||
GTK_WIDGET (widget)->style->xthickness) * 2 +
|
||||
inner_border.left + inner_border.right);
|
||||
requisition->height = ((GTK_CONTAINER (widget)->border_width +
|
||||
GTK_WIDGET (widget)->style->ythickness) * 2 +
|
||||
inner_border.top + inner_border.bottom);
|
||||
|
||||
if (gtk_widget_get_can_default (widget))
|
||||
{
|
||||
requisition->width += default_border.left + default_border.right;
|
||||
requisition->height += default_border.top + default_border.bottom;
|
||||
}
|
||||
|
||||
if (GTK_BIN (button)->child && gtk_widget_get_visible (GTK_BIN (button)->child))
|
||||
{
|
||||
GtkRequisition child_requisition;
|
||||
|
||||
gtk_widget_size_request (GTK_BIN (button)->child, &child_requisition);
|
||||
|
||||
requisition->width += child_requisition.width;
|
||||
requisition->height += child_requisition.height;
|
||||
}
|
||||
|
||||
requisition->width += 2 * (focus_width + focus_pad);
|
||||
requisition->height += 2 * (focus_width + focus_pad);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_button_size_allocate (GtkWidget *widget,
|
||||
@@ -1803,6 +1768,95 @@ gtk_button_finish_activate (GtkButton *button,
|
||||
gtk_button_clicked (button);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gtk_button_extended_layout_init (GtkExtendedLayoutIface *iface)
|
||||
{
|
||||
iface->get_desired_width = gtk_button_get_desired_width;
|
||||
iface->get_desired_height = gtk_button_get_desired_height;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_button_get_desired_size (GtkExtendedLayout *layout,
|
||||
GtkOrientation orientation,
|
||||
gint *minimum_size,
|
||||
gint *natural_size)
|
||||
{
|
||||
GtkButton *button = GTK_BUTTON (layout);
|
||||
GtkWidget *child;
|
||||
GtkBorder default_border;
|
||||
GtkBorder inner_border;
|
||||
gint focus_width;
|
||||
gint focus_pad;
|
||||
gint minimum, natural;
|
||||
|
||||
gtk_button_get_props (button, &default_border, NULL, &inner_border, NULL);
|
||||
gtk_widget_style_get (GTK_WIDGET (layout),
|
||||
"focus-line-width", &focus_width,
|
||||
"focus-padding", &focus_pad,
|
||||
NULL);
|
||||
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
{
|
||||
minimum = ((GTK_CONTAINER (layout)->border_width +
|
||||
GTK_WIDGET (layout)->style->xthickness) * 2 +
|
||||
inner_border.left + inner_border.right);
|
||||
|
||||
if (gtk_widget_get_can_default (GTK_WIDGET (layout)))
|
||||
minimum += default_border.left + default_border.right;
|
||||
}
|
||||
else
|
||||
{
|
||||
minimum = ((GTK_CONTAINER (layout)->border_width +
|
||||
GTK_WIDGET (layout)->style->ythickness) * 2 +
|
||||
inner_border.top + inner_border.bottom);
|
||||
|
||||
if (gtk_widget_get_can_default (GTK_WIDGET (layout)))
|
||||
minimum += default_border.top + default_border.bottom;
|
||||
}
|
||||
|
||||
minimum += 2 * (focus_width + focus_pad);
|
||||
natural = minimum;
|
||||
|
||||
if ((child = gtk_bin_get_child (GTK_BIN (button))) &&
|
||||
gtk_widget_get_visible (child))
|
||||
{
|
||||
gint child_min, child_nat;
|
||||
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
gtk_extended_layout_get_desired_width (GTK_EXTENDED_LAYOUT (child),
|
||||
&child_min, &child_nat);
|
||||
else
|
||||
gtk_extended_layout_get_desired_height (GTK_EXTENDED_LAYOUT (child),
|
||||
&child_min, &child_nat);
|
||||
|
||||
minimum += child_min;
|
||||
natural += child_nat;
|
||||
}
|
||||
|
||||
if (minimum_size)
|
||||
*minimum_size = minimum;
|
||||
|
||||
if (natural_size)
|
||||
*natural_size = natural;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_button_get_desired_width (GtkExtendedLayout *layout,
|
||||
gint *minimum_size,
|
||||
gint *natural_size)
|
||||
{
|
||||
gtk_button_get_desired_size (layout, GTK_ORIENTATION_HORIZONTAL, minimum_size, natural_size);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_button_get_desired_height (GtkExtendedLayout *layout,
|
||||
gint *minimum_size,
|
||||
gint *natural_size)
|
||||
{
|
||||
gtk_button_get_desired_size (layout, GTK_ORIENTATION_VERTICAL, minimum_size, natural_size);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_button_set_label:
|
||||
* @button: a #GtkButton
|
||||
|
||||
+60
-95
@@ -25,106 +25,71 @@
|
||||
#include "gtkintl.h"
|
||||
#include "gtkalias.h"
|
||||
|
||||
static void gtk_cell_editable_base_init (GtkCellEditableIface *iface);
|
||||
|
||||
GType
|
||||
gtk_cell_editable_get_type (void)
|
||||
{
|
||||
static GType cell_editable_type = 0;
|
||||
|
||||
if (! cell_editable_type)
|
||||
{
|
||||
const GTypeInfo cell_editable_info =
|
||||
{
|
||||
sizeof (GtkCellEditableIface), /* class_size */
|
||||
(GBaseInitFunc) gtk_cell_editable_base_init, /* base_init */
|
||||
NULL, /* base_finalize */
|
||||
NULL,
|
||||
NULL, /* class_finalize */
|
||||
NULL, /* class_data */
|
||||
0,
|
||||
0,
|
||||
NULL
|
||||
};
|
||||
|
||||
cell_editable_type =
|
||||
g_type_register_static (G_TYPE_INTERFACE, I_("GtkCellEditable"),
|
||||
&cell_editable_info, 0);
|
||||
|
||||
g_type_interface_add_prerequisite (cell_editable_type, GTK_TYPE_WIDGET);
|
||||
}
|
||||
|
||||
return cell_editable_type;
|
||||
}
|
||||
typedef GtkCellEditableIface GtkCellEditableInterface;
|
||||
G_DEFINE_INTERFACE(GtkCellEditable, gtk_cell_editable, GTK_TYPE_WIDGET)
|
||||
|
||||
static void
|
||||
gtk_cell_editable_base_init (GtkCellEditableIface *iface)
|
||||
gtk_cell_editable_default_init (GtkCellEditableInterface *iface)
|
||||
{
|
||||
static gboolean initialized = FALSE;
|
||||
/**
|
||||
* GtkCellEditable:editing-canceled:
|
||||
*
|
||||
* Indicates whether editing on the cell has been canceled.
|
||||
*
|
||||
* Since: 2.20
|
||||
*/
|
||||
g_object_interface_install_property (iface,
|
||||
g_param_spec_boolean ("editing-canceled",
|
||||
P_("Editing Canceled"),
|
||||
P_("Indicates that editing has been canceled"),
|
||||
FALSE,
|
||||
GTK_PARAM_READWRITE));
|
||||
|
||||
if (! initialized)
|
||||
{
|
||||
/**
|
||||
* GtkCellEditable:editing-canceled:
|
||||
*
|
||||
* Indicates whether editing on the cell has been canceled.
|
||||
*
|
||||
* Since: 2.20
|
||||
**/
|
||||
g_object_interface_install_property (iface,
|
||||
g_param_spec_boolean ("editing-canceled",
|
||||
P_("Editing Canceled"),
|
||||
P_("Indicates that editing has been canceled"),
|
||||
FALSE,
|
||||
GTK_PARAM_READWRITE));
|
||||
/**
|
||||
* GtkCellEditable::editing-done:
|
||||
* @cell_editable: the object on which the signal was emitted
|
||||
*
|
||||
* This signal is a sign for the cell renderer to update its
|
||||
* value from the @cell_editable.
|
||||
*
|
||||
* Implementations of #GtkCellEditable are responsible for
|
||||
* emitting this signal when they are done editing, e.g.
|
||||
* #GtkEntry is emitting it when the user presses Enter.
|
||||
*
|
||||
* gtk_cell_editable_editing_done() is a convenience method
|
||||
* for emitting GtkCellEditable::editing-done.
|
||||
*/
|
||||
g_signal_new (I_("editing-done"),
|
||||
GTK_TYPE_CELL_EDITABLE,
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GtkCellEditableIface, editing_done),
|
||||
NULL, NULL,
|
||||
_gtk_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
/**
|
||||
* GtkCellEditable::editing-done:
|
||||
* @cell_editable: the object on which the signal was emitted
|
||||
*
|
||||
* This signal is a sign for the cell renderer to update its
|
||||
* value from the @cell_editable.
|
||||
*
|
||||
* Implementations of #GtkCellEditable are responsible for
|
||||
* emitting this signal when they are done editing, e.g.
|
||||
* #GtkEntry is emitting it when the user presses Enter.
|
||||
*
|
||||
* gtk_cell_editable_editing_done() is a convenience method
|
||||
* for emitting ::editing-done.
|
||||
*/
|
||||
g_signal_new (I_("editing-done"),
|
||||
GTK_TYPE_CELL_EDITABLE,
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GtkCellEditableIface, editing_done),
|
||||
NULL, NULL,
|
||||
_gtk_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
/**
|
||||
* GtkCellEditable::remove-widget:
|
||||
* @cell_editable: the object on which the signal was emitted
|
||||
*
|
||||
* This signal is meant to indicate that the cell is finished
|
||||
* editing, and the widget may now be destroyed.
|
||||
*
|
||||
* Implementations of #GtkCellEditable are responsible for
|
||||
* emitting this signal when they are done editing. It must
|
||||
* be emitted after the #GtkCellEditable::editing-done signal,
|
||||
* to give the cell renderer a chance to update the cell's value
|
||||
* before the widget is removed.
|
||||
*
|
||||
* gtk_cell_editable_remove_widget() is a convenience method
|
||||
* for emitting ::remove-widget.
|
||||
*/
|
||||
g_signal_new (I_("remove-widget"),
|
||||
GTK_TYPE_CELL_EDITABLE,
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GtkCellEditableIface, remove_widget),
|
||||
NULL, NULL,
|
||||
_gtk_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
initialized = TRUE;
|
||||
}
|
||||
/**
|
||||
* GtkCellEditable::remove-widget:
|
||||
* @cell_editable: the object on which the signal was emitted
|
||||
*
|
||||
* This signal is meant to indicate that the cell is finished
|
||||
* editing, and the widget may now be destroyed.
|
||||
*
|
||||
* Implementations of #GtkCellEditable are responsible for
|
||||
* emitting this signal when they are done editing. It must
|
||||
* be emitted after the #GtkCellEditable::editing-done signal,
|
||||
* to give the cell renderer a chance to update the cell's value
|
||||
* before the widget is removed.
|
||||
*
|
||||
* gtk_cell_editable_remove_widget() is a convenience method
|
||||
* for emitting GtkCellEditable::remove-widget.
|
||||
*/
|
||||
g_signal_new (I_("remove-widget"),
|
||||
GTK_TYPE_CELL_EDITABLE,
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GtkCellEditableIface, remove_widget),
|
||||
NULL, NULL,
|
||||
_gtk_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+140
-19
@@ -497,6 +497,7 @@ gtk_cell_renderer_pixbuf_create_themed_pixbuf (GtkCellRendererPixbuf *cellpixbuf
|
||||
GtkIconTheme *icon_theme;
|
||||
GtkSettings *settings;
|
||||
gint width, height;
|
||||
GtkIconInfo *info;
|
||||
|
||||
priv = GTK_CELL_RENDERER_PIXBUF_GET_PRIVATE (cellpixbuf);
|
||||
|
||||
@@ -519,29 +520,140 @@ gtk_cell_renderer_pixbuf_create_themed_pixbuf (GtkCellRendererPixbuf *cellpixbuf
|
||||
}
|
||||
|
||||
if (priv->icon_name)
|
||||
cellpixbuf->pixbuf = gtk_icon_theme_load_icon (icon_theme,
|
||||
priv->icon_name,
|
||||
MIN (width, height),
|
||||
GTK_ICON_LOOKUP_USE_BUILTIN,
|
||||
NULL);
|
||||
info = gtk_icon_theme_lookup_icon (icon_theme,
|
||||
priv->icon_name,
|
||||
MIN (width, height),
|
||||
GTK_ICON_LOOKUP_USE_BUILTIN);
|
||||
else if (priv->gicon)
|
||||
{
|
||||
GtkIconInfo *info;
|
||||
info = gtk_icon_theme_lookup_by_gicon (icon_theme,
|
||||
priv->gicon,
|
||||
MIN (width, height),
|
||||
GTK_ICON_LOOKUP_USE_BUILTIN);
|
||||
else
|
||||
info = NULL;
|
||||
|
||||
info = gtk_icon_theme_lookup_by_gicon (icon_theme,
|
||||
priv->gicon,
|
||||
MIN (width, height),
|
||||
GTK_ICON_LOOKUP_USE_BUILTIN);
|
||||
if (info)
|
||||
{
|
||||
cellpixbuf->pixbuf = gtk_icon_info_load_icon (info, NULL);
|
||||
gtk_icon_info_free (info);
|
||||
}
|
||||
if (info)
|
||||
{
|
||||
GdkColor error_color, warning_color, success_color;
|
||||
GdkColor *error_ptr, *warning_ptr, *success_ptr;
|
||||
GtkStyle *style;
|
||||
|
||||
style = gtk_widget_get_style (GTK_WIDGET (widget));
|
||||
if (!gtk_style_lookup_color (style, "error_color", &error_color))
|
||||
error_ptr = NULL;
|
||||
else
|
||||
error_ptr = &error_color;
|
||||
if (!gtk_style_lookup_color (style, "warning_color", &warning_color))
|
||||
warning_ptr = NULL;
|
||||
else
|
||||
warning_ptr = &warning_color;
|
||||
if (!gtk_style_lookup_color (style, "success_color", &success_color))
|
||||
success_ptr = NULL;
|
||||
else
|
||||
success_ptr = &success_color;
|
||||
|
||||
cellpixbuf->pixbuf = gtk_icon_info_load_symbolic (info,
|
||||
&style->fg[GTK_STATE_NORMAL],
|
||||
success_ptr,
|
||||
warning_ptr,
|
||||
error_ptr,
|
||||
NULL,
|
||||
NULL);
|
||||
gtk_icon_info_free (info);
|
||||
}
|
||||
|
||||
g_object_notify (G_OBJECT (cellpixbuf), "pixbuf");
|
||||
}
|
||||
|
||||
static GdkPixbuf *
|
||||
create_symbolic_pixbuf (GtkCellRendererPixbuf *cellpixbuf,
|
||||
GtkWidget *widget,
|
||||
GdkColor *fg)
|
||||
{
|
||||
GtkCellRendererPixbufPrivate *priv;
|
||||
GdkScreen *screen;
|
||||
GtkIconTheme *icon_theme;
|
||||
GtkSettings *settings;
|
||||
gint width, height;
|
||||
GtkIconInfo *info;
|
||||
GdkPixbuf *pixbuf;
|
||||
|
||||
priv = GTK_CELL_RENDERER_PIXBUF_GET_PRIVATE (cellpixbuf);
|
||||
|
||||
/* Not a named symbolic icon? */
|
||||
if (priv->icon_name) {
|
||||
if (!g_str_has_suffix (priv->icon_name, "-symbolic"))
|
||||
return NULL;
|
||||
} else if (priv->gicon) {
|
||||
const gchar * const *names;
|
||||
if (!G_IS_THEMED_ICON (priv->gicon))
|
||||
return NULL;
|
||||
names = g_themed_icon_get_names (G_THEMED_ICON (priv->gicon));
|
||||
if (names == NULL || !g_str_has_suffix (names[0], "-symbolic"))
|
||||
return NULL;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
screen = gtk_widget_get_screen (GTK_WIDGET (widget));
|
||||
icon_theme = gtk_icon_theme_get_for_screen (screen);
|
||||
settings = gtk_settings_get_for_screen (screen);
|
||||
|
||||
if (!gtk_icon_size_lookup_for_settings (settings,
|
||||
priv->stock_size,
|
||||
&width, &height))
|
||||
{
|
||||
g_warning ("Invalid icon size %u\n", priv->stock_size);
|
||||
width = height = 24;
|
||||
}
|
||||
|
||||
|
||||
if (priv->icon_name)
|
||||
info = gtk_icon_theme_lookup_icon (icon_theme,
|
||||
priv->icon_name,
|
||||
MIN (width, height),
|
||||
GTK_ICON_LOOKUP_USE_BUILTIN);
|
||||
else if (priv->gicon)
|
||||
info = gtk_icon_theme_lookup_by_gicon (icon_theme,
|
||||
priv->gicon,
|
||||
MIN (width, height),
|
||||
GTK_ICON_LOOKUP_USE_BUILTIN);
|
||||
else
|
||||
return NULL;
|
||||
|
||||
if (info)
|
||||
{
|
||||
GdkColor error_color, warning_color, success_color;
|
||||
GdkColor *error_ptr, *warning_ptr, *success_ptr;
|
||||
GtkStyle *style;
|
||||
|
||||
style = gtk_widget_get_style (GTK_WIDGET (widget));
|
||||
if (!gtk_style_lookup_color (style, "error_color", &error_color))
|
||||
error_ptr = NULL;
|
||||
else
|
||||
error_ptr = &error_color;
|
||||
if (!gtk_style_lookup_color (style, "warning_color", &warning_color))
|
||||
warning_ptr = NULL;
|
||||
else
|
||||
warning_ptr = &warning_color;
|
||||
if (!gtk_style_lookup_color (style, "success_color", &success_color))
|
||||
success_ptr = NULL;
|
||||
else
|
||||
success_ptr = &success_color;
|
||||
|
||||
pixbuf = gtk_icon_info_load_symbolic (info,
|
||||
fg,
|
||||
success_ptr,
|
||||
warning_ptr,
|
||||
error_ptr,
|
||||
NULL,
|
||||
NULL);
|
||||
gtk_icon_info_free (info);
|
||||
return pixbuf;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static GdkPixbuf *
|
||||
create_colorized_pixbuf (GdkPixbuf *src,
|
||||
GdkColor *new_color)
|
||||
@@ -678,6 +790,7 @@ gtk_cell_renderer_pixbuf_render (GtkCellRenderer *cell,
|
||||
GdkPixbuf *pixbuf;
|
||||
GdkPixbuf *invisible = NULL;
|
||||
GdkPixbuf *colorized = NULL;
|
||||
GdkPixbuf *symbolic = NULL;
|
||||
GdkRectangle pix_rect;
|
||||
GdkRectangle draw_rect;
|
||||
cairo_t *cr;
|
||||
@@ -755,10 +868,15 @@ gtk_cell_renderer_pixbuf_render (GtkCellRenderer *cell,
|
||||
else
|
||||
state = GTK_STATE_PRELIGHT;
|
||||
|
||||
colorized = create_colorized_pixbuf (pixbuf,
|
||||
&widget->style->base[state]);
|
||||
symbolic = create_symbolic_pixbuf (cellpixbuf, widget, &widget->style->fg[state]);
|
||||
if (!symbolic) {
|
||||
colorized = create_colorized_pixbuf (pixbuf,
|
||||
&widget->style->base[state]);
|
||||
|
||||
pixbuf = colorized;
|
||||
pixbuf = colorized;
|
||||
} else {
|
||||
pixbuf = symbolic;
|
||||
}
|
||||
}
|
||||
|
||||
cr = gdk_cairo_create (window);
|
||||
@@ -774,6 +892,9 @@ gtk_cell_renderer_pixbuf_render (GtkCellRenderer *cell,
|
||||
|
||||
if (colorized)
|
||||
g_object_unref (colorized);
|
||||
|
||||
if (symbolic)
|
||||
g_object_unref (symbolic);
|
||||
}
|
||||
|
||||
#define __GTK_CELL_RENDERER_PIXBUF_C__
|
||||
|
||||
+1
-1
@@ -768,7 +768,7 @@ gtk_cell_view_new_with_text (const gchar *text)
|
||||
* @markup: the text to display in the cell view
|
||||
*
|
||||
* Creates a new #GtkCellView widget, adds a #GtkCellRendererText
|
||||
* to it, and makes its show @markup. The text can text can be
|
||||
* to it, and makes it show @markup. The text can be
|
||||
* marked up with the <link linkend="PangoMarkupFormat">Pango text
|
||||
* markup language</link>.
|
||||
*
|
||||
|
||||
@@ -1370,6 +1370,9 @@ _gtk_container_queue_resize (GtkContainer *container)
|
||||
{
|
||||
GTK_PRIVATE_SET_FLAG (widget, GTK_ALLOC_NEEDED);
|
||||
GTK_PRIVATE_SET_FLAG (widget, GTK_REQUEST_NEEDED);
|
||||
GTK_PRIVATE_SET_FLAG (widget, GTK_WIDTH_REQUEST_NEEDED);
|
||||
GTK_PRIVATE_SET_FLAG (widget, GTK_HEIGHT_REQUEST_NEEDED);
|
||||
|
||||
if ((resize_container && widget == GTK_WIDGET (resize_container)) ||
|
||||
!widget->parent)
|
||||
break;
|
||||
|
||||
+13
-12
@@ -36,18 +36,19 @@
|
||||
G_BEGIN_DECLS
|
||||
|
||||
typedef enum {
|
||||
GTK_DEBUG_MISC = 1 << 0,
|
||||
GTK_DEBUG_PLUGSOCKET = 1 << 1,
|
||||
GTK_DEBUG_TEXT = 1 << 2,
|
||||
GTK_DEBUG_TREE = 1 << 3,
|
||||
GTK_DEBUG_UPDATES = 1 << 4,
|
||||
GTK_DEBUG_KEYBINDINGS = 1 << 5,
|
||||
GTK_DEBUG_MULTIHEAD = 1 << 6,
|
||||
GTK_DEBUG_MODULES = 1 << 7,
|
||||
GTK_DEBUG_GEOMETRY = 1 << 8,
|
||||
GTK_DEBUG_ICONTHEME = 1 << 9,
|
||||
GTK_DEBUG_PRINTING = 1 << 10,
|
||||
GTK_DEBUG_BUILDER = 1 << 11
|
||||
GTK_DEBUG_MISC = 1 << 0,
|
||||
GTK_DEBUG_PLUGSOCKET = 1 << 1,
|
||||
GTK_DEBUG_TEXT = 1 << 2,
|
||||
GTK_DEBUG_TREE = 1 << 3,
|
||||
GTK_DEBUG_UPDATES = 1 << 4,
|
||||
GTK_DEBUG_KEYBINDINGS = 1 << 5,
|
||||
GTK_DEBUG_MULTIHEAD = 1 << 6,
|
||||
GTK_DEBUG_MODULES = 1 << 7,
|
||||
GTK_DEBUG_GEOMETRY = 1 << 8,
|
||||
GTK_DEBUG_ICONTHEME = 1 << 9,
|
||||
GTK_DEBUG_PRINTING = 1 << 10,
|
||||
GTK_DEBUG_BUILDER = 1 << 11,
|
||||
GTK_DEBUG_EXTENDED_LAYOUT = 1 << 12,
|
||||
} GtkDebugFlag;
|
||||
|
||||
#ifdef G_ENABLE_DEBUG
|
||||
|
||||
@@ -208,6 +208,16 @@ typedef enum
|
||||
GTK_MENU_DIR_PREV
|
||||
} GtkMenuDirectionType;
|
||||
|
||||
/**
|
||||
* GtkMessageType:
|
||||
* @GTK_MESSAGE_INFO: Informational message
|
||||
* @GTK_MESSAGE_WARNING: Nonfatal warning message
|
||||
* @GTK_MESSAGE_QUESTION: Question requiring a choice
|
||||
* @GTK_MESSAGE_ERROR: Fatal error message
|
||||
* @GTK_MESSAGE_OTHER: None of the above, doesn't get an icon
|
||||
*
|
||||
* The type of message being displayed in the dialog.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
GTK_MESSAGE_INFO,
|
||||
|
||||
@@ -0,0 +1,535 @@
|
||||
/* gtkextendedlayout.c
|
||||
* Copyright (C) 2007-2010 Openismus GmbH
|
||||
*
|
||||
* Authors:
|
||||
* Mathias Hasselmann <mathias@openismus.com>
|
||||
* Tristan Van Berkom <tristan.van.berkom@gmail.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* SECTION:gtkextendedlayout
|
||||
* @Short_Description: Height-for-width geometry management
|
||||
* @Title: GtkExtendedLayout
|
||||
*
|
||||
* The extended layout is GTK+'s height-for-width (and width-for-height)
|
||||
* geometry management system. Height-for-width means that a widget can
|
||||
* change how much vertical space it needs, depending on the amount
|
||||
* of horizontal space that it is given (and similar for width-for-height).
|
||||
* The most common example is a label that reflows to fill up the available
|
||||
* width, wraps to fewer lines, and therefore needs less height.
|
||||
*
|
||||
* GTK+'s traditional two-pass <link linkend="size-allocation">size-allocation</link>
|
||||
* algorithm does not allow this flexibility. #GtkWidget provides a default
|
||||
* implementation of the #GtkExtendedLayout interface for existing widgets,
|
||||
* which always requests the same height, regardless of the available width.
|
||||
*
|
||||
* <refsect2>
|
||||
* <title>Implementing GtkExtendedLayout</title>
|
||||
* <para>
|
||||
* Some important things to keep in mind when implementing
|
||||
* or using the extended layout.
|
||||
*
|
||||
* The Extended Layout system will query a logical hierarchy in
|
||||
* only one orientation at a time. When widgets are initially queried
|
||||
* for their minimum sizes it is generally done in a dual pass
|
||||
* in the direction chosen by the toplevel.
|
||||
*
|
||||
* For instance when queried in the normal height-for-width mode:
|
||||
* First the default minimum and natural width for each widget
|
||||
* in the interface will computed and collectively returned to
|
||||
* the toplevel by way of gtk_extended_layout_get_desired_width().
|
||||
* Next, the toplevel will use the minimum width to query for the
|
||||
* minimum height contextual to that width using
|
||||
* gtk_extended_layout_get_height_for_width(), which will also be a
|
||||
* highly recursive operation. This minimum-for-minimum size can be
|
||||
* used to set the minimum size constraint on the toplevel.
|
||||
*
|
||||
* When allocating, each container can use the minimum and natural
|
||||
* sizes reported by their children to allocate natural sizes and
|
||||
* expose as much content as possible with the given allocation.
|
||||
*
|
||||
* That means that the request operation at allocation time will
|
||||
* usually fire again in contexts of different allocated sizes than
|
||||
* the ones originally queried for. #GtkExtendedLayout caches a
|
||||
* small number of results to avoid re-querying for the same
|
||||
* allocated size in one allocation cycle.
|
||||
*
|
||||
* A widget that does not actually do height-for-width
|
||||
* or width-for-height size negotiations only has to implement
|
||||
* get_desired_width() and get_desired_height().
|
||||
*
|
||||
* If a widget does move content around to smartly use up the
|
||||
* allocated size, then it must support the request properly in
|
||||
* both orientations; even if the request only makes sense in
|
||||
* one orientation.
|
||||
*
|
||||
* For instance, a GtkLabel that does height-for-width word wrapping
|
||||
* will not expect to have get_desired_height() called because that
|
||||
* call is specific to a width-for-height request, in this case the
|
||||
* label must return the heights contextual to its minimum possible
|
||||
* width. By following this rule any widget that handles height-for-width
|
||||
* or width-for-height requests will always be allocated at least
|
||||
* enough space to fit its own content.
|
||||
* </para>
|
||||
* </refsect2>
|
||||
*/
|
||||
|
||||
|
||||
#include <config.h>
|
||||
#include "gtkextendedlayout.h"
|
||||
#include "gtksizegroup.h"
|
||||
#include "gtkprivate.h"
|
||||
#include "gtkintl.h"
|
||||
#include "gtkalias.h"
|
||||
|
||||
/* With extended layout, a widget may be requested
|
||||
* its width for 2 or maximum 3 heights in one resize
|
||||
*/
|
||||
#define N_CACHED_SIZES 3
|
||||
|
||||
typedef struct
|
||||
{
|
||||
guint age;
|
||||
gint for_size;
|
||||
gint minimum_size;
|
||||
gint natural_size;
|
||||
} DesiredSize;
|
||||
|
||||
typedef struct {
|
||||
DesiredSize desired_widths[N_CACHED_SIZES];
|
||||
DesiredSize desired_heights[N_CACHED_SIZES];
|
||||
guint8 cached_width_age;
|
||||
guint8 cached_height_age;
|
||||
} ExtendedLayoutCache;
|
||||
|
||||
static GQuark quark_cache = 0;
|
||||
|
||||
|
||||
GType
|
||||
gtk_extended_layout_get_type (void)
|
||||
{
|
||||
static GType extended_layout_type = 0;
|
||||
|
||||
if (G_UNLIKELY(!extended_layout_type))
|
||||
{
|
||||
extended_layout_type =
|
||||
g_type_register_static_simple (G_TYPE_INTERFACE, I_("GtkExtendedLayout"),
|
||||
sizeof (GtkExtendedLayoutIface),
|
||||
NULL, 0, NULL, 0);
|
||||
|
||||
g_type_interface_add_prerequisite (extended_layout_type, GTK_TYPE_WIDGET);
|
||||
|
||||
quark_cache = g_quark_from_static_string ("gtk-extended-layout-cache");
|
||||
}
|
||||
|
||||
return extended_layout_type;
|
||||
}
|
||||
|
||||
/* looks for a cached size request for this for_size. If not
|
||||
* found, returns the oldest entry so it can be overwritten
|
||||
*
|
||||
* Note that this caching code was directly derived from
|
||||
* the Clutter toolkit.
|
||||
*/
|
||||
static gboolean
|
||||
get_cached_desired_size (gint for_size,
|
||||
DesiredSize *cached_sizes,
|
||||
DesiredSize **result)
|
||||
{
|
||||
guint i;
|
||||
|
||||
*result = &cached_sizes[0];
|
||||
|
||||
for (i = 0; i < N_CACHED_SIZES; i++)
|
||||
{
|
||||
DesiredSize *cs;
|
||||
|
||||
cs = &cached_sizes[i];
|
||||
|
||||
if (cs->age > 0 && cs->for_size == for_size)
|
||||
{
|
||||
*result = cs;
|
||||
return TRUE;
|
||||
}
|
||||
else if (cs->age < (*result)->age)
|
||||
{
|
||||
*result = cs;
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
destroy_cache (ExtendedLayoutCache *cache)
|
||||
{
|
||||
g_slice_free (ExtendedLayoutCache, cache);
|
||||
}
|
||||
|
||||
static ExtendedLayoutCache *
|
||||
get_cache (GtkExtendedLayout *layout,
|
||||
gboolean create)
|
||||
{
|
||||
ExtendedLayoutCache *cache;
|
||||
|
||||
cache = g_object_get_qdata (G_OBJECT (layout), quark_cache);
|
||||
if (!cache && create)
|
||||
{
|
||||
cache = g_slice_new0 (ExtendedLayoutCache);
|
||||
|
||||
cache->cached_width_age = 1;
|
||||
cache->cached_height_age = 1;
|
||||
|
||||
g_object_set_qdata_full (G_OBJECT (layout), quark_cache, cache,
|
||||
(GDestroyNotify)destroy_cache);
|
||||
}
|
||||
|
||||
return cache;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
do_size_request (GtkWidget *widget)
|
||||
{
|
||||
if (GTK_WIDGET_REQUEST_NEEDED (widget))
|
||||
{
|
||||
gtk_widget_ensure_style (widget);
|
||||
GTK_PRIVATE_UNSET_FLAG (widget, GTK_REQUEST_NEEDED);
|
||||
g_signal_emit_by_name (widget,
|
||||
"size-request",
|
||||
&widget->requisition);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
compute_size_for_orientation (GtkExtendedLayout *layout,
|
||||
GtkSizeGroupMode orientation,
|
||||
gint for_size,
|
||||
gint *minimum_size,
|
||||
gint *natural_size)
|
||||
{
|
||||
ExtendedLayoutCache *cache;
|
||||
DesiredSize *cached_size;
|
||||
GtkWidget *widget;
|
||||
gboolean found_in_cache = FALSE;
|
||||
|
||||
g_return_if_fail (GTK_IS_EXTENDED_LAYOUT (layout));
|
||||
g_return_if_fail (minimum_size != NULL || natural_size != NULL);
|
||||
|
||||
widget = GTK_WIDGET (layout);
|
||||
cache = get_cache (layout, TRUE);
|
||||
|
||||
if (orientation == GTK_SIZE_GROUP_HORIZONTAL)
|
||||
{
|
||||
cached_size = &cache->desired_widths[0];
|
||||
|
||||
if (!GTK_WIDGET_WIDTH_REQUEST_NEEDED (layout))
|
||||
found_in_cache = get_cached_desired_size (for_size, cache->desired_widths, &cached_size);
|
||||
else
|
||||
{
|
||||
memset (cache->desired_widths, 0, N_CACHED_SIZES * sizeof (DesiredSize));
|
||||
cache->cached_width_age = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
cached_size = &cache->desired_heights[0];
|
||||
|
||||
if (!GTK_WIDGET_HEIGHT_REQUEST_NEEDED (layout))
|
||||
found_in_cache = get_cached_desired_size (for_size, cache->desired_heights, &cached_size);
|
||||
else
|
||||
{
|
||||
memset (cache->desired_heights, 0, N_CACHED_SIZES * sizeof (DesiredSize));
|
||||
cache->cached_height_age = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (!found_in_cache)
|
||||
{
|
||||
gint min_size = 0, nat_size = 0;
|
||||
gint group_size, requisition_size;
|
||||
|
||||
/* Unconditional size request runs but is often unhandled. */
|
||||
do_size_request (widget);
|
||||
|
||||
if (orientation == GTK_SIZE_GROUP_HORIZONTAL)
|
||||
{
|
||||
requisition_size = widget->requisition.width;
|
||||
|
||||
if (for_size < 0)
|
||||
GTK_EXTENDED_LAYOUT_GET_IFACE (layout)->get_desired_width (layout, &min_size, &nat_size);
|
||||
else
|
||||
GTK_EXTENDED_LAYOUT_GET_IFACE (layout)->get_width_for_height (layout, for_size, &min_size, &nat_size);
|
||||
}
|
||||
else
|
||||
{
|
||||
requisition_size = widget->requisition.height;
|
||||
|
||||
if (for_size < 0)
|
||||
GTK_EXTENDED_LAYOUT_GET_IFACE (layout)->get_desired_height (layout, &min_size, &nat_size);
|
||||
else
|
||||
GTK_EXTENDED_LAYOUT_GET_IFACE (layout)->get_height_for_width (layout, for_size, &min_size, &nat_size);
|
||||
}
|
||||
|
||||
/* Support for dangling "size-request" signals and forward derived
|
||||
* classes that will not default to a ->get_desired_width() that
|
||||
* returns the values in the ->requisition cache.
|
||||
*/
|
||||
min_size = MAX (min_size, requisition_size);
|
||||
nat_size = MAX (nat_size, requisition_size);
|
||||
|
||||
cached_size->minimum_size = min_size;
|
||||
cached_size->natural_size = nat_size;
|
||||
cached_size->for_size = for_size;
|
||||
|
||||
if (orientation == GTK_SIZE_GROUP_HORIZONTAL)
|
||||
{
|
||||
cached_size->age = cache->cached_width_age;
|
||||
cache->cached_width_age++;
|
||||
|
||||
GTK_PRIVATE_UNSET_FLAG (layout, GTK_WIDTH_REQUEST_NEEDED);
|
||||
}
|
||||
else
|
||||
{
|
||||
cached_size->age = cache->cached_height_age;
|
||||
cache->cached_height_age++;
|
||||
|
||||
GTK_PRIVATE_UNSET_FLAG (layout, GTK_HEIGHT_REQUEST_NEEDED);
|
||||
}
|
||||
|
||||
/* Get size groups to compute the base requisition once one
|
||||
* of the values have been cached, then go ahead and update
|
||||
* the cache with the sizegroup computed value.
|
||||
*
|
||||
* Note this is also where values from gtk_widget_set_size_request()
|
||||
* are considered.
|
||||
*/
|
||||
group_size =
|
||||
_gtk_size_group_bump_requisition (GTK_WIDGET (layout),
|
||||
orientation, cached_size->minimum_size);
|
||||
|
||||
cached_size->minimum_size = MAX (cached_size->minimum_size, group_size);
|
||||
cached_size->natural_size = MAX (cached_size->natural_size, group_size);
|
||||
}
|
||||
|
||||
if (minimum_size)
|
||||
*minimum_size = cached_size->minimum_size;
|
||||
|
||||
if (natural_size)
|
||||
*natural_size = cached_size->natural_size;
|
||||
|
||||
g_assert (cached_size->minimum_size <= cached_size->natural_size);
|
||||
|
||||
GTK_NOTE (EXTENDED_LAYOUT,
|
||||
g_print ("[%p] %s\t%s: %d is minimum %d and natural: %d (hit cache: %s)\n",
|
||||
layout, G_OBJECT_TYPE_NAME (layout),
|
||||
orientation == GTK_SIZE_GROUP_HORIZONTAL ?
|
||||
"width for height" : "height for width" ,
|
||||
for_size,
|
||||
cached_size->minimum_size,
|
||||
cached_size->natural_size,
|
||||
found_in_cache ? "yes" : "no"));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_extended_layout_is_height_for_width:
|
||||
* @layout: a #GtkExtendedLayout instance
|
||||
*
|
||||
* Gets whether the widget prefers a height-for-width layout
|
||||
* or a width-for-height layout.
|
||||
*
|
||||
* <note><para>#GtkBin widgets generally propagate the preference of
|
||||
* their child, container widgets need to request something either in
|
||||
* context of their children or in context of their allocation
|
||||
* capabilities.</para></note>
|
||||
*
|
||||
* Returns: %TRUE if the widget prefers height-for-width, %FALSE if
|
||||
* the widget should be treated with a width-for-height preference.
|
||||
*
|
||||
* Since: 3.0
|
||||
*/
|
||||
gboolean
|
||||
gtk_extended_layout_is_height_for_width (GtkExtendedLayout *layout)
|
||||
{
|
||||
GtkExtendedLayoutIface *iface;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_EXTENDED_LAYOUT (layout), FALSE);
|
||||
|
||||
iface = GTK_EXTENDED_LAYOUT_GET_IFACE (layout);
|
||||
if (iface->is_height_for_width)
|
||||
return iface->is_height_for_width (layout);
|
||||
|
||||
/* By default widgets are height-for-width. */
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_extended_layout_get_desired_width:
|
||||
* @layout: a #GtkExtendedLayout instance
|
||||
* @minimum_width: (allow-none): location to store the minimum width, or %NULL
|
||||
* @natural_width: (allow-none): location to store the natural width, or %NULL
|
||||
*
|
||||
* Retrieves a widget's initial minimum and natural width.
|
||||
*
|
||||
* <note><para>This call is specific to height-for-width
|
||||
* requests.</para></note>
|
||||
*
|
||||
* Since: 3.0
|
||||
*/
|
||||
void
|
||||
gtk_extended_layout_get_desired_width (GtkExtendedLayout *layout,
|
||||
gint *minimum_width,
|
||||
gint *natural_width)
|
||||
{
|
||||
compute_size_for_orientation (layout, GTK_SIZE_GROUP_HORIZONTAL,
|
||||
-1, minimum_width, natural_width);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_extended_layout_get_desired_height:
|
||||
* @layout: a #GtkExtendedLayout instance
|
||||
* @minimum_height: (allow-none): location to store the minimum height, or %NULL
|
||||
* @natural_height: (allow-none): location to store the natural height, or %NULL
|
||||
*
|
||||
* Retrieves a widget's initial minimum and natural height.
|
||||
*
|
||||
* <note><para>This call is specific to width-for-height requests.</para></note>
|
||||
*
|
||||
* Since: 3.0
|
||||
*/
|
||||
void
|
||||
gtk_extended_layout_get_desired_height (GtkExtendedLayout *layout,
|
||||
gint *minimum_height,
|
||||
gint *natural_height)
|
||||
{
|
||||
compute_size_for_orientation (layout, GTK_SIZE_GROUP_VERTICAL,
|
||||
-1, minimum_height, natural_height);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* gtk_extended_layout_get_width_for_height:
|
||||
* @layout: a #GtkExtendedLayout instance
|
||||
* @height: the height which is available for allocation
|
||||
* @minimum_width: (allow-none): location for storing the minimum width, or %NULL
|
||||
* @natural_width: (allow-none): location for storing the natural width, or %NULL
|
||||
*
|
||||
* Retrieves a widget's desired width if it would be given
|
||||
* the specified @height.
|
||||
*
|
||||
* Since: 3.0
|
||||
*/
|
||||
void
|
||||
gtk_extended_layout_get_width_for_height (GtkExtendedLayout *layout,
|
||||
gint height,
|
||||
gint *minimum_width,
|
||||
gint *natural_width)
|
||||
{
|
||||
compute_size_for_orientation (layout, GTK_SIZE_GROUP_HORIZONTAL,
|
||||
height, minimum_width, natural_width);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_extended_layout_get_height_for_width:
|
||||
* @layout: a #GtkExtendedLayout instance
|
||||
* @width: the width which is available for allocation
|
||||
* @minimum_height: (allow-none): location for storing the minimum height, or %NULL
|
||||
* @natural_height: (allow-none): location for storing the natural height, or %NULL
|
||||
*
|
||||
* Retrieves a widget's desired height if it would be given
|
||||
* the specified @width.
|
||||
*
|
||||
* Since: 3.0
|
||||
*/
|
||||
void
|
||||
gtk_extended_layout_get_height_for_width (GtkExtendedLayout *layout,
|
||||
gint width,
|
||||
gint *minimum_height,
|
||||
gint *natural_height)
|
||||
{
|
||||
compute_size_for_orientation (layout, GTK_SIZE_GROUP_VERTICAL,
|
||||
width, minimum_height, natural_height);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_extended_layout_get_desired_size:
|
||||
* @layout: a #GtkExtendedLayout instance
|
||||
* @width: the size which is available for allocation
|
||||
* @request_natural: Whether to base the contextual request off of the
|
||||
* base natural or the base minimum
|
||||
* @minimum_size: (allow-none): location for storing the minimum size, or %NULL
|
||||
* @natural_size: (allow-none): location for storing the natural size, or %NULL
|
||||
*
|
||||
* Retrieves the minimum and natural size of a widget taking
|
||||
* into account the widget's preference for height-for-width management.
|
||||
*
|
||||
* If request_natural is specified, the non-contextual natural value will
|
||||
* be used to make the contextual request; otherwise the minimum will be used.
|
||||
*
|
||||
* This is used to retrieve a suitable size by container widgets which do
|
||||
* not impose any restrictions on the child placement.
|
||||
*
|
||||
* Since: 3.0
|
||||
*/
|
||||
void
|
||||
gtk_extended_layout_get_desired_size (GtkExtendedLayout *layout,
|
||||
gboolean request_natural,
|
||||
GtkRequisition *minimum_size,
|
||||
GtkRequisition *natural_size)
|
||||
{
|
||||
gint min_width, nat_width;
|
||||
gint min_height, nat_height;
|
||||
|
||||
g_return_if_fail (GTK_IS_EXTENDED_LAYOUT (layout));
|
||||
|
||||
if (gtk_extended_layout_is_height_for_width (layout))
|
||||
{
|
||||
gtk_extended_layout_get_desired_width (layout, &min_width, &nat_width);
|
||||
gtk_extended_layout_get_height_for_width (layout,
|
||||
request_natural ? nat_width : min_width,
|
||||
&min_height, &nat_height);
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_extended_layout_get_desired_height (layout, &min_height, &nat_height);
|
||||
gtk_extended_layout_get_width_for_height (layout,
|
||||
request_natural ? nat_height : min_height,
|
||||
&min_width, &nat_width);
|
||||
}
|
||||
|
||||
if (minimum_size)
|
||||
{
|
||||
minimum_size->width = min_width;
|
||||
minimum_size->height = min_height;
|
||||
}
|
||||
|
||||
if (natural_size)
|
||||
{
|
||||
natural_size->width = nat_width;
|
||||
natural_size->height = nat_height;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#define __GTK_EXTENDED_LAYOUT_C__
|
||||
#include "gtkaliasdef.c"
|
||||
@@ -0,0 +1,89 @@
|
||||
/* GTK - The GIMP Toolkit
|
||||
* Copyright (C) 2007-2010 Openismus GmbH
|
||||
*
|
||||
* Authors:
|
||||
* Mathias Hasselmann <mathias@openismus.com>
|
||||
* Tristan Van Berkom <tristan.van.berkom@gmail.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GTK_EXTENDED_LAYOUT_H__
|
||||
#define __GTK_EXTENDED_LAYOUT_H__
|
||||
|
||||
#include <gtk/gtkwidget.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GTK_TYPE_EXTENDED_LAYOUT (gtk_extended_layout_get_type ())
|
||||
#define GTK_EXTENDED_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EXTENDED_LAYOUT, GtkExtendedLayout))
|
||||
#define GTK_EXTENDED_LAYOUT_CLASS(klass) ((GtkExtendedLayoutIface*)g_type_interface_peek ((klass), GTK_TYPE_EXTENDED_LAYOUT))
|
||||
#define GTK_IS_EXTENDED_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EXTENDED_LAYOUT))
|
||||
#define GTK_EXTENDED_LAYOUT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_EXTENDED_LAYOUT, GtkExtendedLayoutIface))
|
||||
|
||||
typedef struct _GtkExtendedLayout GtkExtendedLayout;
|
||||
typedef struct _GtkExtendedLayoutIface GtkExtendedLayoutIface;
|
||||
|
||||
struct _GtkExtendedLayoutIface
|
||||
{
|
||||
GTypeInterface g_iface;
|
||||
|
||||
/* virtual table */
|
||||
gboolean (* is_height_for_width) (GtkExtendedLayout *layout);
|
||||
|
||||
void (* get_desired_width) (GtkExtendedLayout *layout,
|
||||
gint *minimum_width,
|
||||
gint *natural_width);
|
||||
void (* get_desired_height) (GtkExtendedLayout *layout,
|
||||
gint *minimum_height,
|
||||
gint *natural_height);
|
||||
void (* get_width_for_height) (GtkExtendedLayout *layout,
|
||||
gint height,
|
||||
gint *minimum_width,
|
||||
gint *natural_width);
|
||||
void (* get_height_for_width) (GtkExtendedLayout *layout,
|
||||
gint width,
|
||||
gint *minimum_height,
|
||||
gint *natural_height);
|
||||
};
|
||||
|
||||
GType gtk_extended_layout_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean gtk_extended_layout_is_height_for_width (GtkExtendedLayout *layout);
|
||||
void gtk_extended_layout_get_desired_width (GtkExtendedLayout *layout,
|
||||
gint *minimum_width,
|
||||
gint *natural_width);
|
||||
void gtk_extended_layout_get_desired_height (GtkExtendedLayout *layout,
|
||||
gint *minimum_height,
|
||||
gint *natural_height);
|
||||
void gtk_extended_layout_get_width_for_height (GtkExtendedLayout *layout,
|
||||
gint height,
|
||||
gint *minimum_width,
|
||||
gint *natural_width);
|
||||
void gtk_extended_layout_get_height_for_width (GtkExtendedLayout *layout,
|
||||
gint width,
|
||||
gint *minimum_height,
|
||||
gint *natural_height);
|
||||
|
||||
void gtk_extended_layout_get_desired_size (GtkExtendedLayout *layout,
|
||||
gboolean request_natural,
|
||||
GtkRequisition *minimum_size,
|
||||
GtkRequisition *natural_size);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_EXTENDED_LAYOUT_H__ */
|
||||
@@ -72,6 +72,7 @@
|
||||
* </listitem>
|
||||
* </varlistentry>
|
||||
* </variablelist>
|
||||
*
|
||||
* <refsect2 id="gtkfilechooser-encodings">
|
||||
* <title>File Names and Encodings</title>
|
||||
* When the user is finished selecting files in a
|
||||
@@ -322,7 +323,7 @@
|
||||
* </variablelist>
|
||||
* <note>
|
||||
* You can create your own bindings for the
|
||||
* GtkFileChooserDefault::location-popup signal with custom
|
||||
* #GtkFileChooserDefault::location-popup signal with custom
|
||||
* <parameter>path</parameter> strings, and have a crude form
|
||||
* of easily-to-type bookmarks. For example, say you access
|
||||
* the path <filename>/home/username/misc</filename> very
|
||||
@@ -503,7 +504,11 @@
|
||||
* </listitem>
|
||||
* </varlistentry>
|
||||
* <varlistentry>
|
||||
<<<<<<< HEAD
|
||||
* <term><parameter>bookmark_indes</parameter> :</term>
|
||||
=======
|
||||
* <term><parameter>bookmark_index</parameter> :</term>
|
||||
>>>>>>> native-layout-incubator
|
||||
* <listitem>
|
||||
* <simpara>
|
||||
* index of the bookmark to switch to; the indices start at 0.
|
||||
|
||||
+11
-15
@@ -228,15 +228,6 @@ enum {
|
||||
GTK_TREE_MODEL_ROW,
|
||||
};
|
||||
|
||||
static gboolean
|
||||
search_is_possible (GtkFileChooserDefault *impl)
|
||||
{
|
||||
if (impl->search_engine == NULL)
|
||||
impl->search_engine = _gtk_search_engine_new ();
|
||||
|
||||
return impl->search_engine != NULL;
|
||||
}
|
||||
|
||||
/* Interesting places in the shortcuts bar */
|
||||
typedef enum {
|
||||
SHORTCUTS_SEARCH,
|
||||
@@ -2266,10 +2257,7 @@ shortcuts_model_create (GtkFileChooserDefault *impl)
|
||||
G_TYPE_BOOLEAN, /* pixbuf cell visibility */
|
||||
G_TYPE_POINTER); /* GCancellable */
|
||||
|
||||
if (search_is_possible (impl))
|
||||
{
|
||||
shortcuts_append_search (impl);
|
||||
}
|
||||
shortcuts_append_search (impl);
|
||||
|
||||
if (impl->recent_manager)
|
||||
{
|
||||
@@ -8594,8 +8582,16 @@ gtk_file_chooser_default_should_respond (GtkFileChooserEmbed *chooser_embed)
|
||||
entry = GTK_FILE_CHOOSER_ENTRY (impl->location_entry);
|
||||
check_save_entry (impl, &file, &is_well_formed, &is_empty, &is_file_part_empty, &is_folder);
|
||||
|
||||
if (is_empty || !is_well_formed)
|
||||
return FALSE;
|
||||
if (!is_well_formed)
|
||||
return FALSE;
|
||||
|
||||
if (is_empty)
|
||||
{
|
||||
if (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE)
|
||||
return FALSE;
|
||||
|
||||
goto file_list;
|
||||
}
|
||||
|
||||
g_assert (file != NULL);
|
||||
|
||||
|
||||
@@ -1199,9 +1199,11 @@ gtk_file_system_model_got_enumerator (GObject *dir, GAsyncResult *res, gpointer
|
||||
enumerator = g_file_enumerate_children_finish (G_FILE (dir), res, &error);
|
||||
if (enumerator == NULL)
|
||||
{
|
||||
g_signal_emit (model, file_system_model_signals[FINISHED_LOADING], 0, error);
|
||||
g_object_unref (model);
|
||||
g_error_free (error);
|
||||
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
|
||||
{
|
||||
g_signal_emit (model, file_system_model_signals[FINISHED_LOADING], 0, error);
|
||||
g_error_free (error);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1745,6 +1747,7 @@ remove_file (GtkFileSystemModel *model,
|
||||
g_object_unref (node->info);
|
||||
|
||||
g_array_remove_index (model->files, id);
|
||||
g_hash_table_remove_all (model->file_lookup);
|
||||
/* We don't need to resort, as removing a row doesn't change the sorting order */
|
||||
}
|
||||
|
||||
|
||||
+116
-42
@@ -31,6 +31,7 @@
|
||||
#include "gtkprivate.h"
|
||||
#include "gtkintl.h"
|
||||
#include "gtkbuildable.h"
|
||||
#include "gtkextendedlayout.h"
|
||||
#include "gtkalias.h"
|
||||
|
||||
#define LABEL_PAD 1
|
||||
@@ -58,8 +59,6 @@ static void gtk_frame_paint (GtkWidget *widget,
|
||||
GdkRectangle *area);
|
||||
static gint gtk_frame_expose (GtkWidget *widget,
|
||||
GdkEventExpose *event);
|
||||
static void gtk_frame_size_request (GtkWidget *widget,
|
||||
GtkRequisition *requisition);
|
||||
static void gtk_frame_size_allocate (GtkWidget *widget,
|
||||
GtkAllocation *allocation);
|
||||
static void gtk_frame_remove (GtkContainer *container,
|
||||
@@ -81,9 +80,19 @@ static void gtk_frame_buildable_add_child (GtkBuildable *buildable,
|
||||
GObject *child,
|
||||
const gchar *type);
|
||||
|
||||
static void gtk_frame_extended_layout_init (GtkExtendedLayoutIface *iface);
|
||||
static void gtk_frame_get_desired_width (GtkExtendedLayout *layout,
|
||||
gint *minimum_size,
|
||||
gint *natural_size);
|
||||
static void gtk_frame_get_desired_height (GtkExtendedLayout *layout,
|
||||
gint *minimum_size,
|
||||
gint *natural_size);
|
||||
|
||||
G_DEFINE_TYPE_WITH_CODE (GtkFrame, gtk_frame, GTK_TYPE_BIN,
|
||||
G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE,
|
||||
gtk_frame_buildable_init))
|
||||
gtk_frame_buildable_init)
|
||||
G_IMPLEMENT_INTERFACE (GTK_TYPE_EXTENDED_LAYOUT,
|
||||
gtk_frame_extended_layout_init))
|
||||
|
||||
static void
|
||||
gtk_frame_class_init (GtkFrameClass *class)
|
||||
@@ -150,7 +159,6 @@ gtk_frame_class_init (GtkFrameClass *class)
|
||||
GTK_PARAM_READWRITE));
|
||||
|
||||
widget_class->expose_event = gtk_frame_expose;
|
||||
widget_class->size_request = gtk_frame_size_request;
|
||||
widget_class->size_allocate = gtk_frame_size_allocate;
|
||||
|
||||
container_class->remove = gtk_frame_remove;
|
||||
@@ -601,42 +609,6 @@ gtk_frame_expose (GtkWidget *widget,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_frame_size_request (GtkWidget *widget,
|
||||
GtkRequisition *requisition)
|
||||
{
|
||||
GtkFrame *frame = GTK_FRAME (widget);
|
||||
GtkBin *bin = GTK_BIN (widget);
|
||||
GtkRequisition child_requisition;
|
||||
|
||||
if (frame->label_widget && gtk_widget_get_visible (frame->label_widget))
|
||||
{
|
||||
gtk_widget_size_request (frame->label_widget, &child_requisition);
|
||||
|
||||
requisition->width = child_requisition.width + 2 * LABEL_PAD + 2 * LABEL_SIDE_PAD;
|
||||
requisition->height =
|
||||
MAX (0, child_requisition.height - widget->style->ythickness);
|
||||
}
|
||||
else
|
||||
{
|
||||
requisition->width = 0;
|
||||
requisition->height = 0;
|
||||
}
|
||||
|
||||
if (bin->child && gtk_widget_get_visible (bin->child))
|
||||
{
|
||||
gtk_widget_size_request (bin->child, &child_requisition);
|
||||
|
||||
requisition->width = MAX (requisition->width, child_requisition.width);
|
||||
requisition->height += child_requisition.height;
|
||||
}
|
||||
|
||||
requisition->width += (GTK_CONTAINER (widget)->border_width +
|
||||
GTK_WIDGET (widget)->style->xthickness) * 2;
|
||||
requisition->height += (GTK_CONTAINER (widget)->border_width +
|
||||
GTK_WIDGET (widget)->style->ythickness) * 2;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_frame_size_allocate (GtkWidget *widget,
|
||||
GtkAllocation *allocation)
|
||||
@@ -652,11 +624,15 @@ gtk_frame_size_allocate (GtkWidget *widget,
|
||||
/* If the child allocation changed, that means that the frame is drawn
|
||||
* in a new place, so we must redraw the entire widget.
|
||||
*/
|
||||
if (gtk_widget_get_mapped (widget) &&
|
||||
if (gtk_widget_get_mapped (widget)
|
||||
#if 0
|
||||
&&
|
||||
(new_allocation.x != frame->child_allocation.x ||
|
||||
new_allocation.y != frame->child_allocation.y ||
|
||||
new_allocation.width != frame->child_allocation.width ||
|
||||
new_allocation.height != frame->child_allocation.height))
|
||||
new_allocation.height != frame->child_allocation.height)
|
||||
#endif
|
||||
)
|
||||
gdk_window_invalidate_rect (widget->window, &widget->allocation, FALSE);
|
||||
|
||||
if (bin->child && gtk_widget_get_visible (bin->child))
|
||||
@@ -728,5 +704,103 @@ gtk_frame_real_compute_child_allocation (GtkFrame *frame,
|
||||
child_allocation->y += allocation->y;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_frame_get_desired_size (GtkExtendedLayout *layout,
|
||||
GtkOrientation orientation,
|
||||
gint *minimum_size,
|
||||
gint *natural_size)
|
||||
{
|
||||
GtkWidget *widget = GTK_WIDGET (layout);
|
||||
GtkFrame *frame = GTK_FRAME (widget);
|
||||
GtkBin *bin = GTK_BIN (widget);
|
||||
gint child_min, child_nat;
|
||||
gint minimum, natural;
|
||||
|
||||
if (frame->label_widget && gtk_widget_get_visible (frame->label_widget))
|
||||
{
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
{
|
||||
gtk_extended_layout_get_desired_width (GTK_EXTENDED_LAYOUT (frame->label_widget),
|
||||
&child_min, &child_nat);
|
||||
minimum = child_min + 2 * LABEL_PAD + 2 * LABEL_SIDE_PAD;
|
||||
natural = child_nat + 2 * LABEL_PAD + 2 * LABEL_SIDE_PAD;
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_extended_layout_get_desired_height (GTK_EXTENDED_LAYOUT (frame->label_widget),
|
||||
&child_min, &child_nat);
|
||||
minimum = MAX (0, child_min - widget->style->ythickness);
|
||||
natural = MAX (0, child_nat - widget->style->ythickness);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
minimum = 0;
|
||||
natural = 0;
|
||||
}
|
||||
|
||||
if (bin->child && gtk_widget_get_visible (bin->child))
|
||||
{
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
{
|
||||
gtk_extended_layout_get_desired_width (GTK_EXTENDED_LAYOUT (bin->child),
|
||||
&child_min, &child_nat);
|
||||
minimum = MAX (minimum, child_min);
|
||||
natural = MAX (natural, child_nat);
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_extended_layout_get_desired_height (GTK_EXTENDED_LAYOUT (bin->child),
|
||||
&child_min, &child_nat);
|
||||
minimum += child_min;
|
||||
natural += child_nat;
|
||||
}
|
||||
}
|
||||
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
{
|
||||
minimum += (GTK_CONTAINER (widget)->border_width +
|
||||
GTK_WIDGET (widget)->style->xthickness) * 2;
|
||||
natural += (GTK_CONTAINER (widget)->border_width +
|
||||
GTK_WIDGET (widget)->style->xthickness) * 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
minimum += (GTK_CONTAINER (widget)->border_width +
|
||||
GTK_WIDGET (widget)->style->ythickness) * 2;
|
||||
natural += (GTK_CONTAINER (widget)->border_width +
|
||||
GTK_WIDGET (widget)->style->ythickness) * 2;
|
||||
}
|
||||
|
||||
if (minimum_size)
|
||||
*minimum_size = minimum;
|
||||
|
||||
if (natural_size)
|
||||
*natural_size = natural;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_frame_get_desired_width (GtkExtendedLayout *layout,
|
||||
gint *minimum_size,
|
||||
gint *natural_size)
|
||||
{
|
||||
gtk_frame_get_desired_size (layout, GTK_ORIENTATION_HORIZONTAL, minimum_size, natural_size);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_frame_get_desired_height (GtkExtendedLayout *layout,
|
||||
gint *minimum_size,
|
||||
gint *natural_size)
|
||||
{
|
||||
gtk_frame_get_desired_size (layout, GTK_ORIENTATION_VERTICAL, minimum_size, natural_size);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_frame_extended_layout_init (GtkExtendedLayoutIface *iface)
|
||||
{
|
||||
iface->get_desired_width = gtk_frame_get_desired_width;
|
||||
iface->get_desired_height = gtk_frame_get_desired_height;
|
||||
}
|
||||
|
||||
#define __GTK_FRAME_C__
|
||||
#include "gtkaliasdef.c"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user