@girs/dbusmenu-0.4 0.4.0-3.2.6 → 0.4.0-3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dbusmenu-0.4.d.cts +81 -81
- package/dbusmenu-0.4.d.ts +81 -81
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Dbusmenu-0.4, generated from library version 0.4.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Dbusmenu-0.4, generated from library version 0.4.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
A small little library that was created by pulling out some comon code out of indicator-applet. It passes a menu structure across DBus so that a program can create a menu simply without worrying about how it is displayed on the other side of the bus.
|
|
11
11
|
|
package/dbusmenu-0.4.d.cts
CHANGED
|
@@ -49,113 +49,113 @@ export enum TextDirection {
|
|
|
49
49
|
/**
|
|
50
50
|
* String to access property #DbusmenuClient:dbus-name
|
|
51
51
|
*/
|
|
52
|
-
export const CLIENT_PROP_DBUS_NAME: string
|
|
52
|
+
export const CLIENT_PROP_DBUS_NAME: string
|
|
53
53
|
/**
|
|
54
54
|
* String to access property #DbusmenuClient:dbus-object
|
|
55
55
|
*/
|
|
56
|
-
export const CLIENT_PROP_DBUS_OBJECT: string
|
|
56
|
+
export const CLIENT_PROP_DBUS_OBJECT: string
|
|
57
57
|
/**
|
|
58
58
|
* String to access property #DbusmenuClient:group-events
|
|
59
59
|
*/
|
|
60
|
-
export const CLIENT_PROP_GROUP_EVENTS: string
|
|
60
|
+
export const CLIENT_PROP_GROUP_EVENTS: string
|
|
61
61
|
/**
|
|
62
62
|
* String to access property #DbusmenuClient:status
|
|
63
63
|
*/
|
|
64
|
-
export const CLIENT_PROP_STATUS: string
|
|
64
|
+
export const CLIENT_PROP_STATUS: string
|
|
65
65
|
/**
|
|
66
66
|
* String to access property #DbusmenuClient:text-direction
|
|
67
67
|
*/
|
|
68
|
-
export const CLIENT_PROP_TEXT_DIRECTION: string
|
|
68
|
+
export const CLIENT_PROP_TEXT_DIRECTION: string
|
|
69
69
|
/**
|
|
70
70
|
* String to attach to signal #DbusmenuClient::event-result
|
|
71
71
|
*/
|
|
72
|
-
export const CLIENT_SIGNAL_EVENT_RESULT: string
|
|
72
|
+
export const CLIENT_SIGNAL_EVENT_RESULT: string
|
|
73
73
|
/**
|
|
74
74
|
* String to attach to signal #DbusmenuClient::icon-theme-dirs-changed
|
|
75
75
|
*/
|
|
76
|
-
export const CLIENT_SIGNAL_ICON_THEME_DIRS_CHANGED: string
|
|
76
|
+
export const CLIENT_SIGNAL_ICON_THEME_DIRS_CHANGED: string
|
|
77
77
|
/**
|
|
78
78
|
* String to attach to signal #DbusmenuClient::item-activate
|
|
79
79
|
*/
|
|
80
|
-
export const CLIENT_SIGNAL_ITEM_ACTIVATE: string
|
|
80
|
+
export const CLIENT_SIGNAL_ITEM_ACTIVATE: string
|
|
81
81
|
/**
|
|
82
82
|
* String to attach to signal #DbusmenuClient::layout-updated
|
|
83
83
|
*/
|
|
84
|
-
export const CLIENT_SIGNAL_LAYOUT_UPDATED: string
|
|
84
|
+
export const CLIENT_SIGNAL_LAYOUT_UPDATED: string
|
|
85
85
|
/**
|
|
86
86
|
* String to attach to signal #DbusmenuClient::new-menuitem
|
|
87
87
|
*/
|
|
88
|
-
export const CLIENT_SIGNAL_NEW_MENUITEM: string
|
|
88
|
+
export const CLIENT_SIGNAL_NEW_MENUITEM: string
|
|
89
89
|
/**
|
|
90
90
|
* String to attach to signal #DbusmenuClient::root-changed
|
|
91
91
|
*/
|
|
92
|
-
export const CLIENT_SIGNAL_ROOT_CHANGED: string
|
|
92
|
+
export const CLIENT_SIGNAL_ROOT_CHANGED: string
|
|
93
93
|
/**
|
|
94
94
|
* Used to set the 'type' property on a menu item to create
|
|
95
95
|
* a standard menu item.
|
|
96
96
|
*/
|
|
97
|
-
export const CLIENT_TYPES_DEFAULT: string
|
|
97
|
+
export const CLIENT_TYPES_DEFAULT: string
|
|
98
98
|
/**
|
|
99
99
|
* Used to set the 'type' property on a menu item to create
|
|
100
100
|
* an image menu item. Deprecated as standard menu items now
|
|
101
101
|
* support images as well.
|
|
102
102
|
*/
|
|
103
|
-
export const CLIENT_TYPES_IMAGE: string
|
|
103
|
+
export const CLIENT_TYPES_IMAGE: string
|
|
104
104
|
/**
|
|
105
105
|
* Used to set the 'type' property on a menu item to create
|
|
106
106
|
* a separator menu item.
|
|
107
107
|
*/
|
|
108
|
-
export const CLIENT_TYPES_SEPARATOR: string
|
|
108
|
+
export const CLIENT_TYPES_SEPARATOR: string
|
|
109
109
|
/**
|
|
110
110
|
* Used in #DBUSMENU_MENUITEM_PROP_CHILD_DISPLAY to have the
|
|
111
111
|
* subitems displayed as a submenu.
|
|
112
112
|
*/
|
|
113
|
-
export const MENUITEM_CHILD_DISPLAY_SUBMENU: string
|
|
113
|
+
export const MENUITEM_CHILD_DISPLAY_SUBMENU: string
|
|
114
114
|
/**
|
|
115
115
|
* Used in #DBUSMENU_MENUITEM_PROP_DISPOSITION to have a menu
|
|
116
116
|
* item displayed in a way that conveys it's giving an alert
|
|
117
117
|
* to the user.
|
|
118
118
|
*/
|
|
119
|
-
export const MENUITEM_DISPOSITION_ALERT: string
|
|
119
|
+
export const MENUITEM_DISPOSITION_ALERT: string
|
|
120
120
|
/**
|
|
121
121
|
* Used in #DBUSMENU_MENUITEM_PROP_DISPOSITION to have a menu
|
|
122
122
|
* item displayed in a way that conveys it's giving additional
|
|
123
123
|
* information to the user.
|
|
124
124
|
*/
|
|
125
|
-
export const MENUITEM_DISPOSITION_INFORMATIVE: string
|
|
125
|
+
export const MENUITEM_DISPOSITION_INFORMATIVE: string
|
|
126
126
|
/**
|
|
127
127
|
* Used in #DBUSMENU_MENUITEM_PROP_DISPOSITION to have a menu
|
|
128
128
|
* item displayed in the normal manner. Default value.
|
|
129
129
|
*/
|
|
130
|
-
export const MENUITEM_DISPOSITION_NORMAL: string
|
|
130
|
+
export const MENUITEM_DISPOSITION_NORMAL: string
|
|
131
131
|
/**
|
|
132
132
|
* Used in #DBUSMENU_MENUITEM_PROP_DISPOSITION to have a menu
|
|
133
133
|
* item displayed in a way that conveys it's giving a warning
|
|
134
134
|
* to the user.
|
|
135
135
|
*/
|
|
136
|
-
export const MENUITEM_DISPOSITION_WARNING: string
|
|
136
|
+
export const MENUITEM_DISPOSITION_WARNING: string
|
|
137
137
|
/**
|
|
138
138
|
* String for the event identifier when a menu item is clicked
|
|
139
139
|
* on by the user.
|
|
140
140
|
*/
|
|
141
|
-
export const MENUITEM_EVENT_ACTIVATED: string
|
|
141
|
+
export const MENUITEM_EVENT_ACTIVATED: string
|
|
142
142
|
/**
|
|
143
143
|
* String for the event identifier when a menu is closed and
|
|
144
144
|
* displayed to the user. Only valid for items that contain
|
|
145
145
|
* submenus.
|
|
146
146
|
*/
|
|
147
|
-
export const MENUITEM_EVENT_CLOSED: string
|
|
147
|
+
export const MENUITEM_EVENT_CLOSED: string
|
|
148
148
|
/**
|
|
149
149
|
* String for the event identifier when a menu is opened and
|
|
150
150
|
* displayed to the user. Only valid for items that contain
|
|
151
151
|
* submenus.
|
|
152
152
|
*/
|
|
153
|
-
export const MENUITEM_EVENT_OPENED: string
|
|
153
|
+
export const MENUITEM_EVENT_OPENED: string
|
|
154
154
|
/**
|
|
155
155
|
* Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_STATE so that the menu's
|
|
156
156
|
* toggle item is undecided.
|
|
157
157
|
*/
|
|
158
|
-
export const MENUITEM_ICON_NAME_BLANK: string
|
|
158
|
+
export const MENUITEM_ICON_NAME_BLANK: string
|
|
159
159
|
/**
|
|
160
160
|
* #DbusmenuMenuitem property used to provide a textual description of any
|
|
161
161
|
* information that the icon may convey. The contents of this property are
|
|
@@ -164,23 +164,23 @@ export const MENUITEM_ICON_NAME_BLANK: string | null
|
|
|
164
164
|
* this property is set, Orca will use this property instead of the label
|
|
165
165
|
* property.
|
|
166
166
|
*/
|
|
167
|
-
export const MENUITEM_PROP_ACCESSIBLE_DESC: string
|
|
167
|
+
export const MENUITEM_PROP_ACCESSIBLE_DESC: string
|
|
168
168
|
/**
|
|
169
169
|
* #DbusmenuMenuitem property that tells how the children of this menuitem
|
|
170
170
|
* should be displayed. Most likely this will be unset or of the value
|
|
171
171
|
* #DBUSMENU_MENUITEM_CHILD_DISPLAY_SUBMENU. Type: #G_VARIANT_TYPE_STRING
|
|
172
172
|
*/
|
|
173
|
-
export const MENUITEM_PROP_CHILD_DISPLAY: string
|
|
173
|
+
export const MENUITEM_PROP_CHILD_DISPLAY: string
|
|
174
174
|
/**
|
|
175
175
|
* #DbusmenuMenuitem property to tell what type of information that the
|
|
176
176
|
* menu item is displaying to the user. Type: #G_VARIANT_TYPE_STRING
|
|
177
177
|
*/
|
|
178
|
-
export const MENUITEM_PROP_DISPOSITION: string
|
|
178
|
+
export const MENUITEM_PROP_DISPOSITION: string
|
|
179
179
|
/**
|
|
180
180
|
* #DbusmenuMenuitem property used to represent whether the menuitem
|
|
181
181
|
* is clickable or not. Type: #G_VARIANT_TYPE_BOOLEAN.
|
|
182
182
|
*/
|
|
183
|
-
export const MENUITEM_PROP_ENABLED: string
|
|
183
|
+
export const MENUITEM_PROP_ENABLED: string
|
|
184
184
|
/**
|
|
185
185
|
* #DbusmenuMenuitem property that is the raw data of a custom icon
|
|
186
186
|
* used in the application. Type: #G_VARIANT_TYPE_VARIANT
|
|
@@ -188,16 +188,16 @@ export const MENUITEM_PROP_ENABLED: string | null
|
|
|
188
188
|
* It is recommended that this is not set directly but instead the
|
|
189
189
|
* libdbusmenu-gtk library is used with the function dbusmenu_menuitem_property_set_image()
|
|
190
190
|
*/
|
|
191
|
-
export const MENUITEM_PROP_ICON_DATA: string
|
|
191
|
+
export const MENUITEM_PROP_ICON_DATA: string
|
|
192
192
|
/**
|
|
193
193
|
* #DbusmenuMenuitem property that is the name of the icon under the
|
|
194
194
|
* Freedesktop.org icon naming spec. Type: #G_VARIANT_TYPE_STRING
|
|
195
195
|
*/
|
|
196
|
-
export const MENUITEM_PROP_ICON_NAME: string
|
|
196
|
+
export const MENUITEM_PROP_ICON_NAME: string
|
|
197
197
|
/**
|
|
198
198
|
* #DbusmenuMenuitem property used for the text on the menu item.
|
|
199
199
|
*/
|
|
200
|
-
export const MENUITEM_PROP_LABEL: string
|
|
200
|
+
export const MENUITEM_PROP_LABEL: string
|
|
201
201
|
/**
|
|
202
202
|
* #DbusmenuMenuitem property that is the entries that represent a shortcut
|
|
203
203
|
* to activate the menuitem. It is an array of arrays of strings.
|
|
@@ -205,95 +205,95 @@ export const MENUITEM_PROP_LABEL: string | null
|
|
|
205
205
|
* It is recommended that this is not set directly but instead the
|
|
206
206
|
* libdbusmenu-gtk library is used with the function dbusmenu_menuitem_property_set_shortcut()
|
|
207
207
|
*/
|
|
208
|
-
export const MENUITEM_PROP_SHORTCUT: string
|
|
208
|
+
export const MENUITEM_PROP_SHORTCUT: string
|
|
209
209
|
/**
|
|
210
210
|
* #DbusmenuMenuitem property that says what state a toggle entry should
|
|
211
211
|
* be shown as the menu. Should be either #DBUSMENU_MENUITEM_TOGGLE_STATE_UNCHECKED
|
|
212
212
|
* #DBUSMENU_MENUITEM_TOGGLE_STATE_CHECKED or #DBUSMENU_MENUITEM_TOGGLE_STATUE_UNKNOWN.
|
|
213
213
|
*/
|
|
214
|
-
export const MENUITEM_PROP_TOGGLE_STATE: string
|
|
214
|
+
export const MENUITEM_PROP_TOGGLE_STATE: string
|
|
215
215
|
/**
|
|
216
216
|
* #DbusmenuMenuitem property that says what type of toggle entry should
|
|
217
217
|
* be shown in the menu. Should be either #DBUSMENU_MENUITEM_TOGGLE_CHECK
|
|
218
218
|
* or #DBUSMENU_MENUITEM_TOGGLE_RADIO. Type: #G_VARIANT_TYPE_STRING
|
|
219
219
|
*/
|
|
220
|
-
export const MENUITEM_PROP_TOGGLE_TYPE: string
|
|
220
|
+
export const MENUITEM_PROP_TOGGLE_TYPE: string
|
|
221
221
|
/**
|
|
222
222
|
* #DbusmenuMenuitem property used to represent what type of menuitem
|
|
223
223
|
* this object represents. Type: #G_VARIANT_TYPE_STRING.
|
|
224
224
|
*/
|
|
225
|
-
export const MENUITEM_PROP_TYPE: string
|
|
225
|
+
export const MENUITEM_PROP_TYPE: string
|
|
226
226
|
/**
|
|
227
227
|
* #DbusmenuMenuitem property used to represent whether the menuitem
|
|
228
228
|
* should be shown or not. Type: #G_VARIANT_TYPE_BOOLEAN.
|
|
229
229
|
*/
|
|
230
|
-
export const MENUITEM_PROP_VISIBLE: string
|
|
230
|
+
export const MENUITEM_PROP_VISIBLE: string
|
|
231
231
|
/**
|
|
232
232
|
* Used in #DBUSMENU_MENUITEM_PROP_SHORTCUT to represent the
|
|
233
233
|
* alternate key.
|
|
234
234
|
*/
|
|
235
|
-
export const MENUITEM_SHORTCUT_ALT: string
|
|
235
|
+
export const MENUITEM_SHORTCUT_ALT: string
|
|
236
236
|
/**
|
|
237
237
|
* Used in #DBUSMENU_MENUITEM_PROP_SHORTCUT to represent the
|
|
238
238
|
* control key.
|
|
239
239
|
*/
|
|
240
|
-
export const MENUITEM_SHORTCUT_CONTROL: string
|
|
240
|
+
export const MENUITEM_SHORTCUT_CONTROL: string
|
|
241
241
|
/**
|
|
242
242
|
* Used in #DBUSMENU_MENUITEM_PROP_SHORTCUT to represent the
|
|
243
243
|
* shift key.
|
|
244
244
|
*/
|
|
245
|
-
export const MENUITEM_SHORTCUT_SHIFT: string
|
|
245
|
+
export const MENUITEM_SHORTCUT_SHIFT: string
|
|
246
246
|
/**
|
|
247
247
|
* Used in #DBUSMENU_MENUITEM_PROP_SHORTCUT to represent the
|
|
248
248
|
* super key.
|
|
249
249
|
*/
|
|
250
|
-
export const MENUITEM_SHORTCUT_SUPER: string
|
|
250
|
+
export const MENUITEM_SHORTCUT_SUPER: string
|
|
251
251
|
/**
|
|
252
252
|
* String to attach to signal #DbusmenuServer::about-to-show
|
|
253
253
|
*/
|
|
254
|
-
export const MENUITEM_SIGNAL_ABOUT_TO_SHOW: string
|
|
254
|
+
export const MENUITEM_SIGNAL_ABOUT_TO_SHOW: string
|
|
255
255
|
/**
|
|
256
256
|
* String to attach to signal #DbusmenuServer::child-added
|
|
257
257
|
*/
|
|
258
|
-
export const MENUITEM_SIGNAL_CHILD_ADDED: string
|
|
258
|
+
export const MENUITEM_SIGNAL_CHILD_ADDED: string
|
|
259
259
|
/**
|
|
260
260
|
* String to attach to signal #DbusmenuServer::child-moved
|
|
261
261
|
*/
|
|
262
|
-
export const MENUITEM_SIGNAL_CHILD_MOVED: string
|
|
262
|
+
export const MENUITEM_SIGNAL_CHILD_MOVED: string
|
|
263
263
|
/**
|
|
264
264
|
* String to attach to signal #DbusmenuServer::child-removed
|
|
265
265
|
*/
|
|
266
|
-
export const MENUITEM_SIGNAL_CHILD_REMOVED: string
|
|
266
|
+
export const MENUITEM_SIGNAL_CHILD_REMOVED: string
|
|
267
267
|
/**
|
|
268
268
|
* String to attach to signal #DbusmenuServer::event
|
|
269
269
|
*/
|
|
270
|
-
export const MENUITEM_SIGNAL_EVENT: string
|
|
270
|
+
export const MENUITEM_SIGNAL_EVENT: string
|
|
271
271
|
/**
|
|
272
272
|
* String to attach to signal #DbusmenuServer::item-activated
|
|
273
273
|
*/
|
|
274
|
-
export const MENUITEM_SIGNAL_ITEM_ACTIVATED: string
|
|
274
|
+
export const MENUITEM_SIGNAL_ITEM_ACTIVATED: string
|
|
275
275
|
/**
|
|
276
276
|
* String to attach to signal #DbusmenuServer::property-changed
|
|
277
277
|
*/
|
|
278
|
-
export const MENUITEM_SIGNAL_PROPERTY_CHANGED: string
|
|
278
|
+
export const MENUITEM_SIGNAL_PROPERTY_CHANGED: string
|
|
279
279
|
/**
|
|
280
280
|
* String to attach to signal #DbusmenuServer::realized
|
|
281
281
|
*/
|
|
282
|
-
export const MENUITEM_SIGNAL_REALIZED: string
|
|
282
|
+
export const MENUITEM_SIGNAL_REALIZED: string
|
|
283
283
|
/**
|
|
284
284
|
* String to attach to signal #DbusmenuServer::show-to-user
|
|
285
285
|
*/
|
|
286
|
-
export const MENUITEM_SIGNAL_SHOW_TO_USER: string
|
|
286
|
+
export const MENUITEM_SIGNAL_SHOW_TO_USER: string
|
|
287
287
|
/**
|
|
288
288
|
* Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_TYPE to be a standard
|
|
289
289
|
* check mark item.
|
|
290
290
|
*/
|
|
291
|
-
export const MENUITEM_TOGGLE_CHECK: string
|
|
291
|
+
export const MENUITEM_TOGGLE_CHECK: string
|
|
292
292
|
/**
|
|
293
293
|
* Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_TYPE to be a standard
|
|
294
294
|
* radio item.
|
|
295
295
|
*/
|
|
296
|
-
export const MENUITEM_TOGGLE_RADIO: string
|
|
296
|
+
export const MENUITEM_TOGGLE_RADIO: string
|
|
297
297
|
/**
|
|
298
298
|
* Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_STATE so that the menu's
|
|
299
299
|
* toggle item is filled.
|
|
@@ -312,39 +312,39 @@ export const MENUITEM_TOGGLE_STATE_UNKNOWN: number
|
|
|
312
312
|
/**
|
|
313
313
|
* String to access property #DbusmenuServer:dbus-object
|
|
314
314
|
*/
|
|
315
|
-
export const SERVER_PROP_DBUS_OBJECT: string
|
|
315
|
+
export const SERVER_PROP_DBUS_OBJECT: string
|
|
316
316
|
/**
|
|
317
317
|
* String to access property #DbusmenuServer:root-node
|
|
318
318
|
*/
|
|
319
|
-
export const SERVER_PROP_ROOT_NODE: string
|
|
319
|
+
export const SERVER_PROP_ROOT_NODE: string
|
|
320
320
|
/**
|
|
321
321
|
* String to access property #DbusmenuServer:status
|
|
322
322
|
*/
|
|
323
|
-
export const SERVER_PROP_STATUS: string
|
|
323
|
+
export const SERVER_PROP_STATUS: string
|
|
324
324
|
/**
|
|
325
325
|
* String to access property #DbusmenuServer:text-direction
|
|
326
326
|
*/
|
|
327
|
-
export const SERVER_PROP_TEXT_DIRECTION: string
|
|
327
|
+
export const SERVER_PROP_TEXT_DIRECTION: string
|
|
328
328
|
/**
|
|
329
329
|
* String to access property #DbusmenuServer:version
|
|
330
330
|
*/
|
|
331
|
-
export const SERVER_PROP_VERSION: string
|
|
331
|
+
export const SERVER_PROP_VERSION: string
|
|
332
332
|
/**
|
|
333
333
|
* String to attach to signal #DbusmenuServer::item-property-updated
|
|
334
334
|
*/
|
|
335
|
-
export const SERVER_SIGNAL_ID_PROP_UPDATE: string
|
|
335
|
+
export const SERVER_SIGNAL_ID_PROP_UPDATE: string
|
|
336
336
|
/**
|
|
337
337
|
* String to attach to signal #DbusmenuServer::item-updated
|
|
338
338
|
*/
|
|
339
|
-
export const SERVER_SIGNAL_ID_UPDATE: string
|
|
339
|
+
export const SERVER_SIGNAL_ID_UPDATE: string
|
|
340
340
|
/**
|
|
341
341
|
* String to attach to signal #DbusmenuServer::item-activation-requested
|
|
342
342
|
*/
|
|
343
|
-
export const SERVER_SIGNAL_ITEM_ACTIVATION: string
|
|
343
|
+
export const SERVER_SIGNAL_ITEM_ACTIVATION: string
|
|
344
344
|
/**
|
|
345
345
|
* String to attach to signal #DbusmenuServer::layout-updated
|
|
346
346
|
*/
|
|
347
|
-
export const SERVER_SIGNAL_LAYOUT_UPDATED: string
|
|
347
|
+
export const SERVER_SIGNAL_LAYOUT_UPDATED: string
|
|
348
348
|
/**
|
|
349
349
|
* The type handler is called when a dbusmenu item is created
|
|
350
350
|
* with a matching type as setup in #dbusmenu_client_add_type_handler
|
|
@@ -470,7 +470,7 @@ export interface Client {
|
|
|
470
470
|
* @param newfunc The function that will be executed with those new items when they come in.
|
|
471
471
|
* @returns If registering the new type was successful.
|
|
472
472
|
*/
|
|
473
|
-
add_type_handler(type: string
|
|
473
|
+
add_type_handler(type: string, newfunc: ClientTypeHandler): boolean
|
|
474
474
|
/**
|
|
475
475
|
* This function connects into the type handling of the #DbusmenuClient.
|
|
476
476
|
* Every new menuitem that comes in immediately gets asked for its
|
|
@@ -486,7 +486,7 @@ export interface Client {
|
|
|
486
486
|
* @param newfunc The function that will be executed with those new items when they come in.
|
|
487
487
|
* @returns If registering the new type was successful.
|
|
488
488
|
*/
|
|
489
|
-
add_type_handler_full(type: string
|
|
489
|
+
add_type_handler_full(type: string, newfunc: ClientTypeHandler): boolean
|
|
490
490
|
/**
|
|
491
491
|
* Gets the stored and exported icon paths from the client.
|
|
492
492
|
* @returns A NULL-terminated list of icon paths with memory managed by the client. Duplicate if you want to keep them.
|
|
@@ -586,7 +586,7 @@ export class Client extends GObject.Object {
|
|
|
586
586
|
* @param object The object on the server to monitor
|
|
587
587
|
* @returns A brand new #DbusmenuClient
|
|
588
588
|
*/
|
|
589
|
-
constructor(name: string
|
|
589
|
+
constructor(name: string, object: string)
|
|
590
590
|
/**
|
|
591
591
|
* This function creates a new client that connects to a specific
|
|
592
592
|
* server on DBus. That server is at a specific location sharing
|
|
@@ -598,7 +598,7 @@ export class Client extends GObject.Object {
|
|
|
598
598
|
* @param object The object on the server to monitor
|
|
599
599
|
* @returns A brand new #DbusmenuClient
|
|
600
600
|
*/
|
|
601
|
-
static new(name: string
|
|
601
|
+
static new(name: string, object: string): Client
|
|
602
602
|
_init(config?: Client.ConstructorProperties): void
|
|
603
603
|
}
|
|
604
604
|
|
|
@@ -819,7 +819,7 @@ export interface Menuitem {
|
|
|
819
819
|
* @param variant A value that could be set for the event
|
|
820
820
|
* @param timestamp The timestamp of when the event happened
|
|
821
821
|
*/
|
|
822
|
-
handle_event(name: string
|
|
822
|
+
handle_event(name: string, variant: GLib.Variant, timestamp: number): void
|
|
823
823
|
/**
|
|
824
824
|
* This function takes the properties of a #DbusmenuMenuitem
|
|
825
825
|
* and puts them into a #GHashTable that is referenced by the
|
|
@@ -844,7 +844,7 @@ export interface Menuitem {
|
|
|
844
844
|
* @param property The property to look for.
|
|
845
845
|
* @returns A boolean checking to see if the property is available
|
|
846
846
|
*/
|
|
847
|
-
property_exist(property: string
|
|
847
|
+
property_exist(property: string): boolean
|
|
848
848
|
/**
|
|
849
849
|
* Look up a property on `mi` and return the value of it if
|
|
850
850
|
* it exits. #NULL will be returned if the property doesn't
|
|
@@ -852,14 +852,14 @@ export interface Menuitem {
|
|
|
852
852
|
* @param property The property to grab.
|
|
853
853
|
* @returns 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.
|
|
854
854
|
*/
|
|
855
|
-
property_get(property: string
|
|
855
|
+
property_get(property: string): string
|
|
856
856
|
/**
|
|
857
857
|
* Look up a property on `mi` and return the value of it if
|
|
858
858
|
* it exits. Returns #FALSE if the property doesn't exist.
|
|
859
859
|
* @param property The property to grab.
|
|
860
860
|
* @returns The value of the property or #FALSE.
|
|
861
861
|
*/
|
|
862
|
-
property_get_bool(property: string
|
|
862
|
+
property_get_bool(property: string): boolean
|
|
863
863
|
/**
|
|
864
864
|
* Look up a property on `mi` and return the value of it if
|
|
865
865
|
* it exits. #NULL will be returned if the property doesn't
|
|
@@ -867,14 +867,14 @@ export interface Menuitem {
|
|
|
867
867
|
* @param property The property to grab.
|
|
868
868
|
* @returns 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.
|
|
869
869
|
*/
|
|
870
|
-
property_get_byte_array(property: string
|
|
870
|
+
property_get_byte_array(property: string): Uint8Array
|
|
871
871
|
/**
|
|
872
872
|
* Look up a property on `mi` and return the value of it if
|
|
873
873
|
* it exits. Returns zero if the property doesn't exist.
|
|
874
874
|
* @param property The property to grab.
|
|
875
875
|
* @returns The value of the property or zero.
|
|
876
876
|
*/
|
|
877
|
-
property_get_int(property: string
|
|
877
|
+
property_get_int(property: string): number
|
|
878
878
|
/**
|
|
879
879
|
* Look up a property on `mi` and return the value of it if
|
|
880
880
|
* it exits. #NULL will be returned if the property doesn't
|
|
@@ -882,12 +882,12 @@ export interface Menuitem {
|
|
|
882
882
|
* @param property The property to grab.
|
|
883
883
|
* @returns A GVariant for the property.
|
|
884
884
|
*/
|
|
885
|
-
property_get_variant(property: string
|
|
885
|
+
property_get_variant(property: string): GLib.Variant
|
|
886
886
|
/**
|
|
887
887
|
* Removes a property from the menuitem.
|
|
888
888
|
* @param property The property to look for.
|
|
889
889
|
*/
|
|
890
|
-
property_remove(property: string
|
|
890
|
+
property_remove(property: string): void
|
|
891
891
|
/**
|
|
892
892
|
* Takes the pair of `property` and `value` and places them as a
|
|
893
893
|
* property on `mi`. If a property already exists by that name,
|
|
@@ -899,7 +899,7 @@ export interface Menuitem {
|
|
|
899
899
|
* @param value The value of the property.
|
|
900
900
|
* @returns A boolean representing if the property value was set.
|
|
901
901
|
*/
|
|
902
|
-
property_set(property: string
|
|
902
|
+
property_set(property: string, value: string): boolean
|
|
903
903
|
/**
|
|
904
904
|
* Takes a boolean `value` and sets it on `property` as a
|
|
905
905
|
* property on `mi`. If a property already exists by that name,
|
|
@@ -911,7 +911,7 @@ export interface Menuitem {
|
|
|
911
911
|
* @param value The value of the property.
|
|
912
912
|
* @returns A boolean representing if the property value was set.
|
|
913
913
|
*/
|
|
914
|
-
property_set_bool(property: string
|
|
914
|
+
property_set_bool(property: string, value: boolean): boolean
|
|
915
915
|
/**
|
|
916
916
|
* Takes a byte array `value` and sets it on `property` as a
|
|
917
917
|
* property on `mi`. If a property already exists by that name,
|
|
@@ -924,7 +924,7 @@ export interface Menuitem {
|
|
|
924
924
|
* @param nelements The number of elements in the byte array.
|
|
925
925
|
* @returns A boolean representing if the property value was set.
|
|
926
926
|
*/
|
|
927
|
-
property_set_byte_array(property: string
|
|
927
|
+
property_set_byte_array(property: string, value: number, nelements: number): boolean
|
|
928
928
|
/**
|
|
929
929
|
* Takes a boolean `value` and sets it on `property` as a
|
|
930
930
|
* property on `mi`. If a property already exists by that name,
|
|
@@ -936,7 +936,7 @@ export interface Menuitem {
|
|
|
936
936
|
* @param value The value of the property.
|
|
937
937
|
* @returns A boolean representing if the property value was set.
|
|
938
938
|
*/
|
|
939
|
-
property_set_int(property: string
|
|
939
|
+
property_set_int(property: string, value: number): boolean
|
|
940
940
|
/**
|
|
941
941
|
* Takes the pair of `property` and `value` and places them as a
|
|
942
942
|
* property on `mi`. If a property already exists by that name,
|
|
@@ -948,7 +948,7 @@ export interface Menuitem {
|
|
|
948
948
|
* @param value The value of the property.
|
|
949
949
|
* @returns A boolean representing if the property value was set.
|
|
950
950
|
*/
|
|
951
|
-
property_set_variant(property: string
|
|
951
|
+
property_set_variant(property: string, value: GLib.Variant): boolean
|
|
952
952
|
/**
|
|
953
953
|
* This function is used to send the even that the submenu
|
|
954
954
|
* of this item is about to be shown. Callers to this event
|
|
@@ -1022,7 +1022,7 @@ export interface Menuitem {
|
|
|
1022
1022
|
* @param variant A value that could be set for the event
|
|
1023
1023
|
* @param timestamp The timestamp of when the event happened
|
|
1024
1024
|
*/
|
|
1025
|
-
vfunc_handle_event(name: string
|
|
1025
|
+
vfunc_handle_event(name: string, variant: GLib.Variant, timestamp: number): void
|
|
1026
1026
|
vfunc_show_to_user(timestamp: number, cb_data: any | null): void
|
|
1027
1027
|
|
|
1028
1028
|
// Own signals of Dbusmenu-0.4.Dbusmenu.Menuitem
|
|
@@ -1356,7 +1356,7 @@ export class Server extends GObject.Object {
|
|
|
1356
1356
|
* @constructor
|
|
1357
1357
|
* @param object The object name to show for this menu structure on DBus. May be NULL.
|
|
1358
1358
|
*/
|
|
1359
|
-
constructor(object: string
|
|
1359
|
+
constructor(object: string)
|
|
1360
1360
|
/**
|
|
1361
1361
|
* Creates a new #DbusmenuServer object with a specific object
|
|
1362
1362
|
* path on DBus. If `object` is set to NULL the default object
|
|
@@ -1366,7 +1366,7 @@ export class Server extends GObject.Object {
|
|
|
1366
1366
|
* @constructor
|
|
1367
1367
|
* @param object The object name to show for this menu structure on DBus. May be NULL.
|
|
1368
1368
|
*/
|
|
1369
|
-
static new(object: string
|
|
1369
|
+
static new(object: string): Server
|
|
1370
1370
|
_init(config?: Server.ConstructorProperties): void
|
|
1371
1371
|
}
|
|
1372
1372
|
|
|
@@ -1430,10 +1430,10 @@ export interface MenuitemClass {
|
|
|
1430
1430
|
child_removed: (child: Menuitem) => void
|
|
1431
1431
|
child_moved: (child: Menuitem, newpos: number, oldpos: number) => void
|
|
1432
1432
|
realized: () => void
|
|
1433
|
-
handle_event: (mi: Menuitem, name: string
|
|
1433
|
+
handle_event: (mi: Menuitem, name: string, variant: GLib.Variant, timestamp: number) => void
|
|
1434
1434
|
show_to_user: (mi: Menuitem, timestamp: number, cb_data: any | null) => void
|
|
1435
1435
|
about_to_show: () => boolean
|
|
1436
|
-
event: (name: string
|
|
1436
|
+
event: (name: string, value: GLib.Variant, timestamp: number) => void
|
|
1437
1437
|
reserved1: () => void
|
|
1438
1438
|
reserved2: () => void
|
|
1439
1439
|
reserved3: () => void
|
package/dbusmenu-0.4.d.ts
CHANGED
|
@@ -51,113 +51,113 @@ enum TextDirection {
|
|
|
51
51
|
/**
|
|
52
52
|
* String to access property #DbusmenuClient:dbus-name
|
|
53
53
|
*/
|
|
54
|
-
const CLIENT_PROP_DBUS_NAME: string
|
|
54
|
+
const CLIENT_PROP_DBUS_NAME: string
|
|
55
55
|
/**
|
|
56
56
|
* String to access property #DbusmenuClient:dbus-object
|
|
57
57
|
*/
|
|
58
|
-
const CLIENT_PROP_DBUS_OBJECT: string
|
|
58
|
+
const CLIENT_PROP_DBUS_OBJECT: string
|
|
59
59
|
/**
|
|
60
60
|
* String to access property #DbusmenuClient:group-events
|
|
61
61
|
*/
|
|
62
|
-
const CLIENT_PROP_GROUP_EVENTS: string
|
|
62
|
+
const CLIENT_PROP_GROUP_EVENTS: string
|
|
63
63
|
/**
|
|
64
64
|
* String to access property #DbusmenuClient:status
|
|
65
65
|
*/
|
|
66
|
-
const CLIENT_PROP_STATUS: string
|
|
66
|
+
const CLIENT_PROP_STATUS: string
|
|
67
67
|
/**
|
|
68
68
|
* String to access property #DbusmenuClient:text-direction
|
|
69
69
|
*/
|
|
70
|
-
const CLIENT_PROP_TEXT_DIRECTION: string
|
|
70
|
+
const CLIENT_PROP_TEXT_DIRECTION: string
|
|
71
71
|
/**
|
|
72
72
|
* String to attach to signal #DbusmenuClient::event-result
|
|
73
73
|
*/
|
|
74
|
-
const CLIENT_SIGNAL_EVENT_RESULT: string
|
|
74
|
+
const CLIENT_SIGNAL_EVENT_RESULT: string
|
|
75
75
|
/**
|
|
76
76
|
* String to attach to signal #DbusmenuClient::icon-theme-dirs-changed
|
|
77
77
|
*/
|
|
78
|
-
const CLIENT_SIGNAL_ICON_THEME_DIRS_CHANGED: string
|
|
78
|
+
const CLIENT_SIGNAL_ICON_THEME_DIRS_CHANGED: string
|
|
79
79
|
/**
|
|
80
80
|
* String to attach to signal #DbusmenuClient::item-activate
|
|
81
81
|
*/
|
|
82
|
-
const CLIENT_SIGNAL_ITEM_ACTIVATE: string
|
|
82
|
+
const CLIENT_SIGNAL_ITEM_ACTIVATE: string
|
|
83
83
|
/**
|
|
84
84
|
* String to attach to signal #DbusmenuClient::layout-updated
|
|
85
85
|
*/
|
|
86
|
-
const CLIENT_SIGNAL_LAYOUT_UPDATED: string
|
|
86
|
+
const CLIENT_SIGNAL_LAYOUT_UPDATED: string
|
|
87
87
|
/**
|
|
88
88
|
* String to attach to signal #DbusmenuClient::new-menuitem
|
|
89
89
|
*/
|
|
90
|
-
const CLIENT_SIGNAL_NEW_MENUITEM: string
|
|
90
|
+
const CLIENT_SIGNAL_NEW_MENUITEM: string
|
|
91
91
|
/**
|
|
92
92
|
* String to attach to signal #DbusmenuClient::root-changed
|
|
93
93
|
*/
|
|
94
|
-
const CLIENT_SIGNAL_ROOT_CHANGED: string
|
|
94
|
+
const CLIENT_SIGNAL_ROOT_CHANGED: string
|
|
95
95
|
/**
|
|
96
96
|
* Used to set the 'type' property on a menu item to create
|
|
97
97
|
* a standard menu item.
|
|
98
98
|
*/
|
|
99
|
-
const CLIENT_TYPES_DEFAULT: string
|
|
99
|
+
const CLIENT_TYPES_DEFAULT: string
|
|
100
100
|
/**
|
|
101
101
|
* Used to set the 'type' property on a menu item to create
|
|
102
102
|
* an image menu item. Deprecated as standard menu items now
|
|
103
103
|
* support images as well.
|
|
104
104
|
*/
|
|
105
|
-
const CLIENT_TYPES_IMAGE: string
|
|
105
|
+
const CLIENT_TYPES_IMAGE: string
|
|
106
106
|
/**
|
|
107
107
|
* Used to set the 'type' property on a menu item to create
|
|
108
108
|
* a separator menu item.
|
|
109
109
|
*/
|
|
110
|
-
const CLIENT_TYPES_SEPARATOR: string
|
|
110
|
+
const CLIENT_TYPES_SEPARATOR: string
|
|
111
111
|
/**
|
|
112
112
|
* Used in #DBUSMENU_MENUITEM_PROP_CHILD_DISPLAY to have the
|
|
113
113
|
* subitems displayed as a submenu.
|
|
114
114
|
*/
|
|
115
|
-
const MENUITEM_CHILD_DISPLAY_SUBMENU: string
|
|
115
|
+
const MENUITEM_CHILD_DISPLAY_SUBMENU: string
|
|
116
116
|
/**
|
|
117
117
|
* Used in #DBUSMENU_MENUITEM_PROP_DISPOSITION to have a menu
|
|
118
118
|
* item displayed in a way that conveys it's giving an alert
|
|
119
119
|
* to the user.
|
|
120
120
|
*/
|
|
121
|
-
const MENUITEM_DISPOSITION_ALERT: string
|
|
121
|
+
const MENUITEM_DISPOSITION_ALERT: string
|
|
122
122
|
/**
|
|
123
123
|
* Used in #DBUSMENU_MENUITEM_PROP_DISPOSITION to have a menu
|
|
124
124
|
* item displayed in a way that conveys it's giving additional
|
|
125
125
|
* information to the user.
|
|
126
126
|
*/
|
|
127
|
-
const MENUITEM_DISPOSITION_INFORMATIVE: string
|
|
127
|
+
const MENUITEM_DISPOSITION_INFORMATIVE: string
|
|
128
128
|
/**
|
|
129
129
|
* Used in #DBUSMENU_MENUITEM_PROP_DISPOSITION to have a menu
|
|
130
130
|
* item displayed in the normal manner. Default value.
|
|
131
131
|
*/
|
|
132
|
-
const MENUITEM_DISPOSITION_NORMAL: string
|
|
132
|
+
const MENUITEM_DISPOSITION_NORMAL: string
|
|
133
133
|
/**
|
|
134
134
|
* Used in #DBUSMENU_MENUITEM_PROP_DISPOSITION to have a menu
|
|
135
135
|
* item displayed in a way that conveys it's giving a warning
|
|
136
136
|
* to the user.
|
|
137
137
|
*/
|
|
138
|
-
const MENUITEM_DISPOSITION_WARNING: string
|
|
138
|
+
const MENUITEM_DISPOSITION_WARNING: string
|
|
139
139
|
/**
|
|
140
140
|
* String for the event identifier when a menu item is clicked
|
|
141
141
|
* on by the user.
|
|
142
142
|
*/
|
|
143
|
-
const MENUITEM_EVENT_ACTIVATED: string
|
|
143
|
+
const MENUITEM_EVENT_ACTIVATED: string
|
|
144
144
|
/**
|
|
145
145
|
* String for the event identifier when a menu is closed and
|
|
146
146
|
* displayed to the user. Only valid for items that contain
|
|
147
147
|
* submenus.
|
|
148
148
|
*/
|
|
149
|
-
const MENUITEM_EVENT_CLOSED: string
|
|
149
|
+
const MENUITEM_EVENT_CLOSED: string
|
|
150
150
|
/**
|
|
151
151
|
* String for the event identifier when a menu is opened and
|
|
152
152
|
* displayed to the user. Only valid for items that contain
|
|
153
153
|
* submenus.
|
|
154
154
|
*/
|
|
155
|
-
const MENUITEM_EVENT_OPENED: string
|
|
155
|
+
const MENUITEM_EVENT_OPENED: string
|
|
156
156
|
/**
|
|
157
157
|
* Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_STATE so that the menu's
|
|
158
158
|
* toggle item is undecided.
|
|
159
159
|
*/
|
|
160
|
-
const MENUITEM_ICON_NAME_BLANK: string
|
|
160
|
+
const MENUITEM_ICON_NAME_BLANK: string
|
|
161
161
|
/**
|
|
162
162
|
* #DbusmenuMenuitem property used to provide a textual description of any
|
|
163
163
|
* information that the icon may convey. The contents of this property are
|
|
@@ -166,23 +166,23 @@ const MENUITEM_ICON_NAME_BLANK: string | null
|
|
|
166
166
|
* this property is set, Orca will use this property instead of the label
|
|
167
167
|
* property.
|
|
168
168
|
*/
|
|
169
|
-
const MENUITEM_PROP_ACCESSIBLE_DESC: string
|
|
169
|
+
const MENUITEM_PROP_ACCESSIBLE_DESC: string
|
|
170
170
|
/**
|
|
171
171
|
* #DbusmenuMenuitem property that tells how the children of this menuitem
|
|
172
172
|
* should be displayed. Most likely this will be unset or of the value
|
|
173
173
|
* #DBUSMENU_MENUITEM_CHILD_DISPLAY_SUBMENU. Type: #G_VARIANT_TYPE_STRING
|
|
174
174
|
*/
|
|
175
|
-
const MENUITEM_PROP_CHILD_DISPLAY: string
|
|
175
|
+
const MENUITEM_PROP_CHILD_DISPLAY: string
|
|
176
176
|
/**
|
|
177
177
|
* #DbusmenuMenuitem property to tell what type of information that the
|
|
178
178
|
* menu item is displaying to the user. Type: #G_VARIANT_TYPE_STRING
|
|
179
179
|
*/
|
|
180
|
-
const MENUITEM_PROP_DISPOSITION: string
|
|
180
|
+
const MENUITEM_PROP_DISPOSITION: string
|
|
181
181
|
/**
|
|
182
182
|
* #DbusmenuMenuitem property used to represent whether the menuitem
|
|
183
183
|
* is clickable or not. Type: #G_VARIANT_TYPE_BOOLEAN.
|
|
184
184
|
*/
|
|
185
|
-
const MENUITEM_PROP_ENABLED: string
|
|
185
|
+
const MENUITEM_PROP_ENABLED: string
|
|
186
186
|
/**
|
|
187
187
|
* #DbusmenuMenuitem property that is the raw data of a custom icon
|
|
188
188
|
* used in the application. Type: #G_VARIANT_TYPE_VARIANT
|
|
@@ -190,16 +190,16 @@ const MENUITEM_PROP_ENABLED: string | null
|
|
|
190
190
|
* It is recommended that this is not set directly but instead the
|
|
191
191
|
* libdbusmenu-gtk library is used with the function dbusmenu_menuitem_property_set_image()
|
|
192
192
|
*/
|
|
193
|
-
const MENUITEM_PROP_ICON_DATA: string
|
|
193
|
+
const MENUITEM_PROP_ICON_DATA: string
|
|
194
194
|
/**
|
|
195
195
|
* #DbusmenuMenuitem property that is the name of the icon under the
|
|
196
196
|
* Freedesktop.org icon naming spec. Type: #G_VARIANT_TYPE_STRING
|
|
197
197
|
*/
|
|
198
|
-
const MENUITEM_PROP_ICON_NAME: string
|
|
198
|
+
const MENUITEM_PROP_ICON_NAME: string
|
|
199
199
|
/**
|
|
200
200
|
* #DbusmenuMenuitem property used for the text on the menu item.
|
|
201
201
|
*/
|
|
202
|
-
const MENUITEM_PROP_LABEL: string
|
|
202
|
+
const MENUITEM_PROP_LABEL: string
|
|
203
203
|
/**
|
|
204
204
|
* #DbusmenuMenuitem property that is the entries that represent a shortcut
|
|
205
205
|
* to activate the menuitem. It is an array of arrays of strings.
|
|
@@ -207,95 +207,95 @@ const MENUITEM_PROP_LABEL: string | null
|
|
|
207
207
|
* It is recommended that this is not set directly but instead the
|
|
208
208
|
* libdbusmenu-gtk library is used with the function dbusmenu_menuitem_property_set_shortcut()
|
|
209
209
|
*/
|
|
210
|
-
const MENUITEM_PROP_SHORTCUT: string
|
|
210
|
+
const MENUITEM_PROP_SHORTCUT: string
|
|
211
211
|
/**
|
|
212
212
|
* #DbusmenuMenuitem property that says what state a toggle entry should
|
|
213
213
|
* be shown as the menu. Should be either #DBUSMENU_MENUITEM_TOGGLE_STATE_UNCHECKED
|
|
214
214
|
* #DBUSMENU_MENUITEM_TOGGLE_STATE_CHECKED or #DBUSMENU_MENUITEM_TOGGLE_STATUE_UNKNOWN.
|
|
215
215
|
*/
|
|
216
|
-
const MENUITEM_PROP_TOGGLE_STATE: string
|
|
216
|
+
const MENUITEM_PROP_TOGGLE_STATE: string
|
|
217
217
|
/**
|
|
218
218
|
* #DbusmenuMenuitem property that says what type of toggle entry should
|
|
219
219
|
* be shown in the menu. Should be either #DBUSMENU_MENUITEM_TOGGLE_CHECK
|
|
220
220
|
* or #DBUSMENU_MENUITEM_TOGGLE_RADIO. Type: #G_VARIANT_TYPE_STRING
|
|
221
221
|
*/
|
|
222
|
-
const MENUITEM_PROP_TOGGLE_TYPE: string
|
|
222
|
+
const MENUITEM_PROP_TOGGLE_TYPE: string
|
|
223
223
|
/**
|
|
224
224
|
* #DbusmenuMenuitem property used to represent what type of menuitem
|
|
225
225
|
* this object represents. Type: #G_VARIANT_TYPE_STRING.
|
|
226
226
|
*/
|
|
227
|
-
const MENUITEM_PROP_TYPE: string
|
|
227
|
+
const MENUITEM_PROP_TYPE: string
|
|
228
228
|
/**
|
|
229
229
|
* #DbusmenuMenuitem property used to represent whether the menuitem
|
|
230
230
|
* should be shown or not. Type: #G_VARIANT_TYPE_BOOLEAN.
|
|
231
231
|
*/
|
|
232
|
-
const MENUITEM_PROP_VISIBLE: string
|
|
232
|
+
const MENUITEM_PROP_VISIBLE: string
|
|
233
233
|
/**
|
|
234
234
|
* Used in #DBUSMENU_MENUITEM_PROP_SHORTCUT to represent the
|
|
235
235
|
* alternate key.
|
|
236
236
|
*/
|
|
237
|
-
const MENUITEM_SHORTCUT_ALT: string
|
|
237
|
+
const MENUITEM_SHORTCUT_ALT: string
|
|
238
238
|
/**
|
|
239
239
|
* Used in #DBUSMENU_MENUITEM_PROP_SHORTCUT to represent the
|
|
240
240
|
* control key.
|
|
241
241
|
*/
|
|
242
|
-
const MENUITEM_SHORTCUT_CONTROL: string
|
|
242
|
+
const MENUITEM_SHORTCUT_CONTROL: string
|
|
243
243
|
/**
|
|
244
244
|
* Used in #DBUSMENU_MENUITEM_PROP_SHORTCUT to represent the
|
|
245
245
|
* shift key.
|
|
246
246
|
*/
|
|
247
|
-
const MENUITEM_SHORTCUT_SHIFT: string
|
|
247
|
+
const MENUITEM_SHORTCUT_SHIFT: string
|
|
248
248
|
/**
|
|
249
249
|
* Used in #DBUSMENU_MENUITEM_PROP_SHORTCUT to represent the
|
|
250
250
|
* super key.
|
|
251
251
|
*/
|
|
252
|
-
const MENUITEM_SHORTCUT_SUPER: string
|
|
252
|
+
const MENUITEM_SHORTCUT_SUPER: string
|
|
253
253
|
/**
|
|
254
254
|
* String to attach to signal #DbusmenuServer::about-to-show
|
|
255
255
|
*/
|
|
256
|
-
const MENUITEM_SIGNAL_ABOUT_TO_SHOW: string
|
|
256
|
+
const MENUITEM_SIGNAL_ABOUT_TO_SHOW: string
|
|
257
257
|
/**
|
|
258
258
|
* String to attach to signal #DbusmenuServer::child-added
|
|
259
259
|
*/
|
|
260
|
-
const MENUITEM_SIGNAL_CHILD_ADDED: string
|
|
260
|
+
const MENUITEM_SIGNAL_CHILD_ADDED: string
|
|
261
261
|
/**
|
|
262
262
|
* String to attach to signal #DbusmenuServer::child-moved
|
|
263
263
|
*/
|
|
264
|
-
const MENUITEM_SIGNAL_CHILD_MOVED: string
|
|
264
|
+
const MENUITEM_SIGNAL_CHILD_MOVED: string
|
|
265
265
|
/**
|
|
266
266
|
* String to attach to signal #DbusmenuServer::child-removed
|
|
267
267
|
*/
|
|
268
|
-
const MENUITEM_SIGNAL_CHILD_REMOVED: string
|
|
268
|
+
const MENUITEM_SIGNAL_CHILD_REMOVED: string
|
|
269
269
|
/**
|
|
270
270
|
* String to attach to signal #DbusmenuServer::event
|
|
271
271
|
*/
|
|
272
|
-
const MENUITEM_SIGNAL_EVENT: string
|
|
272
|
+
const MENUITEM_SIGNAL_EVENT: string
|
|
273
273
|
/**
|
|
274
274
|
* String to attach to signal #DbusmenuServer::item-activated
|
|
275
275
|
*/
|
|
276
|
-
const MENUITEM_SIGNAL_ITEM_ACTIVATED: string
|
|
276
|
+
const MENUITEM_SIGNAL_ITEM_ACTIVATED: string
|
|
277
277
|
/**
|
|
278
278
|
* String to attach to signal #DbusmenuServer::property-changed
|
|
279
279
|
*/
|
|
280
|
-
const MENUITEM_SIGNAL_PROPERTY_CHANGED: string
|
|
280
|
+
const MENUITEM_SIGNAL_PROPERTY_CHANGED: string
|
|
281
281
|
/**
|
|
282
282
|
* String to attach to signal #DbusmenuServer::realized
|
|
283
283
|
*/
|
|
284
|
-
const MENUITEM_SIGNAL_REALIZED: string
|
|
284
|
+
const MENUITEM_SIGNAL_REALIZED: string
|
|
285
285
|
/**
|
|
286
286
|
* String to attach to signal #DbusmenuServer::show-to-user
|
|
287
287
|
*/
|
|
288
|
-
const MENUITEM_SIGNAL_SHOW_TO_USER: string
|
|
288
|
+
const MENUITEM_SIGNAL_SHOW_TO_USER: string
|
|
289
289
|
/**
|
|
290
290
|
* Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_TYPE to be a standard
|
|
291
291
|
* check mark item.
|
|
292
292
|
*/
|
|
293
|
-
const MENUITEM_TOGGLE_CHECK: string
|
|
293
|
+
const MENUITEM_TOGGLE_CHECK: string
|
|
294
294
|
/**
|
|
295
295
|
* Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_TYPE to be a standard
|
|
296
296
|
* radio item.
|
|
297
297
|
*/
|
|
298
|
-
const MENUITEM_TOGGLE_RADIO: string
|
|
298
|
+
const MENUITEM_TOGGLE_RADIO: string
|
|
299
299
|
/**
|
|
300
300
|
* Used to set #DBUSMENU_MENUITEM_PROP_TOGGLE_STATE so that the menu's
|
|
301
301
|
* toggle item is filled.
|
|
@@ -314,39 +314,39 @@ const MENUITEM_TOGGLE_STATE_UNKNOWN: number
|
|
|
314
314
|
/**
|
|
315
315
|
* String to access property #DbusmenuServer:dbus-object
|
|
316
316
|
*/
|
|
317
|
-
const SERVER_PROP_DBUS_OBJECT: string
|
|
317
|
+
const SERVER_PROP_DBUS_OBJECT: string
|
|
318
318
|
/**
|
|
319
319
|
* String to access property #DbusmenuServer:root-node
|
|
320
320
|
*/
|
|
321
|
-
const SERVER_PROP_ROOT_NODE: string
|
|
321
|
+
const SERVER_PROP_ROOT_NODE: string
|
|
322
322
|
/**
|
|
323
323
|
* String to access property #DbusmenuServer:status
|
|
324
324
|
*/
|
|
325
|
-
const SERVER_PROP_STATUS: string
|
|
325
|
+
const SERVER_PROP_STATUS: string
|
|
326
326
|
/**
|
|
327
327
|
* String to access property #DbusmenuServer:text-direction
|
|
328
328
|
*/
|
|
329
|
-
const SERVER_PROP_TEXT_DIRECTION: string
|
|
329
|
+
const SERVER_PROP_TEXT_DIRECTION: string
|
|
330
330
|
/**
|
|
331
331
|
* String to access property #DbusmenuServer:version
|
|
332
332
|
*/
|
|
333
|
-
const SERVER_PROP_VERSION: string
|
|
333
|
+
const SERVER_PROP_VERSION: string
|
|
334
334
|
/**
|
|
335
335
|
* String to attach to signal #DbusmenuServer::item-property-updated
|
|
336
336
|
*/
|
|
337
|
-
const SERVER_SIGNAL_ID_PROP_UPDATE: string
|
|
337
|
+
const SERVER_SIGNAL_ID_PROP_UPDATE: string
|
|
338
338
|
/**
|
|
339
339
|
* String to attach to signal #DbusmenuServer::item-updated
|
|
340
340
|
*/
|
|
341
|
-
const SERVER_SIGNAL_ID_UPDATE: string
|
|
341
|
+
const SERVER_SIGNAL_ID_UPDATE: string
|
|
342
342
|
/**
|
|
343
343
|
* String to attach to signal #DbusmenuServer::item-activation-requested
|
|
344
344
|
*/
|
|
345
|
-
const SERVER_SIGNAL_ITEM_ACTIVATION: string
|
|
345
|
+
const SERVER_SIGNAL_ITEM_ACTIVATION: string
|
|
346
346
|
/**
|
|
347
347
|
* String to attach to signal #DbusmenuServer::layout-updated
|
|
348
348
|
*/
|
|
349
|
-
const SERVER_SIGNAL_LAYOUT_UPDATED: string
|
|
349
|
+
const SERVER_SIGNAL_LAYOUT_UPDATED: string
|
|
350
350
|
/**
|
|
351
351
|
* The type handler is called when a dbusmenu item is created
|
|
352
352
|
* with a matching type as setup in #dbusmenu_client_add_type_handler
|
|
@@ -472,7 +472,7 @@ interface Client {
|
|
|
472
472
|
* @param newfunc The function that will be executed with those new items when they come in.
|
|
473
473
|
* @returns If registering the new type was successful.
|
|
474
474
|
*/
|
|
475
|
-
add_type_handler(type: string
|
|
475
|
+
add_type_handler(type: string, newfunc: ClientTypeHandler): boolean
|
|
476
476
|
/**
|
|
477
477
|
* This function connects into the type handling of the #DbusmenuClient.
|
|
478
478
|
* Every new menuitem that comes in immediately gets asked for its
|
|
@@ -488,7 +488,7 @@ interface Client {
|
|
|
488
488
|
* @param newfunc The function that will be executed with those new items when they come in.
|
|
489
489
|
* @returns If registering the new type was successful.
|
|
490
490
|
*/
|
|
491
|
-
add_type_handler_full(type: string
|
|
491
|
+
add_type_handler_full(type: string, newfunc: ClientTypeHandler): boolean
|
|
492
492
|
/**
|
|
493
493
|
* Gets the stored and exported icon paths from the client.
|
|
494
494
|
* @returns A NULL-terminated list of icon paths with memory managed by the client. Duplicate if you want to keep them.
|
|
@@ -588,7 +588,7 @@ class Client extends GObject.Object {
|
|
|
588
588
|
* @param object The object on the server to monitor
|
|
589
589
|
* @returns A brand new #DbusmenuClient
|
|
590
590
|
*/
|
|
591
|
-
constructor(name: string
|
|
591
|
+
constructor(name: string, object: string)
|
|
592
592
|
/**
|
|
593
593
|
* This function creates a new client that connects to a specific
|
|
594
594
|
* server on DBus. That server is at a specific location sharing
|
|
@@ -600,7 +600,7 @@ class Client extends GObject.Object {
|
|
|
600
600
|
* @param object The object on the server to monitor
|
|
601
601
|
* @returns A brand new #DbusmenuClient
|
|
602
602
|
*/
|
|
603
|
-
static new(name: string
|
|
603
|
+
static new(name: string, object: string): Client
|
|
604
604
|
_init(config?: Client.ConstructorProperties): void
|
|
605
605
|
}
|
|
606
606
|
|
|
@@ -821,7 +821,7 @@ interface Menuitem {
|
|
|
821
821
|
* @param variant A value that could be set for the event
|
|
822
822
|
* @param timestamp The timestamp of when the event happened
|
|
823
823
|
*/
|
|
824
|
-
handle_event(name: string
|
|
824
|
+
handle_event(name: string, variant: GLib.Variant, timestamp: number): void
|
|
825
825
|
/**
|
|
826
826
|
* This function takes the properties of a #DbusmenuMenuitem
|
|
827
827
|
* and puts them into a #GHashTable that is referenced by the
|
|
@@ -846,7 +846,7 @@ interface Menuitem {
|
|
|
846
846
|
* @param property The property to look for.
|
|
847
847
|
* @returns A boolean checking to see if the property is available
|
|
848
848
|
*/
|
|
849
|
-
property_exist(property: string
|
|
849
|
+
property_exist(property: string): boolean
|
|
850
850
|
/**
|
|
851
851
|
* Look up a property on `mi` and return the value of it if
|
|
852
852
|
* it exits. #NULL will be returned if the property doesn't
|
|
@@ -854,14 +854,14 @@ interface Menuitem {
|
|
|
854
854
|
* @param property The property to grab.
|
|
855
855
|
* @returns 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.
|
|
856
856
|
*/
|
|
857
|
-
property_get(property: string
|
|
857
|
+
property_get(property: string): string
|
|
858
858
|
/**
|
|
859
859
|
* Look up a property on `mi` and return the value of it if
|
|
860
860
|
* it exits. Returns #FALSE if the property doesn't exist.
|
|
861
861
|
* @param property The property to grab.
|
|
862
862
|
* @returns The value of the property or #FALSE.
|
|
863
863
|
*/
|
|
864
|
-
property_get_bool(property: string
|
|
864
|
+
property_get_bool(property: string): boolean
|
|
865
865
|
/**
|
|
866
866
|
* Look up a property on `mi` and return the value of it if
|
|
867
867
|
* it exits. #NULL will be returned if the property doesn't
|
|
@@ -869,14 +869,14 @@ interface Menuitem {
|
|
|
869
869
|
* @param property The property to grab.
|
|
870
870
|
* @returns 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.
|
|
871
871
|
*/
|
|
872
|
-
property_get_byte_array(property: string
|
|
872
|
+
property_get_byte_array(property: string): Uint8Array
|
|
873
873
|
/**
|
|
874
874
|
* Look up a property on `mi` and return the value of it if
|
|
875
875
|
* it exits. Returns zero if the property doesn't exist.
|
|
876
876
|
* @param property The property to grab.
|
|
877
877
|
* @returns The value of the property or zero.
|
|
878
878
|
*/
|
|
879
|
-
property_get_int(property: string
|
|
879
|
+
property_get_int(property: string): number
|
|
880
880
|
/**
|
|
881
881
|
* Look up a property on `mi` and return the value of it if
|
|
882
882
|
* it exits. #NULL will be returned if the property doesn't
|
|
@@ -884,12 +884,12 @@ interface Menuitem {
|
|
|
884
884
|
* @param property The property to grab.
|
|
885
885
|
* @returns A GVariant for the property.
|
|
886
886
|
*/
|
|
887
|
-
property_get_variant(property: string
|
|
887
|
+
property_get_variant(property: string): GLib.Variant
|
|
888
888
|
/**
|
|
889
889
|
* Removes a property from the menuitem.
|
|
890
890
|
* @param property The property to look for.
|
|
891
891
|
*/
|
|
892
|
-
property_remove(property: string
|
|
892
|
+
property_remove(property: string): void
|
|
893
893
|
/**
|
|
894
894
|
* Takes the pair of `property` and `value` and places them as a
|
|
895
895
|
* property on `mi`. If a property already exists by that name,
|
|
@@ -901,7 +901,7 @@ interface Menuitem {
|
|
|
901
901
|
* @param value The value of the property.
|
|
902
902
|
* @returns A boolean representing if the property value was set.
|
|
903
903
|
*/
|
|
904
|
-
property_set(property: string
|
|
904
|
+
property_set(property: string, value: string): boolean
|
|
905
905
|
/**
|
|
906
906
|
* Takes a boolean `value` and sets it on `property` as a
|
|
907
907
|
* property on `mi`. If a property already exists by that name,
|
|
@@ -913,7 +913,7 @@ interface Menuitem {
|
|
|
913
913
|
* @param value The value of the property.
|
|
914
914
|
* @returns A boolean representing if the property value was set.
|
|
915
915
|
*/
|
|
916
|
-
property_set_bool(property: string
|
|
916
|
+
property_set_bool(property: string, value: boolean): boolean
|
|
917
917
|
/**
|
|
918
918
|
* Takes a byte array `value` and sets it on `property` as a
|
|
919
919
|
* property on `mi`. If a property already exists by that name,
|
|
@@ -926,7 +926,7 @@ interface Menuitem {
|
|
|
926
926
|
* @param nelements The number of elements in the byte array.
|
|
927
927
|
* @returns A boolean representing if the property value was set.
|
|
928
928
|
*/
|
|
929
|
-
property_set_byte_array(property: string
|
|
929
|
+
property_set_byte_array(property: string, value: number, nelements: number): boolean
|
|
930
930
|
/**
|
|
931
931
|
* Takes a boolean `value` and sets it on `property` as a
|
|
932
932
|
* property on `mi`. If a property already exists by that name,
|
|
@@ -938,7 +938,7 @@ interface Menuitem {
|
|
|
938
938
|
* @param value The value of the property.
|
|
939
939
|
* @returns A boolean representing if the property value was set.
|
|
940
940
|
*/
|
|
941
|
-
property_set_int(property: string
|
|
941
|
+
property_set_int(property: string, value: number): boolean
|
|
942
942
|
/**
|
|
943
943
|
* Takes the pair of `property` and `value` and places them as a
|
|
944
944
|
* property on `mi`. If a property already exists by that name,
|
|
@@ -950,7 +950,7 @@ interface Menuitem {
|
|
|
950
950
|
* @param value The value of the property.
|
|
951
951
|
* @returns A boolean representing if the property value was set.
|
|
952
952
|
*/
|
|
953
|
-
property_set_variant(property: string
|
|
953
|
+
property_set_variant(property: string, value: GLib.Variant): boolean
|
|
954
954
|
/**
|
|
955
955
|
* This function is used to send the even that the submenu
|
|
956
956
|
* of this item is about to be shown. Callers to this event
|
|
@@ -1024,7 +1024,7 @@ interface Menuitem {
|
|
|
1024
1024
|
* @param variant A value that could be set for the event
|
|
1025
1025
|
* @param timestamp The timestamp of when the event happened
|
|
1026
1026
|
*/
|
|
1027
|
-
vfunc_handle_event(name: string
|
|
1027
|
+
vfunc_handle_event(name: string, variant: GLib.Variant, timestamp: number): void
|
|
1028
1028
|
vfunc_show_to_user(timestamp: number, cb_data: any | null): void
|
|
1029
1029
|
|
|
1030
1030
|
// Own signals of Dbusmenu-0.4.Dbusmenu.Menuitem
|
|
@@ -1358,7 +1358,7 @@ class Server extends GObject.Object {
|
|
|
1358
1358
|
* @constructor
|
|
1359
1359
|
* @param object The object name to show for this menu structure on DBus. May be NULL.
|
|
1360
1360
|
*/
|
|
1361
|
-
constructor(object: string
|
|
1361
|
+
constructor(object: string)
|
|
1362
1362
|
/**
|
|
1363
1363
|
* Creates a new #DbusmenuServer object with a specific object
|
|
1364
1364
|
* path on DBus. If `object` is set to NULL the default object
|
|
@@ -1368,7 +1368,7 @@ class Server extends GObject.Object {
|
|
|
1368
1368
|
* @constructor
|
|
1369
1369
|
* @param object The object name to show for this menu structure on DBus. May be NULL.
|
|
1370
1370
|
*/
|
|
1371
|
-
static new(object: string
|
|
1371
|
+
static new(object: string): Server
|
|
1372
1372
|
_init(config?: Server.ConstructorProperties): void
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
@@ -1432,10 +1432,10 @@ interface MenuitemClass {
|
|
|
1432
1432
|
child_removed: (child: Menuitem) => void
|
|
1433
1433
|
child_moved: (child: Menuitem, newpos: number, oldpos: number) => void
|
|
1434
1434
|
realized: () => void
|
|
1435
|
-
handle_event: (mi: Menuitem, name: string
|
|
1435
|
+
handle_event: (mi: Menuitem, name: string, variant: GLib.Variant, timestamp: number) => void
|
|
1436
1436
|
show_to_user: (mi: Menuitem, timestamp: number, cb_data: any | null) => void
|
|
1437
1437
|
about_to_show: () => boolean
|
|
1438
|
-
event: (name: string
|
|
1438
|
+
event: (name: string, value: GLib.Variant, timestamp: number) => void
|
|
1439
1439
|
reserved1: () => void
|
|
1440
1440
|
reserved2: () => void
|
|
1441
1441
|
reserved3: () => void
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/dbusmenu-0.4",
|
|
3
|
-
"version": "0.4.0-3.2.
|
|
3
|
+
"version": "0.4.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Dbusmenu-0.4, generated from library version 0.4.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dbusmenu-0.4.js",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit dbusmenu-0.4.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gjs": "^3.2.
|
|
29
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
30
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
28
|
+
"@girs/gjs": "^3.2.7",
|
|
29
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
30
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "*"
|