blob: a19855471dc92a7c52e6d9b7c326c51a3073c76d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
A library to allow applictions to provide simple indications of
information to be displayed to users of the application through the
interface shell.
Copyright 2009 Canonical Ltd.
Authors:
Ted Gould <ted@canonical.com>
This program is free software: you can redistribute it and/or modify it
under the terms of either or both of the following licenses:
1) the GNU Lesser General Public License version 3, as published by the
Free Software Foundation; and/or
2) the GNU Lesser General Public License version 2.1, as published by
the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranties of
MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
PURPOSE. See the applicable version of the GNU Lesser General Public
License for more details.
You should have received a copy of both the GNU Lesser General Public
License version 3 and version 2.1 along with this program. If not, see
<http://www.gnu.org/licenses/>
-->
<node name="/">
<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"/>
<property name="version" type="u" 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="v" 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{sv}" 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="v" 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>
<!-- End of interesting stuff -->
</interface>
</node>
|