/usr/share/gir-1.0/Dbusmenu-0.4.gir is in libdbusmenu-glib-dev 0.6.1-0ubuntu3.
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 | <?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="GLib" version="2.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">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_PROP_DBUS_OBJECT"
value="dbus-object"
c:type="DBUSMENU_CLIENT_PROP_DBUS_OBJECT">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_PROP_GROUP_EVENTS"
value="group-events"
c:type="DBUSMENU_CLIENT_PROP_GROUP_EVENTS">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_PROP_STATUS"
value="status"
c:type="DBUSMENU_CLIENT_PROP_STATUS">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_PROP_TEXT_DIRECTION"
value="text-direction"
c:type="DBUSMENU_CLIENT_PROP_TEXT_DIRECTION">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_SIGNAL_EVENT_RESULT"
value="event-result"
c:type="DBUSMENU_CLIENT_SIGNAL_EVENT_RESULT">
<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">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_SIGNAL_ITEM_ACTIVATE"
value="item-activate"
c:type="DBUSMENU_CLIENT_SIGNAL_ITEM_ACTIVATE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_SIGNAL_LAYOUT_UPDATED"
value="layout-updated"
c:type="DBUSMENU_CLIENT_SIGNAL_LAYOUT_UPDATED">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_SIGNAL_NEW_MENUITEM"
value="new-menuitem"
c:type="DBUSMENU_CLIENT_SIGNAL_NEW_MENUITEM">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_SIGNAL_ROOT_CHANGED"
value="root-changed"
c:type="DBUSMENU_CLIENT_SIGNAL_ROOT_CHANGED">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_TYPES_DEFAULT"
value="standard"
c:type="DBUSMENU_CLIENT_TYPES_DEFAULT">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_TYPES_IMAGE"
value="standard"
c:type="DBUSMENU_CLIENT_TYPES_IMAGE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="CLIENT_TYPES_SEPARATOR"
value="separator"
c:type="DBUSMENU_CLIENT_TYPES_SEPARATOR">
<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">
<constructor name="new" c:identifier="dbusmenu_client_new">
<doc xml:whitespace="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:whitespace="preserve">A brand new #DbusmenuClient</doc>
<type name="Client" c:type="DbusmenuClient*"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<doc xml:whitespace="preserve">The DBus name for the server to connect to</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="object" transfer-ownership="none">
<doc xml:whitespace="preserve">The object on the server to monitor</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</constructor>
<method name="add_type_handler"
c:identifier="dbusmenu_client_add_type_handler">
<doc xml:whitespace="preserve">This function connects into the type handling of the #DbusmenuClient.
Every new menuitem that comes in immediately gets asked for it's
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:whitespace="preserve">If registering the new type was successful.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="type" transfer-ownership="none">
<doc xml:whitespace="preserve">A text string that will be matched with the 'type' property on incoming menu items</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="newfunc" transfer-ownership="none" scope="notified">
<doc xml:whitespace="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:whitespace="preserve">This function connects into the type handling of the #DbusmenuClient.
Every new menuitem that comes in immediately gets asked for it's
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:whitespace="preserve">If registering the new type was successful.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="type" transfer-ownership="none">
<doc xml:whitespace="preserve">A text string that will be matched with the 'type' property on incoming menu items</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="newfunc"
transfer-ownership="none"
scope="notified"
closure="2"
destroy="3">
<doc xml:whitespace="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:whitespace="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:whitespace="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:whitespace="preserve">Gets the stored and exported icon paths from the client.
memory managed by the client. Duplicate if you want
to keep them.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A NULL-terminated list of icon paths with</doc>
<array c:type="GStrv">
<type name="utf8"/>
</array>
</return-value>
</method>
<method name="get_root" c:identifier="dbusmenu_client_get_root">
<doc xml:whitespace="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.
menu on the server. If there is no server or there is
an error receiving its layout it'll return #NULL.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A #DbusmenuMenuitem representing the root of</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</return-value>
</method>
<method name="get_status" c:identifier="dbusmenu_client_get_status">
<return-value transfer-ownership="none">
<type name="Status" c:type="DbusmenuStatus"/>
</return-value>
</method>
<method name="get_text_direction"
c:identifier="dbusmenu_client_get_text_direction">
<return-value transfer-ownership="none">
<type name="TextDirection" c:type="DbusmenuTextDirection"/>
</return-value>
</method>
<property name="dbus-name"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8"/>
</property>
<property name="dbus-object"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8"/>
</property>
<property name="group-events" writable="1" transfer-ownership="none">
<type name="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">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="ClientPrivate" c:type="DbusmenuClientPrivate*"/>
</field>
<glib:signal name="event-result" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="GObject.Object"/>
</parameter>
<parameter name="p0" transfer-ownership="none">
<type name="utf8"/>
</parameter>
<parameter name="p1" transfer-ownership="none">
<type name="GLib.Variant"/>
</parameter>
<parameter name="p2" transfer-ownership="none">
<type name="guint"/>
</parameter>
<parameter name="p3" transfer-ownership="none">
<type name="gpointer"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="icon-theme-dirs-changed" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="gpointer"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="item-activate" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="GObject.Object"/>
</parameter>
<parameter name="p0" transfer-ownership="none">
<type name="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="layout-updated" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
</glib:signal>
<glib:signal name="new-menuitem" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="GObject.Object"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="root-changed" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="GObject.Object"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="ClientClass"
c:type="DbusmenuClientClass"
glib:is-gtype-struct-for="Client">
<field name="parent_class">
<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">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="newitem" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="parent" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="client" transfer-ownership="none">
<type name="Client" c:type="DbusmenuClient*"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" closure="3">
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
<constant name="MENUITEM_CHILD_DISPLAY_SUBMENU"
value="submenu"
c:type="DBUSMENU_MENUITEM_CHILD_DISPLAY_SUBMENU">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_DISPOSITION_ALERT"
value="alert"
c:type="DBUSMENU_MENUITEM_DISPOSITION_ALERT">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_DISPOSITION_INFORMATIVE"
value="informative"
c:type="DBUSMENU_MENUITEM_DISPOSITION_INFORMATIVE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_DISPOSITION_NORMAL"
value="normal"
c:type="DBUSMENU_MENUITEM_DISPOSITION_NORMAL">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_DISPOSITION_WARNING"
value="warning"
c:type="DBUSMENU_MENUITEM_DISPOSITION_WARNING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_EVENT_ACTIVATED"
value="clicked"
c:type="DBUSMENU_MENUITEM_EVENT_ACTIVATED">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_EVENT_CLOSED"
value="closed"
c:type="DBUSMENU_MENUITEM_EVENT_CLOSED">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_EVENT_OPENED"
value="opened"
c:type="DBUSMENU_MENUITEM_EVENT_OPENED">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_ICON_NAME_BLANK"
value="blank-icon"
c:type="DBUSMENU_MENUITEM_ICON_NAME_BLANK">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_ACCESSIBLE_DESC"
value="accessible-desc"
c:type="DBUSMENU_MENUITEM_PROP_ACCESSIBLE_DESC">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_CHILD_DISPLAY"
value="children-display"
c:type="DBUSMENU_MENUITEM_PROP_CHILD_DISPLAY">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_DISPOSITION"
value="disposition"
c:type="DBUSMENU_MENUITEM_PROP_DISPOSITION">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_ENABLED"
value="enabled"
c:type="DBUSMENU_MENUITEM_PROP_ENABLED">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_ICON_DATA"
value="icon-data"
c:type="DBUSMENU_MENUITEM_PROP_ICON_DATA">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_ICON_NAME"
value="icon-name"
c:type="DBUSMENU_MENUITEM_PROP_ICON_NAME">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_LABEL"
value="label"
c:type="DBUSMENU_MENUITEM_PROP_LABEL">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_SHORTCUT"
value="shortcut"
c:type="DBUSMENU_MENUITEM_PROP_SHORTCUT">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_TOGGLE_STATE"
value="toggle-state"
c:type="DBUSMENU_MENUITEM_PROP_TOGGLE_STATE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_TOGGLE_TYPE"
value="toggle-type"
c:type="DBUSMENU_MENUITEM_PROP_TOGGLE_TYPE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_TYPE"
value="type"
c:type="DBUSMENU_MENUITEM_PROP_TYPE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_PROP_VISIBLE"
value="visible"
c:type="DBUSMENU_MENUITEM_PROP_VISIBLE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SHORTCUT_ALT"
value="Alt"
c:type="DBUSMENU_MENUITEM_SHORTCUT_ALT">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SHORTCUT_CONTROL"
value="Control"
c:type="DBUSMENU_MENUITEM_SHORTCUT_CONTROL">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SHORTCUT_SHIFT"
value="Shift"
c:type="DBUSMENU_MENUITEM_SHORTCUT_SHIFT">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SHORTCUT_SUPER"
value="Super"
c:type="DBUSMENU_MENUITEM_SHORTCUT_SUPER">
<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">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_CHILD_ADDED"
value="child-added"
c:type="DBUSMENU_MENUITEM_SIGNAL_CHILD_ADDED">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_CHILD_MOVED"
value="child-moved"
c:type="DBUSMENU_MENUITEM_SIGNAL_CHILD_MOVED">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_CHILD_REMOVED"
value="child-removed"
c:type="DBUSMENU_MENUITEM_SIGNAL_CHILD_REMOVED">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_EVENT"
value="event"
c:type="DBUSMENU_MENUITEM_SIGNAL_EVENT">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_ITEM_ACTIVATED"
value="item-activated"
c:type="DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_PROPERTY_CHANGED"
value="property-changed"
c:type="DBUSMENU_MENUITEM_SIGNAL_PROPERTY_CHANGED">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_SIGNAL_REALIZED"
value="realized"
c:type="DBUSMENU_MENUITEM_SIGNAL_REALIZED">
<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">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_TOGGLE_CHECK"
value="checkmark"
c:type="DBUSMENU_MENUITEM_TOGGLE_CHECK">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_TOGGLE_RADIO"
value="radio"
c:type="DBUSMENU_MENUITEM_TOGGLE_RADIO">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MENUITEM_TOGGLE_STATE_CHECKED"
value="1"
c:type="DBUSMENU_MENUITEM_TOGGLE_STATE_CHECKED">
<type name="gint" c:type="gint"/>
</constant>
<constant name="MENUITEM_TOGGLE_STATE_UNCHECKED"
value="0"
c:type="DBUSMENU_MENUITEM_TOGGLE_STATE_UNCHECKED">
<type name="gint" c:type="gint"/>
</constant>
<constant name="MENUITEM_TOGGLE_STATE_UNKNOWN"
value="-1"
c:type="DBUSMENU_MENUITEM_TOGGLE_STATE_UNKNOWN">
<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:whitespace="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:whitespace="preserve">Create a new #DbusmenuMenuitem with all default values.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="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:whitespace="preserve">This creates a blank #DbusmenuMenuitem with a specific ID.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly allocated #DbusmenuMenuitem.</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</return-value>
<parameters>
<parameter name="id" transfer-ownership="none">
<doc xml:whitespace="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>
<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>
<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>
</virtual-method>
<virtual-method name="handle_event" invoker="handle_event">
<doc xml:whitespace="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>
<parameter name="name" transfer-ownership="none">
<doc xml:whitespace="preserve">The name of the signal</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="variant" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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">
<doc xml:whitespace="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>
<parameter name="cb" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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>
<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:whitespace="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:whitespace="preserve">Whether @child was added successfully.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="child" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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:whitespace="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:whitespace="preserve">Whether the child has been added successfully.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="child" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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:whitespace="preserve">If we were able to delete @child.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="child" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="preserve">Search the children of @mi to find one with the ID of @id.
If it doesn't exist then we return #NULL.
can't be found.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The menu item with the ID @id or #NULL if it</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</return-value>
<parameters>
<parameter name="id" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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:whitespace="preserve">Whether the child has been added successfully.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="child" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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:whitespace="preserve">Whether the move was successful.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="child" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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:whitespace="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.
or #NULL if there isn't such a menu item in the tree
represented by @mi.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The #DbusmenuMenuitem with the ID of @id</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</return-value>
<parameters>
<parameter name="id" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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>
<parameter name="func" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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:whitespace="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:whitespace="preserve">A #GList of pointers to #DbusmenuMenuitem objects.</doc>
<type name="GLib.List" c:type="GList*">
<type name="Menuitem"/>
</type>
</return-value>
</method>
<method name="get_id" c:identifier="dbusmenu_menuitem_get_id">
<doc xml:whitespace="preserve">Gets the unique ID for @mi.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The ID of the @mi.</doc>
<type name="gint" c:type="gint"/>
</return-value>
</method>
<method name="get_parent" c:identifier="dbusmenu_menuitem_get_parent">
<doc xml:whitespace="preserve">This function looks up the parent of @mi</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The parent of this menu item</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</return-value>
</method>
<method name="get_position"
c:identifier="dbusmenu_menuitem_get_position">
<doc xml:whitespace="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:whitespace="preserve">The position of @mi in the children of @parent.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<parameter name="parent" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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:whitespace="preserve">The position of @mi in the realized children of @parent.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<parameter name="parent" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="preserve">This function returns the internal value of whether this is a
root node or not.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">#TRUE if this is a root node</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="handle_event"
c:identifier="dbusmenu_menuitem_handle_event">
<doc xml:whitespace="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>
<parameter name="name" transfer-ownership="none">
<doc xml:whitespace="preserve">The name of the signal</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="variant" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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:whitespace="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.
theroperties that are on this #DbusmenuMenuitem @mi.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A brand new #GHashTable that contains all of</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="gpointer" c:type="gpointer"/>
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
</method>
<method name="properties_list"
c:identifier="dbusmenu_menuitem_properties_list">
<doc xml:whitespace="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.
strings or NULL if there are none.</doc>
<return-value transfer-ownership="container">
<doc xml:whitespace="preserve">A list of</doc>
<type name="GLib.List" c:type="GList*">
<type name="utf8"/>
</type>
</return-value>
</method>
<method name="property_exist"
c:identifier="dbusmenu_menuitem_property_exist">
<doc xml:whitespace="preserve">Checkes to see if a particular property exists on @mi and
returns #TRUE if so.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A boolean checking to see if the property is available</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="property" transfer-ownership="none">
<doc xml:whitespace="preserve">The property to look for.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_get"
c:identifier="dbusmenu_menuitem_property_get">
<doc xml:whitespace="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.
that shouldn't be free'd. Or #NULL if the property
is not set or is not a string.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A string with the value of the property</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="property" transfer-ownership="none">
<doc xml:whitespace="preserve">The property to grab.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_get_bool"
c:identifier="dbusmenu_menuitem_property_get_bool">
<doc xml:whitespace="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:whitespace="preserve">The value of the property or #FALSE.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="property" transfer-ownership="none">
<doc xml:whitespace="preserve">The property to grab.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_get_byte_array"
c:identifier="dbusmenu_menuitem_property_get_byte_array">
<doc xml:whitespace="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.
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>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A byte array with the</doc>
<array length="1" zero-terminated="0" c:type="guchar*">
<type name="guint8"/>
</array>
</return-value>
<parameters>
<parameter name="property" transfer-ownership="none">
<doc xml:whitespace="preserve">The property to grab.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="nelements"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:whitespace="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:whitespace="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:whitespace="preserve">The value of the property or zero.</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<parameter name="property" transfer-ownership="none">
<doc xml:whitespace="preserve">The property to grab.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_get_variant"
c:identifier="dbusmenu_menuitem_property_get_variant">
<doc xml:whitespace="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:whitespace="preserve">A GVariant for the property.</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</return-value>
<parameters>
<parameter name="property" transfer-ownership="none">
<doc xml:whitespace="preserve">The property to grab.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_remove"
c:identifier="dbusmenu_menuitem_property_remove">
<doc xml:whitespace="preserve">Removes a property from the menuitem.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="property" transfer-ownership="none">
<doc xml:whitespace="preserve">The property to look for.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_set"
c:identifier="dbusmenu_menuitem_property_set">
<doc xml:whitespace="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:whitespace="preserve">A boolean representing if the property value was set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="property" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the property to set.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">The value of the property.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="property_set_bool"
c:identifier="dbusmenu_menuitem_property_set_bool">
<doc xml:whitespace="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:whitespace="preserve">A boolean representing if the property value was set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="property" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the property to set.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">The value of the property.</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="property_set_byte_array"
c:identifier="dbusmenu_menuitem_property_set_byte_array">
<doc xml:whitespace="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:whitespace="preserve">A boolean representing if the property value was set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="property" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the property to set.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">The byte array.</doc>
<type name="guint8" c:type="guchar*"/>
</parameter>
<parameter name="nelements" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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:whitespace="preserve">A boolean representing if the property value was set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="property" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the property to set.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="preserve">The value of the property.</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</method>
<method name="property_set_variant"
c:identifier="dbusmenu_menuitem_property_set_variant">
<doc xml:whitespace="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:whitespace="preserve">A boolean representing if the property value was set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="property" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of the property to set.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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>
<parameter name="cb" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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:whitespace="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:whitespace="preserve">Whether the parent was set successfully</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="parent" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="preserve">This function sets the internal value of whether this is a
root node or not.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">None</doc>
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="root" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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>
<parameter name="timestamp" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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.
A #GList of pointers to #DbusmenuMenuitem objects.</doc>
<return-value transfer-ownership="full">
<type name="GLib.List" c:type="GList*">
<type name="Menuitem"/>
</type>
</return-value>
</method>
<method name="unparent" c:identifier="dbusmenu_menuitem_unparent">
<doc xml:whitespace="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:whitespace="preserve">Whether the menu item was unparented successfully</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<property name="id"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="gint"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="MenuitemPrivate" c:type="DbusmenuMenuitemPrivate*"/>
</field>
<glib:signal name="about-to-show" when="last">
<return-value transfer-ownership="none">
<type name="gboolean"/>
</return-value>
</glib:signal>
<glib:signal name="child-added" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="GObject.Object"/>
</parameter>
<parameter name="p0" transfer-ownership="none">
<type name="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="child-moved" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="GObject.Object"/>
</parameter>
<parameter name="p0" transfer-ownership="none">
<type name="guint"/>
</parameter>
<parameter name="p1" transfer-ownership="none">
<type name="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="child-removed" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="GObject.Object"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="event" when="last" detailed="1">
<return-value transfer-ownership="none">
<type name="gboolean"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="utf8"/>
</parameter>
<parameter name="p0" transfer-ownership="none">
<type name="GLib.Variant"/>
</parameter>
<parameter name="p1" transfer-ownership="none">
<type name="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="item-activated" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="property-changed" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="utf8"/>
</parameter>
<parameter name="p0" transfer-ownership="none">
<type name="GLib.Variant"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="realized" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
</glib:signal>
<glib:signal name="show-to-user" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="guint"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="MenuitemClass"
c:type="DbusmenuMenuitemClass"
glib:is-gtype-struct-for="Menuitem">
<doc xml:whitespace="preserve">Functions and signals that every menuitem should know something
about.</doc>
<field name="parent_class">
<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">
<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">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
<parameter name="name" transfer-ownership="none">
<doc xml:whitespace="preserve">The name of the signal</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="variant" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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">
<callback name="send_about_to_show">
<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="cb" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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="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">
</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">
<constructor name="new" c:identifier="dbusmenu_menuitem_proxy_new">
<doc xml:whitespace="preserve">Builds a new #DbusmenuMenuitemProxy object that proxies
all of the values for @mi.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A new #DbusmenuMenuitemProxy object.</doc>
<type name="MenuitemProxy" c:type="DbusmenuMenuitemProxy*"/>
</return-value>
<parameters>
<parameter name="mi" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="preserve">Accesses the private variable of which #DbusmenuMenuitem
we are doing the proxying for.
don't have one or there is an error.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A #DbusmenuMenuitem object or a #NULL if we</doc>
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</return-value>
</method>
<property name="menu-item"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="Menuitem"/>
</property>
<field name="parent">
<type name="Menuitem" c:type="DbusmenuMenuitem"/>
</field>
<field name="priv">
<type name="MenuitemProxyPrivate"
c:type="DbusmenuMenuitemProxyPrivate*"/>
</field>
</class>
<record name="MenuitemProxyClass"
c:type="DbusmenuMenuitemProxyClass"
glib:is-gtype-struct-for="MenuitemProxy">
<field name="parent_class">
<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">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_PROP_ROOT_NODE"
value="root-node"
c:type="DBUSMENU_SERVER_PROP_ROOT_NODE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_PROP_STATUS"
value="status"
c:type="DBUSMENU_SERVER_PROP_STATUS">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_PROP_TEXT_DIRECTION"
value="text-direction"
c:type="DBUSMENU_SERVER_PROP_TEXT_DIRECTION">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_PROP_VERSION"
value="version"
c:type="DBUSMENU_SERVER_PROP_VERSION">
<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">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_SIGNAL_ID_UPDATE"
value="item-updated"
c:type="DBUSMENU_SERVER_SIGNAL_ID_UPDATE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_SIGNAL_ITEM_ACTIVATION"
value="item-activation-requested"
c:type="DBUSMENU_SERVER_SIGNAL_ITEM_ACTIVATION">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="SERVER_SIGNAL_LAYOUT_UPDATED"
value="layout-updated"
c:type="DBUSMENU_SERVER_SIGNAL_LAYOUT_UPDATED">
<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">
<constructor name="new" c:identifier="dbusmenu_server_new">
<return-value transfer-ownership="full">
<type name="Server" c:type="DbusmenuServer*"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</constructor>
<method name="get_icon_paths"
c:identifier="dbusmenu_server_get_icon_paths">
<doc xml:whitespace="preserve">Gets the stored and exported icon paths from the server.
memory managed by the server. Duplicate if you want
to keep them.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A NULL-terminated list of icon paths with</doc>
<array c:type="GStrv">
<type name="utf8"/>
</array>
</return-value>
</method>
<method name="get_status" c:identifier="dbusmenu_server_get_status">
<return-value transfer-ownership="none">
<type name="Status" c:type="DbusmenuStatus"/>
</return-value>
</method>
<method name="get_text_direction"
c:identifier="dbusmenu_server_get_text_direction">
<return-value transfer-ownership="none">
<type name="TextDirection" c:type="DbusmenuTextDirection"/>
</return-value>
</method>
<method name="set_icon_paths"
c:identifier="dbusmenu_server_set_icon_paths">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<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">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="root" transfer-ownership="none">
<type name="Menuitem" c:type="DbusmenuMenuitem*"/>
</parameter>
</parameters>
</method>
<method name="set_status" c:identifier="dbusmenu_server_set_status">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="status" transfer-ownership="none">
<type name="Status" c:type="DbusmenuStatus"/>
</parameter>
</parameters>
</method>
<method name="set_text_direction"
c:identifier="dbusmenu_server_set_text_direction">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="dir" transfer-ownership="none">
<type name="TextDirection" c:type="DbusmenuTextDirection"/>
</parameter>
</parameters>
</method>
<property name="dbus-object"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8"/>
</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"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="ServerPrivate" c:type="DbusmenuServerPrivate*"/>
</field>
<glib:signal name="item-activation-requested" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="gint"/>
</parameter>
<parameter name="p0" transfer-ownership="none">
<type name="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="item-property-updated" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="gint"/>
</parameter>
<parameter name="p0" transfer-ownership="none">
<type name="utf8"/>
</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"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="gint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="layout-updated" when="last">
<return-value transfer-ownership="none">
<type name="none"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<type name="guint"/>
</parameter>
<parameter name="p0" transfer-ownership="none">
<type name="gint"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="ServerClass"
c:type="DbusmenuServerClass"
glib:is-gtype-struct-for="Server">
<field name="parent_class">
<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">
<member name="normal" value="0" c:identifier="DBUSMENU_STATUS_NORMAL"/>
<member name="notice" value="1" c:identifier="DBUSMENU_STATUS_NOTICE"/>
</enumeration>
<enumeration name="TextDirection" c:type="DbusmenuTextDirection">
<member name="none"
value="0"
c:identifier="DBUSMENU_TEXT_DIRECTION_NONE"/>
<member name="ltr" value="1" c:identifier="DBUSMENU_TEXT_DIRECTION_LTR"/>
<member name="rtl" value="2" c:identifier="DBUSMENU_TEXT_DIRECTION_RTL"/>
</enumeration>
<callback name="menuitem_about_to_show_cb"
c:type="dbusmenu_menuitem_about_to_show_cb">
<doc xml:whitespace="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:whitespace="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:whitespace="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:whitespace="preserve">This is the function that is called to represent this menu item
as a variant. Should call it's own children.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A variant representing this item and it's children</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</return-value>
<parameters>
<parameter name="mi" transfer-ownership="none">
<doc xml:whitespace="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:whitespace="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>
|