aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/dbus-menu.xml
diff options
context:
space:
mode:
authorAurelien Gateau <aurelien.gateau@canonical.com>2009-10-28 18:01:12 +0100
committerAurelien Gateau <aurelien.gateau@canonical.com>2009-10-28 18:01:12 +0100
commitaf2c2456d63b6bd61f588155c033465871191c14 (patch)
tree0dd21b9f94a93a2e659261bec356ac9d74dc6a2a /libdbusmenu-glib/dbus-menu.xml
parenteb1fb47800188b38f06c6b5933d2362bfaace29c (diff)
downloadlibdbusmenu-af2c2456d63b6bd61f588155c033465871191c14.tar.gz
libdbusmenu-af2c2456d63b6bd61f588155c033465871191c14.tar.bz2
libdbusmenu-af2c2456d63b6bd61f588155c033465871191c14.zip
Added documentation
Diffstat (limited to 'libdbusmenu-glib/dbus-menu.xml')
-rw-r--r--libdbusmenu-glib/dbus-menu.xml57
1 files changed, 57 insertions, 0 deletions
diff --git a/libdbusmenu-glib/dbus-menu.xml b/libdbusmenu-glib/dbus-menu.xml
index cca9823..c22d477 100644
--- a/libdbusmenu-glib/dbus-menu.xml
+++ b/libdbusmenu-glib/dbus-menu.xml
@@ -31,31 +31,88 @@ License version 3 and version 2.1 along with this program. If not, see
<interface name="org.freedesktop.dbusmenu">
<!-- Properties -->
+<!--
+Provides an XML representation of the menu hierarchy
+
+XML syntax:
+
+<menu id="1" revision="2"> # Root container
+ <menu id="2" revision="2"> # First level menu, for example "File"
+ <menu id="3" revision="2"/> ~ Second level menu, for example "Open"
+ <menu id="4" revision="3"/>
+ ...
+ </menu>
+ <menu id="5" revision="2"> # Another first level menu, say "Edit"
+ ...
+ </menu>
+ ...
+</menu>
+-->
<property name="layout" type="s" access="read"/>
<!-- Functions -->
+
+<!--
+Each menu item has a set of properties. Property keys are in menuitem.h:
+
+- visible
+- sensitive
+- label
+- icon
+- icon-data
+- type
+
+"type" property is an enum which can take the following values (client.h):
+
+- menuitem
+- separator
+- imageitem
+-->
<method name="GetProperty">
<arg type="u" name="id" direction="in" />
<arg type="s" name="property" direction="in" />
<arg type="s" name="value" direction="out" />
</method>
+
+<!--
+Convenience method to retrieve all properties in one call (more efficient)
+-->
<method name="GetProperties">
<arg type="u" name="id" direction="in" />
<arg type="a{ss}" name="properties" direction="out" />
</method>
+
+<!--
+This is called by the display to notify the application it should trigger
+the action associated with a specific menu id
+-->
<method name="Call">
<arg type="u" name="id" direction="in" />
</method>
<!-- Signals -->
+<!--
+Triggered by the application to notify display that the property prop from menu id
+as changed to value.
+-->
<signal name="IdPropUpdate">
<arg type="u" name="id" direction="out" />
<arg type="s" name="prop" direction="out" />
<arg type="s" name="value" direction="out" />
</signal>
+
+<!--
+Triggered by the application to notify display that all properties of menu id
+should be considered outdated
+-->
<signal name="IdUpdate">
<arg type="u" name="id" direction="out" />
</signal>
+
+<!--
+Triggered by the application to notify display of a layout update, up to
+revision
+-->
<signal name="LayoutUpdate">
<arg type="i" name="revision" direction="out" />
</signal>