@girs/dbusmenu-0.4 0.4.0-3.2.5 → 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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/dbusmenu-0.4)
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.5.
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
 
@@ -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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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
@@ -435,6 +435,9 @@ export module Client {
435
435
  dbus_name?: string | null
436
436
  dbus_object?: string | null
437
437
  group_events?: boolean | null
438
+ dbusName?: string | null
439
+ dbusObject?: string | null
440
+ groupEvents?: boolean | null
438
441
  }
439
442
 
440
443
  }
@@ -444,8 +447,11 @@ export interface Client {
444
447
  // Own properties of Dbusmenu-0.4.Dbusmenu.Client
445
448
 
446
449
  readonly dbus_name: string | null
450
+ readonly dbusName: string | null
447
451
  readonly dbus_object: string | null
452
+ readonly dbusObject: string | null
448
453
  group_events: boolean
454
+ groupEvents: boolean
449
455
 
450
456
  // Owm methods of Dbusmenu-0.4.Dbusmenu.Client
451
457
 
@@ -464,7 +470,7 @@ export interface Client {
464
470
  * @param newfunc The function that will be executed with those new items when they come in.
465
471
  * @returns If registering the new type was successful.
466
472
  */
467
- add_type_handler(type: string | null, newfunc: ClientTypeHandler): boolean
473
+ add_type_handler(type: string, newfunc: ClientTypeHandler): boolean
468
474
  /**
469
475
  * This function connects into the type handling of the #DbusmenuClient.
470
476
  * Every new menuitem that comes in immediately gets asked for its
@@ -480,7 +486,7 @@ export interface Client {
480
486
  * @param newfunc The function that will be executed with those new items when they come in.
481
487
  * @returns If registering the new type was successful.
482
488
  */
483
- add_type_handler_full(type: string | null, newfunc: ClientTypeHandler): boolean
489
+ add_type_handler_full(type: string, newfunc: ClientTypeHandler): boolean
484
490
  /**
485
491
  * Gets the stored and exported icon paths from the client.
486
492
  * @returns A NULL-terminated list of icon paths with memory managed by the client. Duplicate if you want to keep them.
@@ -580,7 +586,7 @@ export class Client extends GObject.Object {
580
586
  * @param object The object on the server to monitor
581
587
  * @returns A brand new #DbusmenuClient
582
588
  */
583
- constructor(name: string | null, object: string | null)
589
+ constructor(name: string, object: string)
584
590
  /**
585
591
  * This function creates a new client that connects to a specific
586
592
  * server on DBus. That server is at a specific location sharing
@@ -592,7 +598,7 @@ export class Client extends GObject.Object {
592
598
  * @param object The object on the server to monitor
593
599
  * @returns A brand new #DbusmenuClient
594
600
  */
595
- static new(name: string | null, object: string | null): Client
601
+ static new(name: string, object: string): Client
596
602
  _init(config?: Client.ConstructorProperties): void
597
603
  }
598
604
 
@@ -813,7 +819,7 @@ export interface Menuitem {
813
819
  * @param variant A value that could be set for the event
814
820
  * @param timestamp The timestamp of when the event happened
815
821
  */
816
- handle_event(name: string | null, variant: GLib.Variant, timestamp: number): void
822
+ handle_event(name: string, variant: GLib.Variant, timestamp: number): void
817
823
  /**
818
824
  * This function takes the properties of a #DbusmenuMenuitem
819
825
  * and puts them into a #GHashTable that is referenced by the
@@ -838,7 +844,7 @@ export interface Menuitem {
838
844
  * @param property The property to look for.
839
845
  * @returns A boolean checking to see if the property is available
840
846
  */
841
- property_exist(property: string | null): boolean
847
+ property_exist(property: string): boolean
842
848
  /**
843
849
  * Look up a property on `mi` and return the value of it if
844
850
  * it exits. #NULL will be returned if the property doesn't
@@ -846,14 +852,14 @@ export interface Menuitem {
846
852
  * @param property The property to grab.
847
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.
848
854
  */
849
- property_get(property: string | null): string | null
855
+ property_get(property: string): string
850
856
  /**
851
857
  * Look up a property on `mi` and return the value of it if
852
858
  * it exits. Returns #FALSE if the property doesn't exist.
853
859
  * @param property The property to grab.
854
860
  * @returns The value of the property or #FALSE.
855
861
  */
856
- property_get_bool(property: string | null): boolean
862
+ property_get_bool(property: string): boolean
857
863
  /**
858
864
  * Look up a property on `mi` and return the value of it if
859
865
  * it exits. #NULL will be returned if the property doesn't
@@ -861,14 +867,14 @@ export interface Menuitem {
861
867
  * @param property The property to grab.
862
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.
863
869
  */
864
- property_get_byte_array(property: string | null): Uint8Array
870
+ property_get_byte_array(property: string): Uint8Array
865
871
  /**
866
872
  * Look up a property on `mi` and return the value of it if
867
873
  * it exits. Returns zero if the property doesn't exist.
868
874
  * @param property The property to grab.
869
875
  * @returns The value of the property or zero.
870
876
  */
871
- property_get_int(property: string | null): number
877
+ property_get_int(property: string): number
872
878
  /**
873
879
  * Look up a property on `mi` and return the value of it if
874
880
  * it exits. #NULL will be returned if the property doesn't
@@ -876,12 +882,12 @@ export interface Menuitem {
876
882
  * @param property The property to grab.
877
883
  * @returns A GVariant for the property.
878
884
  */
879
- property_get_variant(property: string | null): GLib.Variant
885
+ property_get_variant(property: string): GLib.Variant
880
886
  /**
881
887
  * Removes a property from the menuitem.
882
888
  * @param property The property to look for.
883
889
  */
884
- property_remove(property: string | null): void
890
+ property_remove(property: string): void
885
891
  /**
886
892
  * Takes the pair of `property` and `value` and places them as a
887
893
  * property on `mi`. If a property already exists by that name,
@@ -893,7 +899,7 @@ export interface Menuitem {
893
899
  * @param value The value of the property.
894
900
  * @returns A boolean representing if the property value was set.
895
901
  */
896
- property_set(property: string | null, value: string | null): boolean
902
+ property_set(property: string, value: string): boolean
897
903
  /**
898
904
  * Takes a boolean `value` and sets it on `property` as a
899
905
  * property on `mi`. If a property already exists by that name,
@@ -905,7 +911,7 @@ export interface Menuitem {
905
911
  * @param value The value of the property.
906
912
  * @returns A boolean representing if the property value was set.
907
913
  */
908
- property_set_bool(property: string | null, value: boolean): boolean
914
+ property_set_bool(property: string, value: boolean): boolean
909
915
  /**
910
916
  * Takes a byte array `value` and sets it on `property` as a
911
917
  * property on `mi`. If a property already exists by that name,
@@ -918,7 +924,7 @@ export interface Menuitem {
918
924
  * @param nelements The number of elements in the byte array.
919
925
  * @returns A boolean representing if the property value was set.
920
926
  */
921
- property_set_byte_array(property: string | null, value: number, nelements: number): boolean
927
+ property_set_byte_array(property: string, value: number, nelements: number): boolean
922
928
  /**
923
929
  * Takes a boolean `value` and sets it on `property` as a
924
930
  * property on `mi`. If a property already exists by that name,
@@ -930,7 +936,7 @@ export interface Menuitem {
930
936
  * @param value The value of the property.
931
937
  * @returns A boolean representing if the property value was set.
932
938
  */
933
- property_set_int(property: string | null, value: number): boolean
939
+ property_set_int(property: string, value: number): boolean
934
940
  /**
935
941
  * Takes the pair of `property` and `value` and places them as a
936
942
  * property on `mi`. If a property already exists by that name,
@@ -942,7 +948,7 @@ export interface Menuitem {
942
948
  * @param value The value of the property.
943
949
  * @returns A boolean representing if the property value was set.
944
950
  */
945
- property_set_variant(property: string | null, value: GLib.Variant): boolean
951
+ property_set_variant(property: string, value: GLib.Variant): boolean
946
952
  /**
947
953
  * This function is used to send the even that the submenu
948
954
  * of this item is about to be shown. Callers to this event
@@ -1016,7 +1022,7 @@ export interface Menuitem {
1016
1022
  * @param variant A value that could be set for the event
1017
1023
  * @param timestamp The timestamp of when the event happened
1018
1024
  */
1019
- vfunc_handle_event(name: string | null, variant: GLib.Variant, timestamp: number): void
1025
+ vfunc_handle_event(name: string, variant: GLib.Variant, timestamp: number): void
1020
1026
  vfunc_show_to_user(timestamp: number, cb_data: any | null): void
1021
1027
 
1022
1028
  // Own signals of Dbusmenu-0.4.Dbusmenu.Menuitem
@@ -1110,6 +1116,7 @@ export module MenuitemProxy {
1110
1116
  // Own constructor properties of Dbusmenu-0.4.Dbusmenu.MenuitemProxy
1111
1117
 
1112
1118
  menu_item?: Menuitem | null
1119
+ menuItem?: Menuitem | null
1113
1120
  }
1114
1121
 
1115
1122
  }
@@ -1119,6 +1126,7 @@ export interface MenuitemProxy {
1119
1126
  // Own properties of Dbusmenu-0.4.Dbusmenu.MenuitemProxy
1120
1127
 
1121
1128
  readonly menu_item: Menuitem
1129
+ readonly menuItem: Menuitem
1122
1130
 
1123
1131
  // Owm methods of Dbusmenu-0.4.Dbusmenu.MenuitemProxy
1124
1132
 
@@ -1226,6 +1234,8 @@ export module Server {
1226
1234
 
1227
1235
  dbus_object?: string | null
1228
1236
  root_node?: Menuitem | null
1237
+ dbusObject?: string | null
1238
+ rootNode?: Menuitem | null
1229
1239
  }
1230
1240
 
1231
1241
  }
@@ -1235,7 +1245,9 @@ export interface Server {
1235
1245
  // Own properties of Dbusmenu-0.4.Dbusmenu.Server
1236
1246
 
1237
1247
  readonly dbus_object: string | null
1248
+ readonly dbusObject: string | null
1238
1249
  root_node: Menuitem
1250
+ rootNode: Menuitem
1239
1251
  readonly version: number
1240
1252
 
1241
1253
  // Owm methods of Dbusmenu-0.4.Dbusmenu.Server
@@ -1344,7 +1356,7 @@ export class Server extends GObject.Object {
1344
1356
  * @constructor
1345
1357
  * @param object The object name to show for this menu structure on DBus. May be NULL.
1346
1358
  */
1347
- constructor(object: string | null)
1359
+ constructor(object: string)
1348
1360
  /**
1349
1361
  * Creates a new #DbusmenuServer object with a specific object
1350
1362
  * path on DBus. If `object` is set to NULL the default object
@@ -1354,7 +1366,7 @@ export class Server extends GObject.Object {
1354
1366
  * @constructor
1355
1367
  * @param object The object name to show for this menu structure on DBus. May be NULL.
1356
1368
  */
1357
- static new(object: string | null): Server
1369
+ static new(object: string): Server
1358
1370
  _init(config?: Server.ConstructorProperties): void
1359
1371
  }
1360
1372
 
@@ -1418,10 +1430,10 @@ export interface MenuitemClass {
1418
1430
  child_removed: (child: Menuitem) => void
1419
1431
  child_moved: (child: Menuitem, newpos: number, oldpos: number) => void
1420
1432
  realized: () => void
1421
- handle_event: (mi: Menuitem, name: string | null, variant: GLib.Variant, timestamp: number) => void
1433
+ handle_event: (mi: Menuitem, name: string, variant: GLib.Variant, timestamp: number) => void
1422
1434
  show_to_user: (mi: Menuitem, timestamp: number, cb_data: any | null) => void
1423
1435
  about_to_show: () => boolean
1424
- event: (name: string | null, value: GLib.Variant, timestamp: number) => void
1436
+ event: (name: string, value: GLib.Variant, timestamp: number) => void
1425
1437
  reserved1: () => void
1426
1438
  reserved2: () => void
1427
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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 | null
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
@@ -437,6 +437,9 @@ module Client {
437
437
  dbus_name?: string | null
438
438
  dbus_object?: string | null
439
439
  group_events?: boolean | null
440
+ dbusName?: string | null
441
+ dbusObject?: string | null
442
+ groupEvents?: boolean | null
440
443
  }
441
444
 
442
445
  }
@@ -446,8 +449,11 @@ interface Client {
446
449
  // Own properties of Dbusmenu-0.4.Dbusmenu.Client
447
450
 
448
451
  readonly dbus_name: string | null
452
+ readonly dbusName: string | null
449
453
  readonly dbus_object: string | null
454
+ readonly dbusObject: string | null
450
455
  group_events: boolean
456
+ groupEvents: boolean
451
457
 
452
458
  // Owm methods of Dbusmenu-0.4.Dbusmenu.Client
453
459
 
@@ -466,7 +472,7 @@ interface Client {
466
472
  * @param newfunc The function that will be executed with those new items when they come in.
467
473
  * @returns If registering the new type was successful.
468
474
  */
469
- add_type_handler(type: string | null, newfunc: ClientTypeHandler): boolean
475
+ add_type_handler(type: string, newfunc: ClientTypeHandler): boolean
470
476
  /**
471
477
  * This function connects into the type handling of the #DbusmenuClient.
472
478
  * Every new menuitem that comes in immediately gets asked for its
@@ -482,7 +488,7 @@ interface Client {
482
488
  * @param newfunc The function that will be executed with those new items when they come in.
483
489
  * @returns If registering the new type was successful.
484
490
  */
485
- add_type_handler_full(type: string | null, newfunc: ClientTypeHandler): boolean
491
+ add_type_handler_full(type: string, newfunc: ClientTypeHandler): boolean
486
492
  /**
487
493
  * Gets the stored and exported icon paths from the client.
488
494
  * @returns A NULL-terminated list of icon paths with memory managed by the client. Duplicate if you want to keep them.
@@ -582,7 +588,7 @@ class Client extends GObject.Object {
582
588
  * @param object The object on the server to monitor
583
589
  * @returns A brand new #DbusmenuClient
584
590
  */
585
- constructor(name: string | null, object: string | null)
591
+ constructor(name: string, object: string)
586
592
  /**
587
593
  * This function creates a new client that connects to a specific
588
594
  * server on DBus. That server is at a specific location sharing
@@ -594,7 +600,7 @@ class Client extends GObject.Object {
594
600
  * @param object The object on the server to monitor
595
601
  * @returns A brand new #DbusmenuClient
596
602
  */
597
- static new(name: string | null, object: string | null): Client
603
+ static new(name: string, object: string): Client
598
604
  _init(config?: Client.ConstructorProperties): void
599
605
  }
600
606
 
@@ -815,7 +821,7 @@ interface Menuitem {
815
821
  * @param variant A value that could be set for the event
816
822
  * @param timestamp The timestamp of when the event happened
817
823
  */
818
- handle_event(name: string | null, variant: GLib.Variant, timestamp: number): void
824
+ handle_event(name: string, variant: GLib.Variant, timestamp: number): void
819
825
  /**
820
826
  * This function takes the properties of a #DbusmenuMenuitem
821
827
  * and puts them into a #GHashTable that is referenced by the
@@ -840,7 +846,7 @@ interface Menuitem {
840
846
  * @param property The property to look for.
841
847
  * @returns A boolean checking to see if the property is available
842
848
  */
843
- property_exist(property: string | null): boolean
849
+ property_exist(property: string): boolean
844
850
  /**
845
851
  * Look up a property on `mi` and return the value of it if
846
852
  * it exits. #NULL will be returned if the property doesn't
@@ -848,14 +854,14 @@ interface Menuitem {
848
854
  * @param property The property to grab.
849
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.
850
856
  */
851
- property_get(property: string | null): string | null
857
+ property_get(property: string): string
852
858
  /**
853
859
  * Look up a property on `mi` and return the value of it if
854
860
  * it exits. Returns #FALSE if the property doesn't exist.
855
861
  * @param property The property to grab.
856
862
  * @returns The value of the property or #FALSE.
857
863
  */
858
- property_get_bool(property: string | null): boolean
864
+ property_get_bool(property: string): boolean
859
865
  /**
860
866
  * Look up a property on `mi` and return the value of it if
861
867
  * it exits. #NULL will be returned if the property doesn't
@@ -863,14 +869,14 @@ interface Menuitem {
863
869
  * @param property The property to grab.
864
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.
865
871
  */
866
- property_get_byte_array(property: string | null): Uint8Array
872
+ property_get_byte_array(property: string): Uint8Array
867
873
  /**
868
874
  * Look up a property on `mi` and return the value of it if
869
875
  * it exits. Returns zero if the property doesn't exist.
870
876
  * @param property The property to grab.
871
877
  * @returns The value of the property or zero.
872
878
  */
873
- property_get_int(property: string | null): number
879
+ property_get_int(property: string): number
874
880
  /**
875
881
  * Look up a property on `mi` and return the value of it if
876
882
  * it exits. #NULL will be returned if the property doesn't
@@ -878,12 +884,12 @@ interface Menuitem {
878
884
  * @param property The property to grab.
879
885
  * @returns A GVariant for the property.
880
886
  */
881
- property_get_variant(property: string | null): GLib.Variant
887
+ property_get_variant(property: string): GLib.Variant
882
888
  /**
883
889
  * Removes a property from the menuitem.
884
890
  * @param property The property to look for.
885
891
  */
886
- property_remove(property: string | null): void
892
+ property_remove(property: string): void
887
893
  /**
888
894
  * Takes the pair of `property` and `value` and places them as a
889
895
  * property on `mi`. If a property already exists by that name,
@@ -895,7 +901,7 @@ interface Menuitem {
895
901
  * @param value The value of the property.
896
902
  * @returns A boolean representing if the property value was set.
897
903
  */
898
- property_set(property: string | null, value: string | null): boolean
904
+ property_set(property: string, value: string): boolean
899
905
  /**
900
906
  * Takes a boolean `value` and sets it on `property` as a
901
907
  * property on `mi`. If a property already exists by that name,
@@ -907,7 +913,7 @@ interface Menuitem {
907
913
  * @param value The value of the property.
908
914
  * @returns A boolean representing if the property value was set.
909
915
  */
910
- property_set_bool(property: string | null, value: boolean): boolean
916
+ property_set_bool(property: string, value: boolean): boolean
911
917
  /**
912
918
  * Takes a byte array `value` and sets it on `property` as a
913
919
  * property on `mi`. If a property already exists by that name,
@@ -920,7 +926,7 @@ interface Menuitem {
920
926
  * @param nelements The number of elements in the byte array.
921
927
  * @returns A boolean representing if the property value was set.
922
928
  */
923
- property_set_byte_array(property: string | null, value: number, nelements: number): boolean
929
+ property_set_byte_array(property: string, value: number, nelements: number): boolean
924
930
  /**
925
931
  * Takes a boolean `value` and sets it on `property` as a
926
932
  * property on `mi`. If a property already exists by that name,
@@ -932,7 +938,7 @@ interface Menuitem {
932
938
  * @param value The value of the property.
933
939
  * @returns A boolean representing if the property value was set.
934
940
  */
935
- property_set_int(property: string | null, value: number): boolean
941
+ property_set_int(property: string, value: number): boolean
936
942
  /**
937
943
  * Takes the pair of `property` and `value` and places them as a
938
944
  * property on `mi`. If a property already exists by that name,
@@ -944,7 +950,7 @@ interface Menuitem {
944
950
  * @param value The value of the property.
945
951
  * @returns A boolean representing if the property value was set.
946
952
  */
947
- property_set_variant(property: string | null, value: GLib.Variant): boolean
953
+ property_set_variant(property: string, value: GLib.Variant): boolean
948
954
  /**
949
955
  * This function is used to send the even that the submenu
950
956
  * of this item is about to be shown. Callers to this event
@@ -1018,7 +1024,7 @@ interface Menuitem {
1018
1024
  * @param variant A value that could be set for the event
1019
1025
  * @param timestamp The timestamp of when the event happened
1020
1026
  */
1021
- vfunc_handle_event(name: string | null, variant: GLib.Variant, timestamp: number): void
1027
+ vfunc_handle_event(name: string, variant: GLib.Variant, timestamp: number): void
1022
1028
  vfunc_show_to_user(timestamp: number, cb_data: any | null): void
1023
1029
 
1024
1030
  // Own signals of Dbusmenu-0.4.Dbusmenu.Menuitem
@@ -1112,6 +1118,7 @@ module MenuitemProxy {
1112
1118
  // Own constructor properties of Dbusmenu-0.4.Dbusmenu.MenuitemProxy
1113
1119
 
1114
1120
  menu_item?: Menuitem | null
1121
+ menuItem?: Menuitem | null
1115
1122
  }
1116
1123
 
1117
1124
  }
@@ -1121,6 +1128,7 @@ interface MenuitemProxy {
1121
1128
  // Own properties of Dbusmenu-0.4.Dbusmenu.MenuitemProxy
1122
1129
 
1123
1130
  readonly menu_item: Menuitem
1131
+ readonly menuItem: Menuitem
1124
1132
 
1125
1133
  // Owm methods of Dbusmenu-0.4.Dbusmenu.MenuitemProxy
1126
1134
 
@@ -1228,6 +1236,8 @@ module Server {
1228
1236
 
1229
1237
  dbus_object?: string | null
1230
1238
  root_node?: Menuitem | null
1239
+ dbusObject?: string | null
1240
+ rootNode?: Menuitem | null
1231
1241
  }
1232
1242
 
1233
1243
  }
@@ -1237,7 +1247,9 @@ interface Server {
1237
1247
  // Own properties of Dbusmenu-0.4.Dbusmenu.Server
1238
1248
 
1239
1249
  readonly dbus_object: string | null
1250
+ readonly dbusObject: string | null
1240
1251
  root_node: Menuitem
1252
+ rootNode: Menuitem
1241
1253
  readonly version: number
1242
1254
 
1243
1255
  // Owm methods of Dbusmenu-0.4.Dbusmenu.Server
@@ -1346,7 +1358,7 @@ class Server extends GObject.Object {
1346
1358
  * @constructor
1347
1359
  * @param object The object name to show for this menu structure on DBus. May be NULL.
1348
1360
  */
1349
- constructor(object: string | null)
1361
+ constructor(object: string)
1350
1362
  /**
1351
1363
  * Creates a new #DbusmenuServer object with a specific object
1352
1364
  * path on DBus. If `object` is set to NULL the default object
@@ -1356,7 +1368,7 @@ class Server extends GObject.Object {
1356
1368
  * @constructor
1357
1369
  * @param object The object name to show for this menu structure on DBus. May be NULL.
1358
1370
  */
1359
- static new(object: string | null): Server
1371
+ static new(object: string): Server
1360
1372
  _init(config?: Server.ConstructorProperties): void
1361
1373
  }
1362
1374
 
@@ -1420,10 +1432,10 @@ interface MenuitemClass {
1420
1432
  child_removed: (child: Menuitem) => void
1421
1433
  child_moved: (child: Menuitem, newpos: number, oldpos: number) => void
1422
1434
  realized: () => void
1423
- handle_event: (mi: Menuitem, name: string | null, variant: GLib.Variant, timestamp: number) => void
1435
+ handle_event: (mi: Menuitem, name: string, variant: GLib.Variant, timestamp: number) => void
1424
1436
  show_to_user: (mi: Menuitem, timestamp: number, cb_data: any | null) => void
1425
1437
  about_to_show: () => boolean
1426
- event: (name: string | null, value: GLib.Variant, timestamp: number) => void
1438
+ event: (name: string, value: GLib.Variant, timestamp: number) => void
1427
1439
  reserved1: () => void
1428
1440
  reserved2: () => void
1429
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.5",
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.5",
29
- "@girs/glib-2.0": "^2.78.0-3.2.5",
30
- "@girs/gobject-2.0": "^2.78.0-3.2.5"
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": "*"