/usr/share/gir-1.0/Dbusmenu-0.4.gir is in libdbusmenu-glib-dev 12.10.3+14.04.20140319-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 | <?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GObject" version="2.0"/>
<package name="dbusmenu-glib-0.4"/>
<c:include name="libdbusmenu-glib/client.h"/>
<c:include name="libdbusmenu-glib/dbusmenu-glib.h"/>
<c:include name="libdbusmenu-glib/enum-types.h"/>
<c:include name="libdbusmenu-glib/menuitem-proxy.h"/>
<c:include name="libdbusmenu-glib/menuitem.h"/>
<c:include name="libdbusmenu-glib/server.h"/>
<c:include name="libdbusmenu-glib/types.h"/>
<namespace name="Dbusmenu"
version="0.4"
shared-library="libdbusmenu-glib.so.4"
c:identifier-prefixes="Dbusmenu"
c:symbol-prefixes="dbusmenu">
<constant name="CLIENT_PROP_DBUS_NAME"
value="dbus-name"
c:type="DBUSMENU_CLIENT_PROP_DBUS_NAME">
<doc xml:space="preserve">String to access property #DbusmenuClient:dbus-name</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_PROP_DBUS_OBJECT"
value="dbus-object"
c:type="DBUSMENU_CLIENT_PROP_DBUS_OBJECT">
<doc xml:space="preserve">String to access property #DbusmenuClient:dbus-object</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_PROP_GROUP_EVENTS"
value="group-events"
c:type="DBUSMENU_CLIENT_PROP_GROUP_EVENTS">
<doc xml:space="preserve">String to access property #DbusmenuClient:group-events</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_PROP_STATUS"
value="status"
c:type="DBUSMENU_CLIENT_PROP_STATUS">
<doc xml:space="preserve">String to access property #DbusmenuClient:status</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_PROP_TEXT_DIRECTION"
value="text-direction"
c:type="DBUSMENU_CLIENT_PROP_TEXT_DIRECTION">
<doc xml:space="preserve">String to access property #DbusmenuClient:text-direction</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_SIGNAL_EVENT_RESULT"
value="event-result"
c:type="DBUSMENU_CLIENT_SIGNAL_EVENT_RESULT">
<doc xml:space="preserve">String to attach to signal #DbusmenuClient::event-result</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_SIGNAL_ICON_THEME_DIRS_CHANGED"
value="icon-theme-dirs-changed"
c:type="DBUSMENU_CLIENT_SIGNAL_ICON_THEME_DIRS_CHANGED">
<doc xml:space="preserve">String to attach to signal #DbusmenuClient::icon-theme-dirs-changed</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_SIGNAL_ITEM_ACTIVATE"
value="item-activate"
c:type="DBUSMENU_CLIENT_SIGNAL_ITEM_ACTIVATE">
<doc xml:space="preserve">String to attach to signal #DbusmenuClient::item-activate</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_SIGNAL_LAYOUT_UPDATED"
value="layout-updated"
c:type="DBUSMENU_CLIENT_SIGNAL_LAYOUT_UPDATED">
<doc xml:space="preserve">String to attach to signal #DbusmenuClient::layout-updated</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_SIGNAL_NEW_MENUITEM"
value="new-menuitem"
c:type="DBUSMENU_CLIENT_SIGNAL_NEW_MENUITEM">
<doc xml:space="preserve">String to attach to signal #DbusmenuClient::new-menuitem</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_SIGNAL_ROOT_CHANGED"
value="root-changed"
c:type="DBUSMENU_CLIENT_SIGNAL_ROOT_CHANGED">
<doc xml:space="preserve">String to attach to signal #DbusmenuClient::root-changed</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_TYPES_DEFAULT"
value="standard"
c:type="DBUSMENU_CLIENT_TYPES_DEFAULT">
<doc xml:space="preserve">Used to set the 'type' property on a menu item to create
a standard menu item.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_TYPES_IMAGE"
value="standard"
c:type="DBUSMENU_CLIENT_TYPES_IMAGE">
<doc xml:space="preserve">Used to set the 'type' property on a menu item to create
an image menu item. Deprecated as standard menu items now
support images as well.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_TYPES_SEPARATOR"
value="separator"
c:type="DBUSMENU_CLIENT_TYPES_SEPARATOR">
<doc xml:space="preserve">Used to set the 'type' property on a menu item to create
a separator menu item.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<class name="Client"
c:symbol-prefix="client"
c:type="DbusmenuClient"
parent="GObject.Object"
glib:type-name="DbusmenuClient"
glib:get-type="dbusmenu_client_get_type"
glib:type-struct="ClientClass">
<doc xml:space="preserve">The client for a #DbusmenuServer creating a shared
object set of #DbusmenuMenuitem objects.</doc>
<constructor name="new" c:identifier="dbusmenu_client_new">
<doc xml:space="preserve">This function creates a new client that connects to a specific
server on DBus. That server is at a specific location sharing
a known object. The interface is assumed by the code to be
the DBus menu interface. The newly created client will start
sending out events as it syncs up with the server.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A brand new #DbusmenuClient</doc>
<type name="Client" c:type="DbusmenuClient*"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">The DBus name for the server to connect to</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="object" transfer-ownership="none">
<doc xml:space="preserve">The object on the server to monitor</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</constructor>
<method name="add_type_handler"
c:identifier="dbusmenu_client_add_type_handler">
<doc xml:space="preserve">This function connects into the type handling of the #DbusmenuClient.
Every new menuitem that comes in immediately gets asked for its
properties. When we get those properties we check the 'type'
property and look to see if it matches a handler that is known
by the client. If so, the @newfunc function is executed on that
#DbusmenuMenuitem. If not, then the DbusmenuClient::new-menuitem
signal is sent.
In the future the known types will be sent to the server so that it
can make choices about the menu item types availble.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">If registering the new type was successful.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">Client where we're getting types coming in</doc>
<type name="Client" c:type="DbusmenuClient*"/>
</instance-parameter>
<parameter name="type" transfer-ownership="none">
<doc xml:space="preserve">A text string that will be matched with the 'type'
property on incoming menu items</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="newfunc" transfer-ownership="none" scope="notified">
<doc xml:space="preserve">The function that will be executed with those new
items when they come in.</doc>
<type name="ClientTypeHandler" c:type="DbusmenuClientTypeHandler"/>
</parameter>
</parameters>
</method>
<method name="add_type_handler_full"
c:identifier="dbusmenu_client_add_type_handler_full">
<doc xml:space="preserve">This function connects into the type handling of the #DbusmenuClient.
Every new menuitem that comes in immediately gets asked for its
properties. When we get those properties we check the 'type'
property and look to see if it matches a handler that is known
by the client. If so, the @newfunc function is executed on that
#DbusmenuMenuitem. If not, then the DbusmenuClient::new-menuitem
signal is sent.
In the future the known types will be sent to the server so that it
can make choices about the menu item types availble.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">If registering the new type was successful.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">Client where we're getting types coming in</doc>
<type name="Client" c:type="DbusmenuClient*"/>
</instance-parameter>
<parameter name="type" transfer-ownership="none">
<doc xml:space="preserve">A text string that will be matched with the 'type'
property on incoming menu items</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="newfunc"
transfer-ownership="none"
scope="notified"
closure="2"
destroy="3">
<doc xml:space="preserve">The function that will be executed with those new
items when they come in.</doc>
<type name="ClientTypeHandler" c:type="DbusmenuClientTypeHandler"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:space="preserve">Data passed to @newfunc when it is called</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="destroy_func"
transfer-ownership="none"
scope="async">
<doc xml:space="preserve">A function that is called when the type handler is
removed (usually on client destruction) which will free
the resources in @user_data.</doc>
<type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
</parameter>
</parameters>
</method>
<method name="get_icon_paths"
c:identifier="dbusmenu_client_get_icon_paths">
<doc xml:space="preserve">Gets the stored and exported icon paths from the client.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A NULL-terminated list of icon paths with
memory managed by the client. Duplicate if you want
to keep them.</doc>
<array c:type="GStrv">
<type name="utf8"/>
</array>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuClient to get the icon paths from</doc>
<type name="Client" c:type="DbusmenuClient*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_root" c:identifier="dbusmenu_client_get_root">
<doc xml:space="preserve">Grabs the root node for the specified client @client. This
function may block. It will block if there is currently a
call to update the layout, it will block on that layout
updated and then return the newly updated layout. Chances
are that this update is in the queue for the mainloop as
it would have been requested some time ago, but in theory
it could block longer.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A #DbusmenuMenuitem representing the root of
menu on the server. If there is no server or there is
an error receiving its layout it'll return #NULL.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuClient to get the root node from</doc>
<type name="Client" c:type="DbusmenuClient*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_status" c:identifier="dbusmenu_client_get_status">
<doc xml:space="preserve">Gets the recommended current status that the server
is exporting for the menus. In situtations where the
value is #DBUSMENU_STATUS_NOTICE it is recommended that
the client show the menus to the user an a more noticible
way.
Return value: Status being exported.</doc>
<return-value transfer-ownership="none">
<type name="Status" c:type="DbusmenuStatus"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">#DbusmenuClient to check the status on</doc>
<type name="Client" c:type="DbusmenuClient*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_text_direction"
c:identifier="dbusmenu_client_get_text_direction">
<doc xml:space="preserve">Gets the text direction that the server is exporting. If
the server is not exporting a direction then the value
#DBUSMENU_TEXT_DIRECTION_NONE will be returned.
Return value: Text direction being exported.</doc>
<return-value transfer-ownership="none">
<type name="TextDirection" c:type="DbusmenuTextDirection"/>
</return-value>
<parameters>
<instance-parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">#DbusmenuClient to check the text direction on</doc>
<type name="Client" c:type="DbusmenuClient*"/>
</instance-parameter>
</parameters>
</method>
<property name="dbus-name"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="dbus-object"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="group-events" writable="1" transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="status" introspectable="0" transfer-ownership="none">
<type/>
</property>
<property name="text-direction"
introspectable="0"
transfer-ownership="none">
<type/>
</property>
<field name="parent" readable="0" private="1">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv" readable="0" private="1">
<type name="ClientPrivate" c:type="DbusmenuClientPrivate*"/>
</field>
<glib:signal name="event-result" when="last">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="GObject.Object"/>
</parameter>
<parameter name="p0" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="p1" transfer-ownership="none">
<type name="GLib.Variant"/>
</parameter>
<parameter name="p2" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="p3" transfer-ownership="none">
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="icon-theme-dirs-changed" when="last">
<doc xml:space="preserve">Signaled when the theme directories are changed by the server.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">A #GStrv of theme directories</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="item-activate" when="last">
<doc xml:space="preserve">Signaled when the server wants to activate an item in
order to display the menu.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem activated</doc>
<type name="GObject.Object"/>
</parameter>
<parameter name="arg2" transfer-ownership="none">
<doc xml:space="preserve">A timestamp that the event happened at</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="layout-updated" when="last">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</glib:signal>
<glib:signal name="new-menuitem" when="last">
<doc xml:space="preserve">Signaled when the client creates a new menuitem. This
doesn't mean that it's placed anywhere. The parent that
it's applied to will signal #DbusmenuMenuitem::child-added
when it gets parented.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">The new #DbusmenuMenuitem created</doc>
<type name="GObject.Object"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="root-changed" when="last">
<doc xml:space="preserve">The layout has changed in a way that can not be
represented by the individual items changing as the
root of this client has changed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">The new root #DbusmenuMenuitem</doc>
<type name="GObject.Object"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="ClientClass"
c:type="DbusmenuClientClass"
glib:is-gtype-struct-for="Client">
<doc xml:space="preserve">A simple class that takes all of the information from a
#DbusmenuServer over DBus and makes the same set of
#DbusmenuMenuitem objects appear on the other side.</doc>
<field name="parent_class">
<doc xml:space="preserve">#GObjectClass</doc>
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="layout_updated">
<callback name="layout_updated">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="root_changed">
<callback name="root_changed">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="newroot" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="new_menuitem">
<callback name="new_menuitem">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="newitem" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="item_activate">
<callback name="item_activate">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="item" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</callback>
</field>
<field name="event_result">
<callback name="event_result">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="item" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="event" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<type name="GLib.Error" c:type="GError*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="icon_theme_dirs">
<callback name="icon_theme_dirs">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="item" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="theme_dirs" transfer-ownership="none">
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<type name="GLib.Error" c:type="GError*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="reserved1">
<callback name="reserved1">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved2">
<callback name="reserved2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved3">
<callback name="reserved3">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved4">
<callback name="reserved4">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved5">
<callback name="reserved5">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
</record>
<record name="ClientPrivate" c:type="DbusmenuClientPrivate" disguised="1">
</record>
<callback name="ClientTypeHandler" c:type="DbusmenuClientTypeHandler">
<doc xml:space="preserve">The type handler is called when a dbusmenu item is created
with a matching type as setup in #dbusmenu_client_add_type_handler
Return value: #TRUE if the type has been handled. #FALSE if this
function was somehow unable to handle it.</doc>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="newitem" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem that was created</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="parent" transfer-ownership="none">
<doc xml:space="preserve">The parent of @newitem or #NULL if none</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="client" transfer-ownership="none">
<doc xml:space="preserve">A pointer to the #DbusmenuClient</doc>
<type name="Client" c:type="DbusmenuClient*"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" closure="3">
<doc xml:space="preserve">The data you gave us</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
<constant name="MENUITEM_CHILD_DISPLAY_SUBMENU"
value="submenu"
c:type="DBUSMENU_MENUITEM_CHILD_DISPLAY_SUBMENU">
<doc xml:space="preserve">Used in #DBUSMENU_MENUITEM_PROP_CHILD_DISPLAY to have the
subitems displayed as a submenu.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_DISPOSITION_ALERT"
value="alert"
c:type="DBUSMENU_MENUITEM_DISPOSITION_ALERT">
<doc xml:space="preserve">Used in #DBUSMENU_MENUITEM_PROP_DISPOSITION to have a menu
item displayed in a way that conveys it's giving an alert
to the user.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_DISPOSITION_INFORMATIVE"
value="informative"
c:type="DBUSMENU_MENUITEM_DISPOSITION_INFORMATIVE">
<doc xml:space="preserve">Used in #DBUSMENU_MENUITEM_PROP_DISPOSITION to have a menu
item displayed in a way that conveys it's giving additional
information to the user.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_DISPOSITION_NORMAL"
value="normal"
c:type="DBUSMENU_MENUITEM_DISPOSITION_NORMAL">
<doc xml:space="preserve">Used in #DBUSMENU_MENUITEM_PROP_DISPOSITION to have a menu
item displayed in the normal manner. Default value.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_DISPOSITION_WARNING"
value="warning"
c:type="DBUSMENU_MENUITEM_DISPOSITION_WARNING">
<doc xml:space="preserve">Used in #DBUSMENU_MENUITEM_PROP_DISPOSITION to have a menu
item displayed in a way that conveys it's giving a warning
to the user.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_EVENT_ACTIVATED"
value="clicked"
c:type="DBUSMENU_MENUITEM_EVENT_ACTIVATED">
<doc xml:space="preserve">String for the event identifier when a menu item is clicked
on by the user.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_EVENT_CLOSED"
value="closed"
c:type="DBUSMENU_MENUITEM_EVENT_CLOSED">
<doc xml:space="preserve">String for the event identifier when a menu is closed and
displayed to the user. Only valid for items that contain
submenus.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_EVENT_OPENED"
value="opened"
c:type="DBUSMENU_MENUITEM_EVENT_OPENED">
<doc xml:space="preserve">String for the event identifier when a menu is opened and
displayed to the user. Only valid for items that contain
submenus.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_ICON_NAME_BLANK"
value="blank-icon"
c:type="DBUSMENU_MENUITEM_ICON_NAME_BLANK">
<doc xml:space="preserve">Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_STATE so that the menu's
toggle item is undecided.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_ACCESSIBLE_DESC"
value="accessible-desc"
c:type="DBUSMENU_MENUITEM_PROP_ACCESSIBLE_DESC">
<doc xml:space="preserve">#DbusmenuMenuitem property used to provide a textual description of any
information that the icon may convey. The contents of this property are
passed through to assistive technologies such as the Orca screen reader.
The contents of this property will not be visible in the menu item. If
this property is set, Orca will use this property instead of the label
property.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_CHILD_DISPLAY"
value="children-display"
c:type="DBUSMENU_MENUITEM_PROP_CHILD_DISPLAY">
<doc xml:space="preserve">#DbusmenuMenuitem property that tells how the children of this menuitem
should be displayed. Most likely this will be unset or of the value
#DBUSMENU_MENUITEM_CHILD_DISPLAY_SUBMENU. Type: #G_VARIANT_TYPE_STRING</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_DISPOSITION"
value="disposition"
c:type="DBUSMENU_MENUITEM_PROP_DISPOSITION">
<doc xml:space="preserve">#DbusmenuMenuitem property to tell what type of information that the
menu item is displaying to the user. Type: #G_VARIANT_TYPE_STRING</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_ENABLED"
value="enabled"
c:type="DBUSMENU_MENUITEM_PROP_ENABLED">
<doc xml:space="preserve">#DbusmenuMenuitem property used to represent whether the menuitem
is clickable or not. Type: #G_VARIANT_TYPE_BOOLEAN.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_ICON_DATA"
value="icon-data"
c:type="DBUSMENU_MENUITEM_PROP_ICON_DATA">
<doc xml:space="preserve">#DbusmenuMenuitem property that is the raw data of a custom icon
used in the application. Type: #G_VARIANT_TYPE_VARIANT
It is recommended that this is not set directly but instead the
libdbusmenu-gtk library is used with the function dbusmenu_menuitem_property_set_image()</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_ICON_NAME"
value="icon-name"
c:type="DBUSMENU_MENUITEM_PROP_ICON_NAME">
<doc xml:space="preserve">#DbusmenuMenuitem property that is the name of the icon under the
Freedesktop.org icon naming spec. Type: #G_VARIANT_TYPE_STRING</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_LABEL"
value="label"
c:type="DBUSMENU_MENUITEM_PROP_LABEL">
<doc xml:space="preserve">#DbusmenuMenuitem property used for the text on the menu item.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_SHORTCUT"
value="shortcut"
c:type="DBUSMENU_MENUITEM_PROP_SHORTCUT">
<doc xml:space="preserve">#DbusmenuMenuitem property that is the entries that represent a shortcut
to activate the menuitem. It is an array of arrays of strings.
It is recommended that this is not set directly but instead the
libdbusmenu-gtk library is used with the function dbusmenu_menuitem_property_set_shortcut()</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_TOGGLE_STATE"
value="toggle-state"
c:type="DBUSMENU_MENUITEM_PROP_TOGGLE_STATE">
<doc xml:space="preserve">#DbusmenuMenuitem property that says what state a toggle entry should
be shown as the menu. Should be either #DBUSMENU_MENUITEM_TOGGLE_STATE_UNCHECKED
#DBUSMENU_MENUITEM_TOGGLE_STATE_CHECKED or #DBUSMENU_MENUITEM_TOGGLE_STATUE_UNKNOWN.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_TOGGLE_TYPE"
value="toggle-type"
c:type="DBUSMENU_MENUITEM_PROP_TOGGLE_TYPE">
<doc xml:space="preserve">#DbusmenuMenuitem property that says what type of toggle entry should
be shown in the menu. Should be either #DBUSMENU_MENUITEM_TOGGLE_CHECK
or #DBUSMENU_MENUITEM_TOGGLE_RADIO. Type: #G_VARIANT_TYPE_STRING</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_TYPE"
value="type"
c:type="DBUSMENU_MENUITEM_PROP_TYPE">
<doc xml:space="preserve">#DbusmenuMenuitem property used to represent what type of menuitem
this object represents. Type: #G_VARIANT_TYPE_STRING.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_VISIBLE"
value="visible"
c:type="DBUSMENU_MENUITEM_PROP_VISIBLE">
<doc xml:space="preserve">#DbusmenuMenuitem property used to represent whether the menuitem
should be shown or not. Type: #G_VARIANT_TYPE_BOOLEAN.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SHORTCUT_ALT"
value="Alt"
c:type="DBUSMENU_MENUITEM_SHORTCUT_ALT">
<doc xml:space="preserve">Used in #DBUSMENU_MENUITEM_PROP_SHORTCUT to represent the
alternate key.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SHORTCUT_CONTROL"
value="Control"
c:type="DBUSMENU_MENUITEM_SHORTCUT_CONTROL">
<doc xml:space="preserve">Used in #DBUSMENU_MENUITEM_PROP_SHORTCUT to represent the
control key.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SHORTCUT_SHIFT"
value="Shift"
c:type="DBUSMENU_MENUITEM_SHORTCUT_SHIFT">
<doc xml:space="preserve">Used in #DBUSMENU_MENUITEM_PROP_SHORTCUT to represent the
shift key.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SHORTCUT_SUPER"
value="Super"
c:type="DBUSMENU_MENUITEM_SHORTCUT_SUPER">
<doc xml:space="preserve">Used in #DBUSMENU_MENUITEM_PROP_SHORTCUT to represent the
super key.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_ABOUT_TO_SHOW"
value="about-to-show"
c:type="DBUSMENU_MENUITEM_SIGNAL_ABOUT_TO_SHOW">
<doc xml:space="preserve">String to attach to signal #DbusmenuServer::about-to-show</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_CHILD_ADDED"
value="child-added"
c:type="DBUSMENU_MENUITEM_SIGNAL_CHILD_ADDED">
<doc xml:space="preserve">String to attach to signal #DbusmenuServer::child-added</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_CHILD_MOVED"
value="child-moved"
c:type="DBUSMENU_MENUITEM_SIGNAL_CHILD_MOVED">
<doc xml:space="preserve">String to attach to signal #DbusmenuServer::child-moved</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_CHILD_REMOVED"
value="child-removed"
c:type="DBUSMENU_MENUITEM_SIGNAL_CHILD_REMOVED">
<doc xml:space="preserve">String to attach to signal #DbusmenuServer::child-removed</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_EVENT"
value="event"
c:type="DBUSMENU_MENUITEM_SIGNAL_EVENT">
<doc xml:space="preserve">String to attach to signal #DbusmenuServer::event</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_ITEM_ACTIVATED"
value="item-activated"
c:type="DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED">
<doc xml:space="preserve">String to attach to signal #DbusmenuServer::item-activated</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_PROPERTY_CHANGED"
value="property-changed"
c:type="DBUSMENU_MENUITEM_SIGNAL_PROPERTY_CHANGED">
<doc xml:space="preserve">String to attach to signal #DbusmenuServer::property-changed</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_REALIZED"
value="realized"
c:type="DBUSMENU_MENUITEM_SIGNAL_REALIZED">
<doc xml:space="preserve">String to attach to signal #DbusmenuServer::realized</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_SHOW_TO_USER"
value="show-to-user"
c:type="DBUSMENU_MENUITEM_SIGNAL_SHOW_TO_USER">
<doc xml:space="preserve">String to attach to signal #DbusmenuServer::show-to-user</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_TOGGLE_CHECK"
value="checkmark"
c:type="DBUSMENU_MENUITEM_TOGGLE_CHECK">
<doc xml:space="preserve">Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_TYPE to be a standard
check mark item.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_TOGGLE_RADIO"
value="radio"
c:type="DBUSMENU_MENUITEM_TOGGLE_RADIO">
<doc xml:space="preserve">Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_TYPE to be a standard
radio item.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_TOGGLE_STATE_CHECKED"
value="1"
c:type="DBUSMENU_MENUITEM_TOGGLE_STATE_CHECKED">
<doc xml:space="preserve">Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_STATE so that the menu's
toggle item is filled.</doc>
<type name="gint" c:type="gint"/>
</constant>
<constant name="MENUITEM_TOGGLE_STATE_UNCHECKED"
value="0"
c:type="DBUSMENU_MENUITEM_TOGGLE_STATE_UNCHECKED">
<doc xml:space="preserve">Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_STATE so that the menu's
toggle item is empty.</doc>
<type name="gint" c:type="gint"/>
</constant>
<constant name="MENUITEM_TOGGLE_STATE_UNKNOWN"
value="-1"
c:type="DBUSMENU_MENUITEM_TOGGLE_STATE_UNKNOWN">
<doc xml:space="preserve">Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_STATE so that the menu's
toggle item is undecided.</doc>
<type name="gint" c:type="gint"/>
</constant>
<class name="Menuitem"
c:symbol-prefix="menuitem"
c:type="DbusmenuMenuitem"
parent="GObject.Object"
glib:type-name="DbusmenuMenuitem"
glib:get-type="dbusmenu_menuitem_get_type"
glib:type-struct="MenuitemClass">
<doc xml:space="preserve">This is the #GObject based object that represents a menu
item. It gets created the same on both the client and
the server side and libdbusmenu-glib does the work of making
this object model appear on both sides of DBus. Simple
really, though through updates and people coming on and off
the bus it can lead to lots of fun complex scenarios.</doc>
<constructor name="new" c:identifier="dbusmenu_menuitem_new">
<doc xml:space="preserve">Create a new #DbusmenuMenuitem with all default values.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A newly allocated #DbusmenuMenuitem.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</return-value>
</constructor>
<constructor name="new_with_id"
c:identifier="dbusmenu_menuitem_new_with_id">
<doc xml:space="preserve">This creates a blank #DbusmenuMenuitem with a specific ID.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A newly allocated #DbusmenuMenuitem.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</return-value>
<parameters>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">ID to use for this menuitem</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</constructor>
<virtual-method name="child_added">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="child" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="position" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="child_moved">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="child" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="newpos" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="oldpos" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="child_removed">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="child" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
</parameters>
</virtual-method>
<virtual-method name="handle_event" invoker="handle_event">
<doc xml:space="preserve">This function is called to create an event. It is likely
to be overrided by subclasses. The default menu item
will respond to the activate signal and do:
Emits the #DbusmenuMenuitem::item-activate signal on this
menu item. Called by server objects when they get the
appropriate DBus signals from the client.
If you subclass this function you should really think
about calling the parent function unless you have a good
reason not to.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to send the signal on.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">The name of the signal</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="variant" transfer-ownership="none">
<doc xml:space="preserve">A value that could be set for the event</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<doc xml:space="preserve">The timestamp of when the event happened</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="send_about_to_show"
invoker="send_about_to_show"
introspectable="0">
<doc xml:space="preserve">This function is used to send the even that the submenu
of this item is about to be shown. Callers to this event
should delay showing the menu until their callback is
called if possible.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to send the signal on.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="cb" transfer-ownership="none">
<doc xml:space="preserve">Callback to call when the call has returned.</doc>
<type c:type="dbusmenu_menuitem_about_to_show_cb"/>
</parameter>
<parameter name="cb_data" transfer-ownership="none">
<doc xml:space="preserve">Data to pass to the callback.</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="show_to_user">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="timestamp" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="cb_data" transfer-ownership="none">
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</virtual-method>
<method name="child_add_position"
c:identifier="dbusmenu_menuitem_child_add_position">
<doc xml:space="preserve">Puts @child in the list of children for @mi at the location
specified in @position. If there is not enough entires available
then @child will be placed at the end of the list.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether @child was added successfully.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem that we're adding the child @child to.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="child" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to make a child of @mi.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="position" transfer-ownership="none">
<doc xml:space="preserve">Where in @mi object's list of chidren @child should be placed.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="child_append"
c:identifier="dbusmenu_menuitem_child_append">
<doc xml:space="preserve">This function adds @child to the list of children on @mi at
the end of that list.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether the child has been added successfully.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem which will become a new parent</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="child" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenMenuitem that will be a child</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
</parameters>
</method>
<method name="child_delete"
c:identifier="dbusmenu_menuitem_child_delete">
<doc xml:space="preserve">This function removes @child from the children list of @mi. It does
not call #g_object_unref on @child.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">If we were able to delete @child.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem which has @child as a child</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="child" transfer-ownership="none">
<doc xml:space="preserve">The child #DbusmenuMenuitem that you want to no longer
be a child of @mi.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
</parameters>
</method>
<method name="child_find" c:identifier="dbusmenu_menuitem_child_find">
<doc xml:space="preserve">Search the children of @mi to find one with the ID of @id.
If it doesn't exist then we return #NULL.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The menu item with the ID @id or #NULL if it
can't be found.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem who's children to look on</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">The ID of the child that we're looking for.</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</method>
<method name="child_prepend"
c:identifier="dbusmenu_menuitem_child_prepend">
<doc xml:space="preserve">This function adds @child to the list of children on @mi at
the beginning of that list.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether the child has been added successfully.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem which will become a new parent</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="child" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenMenuitem that will be a child</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
</parameters>
</method>
<method name="child_reorder"
c:identifier="dbusmenu_menuitem_child_reorder">
<doc xml:space="preserve">This function moves a child on the list of children. It is
for a child that is already in the list, but simply needs a
new location.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether the move was successful.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem that has children needing realignment</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="child" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem that is a child needing to be moved</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="position" transfer-ownership="none">
<doc xml:space="preserve">The position in the list to place it in</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="find_id" c:identifier="dbusmenu_menuitem_find_id">
<doc xml:space="preserve">This function searchs the whole tree of children that
are attached to @mi. This could be quite a few nodes, all
the way down the tree. It is a depth first search.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem with the ID of @id
or #NULL if there isn't such a menu item in the tree
represented by @mi.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">#DbusmenuMenuitem at the top of the tree to search</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">ID of the #DbusmenuMenuitem to search for</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</method>
<method name="foreach" c:identifier="dbusmenu_menuitem_foreach">
<doc xml:space="preserve">This calls the function @func on this menu item and all
of the children of this item. And their children. And
their children. And... you get the point. It will get
called on the whole tree.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenItem to start from</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="func" transfer-ownership="none">
<doc xml:space="preserve">Function to call on every node in the tree</doc>
<type name="gpointer" c:type="gpointer*"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve">User data to pass to the function</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="get_children"
c:identifier="dbusmenu_menuitem_get_children">
<doc xml:space="preserve">Returns simply the list of children that this menu item
has. The list is valid until another child related function
is called, where it might be changed.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A #GList of pointers to #DbusmenuMenuitem objects.</doc>
<type name="GLib.List" c:type="GList*">
<type name="Menuitem"/>
</type>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to query.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_id" c:identifier="dbusmenu_menuitem_get_id">
<doc xml:space="preserve">Gets the unique ID for @mi.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The ID of the @mi.</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to query.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_parent" c:identifier="dbusmenu_menuitem_get_parent">
<doc xml:space="preserve">This function looks up the parent of @mi</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The parent of this menu item</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem for which to inspect the parent</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_position"
c:identifier="dbusmenu_menuitem_get_position">
<doc xml:space="preserve">This function returns the position of the menu item @mi
in the children of @parent. It will return zero if the
menu item can't be found.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The position of @mi in the children of @parent.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to find the position of</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="parent" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem who's children contain @mi</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
</parameters>
</method>
<method name="get_position_realized"
c:identifier="dbusmenu_menuitem_get_position_realized">
<doc xml:space="preserve">This function is very similar to #dbusmenu_menuitem_get_position
except that it only counts in the children that have been realized.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The position of @mi in the realized children of @parent.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to find the position of</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="parent" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem who's children contain @mi</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
</parameters>
</method>
<method name="get_root" c:identifier="dbusmenu_menuitem_get_root">
<doc xml:space="preserve">This function returns the internal value of whether this is a
root node or not.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">#TRUE if this is a root node</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">#DbusmenuMenuitem to see whether it's root</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
</parameters>
</method>
<method name="handle_event"
c:identifier="dbusmenu_menuitem_handle_event">
<doc xml:space="preserve">This function is called to create an event. It is likely
to be overrided by subclasses. The default menu item
will respond to the activate signal and do:
Emits the #DbusmenuMenuitem::item-activate signal on this
menu item. Called by server objects when they get the
appropriate DBus signals from the client.
If you subclass this function you should really think
about calling the parent function unless you have a good
reason not to.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to send the signal on.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">The name of the signal</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="variant" transfer-ownership="none">
<doc xml:space="preserve">A value that could be set for the event</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<doc xml:space="preserve">The timestamp of when the event happened</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="properties_copy"
c:identifier="dbusmenu_menuitem_properties_copy">
<doc xml:space="preserve">This function takes the properties of a #DbusmenuMenuitem
and puts them into a #GHashTable that is referenced by the
key of a string and has the value of a string. The hash
table may not have any entries if there aren't any or there
is an error in processing. It is the caller's responsibility
to destroy the created #GHashTable.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A brand new #GHashTable that contains all of
theroperties that are on this #DbusmenuMenuitem @mi.</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="gpointer" c:type="gpointer"/>
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">#DbusmenuMenuitem that we're interested in the properties of</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
</parameters>
</method>
<method name="properties_list"
c:identifier="dbusmenu_menuitem_properties_list">
<doc xml:space="preserve">This functiong gets a list of the names of all the properties
that are set on this menu item. This data on the list is owned
by the menuitem but the list is not and should be freed using
g_list_free() when the calling function is done with it.</doc>
<return-value transfer-ownership="container">
<doc xml:space="preserve">A list of
strings or NULL if there are none.</doc>
<type name="GLib.List" c:type="GList*">
<type name="utf8"/>
</type>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">#DbusmenuMenuitem to list the properties on</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
</parameters>
</method>
<method name="property_exist"
c:identifier="dbusmenu_menuitem_property_exist">
<doc xml:space="preserve">Checkes to see if a particular property exists on @mi and
returns #TRUE if so.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A boolean checking to see if the property is available</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to look for the property on.</doc>
<type name="Menuitem" c:type="const DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="property" transfer-ownership="none">
<doc xml:space="preserve">The property to look for.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_get"
c:identifier="dbusmenu_menuitem_property_get">
<doc xml:space="preserve">Look up a property on @mi and return the value of it if
it exits. #NULL will be returned if the property doesn't
exist.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A string with the value of the property
that shouldn't be free'd. Or #NULL if the property
is not set or is not a string.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to look for the property on.</doc>
<type name="Menuitem" c:type="const DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="property" transfer-ownership="none">
<doc xml:space="preserve">The property to grab.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_get_bool"
c:identifier="dbusmenu_menuitem_property_get_bool">
<doc xml:space="preserve">Look up a property on @mi and return the value of it if
it exits. Returns #FALSE if the property doesn't exist.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The value of the property or #FALSE.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to look for the property on.</doc>
<type name="Menuitem" c:type="const DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="property" transfer-ownership="none">
<doc xml:space="preserve">The property to grab.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_get_byte_array"
c:identifier="dbusmenu_menuitem_property_get_byte_array">
<doc xml:space="preserve">Look up a property on @mi and return the value of it if
it exits. #NULL will be returned if the property doesn't
exist.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A byte array with the
value of the property that shouldn't be free'd. Or #NULL if the property
is not set or is not a byte array.</doc>
<array length="1" zero-terminated="0" c:type="guchar*">
<type name="guint8"/>
</array>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to look for the property on.</doc>
<type name="Menuitem" c:type="const DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="property" transfer-ownership="none">
<doc xml:space="preserve">The property to grab.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="nelements"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">A pointer to the location to store the number of items (out)</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="property_get_int"
c:identifier="dbusmenu_menuitem_property_get_int">
<doc xml:space="preserve">Look up a property on @mi and return the value of it if
it exits. Returns zero if the property doesn't exist.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The value of the property or zero.</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to look for the property on.</doc>
<type name="Menuitem" c:type="const DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="property" transfer-ownership="none">
<doc xml:space="preserve">The property to grab.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_get_variant"
c:identifier="dbusmenu_menuitem_property_get_variant">
<doc xml:space="preserve">Look up a property on @mi and return the value of it if
it exits. #NULL will be returned if the property doesn't
exist.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A GVariant for the property.</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to look for the property on.</doc>
<type name="Menuitem" c:type="const DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="property" transfer-ownership="none">
<doc xml:space="preserve">The property to grab.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_remove"
c:identifier="dbusmenu_menuitem_property_remove">
<doc xml:space="preserve">Removes a property from the menuitem.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to remove the property on.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="property" transfer-ownership="none">
<doc xml:space="preserve">The property to look for.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_set"
c:identifier="dbusmenu_menuitem_property_set">
<doc xml:space="preserve">Takes the pair of @property and @value and places them as a
property on @mi. If a property already exists by that name,
then the value is set to the new value. If not, the property
is added. If the value is changed or the property was previously
unset then the signal #DbusmenuMenuitem::prop-changed will be
emitted by this function.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A boolean representing if the property value was set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to set the property on.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="property" transfer-ownership="none">
<doc xml:space="preserve">Name of the property to set.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:space="preserve">The value of the property.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_set_bool"
c:identifier="dbusmenu_menuitem_property_set_bool">
<doc xml:space="preserve">Takes a boolean @value and sets it on @property as a
property on @mi. If a property already exists by that name,
then the value is set to the new value. If not, the property
is added. If the value is changed or the property was previously
unset then the signal #DbusmenuMenuitem::prop-changed will be
emitted by this function.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A boolean representing if the property value was set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to set the property on.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="property" transfer-ownership="none">
<doc xml:space="preserve">Name of the property to set.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:space="preserve">The value of the property.</doc>
<type name="gboolean" c:type="const gboolean"/>
</parameter>
</parameters>
</method>
<method name="property_set_byte_array"
c:identifier="dbusmenu_menuitem_property_set_byte_array">
<doc xml:space="preserve">Takes a byte array @value and sets it on @property as a
property on @mi. If a property already exists by that name,
then the value is set to the new value. If not, the property
is added. If the value is changed or the property was previously
unset then the signal #DbusmenuMenuitem::prop-changed will be
emitted by this function.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A boolean representing if the property value was set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to set the property on.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="property" transfer-ownership="none">
<doc xml:space="preserve">Name of the property to set.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:space="preserve">The byte array.</doc>
<type name="guint8" c:type="const guchar*"/>
</parameter>
<parameter name="nelements" transfer-ownership="none">
<doc xml:space="preserve">The number of elements in the byte array.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
</method>
<method name="property_set_int"
c:identifier="dbusmenu_menuitem_property_set_int">
<doc xml:space="preserve">Takes a boolean @value and sets it on @property as a
property on @mi. If a property already exists by that name,
then the value is set to the new value. If not, the property
is added. If the value is changed or the property was previously
unset then the signal #DbusmenuMenuitem::prop-changed will be
emitted by this function.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A boolean representing if the property value was set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to set the property on.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="property" transfer-ownership="none">
<doc xml:space="preserve">Name of the property to set.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:space="preserve">The value of the property.</doc>
<type name="gint" c:type="const gint"/>
</parameter>
</parameters>
</method>
<method name="property_set_variant"
c:identifier="dbusmenu_menuitem_property_set_variant">
<doc xml:space="preserve">Takes the pair of @property and @value and places them as a
property on @mi. If a property already exists by that name,
then the value is set to the new value. If not, the property
is added. If the value is changed or the property was previously
unset then the signal #DbusmenuMenuitem::prop-changed will be
emitted by this function.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A boolean representing if the property value was set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to set the property on.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="property" transfer-ownership="none">
<doc xml:space="preserve">Name of the property to set.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:space="preserve">The value of the property.</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
</method>
<method name="send_about_to_show"
c:identifier="dbusmenu_menuitem_send_about_to_show">
<doc xml:space="preserve">This function is used to send the even that the submenu
of this item is about to be shown. Callers to this event
should delay showing the menu until their callback is
called if possible.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to send the signal on.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="cb" transfer-ownership="none">
<doc xml:space="preserve">Callback to call when the call has returned.</doc>
<type name="gpointer" c:type="gpointer*"/>
</parameter>
<parameter name="cb_data" transfer-ownership="none">
<doc xml:space="preserve">Data to pass to the callback.</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="set_parent" c:identifier="dbusmenu_menuitem_set_parent">
<doc xml:space="preserve">Sets the parent of @mi to @parent. If @mi already
has a parent, then this call will fail. The parent will
be set automatically when using the usual methods to add a
child menuitem, so this function should not normally be
called directly</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether the parent was set successfully</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem for which to set the parent</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="parent" transfer-ownership="none">
<doc xml:space="preserve">The new parent #DbusmenuMenuitem</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
</parameters>
</method>
<method name="set_root" c:identifier="dbusmenu_menuitem_set_root">
<doc xml:space="preserve">This function sets the internal value of whether this is a
root node or not.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">#DbusmenuMenuitem to set whether it's root</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="root" transfer-ownership="none">
<doc xml:space="preserve">Whether @mi is a root node or not</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="show_to_user"
c:identifier="dbusmenu_menuitem_show_to_user">
<doc xml:space="preserve">Signals that this menu item should be shown to the user. If this is
server side the server will then take it and send it over the
bus.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">#DbusmenuMenuitem to show</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
<parameter name="timestamp" transfer-ownership="none">
<doc xml:space="preserve">The time that the user requested it to be shown</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="take_children"
c:identifier="dbusmenu_menuitem_take_children">
<doc xml:space="preserve">While the name sounds devious that's exactly what this function
does. It takes the list of children from the @mi and clears the
internal list. The calling function is now in charge of the ref's
on the children it has taken. A lot of responsibility involved
in taking children.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">
A #GList of pointers to #DbusmenuMenuitem objects.</doc>
<type name="GLib.List" c:type="GList*">
<type name="Menuitem"/>
</type>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenMenuitem to take the children from.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
</parameters>
</method>
<method name="unparent" c:identifier="dbusmenu_menuitem_unparent">
<doc xml:space="preserve">Unparents the menu item @mi. If @mi doesn't have a
parent, then this call will fail. The menuitem will
be unparented automatically when using the usual methods
to delete a child menuitem, so this function should not
normally be called directly</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether the menu item was unparented successfully</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to unparent</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</instance-parameter>
</parameters>
</method>
<property name="id"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="gint" c:type="gint"/>
</property>
<field name="parent">
<doc xml:space="preserve">Parent object</doc>
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<doc xml:space="preserve">Private data</doc>
<type name="MenuitemPrivate" c:type="DbusmenuMenuitemPrivate*"/>
</field>
<glib:signal name="about-to-show" when="last">
<doc xml:space="preserve">Emitted when the submenu for this item
is about to be shown</doc>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
</glib:signal>
<glib:signal name="child-added" when="last">
<doc xml:space="preserve">Signaled when the child menuitem has been added to
the parent.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem which is the child.</doc>
<type name="GObject.Object"/>
</parameter>
<parameter name="arg2" transfer-ownership="none">
<doc xml:space="preserve">The position that the child is being added in.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="child-moved" when="last">
<doc xml:space="preserve">Signaled when the child menuitem has had its location
in the list change.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem which is the child.</doc>
<type name="GObject.Object"/>
</parameter>
<parameter name="arg2" transfer-ownership="none">
<doc xml:space="preserve">The position that the child is being moved to.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="arg3" transfer-ownership="none">
<doc xml:space="preserve">The position that the child is was in.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="child-removed" when="last">
<doc xml:space="preserve">Signaled when the child menuitem has been requested to
be removed from the parent. This signal is called when
it has been removed from the list but not yet had
#g_object_unref called on it.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem which was the child.</doc>
<type name="GObject.Object"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="event" when="last" detailed="1">
<doc xml:space="preserve">Emitted when an event is passed through. The event is signalled
after handle_event is called.</doc>
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">Name of the event</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="arg2" transfer-ownership="none">
<doc xml:space="preserve">Information passed along with the event</doc>
<type name="GLib.Variant"/>
</parameter>
<parameter name="arg3" transfer-ownership="none">
<doc xml:space="preserve">X11 timestamp of when the event happened</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="item-activated" when="last">
<doc xml:space="preserve">Emitted on the objects on the server side when
they are signaled on the client side.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">The timestamp of when it was activated</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="property-changed" when="last">
<doc xml:space="preserve">Emitted everytime a property on a menuitem is either
updated or added.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">The name of the property that changed</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="arg2" transfer-ownership="none">
<doc xml:space="preserve">The new value of the property</doc>
<type name="GLib.Variant"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="realized" when="last">
<doc xml:space="preserve">Emitted when the initial request for properties
is complete on the item. If there is a type
handler configured for the "type" parameter
that will be executed before this is signaled.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</glib:signal>
<glib:signal name="show-to-user" when="last">
<doc xml:space="preserve">Signaled when the application would like the visualization
of this menu item shown to the user. This usually requires
going over the bus to get it done.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">Timestamp the event happened at</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="MenuitemClass"
c:type="DbusmenuMenuitemClass"
glib:is-gtype-struct-for="Menuitem">
<doc xml:space="preserve">Functions and signals that every menuitem should know something
about.</doc>
<field name="parent_class">
<doc xml:space="preserve">Functions and signals from our parent</doc>
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="property_changed">
<callback name="property_changed">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="property" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="item_activated">
<callback name="item_activated">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="timestamp" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</callback>
</field>
<field name="child_added">
<callback name="child_added">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="child" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="position" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</callback>
</field>
<field name="child_removed">
<callback name="child_removed">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="child" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="child_moved">
<callback name="child_moved">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="child" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="newpos" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="oldpos" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</callback>
</field>
<field name="realized">
<callback name="realized">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="buildvariant" introspectable="0">
<doc xml:space="preserve">Virtual function that appends the strings required to represent this menu item in the menu variant.</doc>
<type c:type="dbusmenu_menuitem_buildvariant_slot_t"/>
</field>
<field name="handle_event">
<callback name="handle_event">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to send the signal on.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:space="preserve">The name of the signal</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="variant" transfer-ownership="none">
<doc xml:space="preserve">A value that could be set for the event</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<doc xml:space="preserve">The timestamp of when the event happened</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</callback>
</field>
<field name="send_about_to_show" introspectable="0">
<callback name="send_about_to_show" introspectable="0">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to send the signal on.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="cb" transfer-ownership="none">
<doc xml:space="preserve">Callback to call when the call has returned.</doc>
<type c:type="dbusmenu_menuitem_about_to_show_cb"/>
</parameter>
<parameter name="cb_data" transfer-ownership="none">
<doc xml:space="preserve">Data to pass to the callback.</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
</field>
<field name="show_to_user">
<callback name="show_to_user">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="mi" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="cb_data" transfer-ownership="none">
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
</field>
<field name="about_to_show">
<callback name="about_to_show">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
</callback>
</field>
<field name="event">
<callback name="event">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</callback>
</field>
<field name="reserved1">
<callback name="reserved1">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved2">
<callback name="reserved2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved3">
<callback name="reserved3">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved4">
<callback name="reserved4">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved5">
<callback name="reserved5">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
</record>
<record name="MenuitemPrivate"
c:type="DbusmenuMenuitemPrivate"
disguised="1">
<doc xml:space="preserve">These are the little secrets that we don't want getting
out of data that we have. They can still be gotten using
accessor functions, but are protected appropriately.</doc>
</record>
<class name="MenuitemProxy"
c:symbol-prefix="menuitem_proxy"
c:type="DbusmenuMenuitemProxy"
parent="Menuitem"
glib:type-name="DbusmenuMenuitemProxy"
glib:get-type="dbusmenu_menuitem_proxy_get_type"
glib:type-struct="MenuitemProxyClass">
<doc xml:space="preserve">Public instance data for a #DbusmenuMenuitemProxy.</doc>
<constructor name="new" c:identifier="dbusmenu_menuitem_proxy_new">
<doc xml:space="preserve">Builds a new #DbusmenuMenuitemProxy object that proxies
all of the values for @mi.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A new #DbusmenuMenuitemProxy object.</doc>
<type name="MenuitemProxy" c:type="DbusmenuMenuitemProxy*"/>
</return-value>
<parameters>
<parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuMenuitem to proxy</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
</parameters>
</constructor>
<method name="get_wrapped"
c:identifier="dbusmenu_menuitem_proxy_get_wrapped">
<doc xml:space="preserve">Accesses the private variable of which #DbusmenuMenuitem
we are doing the proxying for.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A #DbusmenuMenuitem object or a #NULL if we
don't have one or there is an error.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</return-value>
<parameters>
<instance-parameter name="pmi" transfer-ownership="none">
<doc xml:space="preserve">#DbusmenuMenuitemProxy to look into</doc>
<type name="MenuitemProxy" c:type="DbusmenuMenuitemProxy*"/>
</instance-parameter>
</parameters>
</method>
<property name="menu-item"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="Menuitem"/>
</property>
<field name="parent" readable="0" private="1">
<type name="Menuitem" c:type="DbusmenuMenuitem"/>
</field>
<field name="priv" readable="0" private="1">
<type name="MenuitemProxyPrivate"
c:type="DbusmenuMenuitemProxyPrivate*"/>
</field>
</class>
<record name="MenuitemProxyClass"
c:type="DbusmenuMenuitemProxyClass"
glib:is-gtype-struct-for="MenuitemProxy">
<doc xml:space="preserve">Functions and signal slots for #DbusmenuMenuitemProxy.</doc>
<field name="parent_class">
<doc xml:space="preserve">The Class of #DbusmeneMenuitem</doc>
<type name="MenuitemClass" c:type="DbusmenuMenuitemClass"/>
</field>
<field name="reserved1">
<callback name="reserved1">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved2">
<callback name="reserved2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved3">
<callback name="reserved3">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved4">
<callback name="reserved4">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
</record>
<record name="MenuitemProxyPrivate"
c:type="DbusmenuMenuitemProxyPrivate"
disguised="1">
</record>
<constant name="SERVER_PROP_DBUS_OBJECT"
value="dbus-object"
c:type="DBUSMENU_SERVER_PROP_DBUS_OBJECT">
<doc xml:space="preserve">String to access property #DbusmenuServer:dbus-object</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_PROP_ROOT_NODE"
value="root-node"
c:type="DBUSMENU_SERVER_PROP_ROOT_NODE">
<doc xml:space="preserve">String to access property #DbusmenuServer:root-node</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_PROP_STATUS"
value="status"
c:type="DBUSMENU_SERVER_PROP_STATUS">
<doc xml:space="preserve">String to access property #DbusmenuServer:status</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_PROP_TEXT_DIRECTION"
value="text-direction"
c:type="DBUSMENU_SERVER_PROP_TEXT_DIRECTION">
<doc xml:space="preserve">String to access property #DbusmenuServer:text-direction</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_PROP_VERSION"
value="version"
c:type="DBUSMENU_SERVER_PROP_VERSION">
<doc xml:space="preserve">String to access property #DbusmenuServer:version</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_SIGNAL_ID_PROP_UPDATE"
value="item-property-updated"
c:type="DBUSMENU_SERVER_SIGNAL_ID_PROP_UPDATE">
<doc xml:space="preserve">String to attach to signal #DbusmenuServer::item-property-updated</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_SIGNAL_ID_UPDATE"
value="item-updated"
c:type="DBUSMENU_SERVER_SIGNAL_ID_UPDATE">
<doc xml:space="preserve">String to attach to signal #DbusmenuServer::item-updated</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_SIGNAL_ITEM_ACTIVATION"
value="item-activation-requested"
c:type="DBUSMENU_SERVER_SIGNAL_ITEM_ACTIVATION">
<doc xml:space="preserve">String to attach to signal #DbusmenuServer::item-activation-requested</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_SIGNAL_LAYOUT_UPDATED"
value="layout-updated"
c:type="DBUSMENU_SERVER_SIGNAL_LAYOUT_UPDATED">
<doc xml:space="preserve">String to attach to signal #DbusmenuServer::layout-updated</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<class name="Server"
c:symbol-prefix="server"
c:type="DbusmenuServer"
parent="GObject.Object"
glib:type-name="DbusmenuServer"
glib:get-type="dbusmenu_server_get_type"
glib:type-struct="ServerClass">
<doc xml:space="preserve">A server which represents a sharing of a set of
#DbusmenuMenuitems across DBus to a #DbusmenuClient.</doc>
<constructor name="new" c:identifier="dbusmenu_server_new">
<doc xml:space="preserve">Creates a new #DbusmenuServer object with a specific object
path on DBus. If @object is set to NULL the default object
name of "/com/canonical/dbusmenu" will be used.
Return value: A brand new #DbusmenuServer</doc>
<return-value transfer-ownership="full">
<type name="Server" c:type="DbusmenuServer*"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<doc xml:space="preserve">The object name to show for this menu structure
on DBus. May be NULL.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</constructor>
<method name="get_icon_paths"
c:identifier="dbusmenu_server_get_icon_paths">
<doc xml:space="preserve">Gets the stored and exported icon paths from the server.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A NULL-terminated list of icon paths with
memory managed by the server. Duplicate if you want
to keep them.</doc>
<array c:type="GStrv">
<type name="utf8"/>
</array>
</return-value>
<parameters>
<instance-parameter name="server" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuServer to get the icon paths from</doc>
<type name="Server" c:type="DbusmenuServer*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_status" c:identifier="dbusmenu_server_get_status">
<doc xml:space="preserve">Gets the current statust hat the server is sending out over
DBus.
Return value: The current status the server is sending</doc>
<return-value transfer-ownership="none">
<type name="Status" c:type="DbusmenuStatus"/>
</return-value>
<parameters>
<instance-parameter name="server" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuServer to get the status from</doc>
<type name="Server" c:type="DbusmenuServer*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_text_direction"
c:identifier="dbusmenu_server_get_text_direction">
<doc xml:space="preserve">Returns the value of the text direction that is being exported
over DBus for this server. It should relate to the direction
of the labels and other text fields that are being exported by
this server.
Return value: Text direction exported for this server.</doc>
<return-value transfer-ownership="none">
<type name="TextDirection" c:type="DbusmenuTextDirection"/>
</return-value>
<parameters>
<instance-parameter name="server" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuServer object to get the text direction from</doc>
<type name="Server" c:type="DbusmenuServer*"/>
</instance-parameter>
</parameters>
</method>
<method name="set_icon_paths"
c:identifier="dbusmenu_server_set_icon_paths">
<doc xml:space="preserve">Sets the icon paths for the server. This will replace previously
set icon theme paths.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="server" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuServer to set the icon paths on</doc>
<type name="Server" c:type="DbusmenuServer*"/>
</instance-parameter>
<parameter name="icon_paths" transfer-ownership="none">
<array c:type="GStrv">
<type name="utf8"/>
</array>
</parameter>
</parameters>
</method>
<method name="set_root" c:identifier="dbusmenu_server_set_root">
<doc xml:space="preserve">This function contains all of the #GValue wrapping
required to set the property #DbusmenuServer:root-node
on the server @self.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuServer object to set the root on</doc>
<type name="Server" c:type="DbusmenuServer*"/>
</instance-parameter>
<parameter name="root" transfer-ownership="none">
<doc xml:space="preserve">The new root #DbusmenuMenuitem tree</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
</parameters>
</method>
<method name="set_status" c:identifier="dbusmenu_server_set_status">
<doc xml:space="preserve">Changes the status of the server.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="server" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuServer to set the status on</doc>
<type name="Server" c:type="DbusmenuServer*"/>
</instance-parameter>
<parameter name="status" transfer-ownership="none">
<doc xml:space="preserve">Status value to set on the server</doc>
<type name="Status" c:type="DbusmenuStatus"/>
</parameter>
</parameters>
</method>
<method name="set_text_direction"
c:identifier="dbusmenu_server_set_text_direction">
<doc xml:space="preserve">Sets the text direction that should be exported over DBus for
this server. If the value is set to #DBUSMENU_TEXT_DIRECTION_NONE
the default detection will be used for setting the value and
exported over DBus.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="server" transfer-ownership="none">
<doc xml:space="preserve">The #DbusmenuServer object to set the text direction on</doc>
<type name="Server" c:type="DbusmenuServer*"/>
</instance-parameter>
<parameter name="dir" transfer-ownership="none">
<doc xml:space="preserve">Direction of the text</doc>
<type name="TextDirection" c:type="DbusmenuTextDirection"/>
</parameter>
</parameters>
</method>
<property name="dbus-object"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="root-node" writable="1" transfer-ownership="none">
<type name="Menuitem"/>
</property>
<property name="status"
introspectable="0"
writable="1"
transfer-ownership="none">
<type/>
</property>
<property name="text-direction"
introspectable="0"
writable="1"
transfer-ownership="none">
<type/>
</property>
<property name="version" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</property>
<field name="parent" readable="0" private="1">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv" readable="0" private="1">
<type name="ServerPrivate" c:type="DbusmenuServerPrivate*"/>
</field>
<glib:signal name="item-activation-requested" when="last">
<doc xml:space="preserve">This is signaled when a menuitem under this server
sends its activate signal.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">The ID of the parent for this update.</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="arg2" transfer-ownership="none">
<doc xml:space="preserve">The timestamp of when the event happened</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="item-property-updated" when="last">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="p0" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="p1" transfer-ownership="none">
<type name="GLib.Variant"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="item-updated" when="last">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="layout-updated" when="last">
<doc xml:space="preserve">This signal is emitted any time the layout of the
menuitems under this server is changed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="arg1" transfer-ownership="none">
<doc xml:space="preserve">A revision number representing which revision the update
represents itself as.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="arg2" transfer-ownership="none">
<doc xml:space="preserve">The ID of the parent for this update.</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="ServerClass"
c:type="DbusmenuServerClass"
glib:is-gtype-struct-for="Server">
<doc xml:space="preserve">The class implementing the virtual functions for #DbusmenuServer.</doc>
<field name="parent_class">
<doc xml:space="preserve">#GObjectClass</doc>
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="id_prop_update">
<callback name="id_prop_update">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="id" transfer-ownership="none">
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="property" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="id_update">
<callback name="id_update">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="id" transfer-ownership="none">
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</callback>
</field>
<field name="layout_updated">
<callback name="layout_updated">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="revision" transfer-ownership="none">
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</callback>
</field>
<field name="item_activation">
<callback name="item_activation">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="id" transfer-ownership="none">
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</callback>
</field>
<field name="reserved1">
<callback name="reserved1">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved2">
<callback name="reserved2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved3">
<callback name="reserved3">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved4">
<callback name="reserved4">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved5">
<callback name="reserved5">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="reserved6">
<callback name="reserved6">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
</record>
<record name="ServerPrivate" c:type="DbusmenuServerPrivate" disguised="1">
</record>
<enumeration name="Status" c:type="DbusmenuStatus">
<doc xml:space="preserve">Tracks how the menus should be presented to the user.</doc>
<member name="normal" value="0" c:identifier="DBUSMENU_STATUS_NORMAL">
<doc xml:space="preserve">Everything is normal</doc>
</member>
<member name="notice" value="1" c:identifier="DBUSMENU_STATUS_NOTICE">
<doc xml:space="preserve">The menus should be shown at a higher priority</doc>
</member>
</enumeration>
<enumeration name="TextDirection" c:type="DbusmenuTextDirection">
<doc xml:space="preserve">The direction of text that the strings that this server
will be sending strings as.</doc>
<member name="none"
value="0"
c:identifier="DBUSMENU_TEXT_DIRECTION_NONE">
<doc xml:space="preserve">Unspecified text direction</doc>
</member>
<member name="ltr" value="1" c:identifier="DBUSMENU_TEXT_DIRECTION_LTR">
<doc xml:space="preserve">Left-to-right text direction</doc>
</member>
<member name="rtl" value="2" c:identifier="DBUSMENU_TEXT_DIRECTION_RTL">
<doc xml:space="preserve">Right-to-left text direction</doc>
</member>
</enumeration>
<callback name="menuitem_about_to_show_cb"
c:type="dbusmenu_menuitem_about_to_show_cb">
<doc xml:space="preserve">Callback prototype for a callback that is called when the
menu should be shown.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">Menu item that should be shown</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" closure="1">
<doc xml:space="preserve">Extra user data sent with the function</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
<callback name="menuitem_buildvariant_slot_t"
c:type="dbusmenu_menuitem_buildvariant_slot_t">
<doc xml:space="preserve">This is the function that is called to represent this menu item
as a variant. Should call its own children.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A variant representing this item and its children</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</return-value>
<parameters>
<parameter name="mi" transfer-ownership="none">
<doc xml:space="preserve">Menu item that should be built from</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="properties" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">A list of properties that should be the only ones in the resulting variant structure</doc>
<type name="utf8" c:type="gchar**"/>
</parameter>
</parameters>
</callback>
</namespace>
</repository>
|