@gtkx/react 0.16.0 → 0.17.1

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.
Files changed (73) hide show
  1. package/dist/animation/css-builder.d.ts +3 -0
  2. package/dist/animation/css-builder.js +53 -0
  3. package/dist/animation/types.d.ts +120 -0
  4. package/dist/animation/types.js +1 -0
  5. package/dist/fiber-root.js +1 -1
  6. package/dist/generated/jsx.d.ts +351 -351
  7. package/dist/host-config.js +6 -11
  8. package/dist/jsx.d.ts +39 -10
  9. package/dist/jsx.js +7 -7
  10. package/dist/node.d.ts +1 -0
  11. package/dist/node.js +9 -0
  12. package/dist/nodes/abstract/virtual-container.d.ts +5 -1
  13. package/dist/nodes/abstract/virtual-container.js +9 -0
  14. package/dist/nodes/abstract/virtual-single-child.js +2 -1
  15. package/dist/nodes/action-row-child.js +8 -0
  16. package/dist/nodes/animation.d.ts +1 -0
  17. package/dist/nodes/animation.js +252 -0
  18. package/dist/nodes/event-controller.d.ts +22 -1
  19. package/dist/nodes/event-controller.js +2 -2
  20. package/dist/nodes/expander-row-child.js +8 -0
  21. package/dist/nodes/fixed-child.js +4 -0
  22. package/dist/nodes/grid-child.js +4 -0
  23. package/dist/nodes/index.d.ts +2 -4
  24. package/dist/nodes/index.js +2 -4
  25. package/dist/nodes/internal/deferred-action.d.ts +1 -0
  26. package/dist/nodes/internal/deferred-action.js +3 -0
  27. package/dist/nodes/internal/list-store.d.ts +4 -6
  28. package/dist/nodes/internal/list-store.js +26 -31
  29. package/dist/nodes/internal/selection-model.js +0 -4
  30. package/dist/nodes/internal/signal-store.d.ts +4 -1
  31. package/dist/nodes/internal/signal-store.js +6 -8
  32. package/dist/nodes/internal/text-buffer-controller.js +1 -1
  33. package/dist/nodes/internal/tree-store.d.ts +2 -6
  34. package/dist/nodes/internal/tree-store.js +58 -56
  35. package/dist/nodes/list-view.js +2 -1
  36. package/dist/nodes/models/tree-list.js +1 -1
  37. package/dist/nodes/overlay-child.js +7 -7
  38. package/dist/nodes/pack-child.js +8 -0
  39. package/dist/nodes/shortcut-controller.js +6 -61
  40. package/dist/nodes/slot.js +1 -1
  41. package/dist/nodes/toggle-group.js +1 -1
  42. package/dist/nodes/toolbar-child.js +22 -29
  43. package/dist/nodes/tree-list-view.js +2 -1
  44. package/dist/nodes/web-view.d.ts +1 -0
  45. package/dist/nodes/web-view.js +29 -0
  46. package/dist/render.js +1 -1
  47. package/package.json +4 -4
  48. package/dist/nodes/abstract/positional-parent.d.ts +0 -18
  49. package/dist/nodes/abstract/positional-parent.js +0 -48
  50. package/dist/nodes/action-row.d.ts +0 -6
  51. package/dist/nodes/action-row.js +0 -13
  52. package/dist/nodes/animation/animation-controller.d.ts +0 -17
  53. package/dist/nodes/animation/animation-controller.js +0 -107
  54. package/dist/nodes/animation/animation-factory.d.ts +0 -15
  55. package/dist/nodes/animation/animation-factory.js +0 -25
  56. package/dist/nodes/animation/animation-node.d.ts +0 -9
  57. package/dist/nodes/animation/animation-node.js +0 -126
  58. package/dist/nodes/animation/animation-style-sheet.d.ts +0 -16
  59. package/dist/nodes/animation/animation-style-sheet.js +0 -74
  60. package/dist/nodes/animation/index.d.ts +0 -4
  61. package/dist/nodes/animation/index.js +0 -1
  62. package/dist/nodes/animation/property-mapper.d.ts +0 -11
  63. package/dist/nodes/animation/property-mapper.js +0 -36
  64. package/dist/nodes/animation/transform-state.d.ts +0 -11
  65. package/dist/nodes/animation/transform-state.js +0 -57
  66. package/dist/nodes/animation/widget-registry.d.ts +0 -5
  67. package/dist/nodes/animation/widget-registry.js +0 -42
  68. package/dist/nodes/expander-row.d.ts +0 -6
  69. package/dist/nodes/expander-row.js +0 -18
  70. package/dist/nodes/internal/base-store.d.ts +0 -9
  71. package/dist/nodes/internal/base-store.js +0 -20
  72. package/dist/nodes/pack.d.ts +0 -6
  73. package/dist/nodes/pack.js +0 -13
@@ -184,17 +184,17 @@ export type WidgetProps = {
184
184
  *
185
185
  * This signal is not suitable for saving widget state.
186
186
  */
187
- onDestroy?: (self: Gtk.Widget) => void | null;
187
+ onDestroy?: ((self: Gtk.Widget) => void) | null;
188
188
  /** Emitted when the text direction of a widget changes. */
189
- onDirectionChanged?: (previousDirection: Gtk.TextDirection, self: Gtk.Widget) => void | null;
189
+ onDirectionChanged?: ((previousDirection: Gtk.TextDirection, self: Gtk.Widget) => void) | null;
190
190
  /** Emitted when `widget` is hidden. */
191
- onHide?: (self: Gtk.Widget) => void | null;
191
+ onHide?: ((self: Gtk.Widget) => void) | null;
192
192
  /**
193
193
  * Emitted if keyboard navigation fails.
194
194
  *
195
195
  * See {@link Widget.keynav_failed} for details.
196
196
  */
197
- onKeynavFailed?: (direction: Gtk.DirectionType, self: Gtk.Widget) => boolean | null;
197
+ onKeynavFailed?: ((direction: Gtk.DirectionType, self: Gtk.Widget) => boolean) | null;
198
198
  /**
199
199
  * Emitted when `widget` is going to be mapped.
200
200
  *
@@ -206,14 +206,14 @@ export type WidgetProps = {
206
206
  * for instance it can resume an animation that was stopped during the
207
207
  * emission of {@link Widget.:unmap}.
208
208
  */
209
- onMap?: (self: Gtk.Widget) => void | null;
209
+ onMap?: ((self: Gtk.Widget) => void) | null;
210
210
  /**
211
211
  * Emitted when a widget is activated via a mnemonic.
212
212
  *
213
213
  * The default handler for this signal activates `widget` if `group_cycling`
214
214
  * is false, or just makes `widget` grab focus if `group_cycling` is true.
215
215
  */
216
- onMnemonicActivate?: (groupCycling: boolean, self: Gtk.Widget) => boolean | null;
216
+ onMnemonicActivate?: ((groupCycling: boolean, self: Gtk.Widget) => boolean) | null;
217
217
  /**
218
218
  * Emitted when the focus is moved.
219
219
  *
@@ -222,7 +222,7 @@ export type WidgetProps = {
222
222
  * The default bindings for this signal are `Tab` to move forward,
223
223
  * and `Shift`+`Tab` to move backward.
224
224
  */
225
- onMoveFocus?: (direction: Gtk.DirectionType, self: Gtk.Widget) => void | null;
225
+ onMoveFocus?: ((direction: Gtk.DirectionType, self: Gtk.Widget) => void) | null;
226
226
  /**
227
227
  * Emitted when the widget’s tooltip is about to be shown.
228
228
  *
@@ -238,22 +238,22 @@ export type WidgetProps = {
238
238
  * The signal handler is free to manipulate `tooltip` with the therefore
239
239
  * destined function calls.
240
240
  */
241
- onQueryTooltip?: (x: number, y: number, keyboardMode: boolean, tooltip: Gtk.Tooltip, self: Gtk.Widget) => boolean | null;
241
+ onQueryTooltip?: ((x: number, y: number, keyboardMode: boolean, tooltip: Gtk.Tooltip, self: Gtk.Widget) => boolean) | null;
242
242
  /**
243
243
  * Emitted when `widget` is associated with a `GdkSurface`.
244
244
  *
245
245
  * This means that {@link Widget.realize} has been called
246
246
  * or the widget has been mapped (that is, it is going to be drawn).
247
247
  */
248
- onRealize?: (self: Gtk.Widget) => void | null;
248
+ onRealize?: ((self: Gtk.Widget) => void) | null;
249
249
  /** Emitted when `widget` is shown. */
250
- onShow?: (self: Gtk.Widget) => void | null;
250
+ onShow?: ((self: Gtk.Widget) => void) | null;
251
251
  /**
252
252
  * Emitted when the widget state changes.
253
253
  *
254
254
  * See {@link Widget.get_state_flags}.
255
255
  */
256
- onStateFlagsChanged?: (flags: Gtk.StateFlags, self: Gtk.Widget) => void | null;
256
+ onStateFlagsChanged?: ((flags: Gtk.StateFlags, self: Gtk.Widget) => void) | null;
257
257
  /**
258
258
  * Emitted when `widget` is going to be unmapped.
259
259
  *
@@ -263,14 +263,14 @@ export type WidgetProps = {
263
263
  * As `::unmap` indicates that a widget will not be shown any longer,
264
264
  * it can be used to, for example, stop an animation on the widget.
265
265
  */
266
- onUnmap?: (self: Gtk.Widget) => void | null;
266
+ onUnmap?: ((self: Gtk.Widget) => void) | null;
267
267
  /**
268
268
  * Emitted when the `GdkSurface` associated with `widget` is destroyed.
269
269
  *
270
270
  * This means that {@link Widget.unrealize} has been called
271
271
  * or the widget has been unmapped (that is, it is going to be hidden).
272
272
  */
273
- onUnrealize?: (self: Gtk.Widget) => void | null;
273
+ onUnrealize?: ((self: Gtk.Widget) => void) | null;
274
274
  /**
275
275
  * The notify signal is emitted on an object when one of its properties has
276
276
  * its value set through g_object_set_property(), g_object_set(), et al.
@@ -298,7 +298,7 @@ export type WidgetProps = {
298
298
  * [canonical parameter names]{@link GObjectParamSpec#parameter-names} as
299
299
  * detail strings for the notify signal.
300
300
  */
301
- onNotify?: (pspec: GObject.ParamSpec, self: Gtk.Widget) => void | null;
301
+ onNotify?: ((pspec: GObject.ParamSpec, self: Gtk.Widget) => void) | null;
302
302
  /** When set to true, the widget will grab focus. Useful for focusing a widget when a condition becomes true. */
303
303
  grabFocus?: boolean;
304
304
  /** Children elements. For container widgets, these are child widgets. For non-container widgets, these are event controller elements. */
@@ -439,7 +439,7 @@ export type GtkWindowProps = WidgetProps & {
439
439
  *
440
440
  * The keybindings for this signal are all forms of the `Enter` key.
441
441
  */
442
- onActivateDefault?: (self: Gtk.Window) => void | null;
442
+ onActivateDefault?: ((self: Gtk.Window) => void) | null;
443
443
  /**
444
444
  * Emitted when the user activates the currently focused
445
445
  * widget of `window`.
@@ -448,7 +448,7 @@ export type GtkWindowProps = WidgetProps & {
448
448
  *
449
449
  * The default binding for this signal is `␣`.
450
450
  */
451
- onActivateFocus?: (self: Gtk.Window) => void | null;
451
+ onActivateFocus?: ((self: Gtk.Window) => void) | null;
452
452
  /**
453
453
  * Emitted when the user enables or disables interactive debugging.
454
454
  *
@@ -462,12 +462,12 @@ export type GtkWindowProps = WidgetProps & {
462
462
  * `Ctrl`+`Shift`+`I` and
463
463
  * `Ctrl`+`Shift`+`D`.
464
464
  */
465
- onEnableDebugging?: (toggle: boolean, self: Gtk.Window) => boolean | null;
465
+ onEnableDebugging?: ((toggle: boolean, self: Gtk.Window) => boolean) | null;
466
466
  /**
467
467
  * Emitted when the set of accelerators or mnemonics that
468
468
  * are associated with the window changes.
469
469
  */
470
- onKeysChanged?: (self: Gtk.Window) => void | null;
470
+ onKeysChanged?: ((self: Gtk.Window) => void) | null;
471
471
  /** Called when the window close button is clicked. Control window visibility using React state. */
472
472
  onClose?: (() => void) | null;
473
473
  children?: ReactNode;
@@ -755,7 +755,7 @@ export type AdwAboutDialogProps = AdwDialogProps & {
755
755
  * Applications may connect to it to override the default behavior, which is
756
756
  * to call {@link show_uri}.
757
757
  */
758
- onActivateLink?: (uri: string, self: Adw.AboutDialog) => boolean | null;
758
+ onActivateLink?: ((uri: string, self: Adw.AboutDialog) => boolean) | null;
759
759
  children?: ReactNode;
760
760
  ref?: Ref<Adw.AboutDialog>;
761
761
  };
@@ -886,7 +886,7 @@ export type GtkAboutDialogProps = GtkWindowProps & {
886
886
  * Applications may connect to it to override the default behaviour,
887
887
  * which is to call {@link FileLauncher.launch}.
888
888
  */
889
- onActivateLink?: (uri: string, self: Gtk.AboutDialog) => boolean | null;
889
+ onActivateLink?: ((uri: string, self: Gtk.AboutDialog) => boolean) | null;
890
890
  /** Custom credit sections to add to the Credits page. Each section has a name and list of people. Changes to this prop after mount are ignored. */
891
891
  creditSections?: Array<{
892
892
  name: string;
@@ -1177,7 +1177,7 @@ export type AdwAboutWindowProps = AdwWindowProps & {
1177
1177
  * Applications may connect to it to override the default behavior, which is
1178
1178
  * to call {@link show_uri}.
1179
1179
  */
1180
- onActivateLink?: (uri: string, self: Adw.AboutWindow) => boolean | null;
1180
+ onActivateLink?: ((uri: string, self: Adw.AboutWindow) => boolean) | null;
1181
1181
  children?: ReactNode;
1182
1182
  ref?: Ref<Adw.AboutWindow>;
1183
1183
  };
@@ -1231,7 +1231,7 @@ export type AdwActionRowProps = AdwPreferencesRowProps & {
1231
1231
  */
1232
1232
  titleLines?: number;
1233
1233
  /** This signal is emitted after the row has been activated. */
1234
- onActivated?: (self: Adw.ActionRow) => void | null;
1234
+ onActivated?: ((self: Adw.ActionRow) => void) | null;
1235
1235
  children?: ReactNode;
1236
1236
  ref?: Ref<Adw.ActionRow>;
1237
1237
  };
@@ -1299,7 +1299,7 @@ export type AdwAlertDialogProps = AdwDialogProps & {
1299
1299
  * action, `response` will be set to the value of
1300
1300
  * {@link AdwAlertDialog.close-response}.
1301
1301
  */
1302
- onResponse?: (response: string, self: Adw.AlertDialog) => void | null;
1302
+ onResponse?: ((response: string, self: Adw.AlertDialog) => void) | null;
1303
1303
  children?: ReactNode;
1304
1304
  ref?: Ref<Adw.AlertDialog>;
1305
1305
  };
@@ -1330,16 +1330,16 @@ export type GtkAppChooserButtonProps = WidgetProps & {
1330
1330
  * The `::activate` signal on `GtkAppChooserButton` is an action signal and
1331
1331
  * emitting it causes the button to pop up its dialog.
1332
1332
  */
1333
- onActivate?: (self: Gtk.AppChooserButton) => void | null;
1333
+ onActivate?: ((self: Gtk.AppChooserButton) => void) | null;
1334
1334
  /** Emitted when the active application changes. */
1335
- onChanged?: (self: Gtk.AppChooserButton) => void | null;
1335
+ onChanged?: ((self: Gtk.AppChooserButton) => void) | null;
1336
1336
  /**
1337
1337
  * Emitted when a custom item is activated.
1338
1338
  *
1339
1339
  * Use {@link AppChooserButton.append_custom_item},
1340
1340
  * to add custom items.
1341
1341
  */
1342
- onCustomItemActivated?: (itemName: string, self: Gtk.AppChooserButton) => void | null;
1342
+ onCustomItemActivated?: ((itemName: string, self: Gtk.AppChooserButton) => void) | null;
1343
1343
  ref?: Ref<Gtk.AppChooserButton>;
1344
1344
  };
1345
1345
  /** Props for the {@link GtkAppChooserDialog} widget. */
@@ -1402,9 +1402,9 @@ export type GtkAppChooserWidgetProps = WidgetProps & {
1402
1402
  * is selected and the user presses one of the keys Space, Shift+Space,
1403
1403
  * Return or Enter.
1404
1404
  */
1405
- onApplicationActivated?: (application: Gio.AppInfo, self: Gtk.AppChooserWidget) => void | null;
1405
+ onApplicationActivated?: ((application: Gio.AppInfo, self: Gtk.AppChooserWidget) => void) | null;
1406
1406
  /** Emitted when an application item is selected from the widget's list. */
1407
- onApplicationSelected?: (application: Gio.AppInfo, self: Gtk.AppChooserWidget) => void | null;
1407
+ onApplicationSelected?: ((application: Gio.AppInfo, self: Gtk.AppChooserWidget) => void) | null;
1408
1408
  ref?: Ref<Gtk.AppChooserWidget>;
1409
1409
  };
1410
1410
  /** Props for the {@link AdwApplicationWindow} widget. */
@@ -1448,18 +1448,18 @@ export type GtkApplicationWindowProps = GtkWindowProps & {
1448
1448
  * This signal is emitted after the action has been added
1449
1449
  * and is now visible.
1450
1450
  */
1451
- onActionAdded?: (actionName: string, self: Gtk.ApplicationWindow) => void | null;
1451
+ onActionAdded?: ((actionName: string, self: Gtk.ApplicationWindow) => void) | null;
1452
1452
  /** Signals that the enabled status of the named action has changed. */
1453
- onActionEnabledChanged?: (actionName: string, enabled: boolean, self: Gtk.ApplicationWindow) => void | null;
1453
+ onActionEnabledChanged?: ((actionName: string, enabled: boolean, self: Gtk.ApplicationWindow) => void) | null;
1454
1454
  /**
1455
1455
  * Signals that an action is just about to be removed from the group.
1456
1456
  *
1457
1457
  * This signal is emitted before the action is removed, so the action
1458
1458
  * is still visible and can be queried from the signal handler.
1459
1459
  */
1460
- onActionRemoved?: (actionName: string, self: Gtk.ApplicationWindow) => void | null;
1460
+ onActionRemoved?: ((actionName: string, self: Gtk.ApplicationWindow) => void) | null;
1461
1461
  /** Signals that the state of the named action has changed. */
1462
- onActionStateChanged?: (actionName: string, value: GLib.Variant, self: Gtk.ApplicationWindow) => void | null;
1462
+ onActionStateChanged?: ((actionName: string, value: GLib.Variant, self: Gtk.ApplicationWindow) => void) | null;
1463
1463
  children?: ReactNode;
1464
1464
  ref?: Ref<Gtk.ApplicationWindow>;
1465
1465
  };
@@ -1498,17 +1498,17 @@ export type GtkAssistantProps = GtkWindowProps & {
1498
1498
  * this operation within the {@link Assistant.:prepare} signal of
1499
1499
  * the progress page.
1500
1500
  */
1501
- onApply?: (self: Gtk.Assistant) => void | null;
1501
+ onApply?: ((self: Gtk.Assistant) => void) | null;
1502
1502
  /** Emitted when then the cancel button is clicked. */
1503
- onCancel?: (self: Gtk.Assistant) => void | null;
1503
+ onCancel?: ((self: Gtk.Assistant) => void) | null;
1504
1504
  /**
1505
1505
  * Emitted either when the close button of a summary page is clicked,
1506
1506
  * or when the apply button in the last page in the flow (of type
1507
1507
  * %GTK_ASSISTANT_PAGE_CONFIRM) is clicked.
1508
1508
  */
1509
- onClose?: (self: Gtk.Assistant) => void | null;
1509
+ onClose?: ((self: Gtk.Assistant) => void) | null;
1510
1510
  /** The action signal for the Escape binding. */
1511
- onEscape?: (self: Gtk.Assistant) => void | null;
1511
+ onEscape?: ((self: Gtk.Assistant) => void) | null;
1512
1512
  /**
1513
1513
  * Emitted when a new page is set as the assistant's current page,
1514
1514
  * before making the new page visible.
@@ -1516,7 +1516,7 @@ export type GtkAssistantProps = GtkWindowProps & {
1516
1516
  * A handler for this signal can do any preparations which are
1517
1517
  * necessary before showing `page`.
1518
1518
  */
1519
- onPrepare?: (page: Gtk.Widget, self: Gtk.Assistant) => void | null;
1519
+ onPrepare?: ((page: Gtk.Widget, self: Gtk.Assistant) => void) | null;
1520
1520
  children?: ReactNode;
1521
1521
  ref?: Ref<Gtk.Assistant>;
1522
1522
  };
@@ -1594,7 +1594,7 @@ export type AdwBannerProps = WidgetProps & {
1594
1594
  *
1595
1595
  * It can be used as an alternative to setting an action.
1596
1596
  */
1597
- onButtonClicked?: (self: Adw.Banner) => void | null;
1597
+ onButtonClicked?: ((self: Adw.Banner) => void) | null;
1598
1598
  ref?: Ref<Adw.Banner>;
1599
1599
  };
1600
1600
  /** Props for the {@link AdwBin} widget. */
@@ -1699,7 +1699,7 @@ export type AdwBottomSheetProps = WidgetProps & {
1699
1699
  * Emitted when the close button or shortcut is used while
1700
1700
  * {@link AdwDialog.can-close} is set to `FALSE`.
1701
1701
  */
1702
- onCloseAttempt?: (self: Adw.BottomSheet) => void | null;
1702
+ onCloseAttempt?: ((self: Adw.BottomSheet) => void) | null;
1703
1703
  children?: ReactNode;
1704
1704
  ref?: Ref<Adw.BottomSheet>;
1705
1705
  };
@@ -1767,9 +1767,9 @@ export type GtkButtonProps = WidgetProps & {
1767
1767
  * The default bindings for this signal are all forms of the
1768
1768
  * `␣` and `Enter` keys.
1769
1769
  */
1770
- onActivate?: (self: Gtk.Button) => void | null;
1770
+ onActivate?: ((self: Gtk.Button) => void) | null;
1771
1771
  /** Emitted when the button has been activated (pressed and released). */
1772
- onClicked?: (self: Gtk.Button) => void | null;
1772
+ onClicked?: ((self: Gtk.Button) => void) | null;
1773
1773
  children?: ReactNode;
1774
1774
  ref?: Ref<Gtk.Button>;
1775
1775
  };
@@ -1808,7 +1808,7 @@ export type AdwButtonRowProps = AdwPreferencesRowProps & {
1808
1808
  /** The icon name to show before the title. */
1809
1809
  startIconName?: string | null;
1810
1810
  /** This signal is emitted after the row has been activated. */
1811
- onActivated?: (self: Adw.ButtonRow) => void | null;
1811
+ onActivated?: ((self: Adw.ButtonRow) => void) | null;
1812
1812
  children?: ReactNode;
1813
1813
  ref?: Ref<Adw.ButtonRow>;
1814
1814
  };
@@ -1841,15 +1841,15 @@ export type GtkCalendarProps = WidgetProps & {
1841
1841
  */
1842
1842
  year?: number;
1843
1843
  /** Emitted when the user selects a day. */
1844
- onDaySelected?: (self: Gtk.Calendar) => void | null;
1844
+ onDaySelected?: ((self: Gtk.Calendar) => void) | null;
1845
1845
  /** Emitted when the user switches to the next month. */
1846
- onNextMonth?: (self: Gtk.Calendar) => void | null;
1846
+ onNextMonth?: ((self: Gtk.Calendar) => void) | null;
1847
1847
  /** Emitted when user switches to the next year. */
1848
- onNextYear?: (self: Gtk.Calendar) => void | null;
1848
+ onNextYear?: ((self: Gtk.Calendar) => void) | null;
1849
1849
  /** Emitted when the user switches to the previous month. */
1850
- onPrevMonth?: (self: Gtk.Calendar) => void | null;
1850
+ onPrevMonth?: ((self: Gtk.Calendar) => void) | null;
1851
1851
  /** Emitted when user switches to the previous year. */
1852
- onPrevYear?: (self: Gtk.Calendar) => void | null;
1852
+ onPrevYear?: ((self: Gtk.Calendar) => void) | null;
1853
1853
  /** Array of day numbers (1-31) to mark on the calendar */
1854
1854
  markedDays?: number[] | null;
1855
1855
  ref?: Ref<Gtk.Calendar>;
@@ -1910,7 +1910,7 @@ export type AdwCarouselProps = WidgetProps & {
1910
1910
  * ::: note
1911
1911
  * An empty carousel is indicated by `(int)index == -1`.
1912
1912
  */
1913
- onPageChanged?: (index: number, self: Adw.Carousel) => void | null;
1913
+ onPageChanged?: ((index: number, self: Adw.Carousel) => void) | null;
1914
1914
  children?: ReactNode;
1915
1915
  ref?: Ref<Adw.Carousel>;
1916
1916
  };
@@ -2042,12 +2042,12 @@ export type GtkCheckButtonProps = WidgetProps & {
2042
2042
  * The default bindings for this signal are all forms of the
2043
2043
  * `␣` and `Enter` keys.
2044
2044
  */
2045
- onActivate?: (self: Gtk.CheckButton) => void | null;
2045
+ onActivate?: ((self: Gtk.CheckButton) => void) | null;
2046
2046
  /**
2047
2047
  * Emitted when the buttons's {@link CheckButton.active}
2048
2048
  * property changes.
2049
2049
  */
2050
- onToggled?: (self: Gtk.CheckButton) => void | null;
2050
+ onToggled?: ((self: Gtk.CheckButton) => void) | null;
2051
2051
  children?: ReactNode;
2052
2052
  ref?: Ref<Gtk.CheckButton>;
2053
2053
  };
@@ -2181,7 +2181,7 @@ export type GtkColorButtonProps = WidgetProps & {
2181
2181
  * The `::activate` signal on `GtkMenuButton` is an action signal and
2182
2182
  * emitting it causes the button to pop up its dialog.
2183
2183
  */
2184
- onActivate?: (self: Gtk.ColorButton) => void | null;
2184
+ onActivate?: ((self: Gtk.ColorButton) => void) | null;
2185
2185
  /**
2186
2186
  * Emitted when the user selects a color.
2187
2187
  *
@@ -2192,7 +2192,7 @@ export type GtkColorButtonProps = WidgetProps & {
2192
2192
  * If you need to react to programmatic color changes as well, use
2193
2193
  * the notify::rgba signal.
2194
2194
  */
2195
- onColorSet?: (self: Gtk.ColorButton) => void | null;
2195
+ onColorSet?: ((self: Gtk.ColorButton) => void) | null;
2196
2196
  /**
2197
2197
  * Emitted when a color is activated from the color chooser.
2198
2198
  *
@@ -2200,7 +2200,7 @@ export type GtkColorButtonProps = WidgetProps & {
2200
2200
  * or a color is selected and the user presses one of the keys
2201
2201
  * Space, Shift+Space, Return or Enter.
2202
2202
  */
2203
- onColorActivated?: (color: Gdk.RGBA, self: Gtk.ColorButton) => void | null;
2203
+ onColorActivated?: ((color: Gdk.RGBA, self: Gtk.ColorButton) => void) | null;
2204
2204
  ref?: Ref<Gtk.ColorButton>;
2205
2205
  };
2206
2206
  /** Props for the {@link GtkColorChooserDialog} widget. */
@@ -2236,7 +2236,7 @@ export type GtkColorChooserDialogProps = GtkDialogProps & {
2236
2236
  * or a color is selected and the user presses one of the keys
2237
2237
  * Space, Shift+Space, Return or Enter.
2238
2238
  */
2239
- onColorActivated?: (color: Gdk.RGBA, self: Gtk.ColorChooserDialog) => void | null;
2239
+ onColorActivated?: ((color: Gdk.RGBA, self: Gtk.ColorChooserDialog) => void) | null;
2240
2240
  children?: ReactNode;
2241
2241
  ref?: Ref<Gtk.ColorChooserDialog>;
2242
2242
  };
@@ -2273,7 +2273,7 @@ export type GtkColorChooserWidgetProps = WidgetProps & {
2273
2273
  * or a color is selected and the user presses one of the keys
2274
2274
  * Space, Shift+Space, Return or Enter.
2275
2275
  */
2276
- onColorActivated?: (color: Gdk.RGBA, self: Gtk.ColorChooserWidget) => void | null;
2276
+ onColorActivated?: ((color: Gdk.RGBA, self: Gtk.ColorChooserWidget) => void) | null;
2277
2277
  ref?: Ref<Gtk.ColorChooserWidget>;
2278
2278
  };
2279
2279
  /** Props for the {@link GtkColorDialogButton} widget. */
@@ -2300,7 +2300,7 @@ export type GtkColorDialogButtonProps = WidgetProps & {
2300
2300
  * The `::activate` signal on `GtkColorDialogButton` is an action signal
2301
2301
  * and emitting it causes the button to pop up its dialog.
2302
2302
  */
2303
- onActivate?: (self: Gtk.ColorDialogButton) => void | null;
2303
+ onActivate?: ((self: Gtk.ColorDialogButton) => void) | null;
2304
2304
  /** Callback when the selected color changes */
2305
2305
  onRgbaChanged?: ((rgba: Gdk.RGBA) => void) | null;
2306
2306
  /** Title for the color dialog */
@@ -2361,7 +2361,7 @@ export type GtkColumnViewProps = WidgetProps & {
2361
2361
  * See {@link ListItem.set_activatable} for details on how to use this
2362
2362
  * signal.
2363
2363
  */
2364
- onActivate?: (position: number, self: Gtk.ColumnView) => void | null;
2364
+ onActivate?: ((position: number, self: Gtk.ColumnView) => void) | null;
2365
2365
  /** Array of selected item IDs */
2366
2366
  selected?: string[] | null;
2367
2367
  /** Called when selection changes with array of selected item IDs */
@@ -2428,7 +2428,7 @@ export type GtkComboBoxProps = WidgetProps & {
2428
2428
  * The `::activate` signal on `GtkComboBox` is an action signal and
2429
2429
  * emitting it causes the combo box to pop up its dropdown.
2430
2430
  */
2431
- onActivate?: (self: Gtk.ComboBox) => void | null;
2431
+ onActivate?: ((self: Gtk.ComboBox) => void) | null;
2432
2432
  /**
2433
2433
  * Emitted when the active item is changed.
2434
2434
  *
@@ -2436,7 +2436,7 @@ export type GtkComboBoxProps = WidgetProps & {
2436
2436
  * or due to a call to {@link ComboBox.set_active_iter}. It will
2437
2437
  * also be emitted while typing into the entry of a combo box with an entry.
2438
2438
  */
2439
- onChanged?: (self: Gtk.ComboBox) => void | null;
2439
+ onChanged?: ((self: Gtk.ComboBox) => void) | null;
2440
2440
  /**
2441
2441
  * Emitted to allow changing how the text in a combo box's entry is displayed.
2442
2442
  *
@@ -2470,13 +2470,13 @@ export type GtkComboBoxProps = WidgetProps & {
2470
2470
  * }
2471
2471
  * ```
2472
2472
  */
2473
- onFormatEntryText?: (path: string, self: Gtk.ComboBox) => string | null;
2473
+ onFormatEntryText?: ((path: string, self: Gtk.ComboBox) => string) | null;
2474
2474
  /**
2475
2475
  * Emitted to move the active selection.
2476
2476
  *
2477
2477
  * This is an keybinding signal.
2478
2478
  */
2479
- onMoveActive?: (scrollType: Gtk.ScrollType, self: Gtk.ComboBox) => void | null;
2479
+ onMoveActive?: ((scrollType: Gtk.ScrollType, self: Gtk.ComboBox) => void) | null;
2480
2480
  /**
2481
2481
  * Emitted to popdown the combo box list.
2482
2482
  *
@@ -2484,7 +2484,7 @@ export type GtkComboBoxProps = WidgetProps & {
2484
2484
  *
2485
2485
  * The default bindings for this signal are Alt+Up and Escape.
2486
2486
  */
2487
- onPopdown?: (self: Gtk.ComboBox) => boolean | null;
2487
+ onPopdown?: ((self: Gtk.ComboBox) => boolean) | null;
2488
2488
  /**
2489
2489
  * Emitted to popup the combo box list.
2490
2490
  *
@@ -2492,7 +2492,7 @@ export type GtkComboBoxProps = WidgetProps & {
2492
2492
  *
2493
2493
  * The default binding for this signal is Alt+Down.
2494
2494
  */
2495
- onPopup?: (self: Gtk.ComboBox) => void | null;
2495
+ onPopup?: ((self: Gtk.ComboBox) => void) | null;
2496
2496
  /**
2497
2497
  * This signal is a sign for the cell renderer to update its
2498
2498
  * value from the `cell_editable`.
@@ -2506,7 +2506,7 @@ export type GtkComboBoxProps = WidgetProps & {
2506
2506
  * gtk_cell_editable_editing_done() is a convenience method
2507
2507
  * for emitting `GtkCellEditable::editing-done`.
2508
2508
  */
2509
- onEditingDone?: (self: Gtk.ComboBox) => void | null;
2509
+ onEditingDone?: ((self: Gtk.ComboBox) => void) | null;
2510
2510
  /**
2511
2511
  * This signal is meant to indicate that the cell is finished
2512
2512
  * editing, and the `cell_editable` widget is being removed and may
@@ -2521,7 +2521,7 @@ export type GtkComboBoxProps = WidgetProps & {
2521
2521
  * gtk_cell_editable_remove_widget() is a convenience method
2522
2522
  * for emitting `GtkCellEditable::remove-widget`.
2523
2523
  */
2524
- onRemoveWidget?: (self: Gtk.ComboBox) => void | null;
2524
+ onRemoveWidget?: ((self: Gtk.ComboBox) => void) | null;
2525
2525
  children?: ReactNode;
2526
2526
  ref?: Ref<Gtk.ComboBox>;
2527
2527
  };
@@ -2671,9 +2671,9 @@ export type AdwDialogProps = WidgetProps & {
2671
2671
  * {@link Dialogclose} is called while {@link AdwDialog.can-close} is set to
2672
2672
  * `FALSE`.
2673
2673
  */
2674
- onCloseAttempt?: (self: Adw.Dialog) => void | null;
2674
+ onCloseAttempt?: ((self: Adw.Dialog) => void) | null;
2675
2675
  /** Emitted when the dialog is successfully closed. */
2676
- onClosed?: (self: Adw.Dialog) => void | null;
2676
+ onClosed?: ((self: Adw.Dialog) => void) | null;
2677
2677
  children?: ReactNode;
2678
2678
  ref?: Ref<Adw.Dialog>;
2679
2679
  };
@@ -2686,7 +2686,7 @@ export type GtkDialogProps = GtkWindowProps & {
2686
2686
  *
2687
2687
  * The default binding for this signal is the Escape key.
2688
2688
  */
2689
- onClose?: (self: Gtk.Dialog) => void | null;
2689
+ onClose?: ((self: Gtk.Dialog) => void) | null;
2690
2690
  /**
2691
2691
  * Emitted when an action widget is clicked.
2692
2692
  *
@@ -2695,7 +2695,7 @@ export type GtkDialogProps = GtkWindowProps & {
2695
2695
  * On a delete event, the response ID is %GTK_RESPONSE_DELETE_EVENT.
2696
2696
  * Otherwise, it depends on which action widget was clicked.
2697
2697
  */
2698
- onResponse?: (responseId: number, self: Gtk.Dialog) => void | null;
2698
+ onResponse?: ((responseId: number, self: Gtk.Dialog) => void) | null;
2699
2699
  children?: ReactNode;
2700
2700
  ref?: Ref<Gtk.Dialog>;
2701
2701
  };
@@ -2719,7 +2719,7 @@ export type GtkDrawingAreaProps = WidgetProps & {
2719
2719
  * This is useful in order to keep state up to date with the widget size,
2720
2720
  * like for instance a backing surface.
2721
2721
  */
2722
- onResize?: (width: number, height: number, self: Gtk.DrawingArea) => void | null;
2722
+ onResize?: ((width: number, height: number, self: Gtk.DrawingArea) => void) | null;
2723
2723
  /**
2724
2724
  * Called to draw the contents of the drawing area.
2725
2725
  * @param self - The drawing area widget
@@ -2775,7 +2775,7 @@ export type GtkDropDownProps = WidgetProps & {
2775
2775
  * The `::activate` signal on `GtkDropDown` is an action signal and
2776
2776
  * emitting it causes the drop down to pop up its dropdown.
2777
2777
  */
2778
- onActivate?: (self: Gtk.DropDown) => void | null;
2778
+ onActivate?: ((self: Gtk.DropDown) => void) | null;
2779
2779
  /** ID of the initially selected item */
2780
2780
  selectedId?: string | null;
2781
2781
  /** Called when selection changes with the selected item's ID */
@@ -2813,7 +2813,7 @@ export type GtkEditableLabelProps = WidgetProps & {
2813
2813
  * the new content, and may cause multiple ::notify::text signals
2814
2814
  * to be emitted).
2815
2815
  */
2816
- onChanged?: (self: Gtk.EditableLabel) => void | null;
2816
+ onChanged?: ((self: Gtk.EditableLabel) => void) | null;
2817
2817
  /**
2818
2818
  * Emitted when text is deleted from the widget by the user.
2819
2819
  *
@@ -2825,7 +2825,7 @@ export type GtkEditableLabelProps = WidgetProps & {
2825
2825
  * The `start_pos` and `end_pos` parameters are interpreted as for
2826
2826
  * {@link Editable.delete_text}.
2827
2827
  */
2828
- onDeleteText?: (startPos: number, endPos: number, self: Gtk.EditableLabel) => void | null;
2828
+ onDeleteText?: ((startPos: number, endPos: number, self: Gtk.EditableLabel) => void) | null;
2829
2829
  /**
2830
2830
  * Emitted when text is inserted into the widget by the user.
2831
2831
  *
@@ -2834,13 +2834,13 @@ export type GtkEditableLabelProps = WidgetProps & {
2834
2834
  * stopping the signal with g_signal_stop_emission(), it is possible
2835
2835
  * to modify the inserted text, or prevent it from being inserted entirely.
2836
2836
  */
2837
- onInsertText?: (text: string, length: number, position: Ref<number>, self: Gtk.EditableLabel) => void | null;
2837
+ onInsertText?: ((text: string, length: number, position: Ref<number>, self: Gtk.EditableLabel) => void) | null;
2838
2838
  ref?: Ref<Gtk.EditableLabel>;
2839
2839
  };
2840
2840
  /** Props for the {@link GtkEmojiChooser} widget. */
2841
2841
  export type GtkEmojiChooserProps = GtkPopoverProps & {
2842
2842
  /** Emitted when the user selects an Emoji. */
2843
- onEmojiPicked?: (text: string, self: Gtk.EmojiChooser) => void | null;
2843
+ onEmojiPicked?: ((text: string, self: Gtk.EmojiChooser) => void) | null;
2844
2844
  children?: ReactNode;
2845
2845
  ref?: Ref<Gtk.EmojiChooser>;
2846
2846
  };
@@ -3066,14 +3066,14 @@ export type GtkEntryProps = WidgetProps & {
3066
3066
  *
3067
3067
  * The keybindings for this signal are all forms of the Enter key.
3068
3068
  */
3069
- onActivate?: (self: Gtk.Entry) => void | null;
3069
+ onActivate?: ((self: Gtk.Entry) => void) | null;
3070
3070
  /** Emitted when an activatable icon is clicked. */
3071
- onIconPress?: (iconPos: Gtk.EntryIconPosition, self: Gtk.Entry) => void | null;
3071
+ onIconPress?: ((iconPos: Gtk.EntryIconPosition, self: Gtk.Entry) => void) | null;
3072
3072
  /**
3073
3073
  * Emitted on the button release from a mouse click
3074
3074
  * over an activatable icon.
3075
3075
  */
3076
- onIconRelease?: (iconPos: Gtk.EntryIconPosition, self: Gtk.Entry) => void | null;
3076
+ onIconRelease?: ((iconPos: Gtk.EntryIconPosition, self: Gtk.Entry) => void) | null;
3077
3077
  /**
3078
3078
  * This signal is a sign for the cell renderer to update its
3079
3079
  * value from the `cell_editable`.
@@ -3087,7 +3087,7 @@ export type GtkEntryProps = WidgetProps & {
3087
3087
  * gtk_cell_editable_editing_done() is a convenience method
3088
3088
  * for emitting `GtkCellEditable::editing-done`.
3089
3089
  */
3090
- onEditingDone?: (self: Gtk.Entry) => void | null;
3090
+ onEditingDone?: ((self: Gtk.Entry) => void) | null;
3091
3091
  /**
3092
3092
  * This signal is meant to indicate that the cell is finished
3093
3093
  * editing, and the `cell_editable` widget is being removed and may
@@ -3102,7 +3102,7 @@ export type GtkEntryProps = WidgetProps & {
3102
3102
  * gtk_cell_editable_remove_widget() is a convenience method
3103
3103
  * for emitting `GtkCellEditable::remove-widget`.
3104
3104
  */
3105
- onRemoveWidget?: (self: Gtk.Entry) => void | null;
3105
+ onRemoveWidget?: ((self: Gtk.Entry) => void) | null;
3106
3106
  /**
3107
3107
  * Emitted at the end of a single user-visible operation on the
3108
3108
  * contents.
@@ -3113,7 +3113,7 @@ export type GtkEntryProps = WidgetProps & {
3113
3113
  * the new content, and may cause multiple ::notify::text signals
3114
3114
  * to be emitted).
3115
3115
  */
3116
- onChanged?: (self: Gtk.Entry) => void | null;
3116
+ onChanged?: ((self: Gtk.Entry) => void) | null;
3117
3117
  /**
3118
3118
  * Emitted when text is deleted from the widget by the user.
3119
3119
  *
@@ -3125,7 +3125,7 @@ export type GtkEntryProps = WidgetProps & {
3125
3125
  * The `start_pos` and `end_pos` parameters are interpreted as for
3126
3126
  * {@link Editable.delete_text}.
3127
3127
  */
3128
- onDeleteText?: (startPos: number, endPos: number, self: Gtk.Entry) => void | null;
3128
+ onDeleteText?: ((startPos: number, endPos: number, self: Gtk.Entry) => void) | null;
3129
3129
  /**
3130
3130
  * Emitted when text is inserted into the widget by the user.
3131
3131
  *
@@ -3134,7 +3134,7 @@ export type GtkEntryProps = WidgetProps & {
3134
3134
  * stopping the signal with g_signal_stop_emission(), it is possible
3135
3135
  * to modify the inserted text, or prevent it from being inserted entirely.
3136
3136
  */
3137
- onInsertText?: (text: string, length: number, position: Ref<number>, self: Gtk.Entry) => void | null;
3137
+ onInsertText?: ((text: string, length: number, position: Ref<number>, self: Gtk.Entry) => void) | null;
3138
3138
  children?: ReactNode;
3139
3139
  ref?: Ref<Gtk.Entry>;
3140
3140
  };
@@ -3204,9 +3204,9 @@ export type AdwEntryRowProps = AdwPreferencesRowProps & {
3204
3204
  *
3205
3205
  * See {@link AdwEntryRow.show-apply-button}.
3206
3206
  */
3207
- onApply?: (self: Adw.EntryRow) => void | null;
3207
+ onApply?: ((self: Adw.EntryRow) => void) | null;
3208
3208
  /** Emitted when the embedded entry is activated. */
3209
- onEntryActivated?: (self: Adw.EntryRow) => void | null;
3209
+ onEntryActivated?: ((self: Adw.EntryRow) => void) | null;
3210
3210
  /**
3211
3211
  * Emitted at the end of a single user-visible operation on the
3212
3212
  * contents.
@@ -3217,7 +3217,7 @@ export type AdwEntryRowProps = AdwPreferencesRowProps & {
3217
3217
  * the new content, and may cause multiple ::notify::text signals
3218
3218
  * to be emitted).
3219
3219
  */
3220
- onChanged?: (self: Adw.EntryRow) => void | null;
3220
+ onChanged?: ((self: Adw.EntryRow) => void) | null;
3221
3221
  /**
3222
3222
  * Emitted when text is deleted from the widget by the user.
3223
3223
  *
@@ -3229,7 +3229,7 @@ export type AdwEntryRowProps = AdwPreferencesRowProps & {
3229
3229
  * The `start_pos` and `end_pos` parameters are interpreted as for
3230
3230
  * {@link Editable.delete_text}.
3231
3231
  */
3232
- onDeleteText?: (startPos: number, endPos: number, self: Adw.EntryRow) => void | null;
3232
+ onDeleteText?: ((startPos: number, endPos: number, self: Adw.EntryRow) => void) | null;
3233
3233
  /**
3234
3234
  * Emitted when text is inserted into the widget by the user.
3235
3235
  *
@@ -3238,7 +3238,7 @@ export type AdwEntryRowProps = AdwPreferencesRowProps & {
3238
3238
  * stopping the signal with g_signal_stop_emission(), it is possible
3239
3239
  * to modify the inserted text, or prevent it from being inserted entirely.
3240
3240
  */
3241
- onInsertText?: (text: string, length: number, position: Ref<number>, self: Adw.EntryRow) => void | null;
3241
+ onInsertText?: ((text: string, length: number, position: Ref<number>, self: Adw.EntryRow) => void) | null;
3242
3242
  children?: ReactNode;
3243
3243
  ref?: Ref<Adw.EntryRow>;
3244
3244
  };
@@ -3262,7 +3262,7 @@ export type GtkExpanderProps = WidgetProps & {
3262
3262
  /** Whether an underline in the text indicates a mnemonic. */
3263
3263
  useUnderline?: boolean;
3264
3264
  /** Activates the `GtkExpander`. */
3265
- onActivate?: (self: Gtk.Expander) => void | null;
3265
+ onActivate?: ((self: Gtk.Expander) => void) | null;
3266
3266
  children?: ReactNode;
3267
3267
  ref?: Ref<Gtk.Expander>;
3268
3268
  };
@@ -3340,7 +3340,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
3340
3340
  *
3341
3341
  * The default binding for this signal is `Alt`-`D`.
3342
3342
  */
3343
- onDesktopFolder?: (self: Gtk.FileChooserWidget) => void | null;
3343
+ onDesktopFolder?: ((self: Gtk.FileChooserWidget) => void) | null;
3344
3344
  /**
3345
3345
  * Emitted when the user asks for it.
3346
3346
  *
@@ -3355,7 +3355,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
3355
3355
  *
3356
3356
  * The default binding for this signal is `Alt`-`Down`.
3357
3357
  */
3358
- onDownFolder?: (self: Gtk.FileChooserWidget) => void | null;
3358
+ onDownFolder?: ((self: Gtk.FileChooserWidget) => void) | null;
3359
3359
  /**
3360
3360
  * Emitted when the user asks for it.
3361
3361
  *
@@ -3366,7 +3366,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
3366
3366
  *
3367
3367
  * The default binding for this signal is `Alt`-`Home`.
3368
3368
  */
3369
- onHomeFolder?: (self: Gtk.FileChooserWidget) => void | null;
3369
+ onHomeFolder?: ((self: Gtk.FileChooserWidget) => void) | null;
3370
3370
  /**
3371
3371
  * Emitted when the user asks for it.
3372
3372
  *
@@ -3382,7 +3382,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
3382
3382
  * bound to `~` (tilde) with a `path` string of "~" itself for
3383
3383
  * access to home directories.
3384
3384
  */
3385
- onLocationPopup?: (path: string, self: Gtk.FileChooserWidget) => void | null;
3385
+ onLocationPopup?: ((path: string, self: Gtk.FileChooserWidget) => void) | null;
3386
3386
  /**
3387
3387
  * Emitted when the user asks for it.
3388
3388
  *
@@ -3393,7 +3393,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
3393
3393
  *
3394
3394
  * The default binding for this signal is `Control`-`V`.
3395
3395
  */
3396
- onLocationPopupOnPaste?: (self: Gtk.FileChooserWidget) => void | null;
3396
+ onLocationPopupOnPaste?: ((self: Gtk.FileChooserWidget) => void) | null;
3397
3397
  /**
3398
3398
  * Emitted when the user asks for it.
3399
3399
  *
@@ -3405,7 +3405,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
3405
3405
  *
3406
3406
  * The default binding for this signal is `Control`-`L`.
3407
3407
  */
3408
- onLocationTogglePopup?: (self: Gtk.FileChooserWidget) => void | null;
3408
+ onLocationTogglePopup?: ((self: Gtk.FileChooserWidget) => void) | null;
3409
3409
  /**
3410
3410
  * Emitted when the user asks for it.
3411
3411
  *
@@ -3415,7 +3415,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
3415
3415
  *
3416
3416
  * The default binding for this signal is `Alt`-`P`.
3417
3417
  */
3418
- onPlacesShortcut?: (self: Gtk.FileChooserWidget) => void | null;
3418
+ onPlacesShortcut?: ((self: Gtk.FileChooserWidget) => void) | null;
3419
3419
  /**
3420
3420
  * Emitted when the user asks for it.
3421
3421
  *
@@ -3432,7 +3432,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
3432
3432
  * actually defined to switch to the bookmark at index 0, and so on
3433
3433
  * successively.
3434
3434
  */
3435
- onQuickBookmark?: (bookmarkIndex: number, self: Gtk.FileChooserWidget) => void | null;
3435
+ onQuickBookmark?: ((bookmarkIndex: number, self: Gtk.FileChooserWidget) => void) | null;
3436
3436
  /**
3437
3437
  * Emitted when the user asks for it.
3438
3438
  *
@@ -3442,7 +3442,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
3442
3442
  *
3443
3443
  * The default binding for this signal is `Alt`-`R`.
3444
3444
  */
3445
- onRecentShortcut?: (self: Gtk.FileChooserWidget) => void | null;
3445
+ onRecentShortcut?: ((self: Gtk.FileChooserWidget) => void) | null;
3446
3446
  /**
3447
3447
  * Emitted when the user asks for it.
3448
3448
  *
@@ -3452,7 +3452,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
3452
3452
  *
3453
3453
  * The default binding for this signal is `Alt`-`S`.
3454
3454
  */
3455
- onSearchShortcut?: (self: Gtk.FileChooserWidget) => void | null;
3455
+ onSearchShortcut?: ((self: Gtk.FileChooserWidget) => void) | null;
3456
3456
  /**
3457
3457
  * Emitted when the user asks for it.
3458
3458
  *
@@ -3462,7 +3462,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
3462
3462
  *
3463
3463
  * The default binding for this signal is `Control`-`H`.
3464
3464
  */
3465
- onShowHidden?: (self: Gtk.FileChooserWidget) => void | null;
3465
+ onShowHidden?: ((self: Gtk.FileChooserWidget) => void) | null;
3466
3466
  /**
3467
3467
  * Emitted when the user asks for it.
3468
3468
  *
@@ -3473,7 +3473,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
3473
3473
  *
3474
3474
  * The default binding for this signal is `Alt`-`Up`.
3475
3475
  */
3476
- onUpFolder?: (self: Gtk.FileChooserWidget) => void | null;
3476
+ onUpFolder?: ((self: Gtk.FileChooserWidget) => void) | null;
3477
3477
  ref?: Ref<Gtk.FileChooserWidget>;
3478
3478
  };
3479
3479
  /** Props for the {@link GtkFixed} widget. */
@@ -3622,9 +3622,9 @@ export type GtkFlowBoxProps = WidgetProps & {
3622
3622
  *
3623
3623
  * This is a keybinding signal.
3624
3624
  */
3625
- onActivateCursorChild?: (self: Gtk.FlowBox) => void | null;
3625
+ onActivateCursorChild?: ((self: Gtk.FlowBox) => void) | null;
3626
3626
  /** Emitted when a child has been activated by the user. */
3627
- onChildActivated?: (child: Gtk.FlowBoxChild, self: Gtk.FlowBox) => void | null;
3627
+ onChildActivated?: ((child: Gtk.FlowBoxChild, self: Gtk.FlowBox) => void) | null;
3628
3628
  /**
3629
3629
  * Emitted when the user initiates a cursor movement.
3630
3630
  *
@@ -3643,7 +3643,7 @@ export type GtkFlowBoxProps = WidgetProps & {
3643
3643
  * - `Home`, `End` move to the ends of the box
3644
3644
  * - `PgUp`, `PgDn` move vertically by pages
3645
3645
  */
3646
- onMoveCursor?: (step: Gtk.MovementStep, count: number, extend: boolean, modify: boolean, self: Gtk.FlowBox) => boolean | null;
3646
+ onMoveCursor?: ((step: Gtk.MovementStep, count: number, extend: boolean, modify: boolean, self: Gtk.FlowBox) => boolean) | null;
3647
3647
  /**
3648
3648
  * Emitted to select all children of the box,
3649
3649
  * if the selection mode permits it.
@@ -3652,7 +3652,7 @@ export type GtkFlowBoxProps = WidgetProps & {
3652
3652
  *
3653
3653
  * The default bindings for this signal is `Ctrl`-`a`.
3654
3654
  */
3655
- onSelectAll?: (self: Gtk.FlowBox) => void | null;
3655
+ onSelectAll?: ((self: Gtk.FlowBox) => void) | null;
3656
3656
  /**
3657
3657
  * Emitted when the set of selected children changes.
3658
3658
  *
@@ -3660,7 +3660,7 @@ export type GtkFlowBoxProps = WidgetProps & {
3660
3660
  * {@link FlowBox.get_selected_children} to obtain the
3661
3661
  * selected children.
3662
3662
  */
3663
- onSelectedChildrenChanged?: (self: Gtk.FlowBox) => void | null;
3663
+ onSelectedChildrenChanged?: ((self: Gtk.FlowBox) => void) | null;
3664
3664
  /**
3665
3665
  * Emitted to toggle the selection of the child that has the focus.
3666
3666
  *
@@ -3668,7 +3668,7 @@ export type GtkFlowBoxProps = WidgetProps & {
3668
3668
  *
3669
3669
  * The default binding for this signal is `Ctrl`-`Space`.
3670
3670
  */
3671
- onToggleCursorChild?: (self: Gtk.FlowBox) => void | null;
3671
+ onToggleCursorChild?: ((self: Gtk.FlowBox) => void) | null;
3672
3672
  /**
3673
3673
  * Emitted to unselect all children of the box,
3674
3674
  * if the selection mode permits it.
@@ -3677,7 +3677,7 @@ export type GtkFlowBoxProps = WidgetProps & {
3677
3677
  *
3678
3678
  * The default bindings for this signal is `Ctrl`-`Shift`-`a`.
3679
3679
  */
3680
- onUnselectAll?: (self: Gtk.FlowBox) => void | null;
3680
+ onUnselectAll?: ((self: Gtk.FlowBox) => void) | null;
3681
3681
  children?: ReactNode;
3682
3682
  ref?: Ref<Gtk.FlowBox>;
3683
3683
  };
@@ -3696,7 +3696,7 @@ export type GtkFlowBoxChildProps = WidgetProps & {
3696
3696
  *
3697
3697
  * The default bindings are `Space` and `Enter`.
3698
3698
  */
3699
- onActivate?: (self: Gtk.FlowBoxChild) => void | null;
3699
+ onActivate?: ((self: Gtk.FlowBoxChild) => void) | null;
3700
3700
  children?: ReactNode;
3701
3701
  ref?: Ref<Gtk.FlowBoxChild>;
3702
3702
  };
@@ -3728,7 +3728,7 @@ export type GtkFontButtonProps = WidgetProps & {
3728
3728
  * The `::activate` signal on `GtkFontButton` is an action signal and
3729
3729
  * emitting it causes the button to present its dialog.
3730
3730
  */
3731
- onActivate?: (self: Gtk.FontButton) => void | null;
3731
+ onActivate?: ((self: Gtk.FontButton) => void) | null;
3732
3732
  /**
3733
3733
  * Emitted when the user selects a font.
3734
3734
  *
@@ -3739,7 +3739,7 @@ export type GtkFontButtonProps = WidgetProps & {
3739
3739
  * If you need to react to programmatic font changes as well, use
3740
3740
  * the notify::font signal.
3741
3741
  */
3742
- onFontSet?: (self: Gtk.FontButton) => void | null;
3742
+ onFontSet?: ((self: Gtk.FontButton) => void) | null;
3743
3743
  /**
3744
3744
  * Emitted when a font is activated.
3745
3745
  *
@@ -3747,7 +3747,7 @@ export type GtkFontButtonProps = WidgetProps & {
3747
3747
  * or an item is selected and the user presses one of the keys
3748
3748
  * Space, Shift+Space, Return or Enter.
3749
3749
  */
3750
- onFontActivated?: (fontname: string, self: Gtk.FontButton) => void | null;
3750
+ onFontActivated?: ((fontname: string, self: Gtk.FontButton) => void) | null;
3751
3751
  ref?: Ref<Gtk.FontButton>;
3752
3752
  };
3753
3753
  /** Props for the {@link GtkFontChooserDialog} widget. */
@@ -3771,7 +3771,7 @@ export type GtkFontChooserDialogProps = GtkDialogProps & {
3771
3771
  * or an item is selected and the user presses one of the keys
3772
3772
  * Space, Shift+Space, Return or Enter.
3773
3773
  */
3774
- onFontActivated?: (fontname: string, self: Gtk.FontChooserDialog) => void | null;
3774
+ onFontActivated?: ((fontname: string, self: Gtk.FontChooserDialog) => void) | null;
3775
3775
  children?: ReactNode;
3776
3776
  ref?: Ref<Gtk.FontChooserDialog>;
3777
3777
  };
@@ -3796,7 +3796,7 @@ export type GtkFontChooserWidgetProps = WidgetProps & {
3796
3796
  * or an item is selected and the user presses one of the keys
3797
3797
  * Space, Shift+Space, Return or Enter.
3798
3798
  */
3799
- onFontActivated?: (fontname: string, self: Gtk.FontChooserWidget) => void | null;
3799
+ onFontActivated?: ((fontname: string, self: Gtk.FontChooserWidget) => void) | null;
3800
3800
  ref?: Ref<Gtk.FontChooserWidget>;
3801
3801
  };
3802
3802
  /** Props for the {@link GtkFontDialogButton} widget. */
@@ -3849,7 +3849,7 @@ export type GtkFontDialogButtonProps = WidgetProps & {
3849
3849
  * The `::activate` signal on `GtkFontDialogButton` is an action signal
3850
3850
  * and emitting it causes the button to pop up its dialog.
3851
3851
  */
3852
- onActivate?: (self: Gtk.FontDialogButton) => void | null;
3852
+ onActivate?: ((self: Gtk.FontDialogButton) => void) | null;
3853
3853
  /** Callback when the selected font changes */
3854
3854
  onFontDescChanged?: ((fontDesc: Pango.FontDescription) => void) | null;
3855
3855
  /** Title for the font dialog */
@@ -3918,14 +3918,14 @@ export type GtkGLAreaProps = WidgetProps & {
3918
3918
  * {@link GLArea.set_error} to register a more detailed error
3919
3919
  * of how the construction failed.
3920
3920
  */
3921
- onCreateContext?: (self: Gtk.GLArea) => Gdk.GLContext | null;
3921
+ onCreateContext?: ((self: Gtk.GLArea) => Gdk.GLContext) | null;
3922
3922
  /**
3923
3923
  * Emitted every time the contents of the `GtkGLArea` should be redrawn.
3924
3924
  *
3925
3925
  * The `context` is bound to the `area` prior to emitting this function,
3926
3926
  * and the buffers are painted to the window once the emission terminates.
3927
3927
  */
3928
- onRender?: (context: Gdk.GLContext, self: Gtk.GLArea) => boolean | null;
3928
+ onRender?: ((context: Gdk.GLContext, self: Gtk.GLArea) => boolean) | null;
3929
3929
  /**
3930
3930
  * Emitted once when the widget is realized, and then each time the widget
3931
3931
  * is changed while realized.
@@ -3939,7 +3939,7 @@ export type GtkGLAreaProps = WidgetProps & {
3939
3939
  *
3940
3940
  * The default handler sets up the GL viewport.
3941
3941
  */
3942
- onResize?: (width: number, height: number, self: Gtk.GLArea) => void | null;
3942
+ onResize?: ((width: number, height: number, self: Gtk.GLArea) => void) | null;
3943
3943
  ref?: Ref<Gtk.GLArea>;
3944
3944
  };
3945
3945
  /** Props for the {@link GtkGraphicsOffload} widget. */
@@ -3993,7 +3993,7 @@ export type GtkGridViewProps = GtkListBaseProps & {
3993
3993
  * See {@link ListItem.activatable} for details on how to use
3994
3994
  * this signal.
3995
3995
  */
3996
- onActivate?: (position: number, self: Gtk.GridView) => void | null;
3996
+ onActivate?: ((position: number, self: Gtk.GridView) => void) | null;
3997
3997
  /** Array of selected item IDs */
3998
3998
  selected?: string[] | null;
3999
3999
  /** Called when selection changes with array of selected item IDs */
@@ -4041,10 +4041,10 @@ export type GtkSourceGutterRendererProps = WidgetProps & {
4041
4041
  /** The top and bottom padding of the renderer. */
4042
4042
  ypad?: number;
4043
4043
  /** The signal is emitted when the renderer is activated. */
4044
- onActivate?: (iter: Gtk.TextIter, area: Gdk.Rectangle, button: number, state: Gdk.ModifierType, nPresses: number, self: GtkSource.GutterRenderer) => void | null;
4044
+ onActivate?: ((iter: Gtk.TextIter, area: Gdk.Rectangle, button: number, state: Gdk.ModifierType, nPresses: number, self: GtkSource.GutterRenderer) => void) | null;
4045
4045
  /** The signal is emitted when the renderer can possibly be activated. */
4046
- onQueryActivatable?: (iter: Gtk.TextIter, area: Gdk.Rectangle, self: GtkSource.GutterRenderer) => boolean | null;
4047
- onQueryData?: (object: GObject.GObject, p0: number, self: GtkSource.GutterRenderer) => void | null;
4046
+ onQueryActivatable?: ((iter: Gtk.TextIter, area: Gdk.Rectangle, self: GtkSource.GutterRenderer) => boolean) | null;
4047
+ onQueryData?: ((object: GObject.Object, p0: number, self: GtkSource.GutterRenderer) => void) | null;
4048
4048
  ref?: Ref<GtkSource.GutterRenderer>;
4049
4049
  };
4050
4050
  /** Props for the {@link GtkSourceGutterRendererPixbuf} widget. */
@@ -4288,7 +4288,7 @@ export type GtkIconViewProps = WidgetProps & {
4288
4288
  *
4289
4289
  * The default bindings for this signal are Space, Return and Enter.
4290
4290
  */
4291
- onActivateCursorItem?: (self: Gtk.IconView) => boolean | null;
4291
+ onActivateCursorItem?: ((self: Gtk.IconView) => boolean) | null;
4292
4292
  /**
4293
4293
  * The ::item-activated signal is emitted when the method
4294
4294
  * gtk_icon_view_item_activated() is called, when the user double
@@ -4298,7 +4298,7 @@ export type GtkIconViewProps = WidgetProps & {
4298
4298
  * emitted when a non-editable item is selected and one of the keys:
4299
4299
  * Space, Return or Enter is pressed.
4300
4300
  */
4301
- onItemActivated?: (path: Gtk.TreePath, self: Gtk.IconView) => void | null;
4301
+ onItemActivated?: ((path: Gtk.TreePath, self: Gtk.IconView) => void) | null;
4302
4302
  /**
4303
4303
  * The ::move-cursor signal is a
4304
4304
  * [keybinding signal]{@link SignalAction}
@@ -4315,7 +4315,7 @@ export type GtkIconViewProps = WidgetProps & {
4315
4315
  * All of these will extend the selection when combined with
4316
4316
  * the Shift modifier.
4317
4317
  */
4318
- onMoveCursor?: (step: Gtk.MovementStep, count: number, extend: boolean, modify: boolean, self: Gtk.IconView) => boolean | null;
4318
+ onMoveCursor?: ((step: Gtk.MovementStep, count: number, extend: boolean, modify: boolean, self: Gtk.IconView) => boolean) | null;
4319
4319
  /**
4320
4320
  * A [keybinding signal]{@link SignalAction}
4321
4321
  * which gets emitted when the user selects all items.
@@ -4326,7 +4326,7 @@ export type GtkIconViewProps = WidgetProps & {
4326
4326
  *
4327
4327
  * The default binding for this signal is Ctrl-a.
4328
4328
  */
4329
- onSelectAll?: (self: Gtk.IconView) => void | null;
4329
+ onSelectAll?: ((self: Gtk.IconView) => void) | null;
4330
4330
  /**
4331
4331
  * A [keybinding signal]{@link SignalAction}
4332
4332
  * which gets emitted when the user selects the item that is currently
@@ -4338,12 +4338,12 @@ export type GtkIconViewProps = WidgetProps & {
4338
4338
  *
4339
4339
  * There is no default binding for this signal.
4340
4340
  */
4341
- onSelectCursorItem?: (self: Gtk.IconView) => void | null;
4341
+ onSelectCursorItem?: ((self: Gtk.IconView) => void) | null;
4342
4342
  /**
4343
4343
  * The ::selection-changed signal is emitted when the selection
4344
4344
  * (i.e. the set of selected items) changes.
4345
4345
  */
4346
- onSelectionChanged?: (self: Gtk.IconView) => void | null;
4346
+ onSelectionChanged?: ((self: Gtk.IconView) => void) | null;
4347
4347
  /**
4348
4348
  * A [keybinding signal]{@link SignalAction}
4349
4349
  * which gets emitted when the user toggles whether the currently
@@ -4356,7 +4356,7 @@ export type GtkIconViewProps = WidgetProps & {
4356
4356
  *
4357
4357
  * There is no default binding for this signal is Ctrl-Space.
4358
4358
  */
4359
- onToggleCursorItem?: (self: Gtk.IconView) => void | null;
4359
+ onToggleCursorItem?: ((self: Gtk.IconView) => void) | null;
4360
4360
  /**
4361
4361
  * A [keybinding signal]{@link SignalAction}
4362
4362
  * which gets emitted when the user unselects all items.
@@ -4367,7 +4367,7 @@ export type GtkIconViewProps = WidgetProps & {
4367
4367
  *
4368
4368
  * The default binding for this signal is Ctrl-Shift-a.
4369
4369
  */
4370
- onUnselectAll?: (self: Gtk.IconView) => void | null;
4370
+ onUnselectAll?: ((self: Gtk.IconView) => void) | null;
4371
4371
  ref?: Ref<Gtk.IconView>;
4372
4372
  };
4373
4373
  /** Props for the {@link GtkImage} widget. */
@@ -4430,7 +4430,7 @@ export type GtkInfoBarProps = WidgetProps & {
4430
4430
  *
4431
4431
  * The default binding for this signal is the Escape key.
4432
4432
  */
4433
- onClose?: (self: Gtk.InfoBar) => void | null;
4433
+ onClose?: ((self: Gtk.InfoBar) => void) | null;
4434
4434
  /**
4435
4435
  * Emitted when an action widget is clicked.
4436
4436
  *
@@ -4438,7 +4438,7 @@ export type GtkInfoBarProps = WidgetProps & {
4438
4438
  * calls {@link InfoBar.response}. The `response_id` depends
4439
4439
  * on which action widget was clicked.
4440
4440
  */
4441
- onResponse?: (responseId: number, self: Gtk.InfoBar) => void | null;
4441
+ onResponse?: ((responseId: number, self: Gtk.InfoBar) => void) | null;
4442
4442
  children?: ReactNode;
4443
4443
  ref?: Ref<Gtk.InfoBar>;
4444
4444
  };
@@ -4711,14 +4711,14 @@ export type GtkLabelProps = WidgetProps & {
4711
4711
  *
4712
4712
  * The default bindings for this signal are all forms of the `Enter` key.
4713
4713
  */
4714
- onActivateCurrentLink?: (self: Gtk.Label) => void | null;
4714
+ onActivateCurrentLink?: ((self: Gtk.Label) => void) | null;
4715
4715
  /**
4716
4716
  * Gets emitted to activate a URI.
4717
4717
  *
4718
4718
  * Applications may connect to it to override the default behaviour,
4719
4719
  * which is to call {@link FileLauncher.launch}.
4720
4720
  */
4721
- onActivateLink?: (uri: string, self: Gtk.Label) => boolean | null;
4721
+ onActivateLink?: ((uri: string, self: Gtk.Label) => boolean) | null;
4722
4722
  /**
4723
4723
  * Gets emitted to copy the selection to the clipboard.
4724
4724
  *
@@ -4726,7 +4726,7 @@ export type GtkLabelProps = WidgetProps & {
4726
4726
  *
4727
4727
  * The default binding for this signal is `Ctrl`+`c`.
4728
4728
  */
4729
- onCopyClipboard?: (self: Gtk.Label) => void | null;
4729
+ onCopyClipboard?: ((self: Gtk.Label) => void) | null;
4730
4730
  /**
4731
4731
  * Gets emitted when the user initiates a cursor movement.
4732
4732
  *
@@ -4748,7 +4748,7 @@ export type GtkLabelProps = WidgetProps & {
4748
4748
  * - `Ctrl`+`←`, etc. move by words/paragraphs
4749
4749
  * - `Home` and `End` move to the ends of the buffer
4750
4750
  */
4751
- onMoveCursor?: (step: Gtk.MovementStep, count: number, extendSelection: boolean, self: Gtk.Label) => void | null;
4751
+ onMoveCursor?: ((step: Gtk.MovementStep, count: number, extendSelection: boolean, self: Gtk.Label) => void) | null;
4752
4752
  children?: ReactNode;
4753
4753
  ref?: Ref<Gtk.Label>;
4754
4754
  };
@@ -4898,7 +4898,7 @@ export type GtkLevelBarProps = WidgetProps & {
4898
4898
  * detailed signal "changed::x" in order to only receive callbacks when
4899
4899
  * the value of offset "x" changes.
4900
4900
  */
4901
- onOffsetChanged?: (name: string, self: Gtk.LevelBar) => void | null;
4901
+ onOffsetChanged?: ((name: string, self: Gtk.LevelBar) => void) | null;
4902
4902
  /** Array of named offset thresholds for visual style changes */
4903
4903
  offsets?: Array<{
4904
4904
  id: string;
@@ -4926,7 +4926,7 @@ export type GtkLinkButtonProps = GtkButtonProps & {
4926
4926
  * ::activate-link signal and stop the propagation of the signal
4927
4927
  * by returning %TRUE from your handler.
4928
4928
  */
4929
- onActivateLink?: (self: Gtk.LinkButton) => boolean | null;
4929
+ onActivateLink?: ((self: Gtk.LinkButton) => boolean) | null;
4930
4930
  children?: ReactNode;
4931
4931
  ref?: Ref<Gtk.LinkButton>;
4932
4932
  };
@@ -4971,7 +4971,7 @@ export type GtkListBoxProps = WidgetProps & {
4971
4971
  /** Behavior of the `Tab` key */
4972
4972
  tabBehavior?: Gtk.ListTabBehavior;
4973
4973
  /** Emitted when the cursor row is activated. */
4974
- onActivateCursorRow?: (self: Gtk.ListBox) => void | null;
4974
+ onActivateCursorRow?: ((self: Gtk.ListBox) => void) | null;
4975
4975
  /**
4976
4976
  * Emitted when the user initiates a cursor movement.
4977
4977
  *
@@ -4985,9 +4985,9 @@ export type GtkListBoxProps = WidgetProps & {
4985
4985
  * - `Home`, `End` move to the ends of the box
4986
4986
  * - `PgUp`, `PgDn` move vertically by pages
4987
4987
  */
4988
- onMoveCursor?: (step: Gtk.MovementStep, count: number, extend: boolean, modify: boolean, self: Gtk.ListBox) => void | null;
4988
+ onMoveCursor?: ((step: Gtk.MovementStep, count: number, extend: boolean, modify: boolean, self: Gtk.ListBox) => void) | null;
4989
4989
  /** Emitted when a row has been activated by the user. */
4990
- onRowActivated?: (row: Gtk.ListBoxRow, self: Gtk.ListBox) => void | null;
4990
+ onRowActivated?: ((row: Gtk.ListBoxRow, self: Gtk.ListBox) => void) | null;
4991
4991
  /**
4992
4992
  * Emitted when a new row is selected, or (with a %NULL `row`)
4993
4993
  * when the selection is cleared.
@@ -4996,7 +4996,7 @@ export type GtkListBoxProps = WidgetProps & {
4996
4996
  * give you the full picture of selection changes, and you should use
4997
4997
  * the {@link ListBox.:selected-rows-changed} signal instead.
4998
4998
  */
4999
- onRowSelected?: (row: Gtk.ListBoxRow, self: Gtk.ListBox) => void | null;
4999
+ onRowSelected?: ((row: Gtk.ListBoxRow, self: Gtk.ListBox) => void) | null;
5000
5000
  /**
5001
5001
  * Emitted to select all children of the box, if the selection
5002
5002
  * mode permits it.
@@ -5005,15 +5005,15 @@ export type GtkListBoxProps = WidgetProps & {
5005
5005
  *
5006
5006
  * The default binding for this signal is `Ctrl`-`a`.
5007
5007
  */
5008
- onSelectAll?: (self: Gtk.ListBox) => void | null;
5008
+ onSelectAll?: ((self: Gtk.ListBox) => void) | null;
5009
5009
  /** Emitted when the set of selected rows changes. */
5010
- onSelectedRowsChanged?: (self: Gtk.ListBox) => void | null;
5010
+ onSelectedRowsChanged?: ((self: Gtk.ListBox) => void) | null;
5011
5011
  /**
5012
5012
  * Emitted when the cursor row is toggled.
5013
5013
  *
5014
5014
  * The default bindings for this signal is `Ctrl`+`␣`.
5015
5015
  */
5016
- onToggleCursorRow?: (self: Gtk.ListBox) => void | null;
5016
+ onToggleCursorRow?: ((self: Gtk.ListBox) => void) | null;
5017
5017
  /**
5018
5018
  * Emitted to unselect all children of the box, if the selection
5019
5019
  * mode permits it.
@@ -5023,7 +5023,7 @@ export type GtkListBoxProps = WidgetProps & {
5023
5023
  * The default binding for this signal is
5024
5024
  * `Ctrl`-`Shift`-`a`.
5025
5025
  */
5026
- onUnselectAll?: (self: Gtk.ListBox) => void | null;
5026
+ onUnselectAll?: ((self: Gtk.ListBox) => void) | null;
5027
5027
  /** The current value of the adjustment */
5028
5028
  value?: number;
5029
5029
  /** The minimum value */
@@ -5063,7 +5063,7 @@ export type GtkListBoxRowProps = WidgetProps & {
5063
5063
  * use the {@link ListBox.:row-activated} signal on the row’s parent
5064
5064
  * `GtkListBox`.
5065
5065
  */
5066
- onActivate?: (self: Gtk.ListBoxRow) => void | null;
5066
+ onActivate?: ((self: Gtk.ListBoxRow) => void) | null;
5067
5067
  children?: ReactNode;
5068
5068
  ref?: Ref<Gtk.ListBoxRow>;
5069
5069
  };
@@ -5093,7 +5093,7 @@ export type GtkListViewProps = GtkListBaseProps & {
5093
5093
  * See {@link ListItem.set_activatable} for details on how to use
5094
5094
  * this signal.
5095
5095
  */
5096
- onActivate?: (position: number, self: Gtk.ListView) => void | null;
5096
+ onActivate?: ((position: number, self: Gtk.ListView) => void) | null;
5097
5097
  /** Array of selected item IDs */
5098
5098
  selected?: string[] | null;
5099
5099
  /** Called when selection changes with array of selected item IDs */
@@ -5210,7 +5210,7 @@ export type GtkMenuButtonProps = WidgetProps & {
5210
5210
  * The `::activate` signal on `GtkMenuButton` is an action signal and
5211
5211
  * emitting it causes the button to pop up its menu.
5212
5212
  */
5213
- onActivate?: (self: Gtk.MenuButton) => void | null;
5213
+ onActivate?: ((self: Gtk.MenuButton) => void) | null;
5214
5214
  children?: ReactNode;
5215
5215
  ref?: Ref<Gtk.MenuButton>;
5216
5216
  };
@@ -5271,7 +5271,7 @@ export type AdwMessageDialogProps = GtkWindowProps & {
5271
5271
  * action, `response` will be set to the value of
5272
5272
  * {@link AdwMessageDialog.close-response}.
5273
5273
  */
5274
- onResponse?: (response: string, self: Adw.MessageDialog) => void | null;
5274
+ onResponse?: ((response: string, self: Adw.MessageDialog) => void) | null;
5275
5275
  children?: ReactNode;
5276
5276
  ref?: Ref<Adw.MessageDialog>;
5277
5277
  };
@@ -5357,7 +5357,7 @@ export type AdwNavigationPageProps = WidgetProps & {
5357
5357
  * It will always be preceded by {@link AdwNavigationPage.:hiding} or
5358
5358
  * {@link AdwNavigationPage.:showing}.
5359
5359
  */
5360
- onHidden?: (self: Adw.NavigationPage) => void | null;
5360
+ onHidden?: ((self: Adw.NavigationPage) => void) | null;
5361
5361
  /**
5362
5362
  * Emitted when the page starts hiding at the beginning of the navigation view
5363
5363
  * transition.
@@ -5365,7 +5365,7 @@ export type AdwNavigationPageProps = WidgetProps & {
5365
5365
  * It will always be followed by {@link AdwNavigationPage.:hidden} or
5366
5366
  * {@link AdwNavigationPage.:shown}.
5367
5367
  */
5368
- onHiding?: (self: Adw.NavigationPage) => void | null;
5368
+ onHiding?: ((self: Adw.NavigationPage) => void) | null;
5369
5369
  /**
5370
5370
  * Emitted when the page shows at the beginning of the navigation view
5371
5371
  * transition.
@@ -5373,7 +5373,7 @@ export type AdwNavigationPageProps = WidgetProps & {
5373
5373
  * It will always be followed by {@link AdwNavigationPage.:shown} or
5374
5374
  * {@link AdwNavigationPage.:hidden}.
5375
5375
  */
5376
- onShowing?: (self: Adw.NavigationPage) => void | null;
5376
+ onShowing?: ((self: Adw.NavigationPage) => void) | null;
5377
5377
  /**
5378
5378
  * Emitted when the navigation view transition has been completed and the page
5379
5379
  * is fully shown.
@@ -5381,7 +5381,7 @@ export type AdwNavigationPageProps = WidgetProps & {
5381
5381
  * It will always be preceded by {@link AdwNavigationPage.:showing} or
5382
5382
  * {@link AdwNavigationPage.:hiding}.
5383
5383
  */
5384
- onShown?: (self: Adw.NavigationPage) => void | null;
5384
+ onShown?: ((self: Adw.NavigationPage) => void) | null;
5385
5385
  children?: ReactNode;
5386
5386
  ref?: Ref<Adw.NavigationPage>;
5387
5387
  };
@@ -5511,7 +5511,7 @@ export type AdwNavigationViewProps = WidgetProps & {
5511
5511
  *
5512
5512
  * Instead, it should be done in the {@link AdwNavigationView.:pushed} handler.
5513
5513
  */
5514
- onGetNextPage?: (self: Adw.NavigationView) => Adw.NavigationPage | null;
5514
+ onGetNextPage?: ((self: Adw.NavigationView) => Adw.NavigationPage) | null;
5515
5515
  /**
5516
5516
  * Emitted after `page` has been popped from the navigation stack.
5517
5517
  *
@@ -5521,19 +5521,19 @@ export type AdwNavigationViewProps = WidgetProps & {
5521
5521
  * {@link NavigationViewpop_to_tag}, this signal is emitted for each of the
5522
5522
  * popped pages.
5523
5523
  */
5524
- onPopped?: (page: Adw.NavigationPage, self: Adw.NavigationView) => void | null;
5524
+ onPopped?: ((page: Adw.NavigationPage, self: Adw.NavigationView) => void) | null;
5525
5525
  /**
5526
5526
  * Emitted after a page has been pushed to the navigation stack.
5527
5527
  *
5528
5528
  * See {@link NavigationViewpush}.
5529
5529
  */
5530
- onPushed?: (self: Adw.NavigationView) => void | null;
5530
+ onPushed?: ((self: Adw.NavigationView) => void) | null;
5531
5531
  /**
5532
5532
  * Emitted after the navigation stack has been replaced.
5533
5533
  *
5534
5534
  * See {@link NavigationViewreplace}.
5535
5535
  */
5536
- onReplaced?: (self: Adw.NavigationView) => void | null;
5536
+ onReplaced?: ((self: Adw.NavigationView) => void) | null;
5537
5537
  /** Array of page IDs representing the navigation stack. The last ID is the visible page. */
5538
5538
  history?: string[] | null;
5539
5539
  /** Called when the navigation history changes due to user interaction (back button, swipe gesture). */
@@ -5565,7 +5565,7 @@ export type GtkNotebookProps = WidgetProps & {
5565
5565
  * `Ctrl`+`Alt`+`PgDn`,
5566
5566
  * `Ctrl`+`PgUp` and `Ctrl`+`PgDn`.
5567
5567
  */
5568
- onChangeCurrentPage?: (page: number, self: Gtk.Notebook) => boolean | null;
5568
+ onChangeCurrentPage?: ((page: number, self: Gtk.Notebook) => boolean) | null;
5569
5569
  /**
5570
5570
  * The ::create-window signal is emitted when a detachable
5571
5571
  * tab is dropped on the root window.
@@ -5576,9 +5576,9 @@ export type GtkNotebookProps = WidgetProps & {
5576
5576
  * necessary properties to the notebook (e.g. the
5577
5577
  * `GtkNotebook`:group-name ).
5578
5578
  */
5579
- onCreateWindow?: (page: Gtk.Widget, self: Gtk.Notebook) => Gtk.Notebook | null;
5579
+ onCreateWindow?: ((page: Gtk.Widget, self: Gtk.Notebook) => Gtk.Notebook) | null;
5580
5580
  /** Emitted when a tab should be focused. */
5581
- onFocusTab?: (tab: Gtk.NotebookTab, self: Gtk.Notebook) => boolean | null;
5581
+ onFocusTab?: ((tab: Gtk.NotebookTab, self: Gtk.Notebook) => boolean) | null;
5582
5582
  /**
5583
5583
  * Emitted when focus was moved out.
5584
5584
  *
@@ -5588,22 +5588,22 @@ export type GtkNotebookProps = WidgetProps & {
5588
5588
  * `Ctrl`+`←`, `Ctrl`+`→`,
5589
5589
  * `Ctrl`+`↑` and `Ctrl`+`↓`.
5590
5590
  */
5591
- onMoveFocusOut?: (direction: Gtk.DirectionType, self: Gtk.Notebook) => void | null;
5591
+ onMoveFocusOut?: ((direction: Gtk.DirectionType, self: Gtk.Notebook) => void) | null;
5592
5592
  /**
5593
5593
  * the ::page-added signal is emitted in the notebook
5594
5594
  * right after a page is added to the notebook.
5595
5595
  */
5596
- onPageAdded?: (child: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void | null;
5596
+ onPageAdded?: ((child: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void) | null;
5597
5597
  /**
5598
5598
  * the ::page-removed signal is emitted in the notebook
5599
5599
  * right after a page is removed from the notebook.
5600
5600
  */
5601
- onPageRemoved?: (child: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void | null;
5601
+ onPageRemoved?: ((child: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void) | null;
5602
5602
  /**
5603
5603
  * the ::page-reordered signal is emitted in the notebook
5604
5604
  * right after a page has been reordered.
5605
5605
  */
5606
- onPageReordered?: (child: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void | null;
5606
+ onPageReordered?: ((child: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void) | null;
5607
5607
  /**
5608
5608
  * Emitted when the tab should be reordered.
5609
5609
  *
@@ -5613,15 +5613,15 @@ export type GtkNotebookProps = WidgetProps & {
5613
5613
  * `Alt`+`←`, `Alt`+`→`,
5614
5614
  * `Alt`+`↑` and `Alt`+`↓`.
5615
5615
  */
5616
- onReorderTab?: (direction: Gtk.DirectionType, moveToLast: boolean, self: Gtk.Notebook) => boolean | null;
5616
+ onReorderTab?: ((direction: Gtk.DirectionType, moveToLast: boolean, self: Gtk.Notebook) => boolean) | null;
5617
5617
  /**
5618
5618
  * Emitted when a page should be selected.
5619
5619
  *
5620
5620
  * The default binding for this signal is `␣`.
5621
5621
  */
5622
- onSelectPage?: (moveFocus: boolean, self: Gtk.Notebook) => boolean | null;
5622
+ onSelectPage?: ((moveFocus: boolean, self: Gtk.Notebook) => boolean) | null;
5623
5623
  /** Emitted when the user or a function changes the current page. */
5624
- onSwitchPage?: (page: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void | null;
5624
+ onSwitchPage?: ((page: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void) | null;
5625
5625
  children?: ReactNode;
5626
5626
  ref?: Ref<Gtk.Notebook>;
5627
5627
  };
@@ -5645,7 +5645,7 @@ export type GtkOverlayProps = WidgetProps & {
5645
5645
  * `GtkScrolledWindow`, the overlays are placed relative
5646
5646
  * to its contents.
5647
5647
  */
5648
- onGetChildPosition?: (widget: Gtk.Widget, allocation: Gdk.Rectangle, self: Gtk.Overlay) => boolean | null;
5648
+ onGetChildPosition?: ((widget: Gtk.Widget, allocation: Gdk.Rectangle, self: Gtk.Overlay) => boolean) | null;
5649
5649
  children?: ReactNode;
5650
5650
  ref?: Ref<Gtk.Overlay>;
5651
5651
  };
@@ -5785,7 +5785,7 @@ export type GtkPanedProps = WidgetProps & {
5785
5785
  * The default binding for this signal is `Return` or
5786
5786
  * `Space`.
5787
5787
  */
5788
- onAcceptPosition?: (self: Gtk.Paned) => boolean | null;
5788
+ onAcceptPosition?: ((self: Gtk.Paned) => boolean) | null;
5789
5789
  /**
5790
5790
  * Emitted to cancel moving the position of the handle using key
5791
5791
  * bindings.
@@ -5797,7 +5797,7 @@ export type GtkPanedProps = WidgetProps & {
5797
5797
  *
5798
5798
  * The default binding for this signal is `Escape`.
5799
5799
  */
5800
- onCancelPosition?: (self: Gtk.Paned) => boolean | null;
5800
+ onCancelPosition?: ((self: Gtk.Paned) => boolean) | null;
5801
5801
  /**
5802
5802
  * Emitted to cycle the focus between the children of the paned.
5803
5803
  *
@@ -5805,7 +5805,7 @@ export type GtkPanedProps = WidgetProps & {
5805
5805
  *
5806
5806
  * The default binding is `F6`.
5807
5807
  */
5808
- onCycleChildFocus?: (reversed: boolean, self: Gtk.Paned) => boolean | null;
5808
+ onCycleChildFocus?: ((reversed: boolean, self: Gtk.Paned) => boolean) | null;
5809
5809
  /**
5810
5810
  * Emitted to cycle whether the paned should grab focus to allow
5811
5811
  * the user to change position of the handle by using key bindings.
@@ -5814,7 +5814,7 @@ export type GtkPanedProps = WidgetProps & {
5814
5814
  *
5815
5815
  * The default binding for this signal is `F8`.
5816
5816
  */
5817
- onCycleHandleFocus?: (reversed: boolean, self: Gtk.Paned) => boolean | null;
5817
+ onCycleHandleFocus?: ((reversed: boolean, self: Gtk.Paned) => boolean) | null;
5818
5818
  /**
5819
5819
  * Emitted to move the handle with key bindings.
5820
5820
  *
@@ -5827,7 +5827,7 @@ export type GtkPanedProps = WidgetProps & {
5827
5827
  * `Ctrl`+`↓`, `↓`,
5828
5828
  * `PgUp`, `PgDn`, `Home`, `End`.
5829
5829
  */
5830
- onMoveHandle?: (scrollType: Gtk.ScrollType, self: Gtk.Paned) => boolean | null;
5830
+ onMoveHandle?: ((scrollType: Gtk.ScrollType, self: Gtk.Paned) => boolean) | null;
5831
5831
  /**
5832
5832
  * Emitted to accept the current position of the handle and then
5833
5833
  * move focus to the next widget in the focus chain.
@@ -5836,7 +5836,7 @@ export type GtkPanedProps = WidgetProps & {
5836
5836
  *
5837
5837
  * The default binding is `Tab`.
5838
5838
  */
5839
- onToggleHandleFocus?: (self: Gtk.Paned) => boolean | null;
5839
+ onToggleHandleFocus?: ((self: Gtk.Paned) => boolean) | null;
5840
5840
  children?: ReactNode;
5841
5841
  ref?: Ref<Gtk.Paned>;
5842
5842
  };
@@ -5877,7 +5877,7 @@ export type GtkPasswordEntryProps = WidgetProps & {
5877
5877
  *
5878
5878
  * The keybindings for this signal are all forms of the Enter key.
5879
5879
  */
5880
- onActivate?: (self: Gtk.PasswordEntry) => void | null;
5880
+ onActivate?: ((self: Gtk.PasswordEntry) => void) | null;
5881
5881
  /**
5882
5882
  * Emitted at the end of a single user-visible operation on the
5883
5883
  * contents.
@@ -5888,7 +5888,7 @@ export type GtkPasswordEntryProps = WidgetProps & {
5888
5888
  * the new content, and may cause multiple ::notify::text signals
5889
5889
  * to be emitted).
5890
5890
  */
5891
- onChanged?: (self: Gtk.PasswordEntry) => void | null;
5891
+ onChanged?: ((self: Gtk.PasswordEntry) => void) | null;
5892
5892
  /**
5893
5893
  * Emitted when text is deleted from the widget by the user.
5894
5894
  *
@@ -5900,7 +5900,7 @@ export type GtkPasswordEntryProps = WidgetProps & {
5900
5900
  * The `start_pos` and `end_pos` parameters are interpreted as for
5901
5901
  * {@link Editable.delete_text}.
5902
5902
  */
5903
- onDeleteText?: (startPos: number, endPos: number, self: Gtk.PasswordEntry) => void | null;
5903
+ onDeleteText?: ((startPos: number, endPos: number, self: Gtk.PasswordEntry) => void) | null;
5904
5904
  /**
5905
5905
  * Emitted when text is inserted into the widget by the user.
5906
5906
  *
@@ -5909,7 +5909,7 @@ export type GtkPasswordEntryProps = WidgetProps & {
5909
5909
  * stopping the signal with g_signal_stop_emission(), it is possible
5910
5910
  * to modify the inserted text, or prevent it from being inserted entirely.
5911
5911
  */
5912
- onInsertText?: (text: string, length: number, position: Ref<number>, self: Gtk.PasswordEntry) => void | null;
5912
+ onInsertText?: ((text: string, length: number, position: Ref<number>, self: Gtk.PasswordEntry) => void) | null;
5913
5913
  ref?: Ref<Gtk.PasswordEntry>;
5914
5914
  };
5915
5915
  /** Props for the {@link AdwPasswordEntryRow} widget. */
@@ -5965,9 +5965,9 @@ export type GtkPopoverProps = WidgetProps & {
5965
5965
  *
5966
5966
  * The default binding for this signal is `Enter`.
5967
5967
  */
5968
- onActivateDefault?: (self: Gtk.Popover) => void | null;
5968
+ onActivateDefault?: ((self: Gtk.Popover) => void) | null;
5969
5969
  /** Emitted when the popover is closed. */
5970
- onClosed?: (self: Gtk.Popover) => void | null;
5970
+ onClosed?: ((self: Gtk.Popover) => void) | null;
5971
5971
  children?: ReactNode;
5972
5972
  ref?: Ref<Gtk.Popover>;
5973
5973
  };
@@ -6204,7 +6204,7 @@ export type GtkRangeProps = WidgetProps & {
6204
6204
  * Emitted before clamping a value, to give the application a
6205
6205
  * chance to adjust the bounds.
6206
6206
  */
6207
- onAdjustBounds?: (value: number, self: Gtk.Range) => void | null;
6207
+ onAdjustBounds?: ((value: number, self: Gtk.Range) => void) | null;
6208
6208
  /**
6209
6209
  * Emitted when a scroll action is performed on a range.
6210
6210
  *
@@ -6219,13 +6219,13 @@ export type GtkRangeProps = WidgetProps & {
6219
6219
  * to the desired number of decimal digits; the default GTK
6220
6220
  * handler clamps the value based on {@link Range.round-digits}.
6221
6221
  */
6222
- onChangeValue?: (scroll: Gtk.ScrollType, value: number, self: Gtk.Range) => boolean | null;
6222
+ onChangeValue?: ((scroll: Gtk.ScrollType, value: number, self: Gtk.Range) => boolean) | null;
6223
6223
  /**
6224
6224
  * Virtual function that moves the slider.
6225
6225
  *
6226
6226
  * Used for keybindings.
6227
6227
  */
6228
- onMoveSlider?: (step: Gtk.ScrollType, self: Gtk.Range) => void | null;
6228
+ onMoveSlider?: ((step: Gtk.ScrollType, self: Gtk.Range) => void) | null;
6229
6229
  /** The current value of the adjustment */
6230
6230
  value?: number;
6231
6231
  /** The minimum value */
@@ -6321,7 +6321,7 @@ export type GtkScaleButtonProps = WidgetProps & {
6321
6321
  *
6322
6322
  * The default binding for this signal is `Escape`.
6323
6323
  */
6324
- onPopdown?: (self: Gtk.ScaleButton) => void | null;
6324
+ onPopdown?: ((self: Gtk.ScaleButton) => void) | null;
6325
6325
  /**
6326
6326
  * Emitted to popup the scale widget.
6327
6327
  *
@@ -6330,7 +6330,7 @@ export type GtkScaleButtonProps = WidgetProps & {
6330
6330
  * The default bindings for this signal are `Space`,
6331
6331
  * `Enter` and `Return`.
6332
6332
  */
6333
- onPopup?: (self: Gtk.ScaleButton) => void | null;
6333
+ onPopup?: ((self: Gtk.ScaleButton) => void) | null;
6334
6334
  /** The minimum value */
6335
6335
  lower?: number;
6336
6336
  /** The maximum value */
@@ -6451,7 +6451,7 @@ export type GtkScrolledWindowProps = WidgetProps & {
6451
6451
  * Note: The `pos` argument is LTR/RTL aware, so callers should be
6452
6452
  * aware too if intending to provide behavior on horizontal edges.
6453
6453
  */
6454
- onEdgeOvershot?: (pos: Gtk.PositionType, self: Gtk.ScrolledWindow) => void | null;
6454
+ onEdgeOvershot?: ((pos: Gtk.PositionType, self: Gtk.ScrolledWindow) => void) | null;
6455
6455
  /**
6456
6456
  * Emitted whenever user-initiated scrolling makes the scrolled
6457
6457
  * window exactly reach the lower or upper limits defined by the
@@ -6463,7 +6463,7 @@ export type GtkScrolledWindowProps = WidgetProps & {
6463
6463
  * Note: The `pos` argument is LTR/RTL aware, so callers should be
6464
6464
  * aware too if intending to provide behavior on horizontal edges.
6465
6465
  */
6466
- onEdgeReached?: (pos: Gtk.PositionType, self: Gtk.ScrolledWindow) => void | null;
6466
+ onEdgeReached?: ((pos: Gtk.PositionType, self: Gtk.ScrolledWindow) => void) | null;
6467
6467
  /**
6468
6468
  * Emitted when focus is moved away from the scrolled window by a
6469
6469
  * keybinding.
@@ -6474,7 +6474,7 @@ export type GtkScrolledWindowProps = WidgetProps & {
6474
6474
  * `Ctrl`+`Tab` to move forward and
6475
6475
  * `Ctrl`+`Shift`+`Tab`` to move backward.
6476
6476
  */
6477
- onMoveFocusOut?: (directionType: Gtk.DirectionType, self: Gtk.ScrolledWindow) => void | null;
6477
+ onMoveFocusOut?: ((directionType: Gtk.DirectionType, self: Gtk.ScrolledWindow) => void) | null;
6478
6478
  /**
6479
6479
  * Emitted when a keybinding that scrolls is pressed.
6480
6480
  *
@@ -6483,7 +6483,7 @@ export type GtkScrolledWindowProps = WidgetProps & {
6483
6483
  * The horizontal or vertical adjustment is updated which triggers a
6484
6484
  * signal that the scrolled window’s child may listen to and scroll itself.
6485
6485
  */
6486
- onScrollChild?: (scroll: Gtk.ScrollType, horizontal: boolean, self: Gtk.ScrolledWindow) => boolean | null;
6486
+ onScrollChild?: ((scroll: Gtk.ScrollType, horizontal: boolean, self: Gtk.ScrolledWindow) => boolean) | null;
6487
6487
  children?: ReactNode;
6488
6488
  ref?: Ref<Gtk.ScrolledWindow>;
6489
6489
  };
@@ -6547,7 +6547,7 @@ export type GtkSearchEntryProps = WidgetProps & {
6547
6547
  *
6548
6548
  * The keybindings for this signal are all forms of the `Enter` key.
6549
6549
  */
6550
- onActivate?: (self: Gtk.SearchEntry) => void | null;
6550
+ onActivate?: ((self: Gtk.SearchEntry) => void) | null;
6551
6551
  /**
6552
6552
  * Emitted when the user initiates a move to the next match
6553
6553
  * for the current search string.
@@ -6559,7 +6559,7 @@ export type GtkSearchEntryProps = WidgetProps & {
6559
6559
  *
6560
6560
  * The default bindings for this signal is `Ctrl`+`g`.
6561
6561
  */
6562
- onNextMatch?: (self: Gtk.SearchEntry) => void | null;
6562
+ onNextMatch?: ((self: Gtk.SearchEntry) => void) | null;
6563
6563
  /**
6564
6564
  * Emitted when the user initiates a move to the previous match
6565
6565
  * for the current search string.
@@ -6572,15 +6572,15 @@ export type GtkSearchEntryProps = WidgetProps & {
6572
6572
  * The default bindings for this signal is
6573
6573
  * `Ctrl`+`Shift`+`g`.
6574
6574
  */
6575
- onPreviousMatch?: (self: Gtk.SearchEntry) => void | null;
6575
+ onPreviousMatch?: ((self: Gtk.SearchEntry) => void) | null;
6576
6576
  /**
6577
6577
  * Emitted with a delay. The length of the delay can be
6578
6578
  * changed with the {@link SearchEntry.search-delay}
6579
6579
  * property.
6580
6580
  */
6581
- onSearchChanged?: (self: Gtk.SearchEntry) => void | null;
6581
+ onSearchChanged?: ((self: Gtk.SearchEntry) => void) | null;
6582
6582
  /** Emitted when the user initiated a search on the entry. */
6583
- onSearchStarted?: (self: Gtk.SearchEntry) => void | null;
6583
+ onSearchStarted?: ((self: Gtk.SearchEntry) => void) | null;
6584
6584
  /**
6585
6585
  * Emitted when the user stops a search via keyboard input.
6586
6586
  *
@@ -6591,7 +6591,7 @@ export type GtkSearchEntryProps = WidgetProps & {
6591
6591
  *
6592
6592
  * The default bindings for this signal is `Escape`.
6593
6593
  */
6594
- onStopSearch?: (self: Gtk.SearchEntry) => void | null;
6594
+ onStopSearch?: ((self: Gtk.SearchEntry) => void) | null;
6595
6595
  /**
6596
6596
  * Emitted at the end of a single user-visible operation on the
6597
6597
  * contents.
@@ -6602,7 +6602,7 @@ export type GtkSearchEntryProps = WidgetProps & {
6602
6602
  * the new content, and may cause multiple ::notify::text signals
6603
6603
  * to be emitted).
6604
6604
  */
6605
- onChanged?: (self: Gtk.SearchEntry) => void | null;
6605
+ onChanged?: ((self: Gtk.SearchEntry) => void) | null;
6606
6606
  /**
6607
6607
  * Emitted when text is deleted from the widget by the user.
6608
6608
  *
@@ -6614,7 +6614,7 @@ export type GtkSearchEntryProps = WidgetProps & {
6614
6614
  * The `start_pos` and `end_pos` parameters are interpreted as for
6615
6615
  * {@link Editable.delete_text}.
6616
6616
  */
6617
- onDeleteText?: (startPos: number, endPos: number, self: Gtk.SearchEntry) => void | null;
6617
+ onDeleteText?: ((startPos: number, endPos: number, self: Gtk.SearchEntry) => void) | null;
6618
6618
  /**
6619
6619
  * Emitted when text is inserted into the widget by the user.
6620
6620
  *
@@ -6623,7 +6623,7 @@ export type GtkSearchEntryProps = WidgetProps & {
6623
6623
  * stopping the signal with g_signal_stop_emission(), it is possible
6624
6624
  * to modify the inserted text, or prevent it from being inserted entirely.
6625
6625
  */
6626
- onInsertText?: (text: string, length: number, position: Ref<number>, self: Gtk.SearchEntry) => void | null;
6626
+ onInsertText?: ((text: string, length: number, position: Ref<number>, self: Gtk.SearchEntry) => void) | null;
6627
6627
  ref?: Ref<Gtk.SearchEntry>;
6628
6628
  };
6629
6629
  /** Props for the {@link GtkSeparator} widget. */
@@ -6729,7 +6729,7 @@ export type GtkShortcutsSectionProps = GtkBoxProps & {
6729
6729
  * `Ctrl`+`PgUp`, `PgUp`,
6730
6730
  * `Ctrl`+`PgDn`, `PgDn`.
6731
6731
  */
6732
- onChangeCurrentPage?: (offset: number, self: Gtk.ShortcutsSection) => boolean | null;
6732
+ onChangeCurrentPage?: ((offset: number, self: Gtk.ShortcutsSection) => boolean) | null;
6733
6733
  children?: ReactNode;
6734
6734
  ref?: Ref<Gtk.ShortcutsSection>;
6735
6735
  };
@@ -6851,7 +6851,7 @@ export type GtkShortcutsWindowProps = GtkWindowProps & {
6851
6851
  *
6852
6852
  * The default binding for this signal is the `Escape` key.
6853
6853
  */
6854
- onClose?: (self: Gtk.ShortcutsWindow) => void | null;
6854
+ onClose?: ((self: Gtk.ShortcutsWindow) => void) | null;
6855
6855
  /**
6856
6856
  * Emitted when the user uses a keybinding to start a search.
6857
6857
  *
@@ -6859,7 +6859,7 @@ export type GtkShortcutsWindowProps = GtkWindowProps & {
6859
6859
  *
6860
6860
  * The default binding for this signal is `Control`+`F`.
6861
6861
  */
6862
- onSearch?: (self: Gtk.ShortcutsWindow) => void | null;
6862
+ onSearch?: ((self: Gtk.ShortcutsWindow) => void) | null;
6863
6863
  children?: ReactNode;
6864
6864
  ref?: Ref<Gtk.ShortcutsWindow>;
6865
6865
  };
@@ -6920,7 +6920,7 @@ export type GtkSpinButtonProps = WidgetProps & {
6920
6920
  * spin button, then activation does not occur until `Enter` is
6921
6921
  * pressed again.
6922
6922
  */
6923
- onActivate?: (self: Gtk.SpinButton) => void | null;
6923
+ onActivate?: ((self: Gtk.SpinButton) => void) | null;
6924
6924
  /**
6925
6925
  * Emitted when the user initiates a value change.
6926
6926
  *
@@ -6932,7 +6932,7 @@ export type GtkSpinButtonProps = WidgetProps & {
6932
6932
  *
6933
6933
  * The default bindings for this signal are Up/Down and PageUp/PageDown.
6934
6934
  */
6935
- onChangeValue?: (scroll: Gtk.ScrollType, self: Gtk.SpinButton) => void | null;
6935
+ onChangeValue?: ((scroll: Gtk.ScrollType, self: Gtk.SpinButton) => void) | null;
6936
6936
  /**
6937
6937
  * Emitted to convert the users input into a double value.
6938
6938
  *
@@ -6942,7 +6942,7 @@ export type GtkSpinButtonProps = WidgetProps & {
6942
6942
  *
6943
6943
  * The default conversion uses g_strtod().
6944
6944
  */
6945
- onInput?: (newValue: Ref<number>, self: Gtk.SpinButton) => number | null;
6945
+ onInput?: ((newValue: Ref<number>, self: Gtk.SpinButton) => number) | null;
6946
6946
  /**
6947
6947
  * Emitted to tweak the formatting of the value for display.
6948
6948
  *
@@ -6964,12 +6964,12 @@ export type GtkSpinButtonProps = WidgetProps & {
6964
6964
  * }
6965
6965
  * ```
6966
6966
  */
6967
- onOutput?: (self: Gtk.SpinButton) => boolean | null;
6967
+ onOutput?: ((self: Gtk.SpinButton) => boolean) | null;
6968
6968
  /**
6969
6969
  * Emitted right after the spinbutton wraps from its maximum
6970
6970
  * to its minimum value or vice-versa.
6971
6971
  */
6972
- onWrapped?: (self: Gtk.SpinButton) => void | null;
6972
+ onWrapped?: ((self: Gtk.SpinButton) => void) | null;
6973
6973
  /**
6974
6974
  * This signal is a sign for the cell renderer to update its
6975
6975
  * value from the `cell_editable`.
@@ -6983,7 +6983,7 @@ export type GtkSpinButtonProps = WidgetProps & {
6983
6983
  * gtk_cell_editable_editing_done() is a convenience method
6984
6984
  * for emitting `GtkCellEditable::editing-done`.
6985
6985
  */
6986
- onEditingDone?: (self: Gtk.SpinButton) => void | null;
6986
+ onEditingDone?: ((self: Gtk.SpinButton) => void) | null;
6987
6987
  /**
6988
6988
  * This signal is meant to indicate that the cell is finished
6989
6989
  * editing, and the `cell_editable` widget is being removed and may
@@ -6998,7 +6998,7 @@ export type GtkSpinButtonProps = WidgetProps & {
6998
6998
  * gtk_cell_editable_remove_widget() is a convenience method
6999
6999
  * for emitting `GtkCellEditable::remove-widget`.
7000
7000
  */
7001
- onRemoveWidget?: (self: Gtk.SpinButton) => void | null;
7001
+ onRemoveWidget?: ((self: Gtk.SpinButton) => void) | null;
7002
7002
  /**
7003
7003
  * Emitted at the end of a single user-visible operation on the
7004
7004
  * contents.
@@ -7009,7 +7009,7 @@ export type GtkSpinButtonProps = WidgetProps & {
7009
7009
  * the new content, and may cause multiple ::notify::text signals
7010
7010
  * to be emitted).
7011
7011
  */
7012
- onChanged?: (self: Gtk.SpinButton) => void | null;
7012
+ onChanged?: ((self: Gtk.SpinButton) => void) | null;
7013
7013
  /**
7014
7014
  * Emitted when text is deleted from the widget by the user.
7015
7015
  *
@@ -7021,7 +7021,7 @@ export type GtkSpinButtonProps = WidgetProps & {
7021
7021
  * The `start_pos` and `end_pos` parameters are interpreted as for
7022
7022
  * {@link Editable.delete_text}.
7023
7023
  */
7024
- onDeleteText?: (startPos: number, endPos: number, self: Gtk.SpinButton) => void | null;
7024
+ onDeleteText?: ((startPos: number, endPos: number, self: Gtk.SpinButton) => void) | null;
7025
7025
  /**
7026
7026
  * Emitted when text is inserted into the widget by the user.
7027
7027
  *
@@ -7030,7 +7030,7 @@ export type GtkSpinButtonProps = WidgetProps & {
7030
7030
  * stopping the signal with g_signal_stop_emission(), it is possible
7031
7031
  * to modify the inserted text, or prevent it from being inserted entirely.
7032
7032
  */
7033
- onInsertText?: (text: string, length: number, position: Ref<number>, self: Gtk.SpinButton) => void | null;
7033
+ onInsertText?: ((text: string, length: number, position: Ref<number>, self: Gtk.SpinButton) => void) | null;
7034
7034
  /** The minimum value */
7035
7035
  lower?: number;
7036
7036
  /** The maximum value */
@@ -7103,19 +7103,19 @@ export type AdwSpinRowProps = Omit<AdwActionRowProps, "onValueChanged"> & {
7103
7103
  *
7104
7104
  * See {@link SpinButton.:input}.
7105
7105
  */
7106
- onInput?: (newValue: Ref<number>, self: Adw.SpinRow) => number | null;
7106
+ onInput?: ((newValue: Ref<number>, self: Adw.SpinRow) => number) | null;
7107
7107
  /**
7108
7108
  * Emitted to tweak the formatting of the value for display.
7109
7109
  *
7110
7110
  * See {@link SpinButton.:output}.
7111
7111
  */
7112
- onOutput?: (self: Adw.SpinRow) => boolean | null;
7112
+ onOutput?: ((self: Adw.SpinRow) => boolean) | null;
7113
7113
  /**
7114
7114
  * Emitted right after the spinbutton wraps.
7115
7115
  *
7116
7116
  * See {@link SpinButton.:wrapped}.
7117
7117
  */
7118
- onWrapped?: (self: Adw.SpinRow) => void | null;
7118
+ onWrapped?: ((self: Adw.SpinRow) => void) | null;
7119
7119
  /**
7120
7120
  * Emitted at the end of a single user-visible operation on the
7121
7121
  * contents.
@@ -7126,7 +7126,7 @@ export type AdwSpinRowProps = Omit<AdwActionRowProps, "onValueChanged"> & {
7126
7126
  * the new content, and may cause multiple ::notify::text signals
7127
7127
  * to be emitted).
7128
7128
  */
7129
- onChanged?: (self: Adw.SpinRow) => void | null;
7129
+ onChanged?: ((self: Adw.SpinRow) => void) | null;
7130
7130
  /**
7131
7131
  * Emitted when text is deleted from the widget by the user.
7132
7132
  *
@@ -7138,7 +7138,7 @@ export type AdwSpinRowProps = Omit<AdwActionRowProps, "onValueChanged"> & {
7138
7138
  * The `start_pos` and `end_pos` parameters are interpreted as for
7139
7139
  * {@link Editable.delete_text}.
7140
7140
  */
7141
- onDeleteText?: (startPos: number, endPos: number, self: Adw.SpinRow) => void | null;
7141
+ onDeleteText?: ((startPos: number, endPos: number, self: Adw.SpinRow) => void) | null;
7142
7142
  /**
7143
7143
  * Emitted when text is inserted into the widget by the user.
7144
7144
  *
@@ -7147,7 +7147,7 @@ export type AdwSpinRowProps = Omit<AdwActionRowProps, "onValueChanged"> & {
7147
7147
  * stopping the signal with g_signal_stop_emission(), it is possible
7148
7148
  * to modify the inserted text, or prevent it from being inserted entirely.
7149
7149
  */
7150
- onInsertText?: (text: string, length: number, position: Ref<number>, self: Adw.SpinRow) => void | null;
7150
+ onInsertText?: ((text: string, length: number, position: Ref<number>, self: Adw.SpinRow) => void) | null;
7151
7151
  /** The minimum value */
7152
7152
  lower?: number;
7153
7153
  /** The maximum value */
@@ -7250,9 +7250,9 @@ export type AdwSplitButtonProps = WidgetProps & {
7250
7250
  * This is an action signal. Applications should never connect to this signal,
7251
7251
  * but use the {@link AdwSplitButton.:clicked} signal.
7252
7252
  */
7253
- onActivate?: (self: Adw.SplitButton) => void | null;
7253
+ onActivate?: ((self: Adw.SplitButton) => void) | null;
7254
7254
  /** Emitted when the button has been activated (pressed and released). */
7255
- onClicked?: (self: Adw.SplitButton) => void | null;
7255
+ onClicked?: ((self: Adw.SplitButton) => void) | null;
7256
7256
  children?: ReactNode;
7257
7257
  ref?: Ref<Adw.SplitButton>;
7258
7258
  };
@@ -7363,9 +7363,9 @@ export type GtkStackSwitcherProps = WidgetProps & {
7363
7363
  /** Props for the {@link GtkStatusbar} widget. */
7364
7364
  export type GtkStatusbarProps = WidgetProps & {
7365
7365
  /** Emitted whenever a new message is popped off a statusbar's stack. */
7366
- onTextPopped?: (contextId: number, text: string, self: Gtk.Statusbar) => void | null;
7366
+ onTextPopped?: ((contextId: number, text: string, self: Gtk.Statusbar) => void) | null;
7367
7367
  /** Emitted whenever a new message gets pushed onto a statusbar's stack. */
7368
- onTextPushed?: (contextId: number, text: string, self: Gtk.Statusbar) => void | null;
7368
+ onTextPushed?: ((contextId: number, text: string, self: Gtk.Statusbar) => void) | null;
7369
7369
  children?: ReactNode;
7370
7370
  ref?: Ref<Gtk.Statusbar>;
7371
7371
  };
@@ -7424,7 +7424,7 @@ export type GtkSourceStyleSchemePreviewProps = WidgetProps & {
7424
7424
  actionName?: string;
7425
7425
  /** The target value of the actionable widget's action. */
7426
7426
  actionTarget?: GLib.Variant;
7427
- onActivate?: (self: GtkSource.StyleSchemePreview) => void | null;
7427
+ onActivate?: ((self: GtkSource.StyleSchemePreview) => void) | null;
7428
7428
  ref?: Ref<GtkSource.StyleSchemePreview>;
7429
7429
  };
7430
7430
  /** Props for the {@link GtkSwitch} widget. */
@@ -7451,7 +7451,7 @@ export type GtkSwitchProps = WidgetProps & {
7451
7451
  * Applications should never connect to this signal,
7452
7452
  * but use the {@link Switch.active} property.
7453
7453
  */
7454
- onActivate?: (self: Gtk.Switch) => void | null;
7454
+ onActivate?: ((self: Gtk.Switch) => void) | null;
7455
7455
  /**
7456
7456
  * Emitted to change the underlying state.
7457
7457
  *
@@ -7465,7 +7465,7 @@ export type GtkSwitchProps = WidgetProps & {
7465
7465
  * complete. The signal handler should return %TRUE to prevent the
7466
7466
  * default handler from running.
7467
7467
  */
7468
- onStateSet?: (state: boolean, self: Gtk.Switch) => boolean | null;
7468
+ onStateSet?: ((state: boolean, self: Gtk.Switch) => boolean) | null;
7469
7469
  ref?: Ref<Gtk.Switch>;
7470
7470
  };
7471
7471
  /** Props for the {@link AdwSwitchRow} widget. */
@@ -7520,7 +7520,7 @@ export type AdwTabBarProps = WidgetProps & {
7520
7520
  *
7521
7521
  * See {@link DropTarget.:drop}.
7522
7522
  */
7523
- onExtraDragDrop?: (page: Adw.TabPage, value: GObject.Value, self: Adw.TabBar) => boolean | null;
7523
+ onExtraDragDrop?: ((page: Adw.TabPage, value: GObject.Value, self: Adw.TabBar) => boolean) | null;
7524
7524
  /**
7525
7525
  * This signal is emitted when the dropped content is preloaded.
7526
7526
  *
@@ -7532,7 +7532,7 @@ export type AdwTabBarProps = WidgetProps & {
7532
7532
  *
7533
7533
  * See {@link DropTarget.value}.
7534
7534
  */
7535
- onExtraDragValue?: (page: Adw.TabPage, value: GObject.Value, self: Adw.TabBar) => Gdk.DragAction | null;
7535
+ onExtraDragValue?: ((page: Adw.TabPage, value: GObject.Value, self: Adw.TabBar) => Gdk.DragAction) | null;
7536
7536
  children?: ReactNode;
7537
7537
  ref?: Ref<Adw.TabBar>;
7538
7538
  };
@@ -7550,9 +7550,9 @@ export type AdwTabButtonProps = WidgetProps & {
7550
7550
  * This is an action signal. Applications should never connect to this signal,
7551
7551
  * but use the {@link AdwTabButton.:clicked} signal.
7552
7552
  */
7553
- onActivate?: (self: Adw.TabButton) => void | null;
7553
+ onActivate?: ((self: Adw.TabButton) => void) | null;
7554
7554
  /** Emitted when the button has been activated (pressed and released). */
7555
- onClicked?: (self: Adw.TabButton) => void | null;
7555
+ onClicked?: ((self: Adw.TabButton) => void) | null;
7556
7556
  children?: ReactNode;
7557
7557
  ref?: Ref<Adw.TabButton>;
7558
7558
  };
@@ -7627,7 +7627,7 @@ export type AdwTabOverviewProps = WidgetProps & {
7627
7627
  * The signal handler is expected to create a new page in the corresponding
7628
7628
  * {@link AdwTabView} and return it.
7629
7629
  */
7630
- onCreateTab?: (self: Adw.TabOverview) => Adw.TabPage | null;
7630
+ onCreateTab?: ((self: Adw.TabOverview) => Adw.TabPage) | null;
7631
7631
  /**
7632
7632
  * This signal is emitted when content is dropped onto a tab.
7633
7633
  *
@@ -7636,7 +7636,7 @@ export type AdwTabOverviewProps = WidgetProps & {
7636
7636
  *
7637
7637
  * See {@link DropTarget.:drop}.
7638
7638
  */
7639
- onExtraDragDrop?: (page: Adw.TabPage, value: GObject.Value, self: Adw.TabOverview) => boolean | null;
7639
+ onExtraDragDrop?: ((page: Adw.TabPage, value: GObject.Value, self: Adw.TabOverview) => boolean) | null;
7640
7640
  /**
7641
7641
  * This signal is emitted when the dropped content is preloaded.
7642
7642
  *
@@ -7648,7 +7648,7 @@ export type AdwTabOverviewProps = WidgetProps & {
7648
7648
  *
7649
7649
  * See {@link DropTarget.value}.
7650
7650
  */
7651
- onExtraDragValue?: (page: Adw.TabPage, value: GObject.Value, self: Adw.TabOverview) => Gdk.DragAction | null;
7651
+ onExtraDragValue?: ((page: Adw.TabPage, value: GObject.Value, self: Adw.TabOverview) => Gdk.DragAction) | null;
7652
7652
  children?: ReactNode;
7653
7653
  ref?: Ref<Adw.TabOverview>;
7654
7654
  };
@@ -7722,7 +7722,7 @@ export type AdwTabViewProps = WidgetProps & {
7722
7722
  * The signal handler should return `GDK_EVENT_STOP` to stop propagation or
7723
7723
  * `GDK_EVENT_CONTINUE` to invoke the default handler.
7724
7724
  */
7725
- onClosePage?: (page: Adw.TabPage, self: Adw.TabView) => boolean | null;
7725
+ onClosePage?: ((page: Adw.TabPage, self: Adw.TabView) => boolean) | null;
7726
7726
  /**
7727
7727
  * Emitted when a tab should be transferred into a new window.
7728
7728
  *
@@ -7731,21 +7731,21 @@ export type AdwTabViewProps = WidgetProps & {
7731
7731
  * The signal handler is expected to create a new window, position it as
7732
7732
  * needed and return its `AdwTabView` that the page will be transferred into.
7733
7733
  */
7734
- onCreateWindow?: (self: Adw.TabView) => Adw.TabView | null;
7734
+ onCreateWindow?: ((self: Adw.TabView) => Adw.TabView) | null;
7735
7735
  /**
7736
7736
  * Emitted after the indicator icon on `page` has been activated.
7737
7737
  *
7738
7738
  * See {@link AdwTabPage.indicator-icon} and
7739
7739
  * {@link AdwTabPage.indicator-activatable}.
7740
7740
  */
7741
- onIndicatorActivated?: (page: Adw.TabPage, self: Adw.TabView) => void | null;
7741
+ onIndicatorActivated?: ((page: Adw.TabPage, self: Adw.TabView) => void) | null;
7742
7742
  /**
7743
7743
  * Emitted when a page has been created or transferred to `self`.
7744
7744
  *
7745
7745
  * A typical reason to connect to this signal would be to connect to page
7746
7746
  * signals for things such as updating window title.
7747
7747
  */
7748
- onPageAttached?: (page: Adw.TabPage, position: number, self: Adw.TabView) => void | null;
7748
+ onPageAttached?: ((page: Adw.TabPage, position: number, self: Adw.TabView) => void) | null;
7749
7749
  /**
7750
7750
  * Emitted when a page has been removed or transferred to another view.
7751
7751
  *
@@ -7757,9 +7757,9 @@ export type AdwTabViewProps = WidgetProps & {
7757
7757
  * child dispose handler for that or do it in sync with your
7758
7758
  * {@link TabViewclose_page_finish} calls.
7759
7759
  */
7760
- onPageDetached?: (page: Adw.TabPage, position: number, self: Adw.TabView) => void | null;
7760
+ onPageDetached?: ((page: Adw.TabPage, position: number, self: Adw.TabView) => void) | null;
7761
7761
  /** Emitted after `page` has been reordered to `position`. */
7762
- onPageReordered?: (page: Adw.TabPage, position: number, self: Adw.TabView) => void | null;
7762
+ onPageReordered?: ((page: Adw.TabPage, position: number, self: Adw.TabView) => void) | null;
7763
7763
  /**
7764
7764
  * Emitted when a context menu is opened or closed for `page`.
7765
7765
  *
@@ -7768,7 +7768,7 @@ export type AdwTabViewProps = WidgetProps & {
7768
7768
  * It can be used to set up menu actions before showing the menu, for example
7769
7769
  * disable actions not applicable to `page`.
7770
7770
  */
7771
- onSetupMenu?: (page: Adw.TabPage, self: Adw.TabView) => void | null;
7771
+ onSetupMenu?: ((page: Adw.TabPage, self: Adw.TabView) => void) | null;
7772
7772
  children?: ReactNode;
7773
7773
  ref?: Ref<Adw.TabView>;
7774
7774
  };
@@ -7956,56 +7956,56 @@ export type VteTerminalProps = WidgetProps & {
7956
7956
  * This signal is emitted when the a child sends a bell request to the
7957
7957
  * terminal.
7958
7958
  */
7959
- onBell?: (self: Vte.Terminal) => void | null;
7959
+ onBell?: ((self: Vte.Terminal) => void) | null;
7960
7960
  /**
7961
7961
  * Emitted whenever the cell size changes, e.g. due to a change in
7962
7962
  * font, font-scale or cell-width/height-scale.
7963
7963
  *
7964
7964
  * Note that this signal should rather be called "cell-size-changed".
7965
7965
  */
7966
- onCharSizeChanged?: (width: number, height: number, self: Vte.Terminal) => void | null;
7966
+ onCharSizeChanged?: ((width: number, height: number, self: Vte.Terminal) => void) | null;
7967
7967
  /**
7968
7968
  * This signal is emitted when the terminal detects that a child
7969
7969
  * watched using vte_terminal_watch_child() has exited.
7970
7970
  */
7971
- onChildExited?: (status: number, self: Vte.Terminal) => void | null;
7971
+ onChildExited?: ((status: number, self: Vte.Terminal) => void) | null;
7972
7972
  /**
7973
7973
  * Emitted whenever the terminal receives input from the user and
7974
7974
  * prepares to send it to the child process.
7975
7975
  */
7976
- onCommit?: (text: string, size: number, self: Vte.Terminal) => void | null;
7976
+ onCommit?: ((text: string, size: number, self: Vte.Terminal) => void) | null;
7977
7977
  /**
7978
7978
  * Emitted whenever the visible appearance of the terminal has changed.
7979
7979
  * Used primarily by #VteTerminalAccessible.
7980
7980
  */
7981
- onContentsChanged?: (self: Vte.Terminal) => void | null;
7981
+ onContentsChanged?: ((self: Vte.Terminal) => void) | null;
7982
7982
  /** Emitted whenever vte_terminal_copy_clipboard() is called. */
7983
- onCopyClipboard?: (self: Vte.Terminal) => void | null;
7983
+ onCopyClipboard?: ((self: Vte.Terminal) => void) | null;
7984
7984
  /** Emitted when the current directory URI is modified. */
7985
- onCurrentDirectoryUriChanged?: (self: Vte.Terminal) => void | null;
7985
+ onCurrentDirectoryUriChanged?: ((self: Vte.Terminal) => void) | null;
7986
7986
  /** Emitted when the current file URI is modified. */
7987
- onCurrentFileUriChanged?: (self: Vte.Terminal) => void | null;
7987
+ onCurrentFileUriChanged?: ((self: Vte.Terminal) => void) | null;
7988
7988
  /**
7989
7989
  * Emitted whenever the cursor moves to a new character cell. Used
7990
7990
  * primarily by #VteTerminalAccessible.
7991
7991
  */
7992
- onCursorMoved?: (self: Vte.Terminal) => void | null;
7992
+ onCursorMoved?: ((self: Vte.Terminal) => void) | null;
7993
7993
  /** Emitted when the user hits the '-' key while holding the Control key. */
7994
- onDecreaseFontSize?: (self: Vte.Terminal) => void | null;
7994
+ onDecreaseFontSize?: ((self: Vte.Terminal) => void) | null;
7995
7995
  /** Never emitted. */
7996
- onDeiconifyWindow?: (self: Vte.Terminal) => void | null;
7996
+ onDeiconifyWindow?: ((self: Vte.Terminal) => void) | null;
7997
7997
  /**
7998
7998
  * Emitted whenever the terminal's current encoding has changed.
7999
7999
  *
8000
8000
  * Note: support for non-UTF-8 is deprecated.
8001
8001
  */
8002
- onEncodingChanged?: (self: Vte.Terminal) => void | null;
8002
+ onEncodingChanged?: ((self: Vte.Terminal) => void) | null;
8003
8003
  /**
8004
8004
  * Emitted when the terminal receives an end-of-file from a child which
8005
8005
  * is running in the terminal. This signal is frequently (but not
8006
8006
  * always) emitted with a #VteTerminal::child-exited signal.
8007
8007
  */
8008
- onEof?: (self: Vte.Terminal) => void | null;
8008
+ onEof?: ((self: Vte.Terminal) => void) | null;
8009
8009
  /**
8010
8010
  * Emitted when the hovered hyperlink changes.
8011
8011
  *
@@ -8015,30 +8015,30 @@ export type VteTerminalProps = WidgetProps & {
8015
8015
  * The signal is not re-emitted when the bounding box changes for the
8016
8016
  * same hyperlink. This might change in a future VTE version without notice.
8017
8017
  */
8018
- onHyperlinkHoverUriChanged?: (object: string, p0: Gdk.Rectangle, self: Vte.Terminal) => void | null;
8019
- onIconTitleChanged?: (self: Vte.Terminal) => void | null;
8018
+ onHyperlinkHoverUriChanged?: ((object: string, p0: Gdk.Rectangle, self: Vte.Terminal) => void) | null;
8019
+ onIconTitleChanged?: ((self: Vte.Terminal) => void) | null;
8020
8020
  /** Never emitted. */
8021
- onIconifyWindow?: (self: Vte.Terminal) => void | null;
8021
+ onIconifyWindow?: ((self: Vte.Terminal) => void) | null;
8022
8022
  /** Emitted when the user hits the '+' key while holding the Control key. */
8023
- onIncreaseFontSize?: (self: Vte.Terminal) => void | null;
8023
+ onIncreaseFontSize?: ((self: Vte.Terminal) => void) | null;
8024
8024
  /** Never emitted. */
8025
- onLowerWindow?: (self: Vte.Terminal) => void | null;
8025
+ onLowerWindow?: ((self: Vte.Terminal) => void) | null;
8026
8026
  /** Never emitted. */
8027
- onMaximizeWindow?: (self: Vte.Terminal) => void | null;
8027
+ onMaximizeWindow?: ((self: Vte.Terminal) => void) | null;
8028
8028
  /** Never emitted. */
8029
- onMoveWindow?: (x: number, y: number, self: Vte.Terminal) => void | null;
8029
+ onMoveWindow?: ((x: number, y: number, self: Vte.Terminal) => void) | null;
8030
8030
  /** Emitted whenever vte_terminal_paste_clipboard() is called. */
8031
- onPasteClipboard?: (self: Vte.Terminal) => void | null;
8031
+ onPasteClipboard?: ((self: Vte.Terminal) => void) | null;
8032
8032
  /** Never emitted. */
8033
- onRaiseWindow?: (self: Vte.Terminal) => void | null;
8033
+ onRaiseWindow?: ((self: Vte.Terminal) => void) | null;
8034
8034
  /** Never emitted. */
8035
- onRefreshWindow?: (self: Vte.Terminal) => void | null;
8035
+ onRefreshWindow?: ((self: Vte.Terminal) => void) | null;
8036
8036
  /** Emitted at the child application's request. */
8037
- onResizeWindow?: (width: number, height: number, self: Vte.Terminal) => void | null;
8037
+ onResizeWindow?: ((width: number, height: number, self: Vte.Terminal) => void) | null;
8038
8038
  /** Never emitted. */
8039
- onRestoreWindow?: (self: Vte.Terminal) => void | null;
8039
+ onRestoreWindow?: ((self: Vte.Terminal) => void) | null;
8040
8040
  /** Emitted whenever the contents of terminal's selection changes. */
8041
- onSelectionChanged?: (self: Vte.Terminal) => void | null;
8041
+ onSelectionChanged?: ((self: Vte.Terminal) => void) | null;
8042
8042
  /**
8043
8043
  * Emitted with non-%NULL context before `terminal` shows a context menu.
8044
8044
  * The handler may set either a menu model using
@@ -8054,7 +8054,7 @@ export type VteTerminalProps = WidgetProps & {
8054
8054
  *
8055
8055
  * Also emitted with %NULL context after the context menu has been dismissed.
8056
8056
  */
8057
- onSetupContextMenu?: (context: Vte.EventContext, self: Vte.Terminal) => void | null;
8057
+ onSetupContextMenu?: ((context: Vte.EventContext, self: Vte.Terminal) => void) | null;
8058
8058
  /**
8059
8059
  * The "termprop-changed" signal is emitted when a termprop
8060
8060
  * has changed or been reset.
@@ -8068,7 +8068,7 @@ export type VteTerminalProps = WidgetProps & {
8068
8068
  * to "termprop-changed::name" only runs the callback when the
8069
8069
  * termprop "name" has changed.
8070
8070
  */
8071
- onTermpropChanged?: (name: string, self: Vte.Terminal) => void | null;
8071
+ onTermpropChanged?: ((name: string, self: Vte.Terminal) => void) | null;
8072
8072
  /**
8073
8073
  * Emitted when termprops have changed. `props` is an array containing
8074
8074
  * the IDs of the terminal properties that may have changed since
@@ -8088,9 +8088,9 @@ export type VteTerminalProps = WidgetProps & {
8088
8088
  * VteTerminal::termprop-changed signal; but it must *not*
8089
8089
  * call *any* other API on `terminal`, including API of its parent classes.
8090
8090
  */
8091
- onTermpropsChanged?: (props: number[], nProps: number, self: Vte.Terminal) => boolean | null;
8091
+ onTermpropsChanged?: ((props: number[], nProps: number, self: Vte.Terminal) => boolean) | null;
8092
8092
  /** Emitted when the #VteTerminal:window-title property is modified. */
8093
- onWindowTitleChanged?: (self: Vte.Terminal) => void | null;
8093
+ onWindowTitleChanged?: ((self: Vte.Terminal) => void) | null;
8094
8094
  children?: ReactNode;
8095
8095
  ref?: Ref<Vte.Terminal>;
8096
8096
  };
@@ -8186,7 +8186,7 @@ export type GtkTextProps = WidgetProps & {
8186
8186
  * The default bindings for this signal are all forms
8187
8187
  * of the `Enter` key.
8188
8188
  */
8189
- onActivate?: (self: Gtk.Text) => void | null;
8189
+ onActivate?: ((self: Gtk.Text) => void) | null;
8190
8190
  /**
8191
8191
  * Emitted when the user asks for it.
8192
8192
  *
@@ -8195,7 +8195,7 @@ export type GtkTextProps = WidgetProps & {
8195
8195
  * The default bindings for this signal are
8196
8196
  * `Backspace` and `Shift`+`Backspace`.
8197
8197
  */
8198
- onBackspace?: (self: Gtk.Text) => void | null;
8198
+ onBackspace?: ((self: Gtk.Text) => void) | null;
8199
8199
  /**
8200
8200
  * Emitted to copy the selection to the clipboard.
8201
8201
  *
@@ -8205,7 +8205,7 @@ export type GtkTextProps = WidgetProps & {
8205
8205
  * `Ctrl`+`c` and
8206
8206
  * `Ctrl`+`Insert`.
8207
8207
  */
8208
- onCopyClipboard?: (self: Gtk.Text) => void | null;
8208
+ onCopyClipboard?: ((self: Gtk.Text) => void) | null;
8209
8209
  /**
8210
8210
  * Emitted to cut the selection to the clipboard.
8211
8211
  *
@@ -8215,7 +8215,7 @@ export type GtkTextProps = WidgetProps & {
8215
8215
  * `Ctrl`+`x` and
8216
8216
  * `Shift`+`Delete`.
8217
8217
  */
8218
- onCutClipboard?: (self: Gtk.Text) => void | null;
8218
+ onCutClipboard?: ((self: Gtk.Text) => void) | null;
8219
8219
  /**
8220
8220
  * Emitted when the user initiates a text deletion.
8221
8221
  *
@@ -8229,7 +8229,7 @@ export type GtkTextProps = WidgetProps & {
8229
8229
  * for deleting a character and `Ctrl`+`Delete`
8230
8230
  * for deleting a word.
8231
8231
  */
8232
- onDeleteFromCursor?: (type: Gtk.DeleteType, count: number, self: Gtk.Text) => void | null;
8232
+ onDeleteFromCursor?: ((type: Gtk.DeleteType, count: number, self: Gtk.Text) => void) | null;
8233
8233
  /**
8234
8234
  * Emitted when the user initiates the insertion of a
8235
8235
  * fixed string at the cursor.
@@ -8238,7 +8238,7 @@ export type GtkTextProps = WidgetProps & {
8238
8238
  *
8239
8239
  * This signal has no default bindings.
8240
8240
  */
8241
- onInsertAtCursor?: (string: string, self: Gtk.Text) => void | null;
8241
+ onInsertAtCursor?: ((string: string, self: Gtk.Text) => void) | null;
8242
8242
  /**
8243
8243
  * Emitted to present the Emoji chooser.
8244
8244
  *
@@ -8248,7 +8248,7 @@ export type GtkTextProps = WidgetProps & {
8248
8248
  * `Ctrl`+`.` and
8249
8249
  * `Ctrl`+`;`
8250
8250
  */
8251
- onInsertEmoji?: (self: Gtk.Text) => void | null;
8251
+ onInsertEmoji?: ((self: Gtk.Text) => void) | null;
8252
8252
  /**
8253
8253
  * Emitted when the user initiates a cursor movement.
8254
8254
  *
@@ -8271,7 +8271,7 @@ export type GtkTextProps = WidgetProps & {
8271
8271
  * - `Ctrl`+`←`, etc. move by words/paragraphs
8272
8272
  * - `Home` and `End` move to the ends of the buffer
8273
8273
  */
8274
- onMoveCursor?: (step: Gtk.MovementStep, count: number, extend: boolean, self: Gtk.Text) => void | null;
8274
+ onMoveCursor?: ((step: Gtk.MovementStep, count: number, extend: boolean, self: Gtk.Text) => void) | null;
8275
8275
  /**
8276
8276
  * Emitted to paste the contents of the clipboard.
8277
8277
  *
@@ -8280,7 +8280,7 @@ export type GtkTextProps = WidgetProps & {
8280
8280
  * The default bindings for this signal are
8281
8281
  * `Ctrl`+`v` and `Shift`+`Insert`.
8282
8282
  */
8283
- onPasteClipboard?: (self: Gtk.Text) => void | null;
8283
+ onPasteClipboard?: ((self: Gtk.Text) => void) | null;
8284
8284
  /**
8285
8285
  * Emitted when the preedit text changes.
8286
8286
  *
@@ -8288,7 +8288,7 @@ export type GtkTextProps = WidgetProps & {
8288
8288
  * be committed to the buffer. So if you are interested in the text,
8289
8289
  * connect to this signal.
8290
8290
  */
8291
- onPreeditChanged?: (preedit: string, self: Gtk.Text) => void | null;
8291
+ onPreeditChanged?: ((preedit: string, self: Gtk.Text) => void) | null;
8292
8292
  /**
8293
8293
  * Emitted to toggle the overwrite mode.
8294
8294
  *
@@ -8296,7 +8296,7 @@ export type GtkTextProps = WidgetProps & {
8296
8296
  *
8297
8297
  * The default bindings for this signal is `Insert`.
8298
8298
  */
8299
- onToggleOverwrite?: (self: Gtk.Text) => void | null;
8299
+ onToggleOverwrite?: ((self: Gtk.Text) => void) | null;
8300
8300
  /**
8301
8301
  * Emitted at the end of a single user-visible operation on the
8302
8302
  * contents.
@@ -8307,7 +8307,7 @@ export type GtkTextProps = WidgetProps & {
8307
8307
  * the new content, and may cause multiple ::notify::text signals
8308
8308
  * to be emitted).
8309
8309
  */
8310
- onChanged?: (self: Gtk.Text) => void | null;
8310
+ onChanged?: ((self: Gtk.Text) => void) | null;
8311
8311
  /**
8312
8312
  * Emitted when text is deleted from the widget by the user.
8313
8313
  *
@@ -8319,7 +8319,7 @@ export type GtkTextProps = WidgetProps & {
8319
8319
  * The `start_pos` and `end_pos` parameters are interpreted as for
8320
8320
  * {@link Editable.delete_text}.
8321
8321
  */
8322
- onDeleteText?: (startPos: number, endPos: number, self: Gtk.Text) => void | null;
8322
+ onDeleteText?: ((startPos: number, endPos: number, self: Gtk.Text) => void) | null;
8323
8323
  /**
8324
8324
  * Emitted when text is inserted into the widget by the user.
8325
8325
  *
@@ -8328,7 +8328,7 @@ export type GtkTextProps = WidgetProps & {
8328
8328
  * stopping the signal with g_signal_stop_emission(), it is possible
8329
8329
  * to modify the inserted text, or prevent it from being inserted entirely.
8330
8330
  */
8331
- onInsertText?: (text: string, length: number, position: Ref<number>, self: Gtk.Text) => void | null;
8331
+ onInsertText?: ((text: string, length: number, position: Ref<number>, self: Gtk.Text) => void) | null;
8332
8332
  children?: ReactNode;
8333
8333
  ref?: Ref<Gtk.Text>;
8334
8334
  };
@@ -8456,7 +8456,7 @@ export type GtkTextViewProps = WidgetProps & {
8456
8456
  * The default bindings for this signal are
8457
8457
  * `Backspace` and `Shift`+`Backspace`.
8458
8458
  */
8459
- onBackspace?: (self: Gtk.TextView) => void | null;
8459
+ onBackspace?: ((self: Gtk.TextView) => void) | null;
8460
8460
  /**
8461
8461
  * Gets emitted to copy the selection to the clipboard.
8462
8462
  *
@@ -8466,7 +8466,7 @@ export type GtkTextViewProps = WidgetProps & {
8466
8466
  * `Ctrl`+`c` and
8467
8467
  * `Ctrl`+`Insert`.
8468
8468
  */
8469
- onCopyClipboard?: (self: Gtk.TextView) => void | null;
8469
+ onCopyClipboard?: ((self: Gtk.TextView) => void) | null;
8470
8470
  /**
8471
8471
  * Gets emitted to cut the selection to the clipboard.
8472
8472
  *
@@ -8476,7 +8476,7 @@ export type GtkTextViewProps = WidgetProps & {
8476
8476
  * `Ctrl`+`x` and
8477
8477
  * `Shift`+`Delete`.
8478
8478
  */
8479
- onCutClipboard?: (self: Gtk.TextView) => void | null;
8479
+ onCutClipboard?: ((self: Gtk.TextView) => void) | null;
8480
8480
  /**
8481
8481
  * Gets emitted when the user initiates a text deletion.
8482
8482
  *
@@ -8491,9 +8491,9 @@ export type GtkTextViewProps = WidgetProps & {
8491
8491
  * deleting a word and `Ctrl`+`Backspace` for
8492
8492
  * deleting a word backwards.
8493
8493
  */
8494
- onDeleteFromCursor?: (type: Gtk.DeleteType, count: number, self: Gtk.TextView) => void | null;
8494
+ onDeleteFromCursor?: ((type: Gtk.DeleteType, count: number, self: Gtk.TextView) => void) | null;
8495
8495
  /** Emitted when the selection needs to be extended at `location`. */
8496
- onExtendSelection?: (granularity: Gtk.TextExtendSelection, location: Gtk.TextIter, start: Gtk.TextIter, end: Gtk.TextIter, self: Gtk.TextView) => boolean | null;
8496
+ onExtendSelection?: ((granularity: Gtk.TextExtendSelection, location: Gtk.TextIter, start: Gtk.TextIter, end: Gtk.TextIter, self: Gtk.TextView) => boolean) | null;
8497
8497
  /**
8498
8498
  * Gets emitted when the user initiates the insertion of a
8499
8499
  * fixed string at the cursor.
@@ -8502,7 +8502,7 @@ export type GtkTextViewProps = WidgetProps & {
8502
8502
  *
8503
8503
  * This signal has no default bindings.
8504
8504
  */
8505
- onInsertAtCursor?: (string: string, self: Gtk.TextView) => void | null;
8505
+ onInsertAtCursor?: ((string: string, self: Gtk.TextView) => void) | null;
8506
8506
  /**
8507
8507
  * Gets emitted to present the Emoji chooser for the `text_view`.
8508
8508
  *
@@ -8512,7 +8512,7 @@ export type GtkTextViewProps = WidgetProps & {
8512
8512
  * `Ctrl`+`.` and
8513
8513
  * `Ctrl`+`;`
8514
8514
  */
8515
- onInsertEmoji?: (self: Gtk.TextView) => void | null;
8515
+ onInsertEmoji?: ((self: Gtk.TextView) => void) | null;
8516
8516
  /**
8517
8517
  * Gets emitted when the user initiates a cursor movement.
8518
8518
  *
@@ -8537,7 +8537,7 @@ export type GtkTextViewProps = WidgetProps & {
8537
8537
  * - `Ctrl`+`PgUp` and `Ctrl`+`PgDn`
8538
8538
  * move horizontally by pages
8539
8539
  */
8540
- onMoveCursor?: (step: Gtk.MovementStep, count: number, extendSelection: boolean, self: Gtk.TextView) => void | null;
8540
+ onMoveCursor?: ((step: Gtk.MovementStep, count: number, extendSelection: boolean, self: Gtk.TextView) => void) | null;
8541
8541
  /**
8542
8542
  * Gets emitted to move the viewport.
8543
8543
  *
@@ -8548,7 +8548,7 @@ export type GtkTextViewProps = WidgetProps & {
8548
8548
  *
8549
8549
  * There are no default bindings for this signal.
8550
8550
  */
8551
- onMoveViewport?: (step: Gtk.ScrollStep, count: number, self: Gtk.TextView) => void | null;
8551
+ onMoveViewport?: ((step: Gtk.ScrollStep, count: number, self: Gtk.TextView) => void) | null;
8552
8552
  /**
8553
8553
  * Gets emitted to paste the contents of the clipboard
8554
8554
  * into the text view.
@@ -8559,7 +8559,7 @@ export type GtkTextViewProps = WidgetProps & {
8559
8559
  * `Ctrl`+`v` and
8560
8560
  * `Shift`+`Insert`.
8561
8561
  */
8562
- onPasteClipboard?: (self: Gtk.TextView) => void | null;
8562
+ onPasteClipboard?: ((self: Gtk.TextView) => void) | null;
8563
8563
  /**
8564
8564
  * Emitted when preedit text of the active IM changes.
8565
8565
  *
@@ -8570,7 +8570,7 @@ export type GtkTextViewProps = WidgetProps & {
8570
8570
  * This signal is only emitted if the text at the given position
8571
8571
  * is actually editable.
8572
8572
  */
8573
- onPreeditChanged?: (preedit: string, self: Gtk.TextView) => void | null;
8573
+ onPreeditChanged?: ((preedit: string, self: Gtk.TextView) => void) | null;
8574
8574
  /**
8575
8575
  * Gets emitted to select or unselect the complete contents of the text view.
8576
8576
  *
@@ -8582,7 +8582,7 @@ export type GtkTextViewProps = WidgetProps & {
8582
8582
  * `Shift`+`Ctrl`+`a` and
8583
8583
  * `Ctrl`+`\` for unselecting.
8584
8584
  */
8585
- onSelectAll?: (select: boolean, self: Gtk.TextView) => void | null;
8585
+ onSelectAll?: ((select: boolean, self: Gtk.TextView) => void) | null;
8586
8586
  /**
8587
8587
  * Gets emitted when the user initiates settings the "anchor" mark.
8588
8588
  *
@@ -8593,7 +8593,7 @@ export type GtkTextViewProps = WidgetProps & {
8593
8593
  *
8594
8594
  * This signal has no default bindings.
8595
8595
  */
8596
- onSetAnchor?: (self: Gtk.TextView) => void | null;
8596
+ onSetAnchor?: ((self: Gtk.TextView) => void) | null;
8597
8597
  /**
8598
8598
  * Gets emitted to toggle the `cursor-visible` property.
8599
8599
  *
@@ -8602,7 +8602,7 @@ export type GtkTextViewProps = WidgetProps & {
8602
8602
  *
8603
8603
  * The default binding for this signal is `F7`.
8604
8604
  */
8605
- onToggleCursorVisible?: (self: Gtk.TextView) => void | null;
8605
+ onToggleCursorVisible?: ((self: Gtk.TextView) => void) | null;
8606
8606
  /**
8607
8607
  * Gets emitted to toggle the overwrite mode of the text view.
8608
8608
  *
@@ -8610,7 +8610,7 @@ export type GtkTextViewProps = WidgetProps & {
8610
8610
  *
8611
8611
  * The default binding for this signal is `Insert`.
8612
8612
  */
8613
- onToggleOverwrite?: (self: Gtk.TextView) => void | null;
8613
+ onToggleOverwrite?: ((self: Gtk.TextView) => void) | null;
8614
8614
  /** Whether to enable undo/redo */
8615
8615
  enableUndo?: boolean;
8616
8616
  /** Callback when the buffer content changes. Use buffer.getText() to extract text. */
@@ -8640,7 +8640,7 @@ export type GtkToggleButtonProps = GtkButtonProps & {
8640
8640
  /** The toggle button whose group this widget belongs to. */
8641
8641
  group?: Gtk.ToggleButton;
8642
8642
  /** Emitted whenever the `GtkToggleButton`'s state is changed. */
8643
- onToggled?: (self: Gtk.ToggleButton) => void | null;
8643
+ onToggled?: ((self: Gtk.ToggleButton) => void) | null;
8644
8644
  children?: ReactNode;
8645
8645
  ref?: Ref<Gtk.ToggleButton>;
8646
8646
  };
@@ -8874,10 +8874,10 @@ export type GtkTreeViewProps = WidgetProps & {
8874
8874
  /** Determines when vertical scrolling should start. */
8875
8875
  vscrollPolicy?: Gtk.ScrollablePolicy;
8876
8876
  /** The number of columns of the treeview has changed. */
8877
- onColumnsChanged?: (self: Gtk.TreeView) => void | null;
8877
+ onColumnsChanged?: ((self: Gtk.TreeView) => void) | null;
8878
8878
  /** The position of the cursor (focused cell) has changed. */
8879
- onCursorChanged?: (self: Gtk.TreeView) => void | null;
8880
- onExpandCollapseCursorRow?: (object: boolean, p0: boolean, p1: boolean, self: Gtk.TreeView) => boolean | null;
8879
+ onCursorChanged?: ((self: Gtk.TreeView) => void) | null;
8880
+ onExpandCollapseCursorRow?: ((object: boolean, p0: boolean, p1: boolean, self: Gtk.TreeView) => boolean) | null;
8881
8881
  /**
8882
8882
  * The `GtkTreeView`::move-cursor signal is a [keybinding
8883
8883
  * signal]{@link SignalAction} which gets emitted when the user
@@ -8889,7 +8889,7 @@ export type GtkTreeViewProps = WidgetProps & {
8889
8889
  * gtk_tree_view_set_cursor_on_cell() when moving horizontally
8890
8890
  * `GtkTreeView`::move-cursor does not reset the current selection.
8891
8891
  */
8892
- onMoveCursor?: (step: Gtk.MovementStep, direction: number, extend: boolean, modify: boolean, self: Gtk.TreeView) => boolean | null;
8892
+ onMoveCursor?: ((step: Gtk.MovementStep, direction: number, extend: boolean, modify: boolean, self: Gtk.TreeView) => boolean) | null;
8893
8893
  /**
8894
8894
  * The "row-activated" signal is emitted when the method
8895
8895
  * {@link TreeView.row_activated} is called.
@@ -8906,27 +8906,27 @@ export type GtkTreeViewProps = WidgetProps & {
8906
8906
  * tree widget conceptual overview
8907
8907
  * as well as `GtkTreeSelection`.
8908
8908
  */
8909
- onRowActivated?: (path: Gtk.TreePath, column: Gtk.TreeViewColumn, self: Gtk.TreeView) => void | null;
8909
+ onRowActivated?: ((path: Gtk.TreePath, column: Gtk.TreeViewColumn, self: Gtk.TreeView) => void) | null;
8910
8910
  /** The given row has been collapsed (child nodes are hidden). */
8911
- onRowCollapsed?: (iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => void | null;
8911
+ onRowCollapsed?: ((iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => void) | null;
8912
8912
  /** The given row has been expanded (child nodes are shown). */
8913
- onRowExpanded?: (iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => void | null;
8914
- onSelectAll?: (self: Gtk.TreeView) => boolean | null;
8915
- onSelectCursorParent?: (self: Gtk.TreeView) => boolean | null;
8916
- onSelectCursorRow?: (object: boolean, self: Gtk.TreeView) => boolean | null;
8917
- onStartInteractiveSearch?: (self: Gtk.TreeView) => boolean | null;
8913
+ onRowExpanded?: ((iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => void) | null;
8914
+ onSelectAll?: ((self: Gtk.TreeView) => boolean) | null;
8915
+ onSelectCursorParent?: ((self: Gtk.TreeView) => boolean) | null;
8916
+ onSelectCursorRow?: ((object: boolean, self: Gtk.TreeView) => boolean) | null;
8917
+ onStartInteractiveSearch?: ((self: Gtk.TreeView) => boolean) | null;
8918
8918
  /**
8919
8919
  * The given row is about to be collapsed (hide its children nodes). Use this
8920
8920
  * signal if you need to control the collapsibility of individual rows.
8921
8921
  */
8922
- onTestCollapseRow?: (iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => boolean | null;
8922
+ onTestCollapseRow?: ((iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => boolean) | null;
8923
8923
  /**
8924
8924
  * The given row is about to be expanded (show its children nodes). Use this
8925
8925
  * signal if you need to control the expandability of individual rows.
8926
8926
  */
8927
- onTestExpandRow?: (iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => boolean | null;
8928
- onToggleCursorRow?: (self: Gtk.TreeView) => boolean | null;
8929
- onUnselectAll?: (self: Gtk.TreeView) => boolean | null;
8927
+ onTestExpandRow?: ((iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => boolean) | null;
8928
+ onToggleCursorRow?: ((self: Gtk.TreeView) => boolean) | null;
8929
+ onUnselectAll?: ((self: Gtk.TreeView) => boolean) | null;
8930
8930
  ref?: Ref<Gtk.TreeView>;
8931
8931
  };
8932
8932
  /** Props for the {@link GtkVideo} widget. */
@@ -8983,34 +8983,34 @@ export type GtkSourceViewProps = GtkTextViewProps & {
8983
8983
  /** Width of a tab character expressed in number of spaces. */
8984
8984
  tabWidth?: number;
8985
8985
  /** Keybinding signal to change case of the text at the current cursor position. */
8986
- onChangeCase?: (caseType: GtkSource.ChangeCaseType, self: GtkSource.View) => void | null;
8986
+ onChangeCase?: ((caseType: GtkSource.ChangeCaseType, self: GtkSource.View) => void) | null;
8987
8987
  /** Keybinding signal to edit a number at the current cursor position. */
8988
- onChangeNumber?: (count: number, self: GtkSource.View) => void | null;
8988
+ onChangeNumber?: ((count: number, self: GtkSource.View) => void) | null;
8989
8989
  /** Keybinding signal to join the lines currently selected. */
8990
- onJoinLines?: (self: GtkSource.View) => void | null;
8990
+ onJoinLines?: ((self: GtkSource.View) => void) | null;
8991
8991
  /**
8992
8992
  * Emitted when a line mark has been activated (for instance when there
8993
8993
  * was a button press in the line marks gutter).
8994
8994
  *
8995
8995
  * You can use `iter` to determine on which line the activation took place.
8996
8996
  */
8997
- onLineMarkActivated?: (iter: Gtk.TextIter, button: number, state: Gdk.ModifierType, nPresses: number, self: GtkSource.View) => void | null;
8997
+ onLineMarkActivated?: ((iter: Gtk.TextIter, button: number, state: Gdk.ModifierType, nPresses: number, self: GtkSource.View) => void) | null;
8998
8998
  /**
8999
8999
  * The signal is a keybinding which gets emitted when the user initiates moving a line.
9000
9000
  *
9001
9001
  * The default binding key is Alt+Up/Down arrow. And moves the currently selected lines,
9002
9002
  * or the current line up or down by one line.
9003
9003
  */
9004
- onMoveLines?: (down: boolean, self: GtkSource.View) => void | null;
9004
+ onMoveLines?: ((down: boolean, self: GtkSource.View) => void) | null;
9005
9005
  /** Keybinding signal to move the cursor to the matching bracket. */
9006
- onMoveToMatchingBracket?: (extendSelection: boolean, self: GtkSource.View) => void | null;
9006
+ onMoveToMatchingBracket?: ((extendSelection: boolean, self: GtkSource.View) => void) | null;
9007
9007
  /**
9008
9008
  * The signal is a keybinding which gets emitted when the user initiates moving a word.
9009
9009
  *
9010
9010
  * The default binding key is Alt+Left/Right Arrow and moves the current selection, or the current
9011
9011
  * word by one word.
9012
9012
  */
9013
- onMoveWords?: (count: number, self: GtkSource.View) => void | null;
9013
+ onMoveWords?: ((count: number, self: GtkSource.View) => void) | null;
9014
9014
  /**
9015
9015
  * The signal is emitted to insert a new snippet into the view.
9016
9016
  *
@@ -9018,7 +9018,7 @@ export type GtkSourceViewProps = GtkTextViewProps & {
9018
9018
  *
9019
9019
  * `location` will be updated to point at the end of the snippet.
9020
9020
  */
9021
- onPushSnippet?: (snippet: GtkSource.Snippet, location: Gtk.TextIter, self: GtkSource.View) => void | null;
9021
+ onPushSnippet?: ((snippet: GtkSource.Snippet, location: Gtk.TextIter, self: GtkSource.View) => void) | null;
9022
9022
  /**
9023
9023
  * The signal is a key binding signal which gets
9024
9024
  * emitted when the user requests a completion, by pressing
@@ -9031,7 +9031,7 @@ export type GtkSourceViewProps = GtkTextViewProps & {
9031
9031
  * {@link GObjectsignal_emit_by_name} if they need to activate the completion by
9032
9032
  * another means, for example with another key binding or a menu entry.
9033
9033
  */
9034
- onShowCompletion?: (self: GtkSource.View) => void | null;
9034
+ onShowCompletion?: ((self: GtkSource.View) => void) | null;
9035
9035
  /**
9036
9036
  * Emitted when a the cursor was moved according to the smart home end setting.
9037
9037
  *
@@ -9040,7 +9040,7 @@ export type GtkSourceViewProps = GtkTextViewProps & {
9040
9040
  * out whether the cursor was moved by a normal home/end or by a smart
9041
9041
  * home/end.
9042
9042
  */
9043
- onSmartHomeEnd?: (iter: Gtk.TextIter, count: number, self: GtkSource.View) => void | null;
9043
+ onSmartHomeEnd?: ((iter: Gtk.TextIter, count: number, self: GtkSource.View) => void) | null;
9044
9044
  /** Whether to enable undo/redo */
9045
9045
  enableUndo?: boolean;
9046
9046
  /** Callback when the buffer content changes. Use buffer.getText() to extract text. */
@@ -9293,7 +9293,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9293
9293
  * The default signal handler will run a default authentication
9294
9294
  * dialog asynchronously for the user to interact with.
9295
9295
  */
9296
- onAuthenticate?: (request: WebKit.AuthenticationRequest, self: WebKit.WebView) => boolean | null;
9296
+ onAuthenticate?: ((request: WebKit.AuthenticationRequest, self: WebKit.WebView) => boolean) | null;
9297
9297
  /**
9298
9298
  * Emitted when closing a #WebKitWebView is requested. This occurs when a
9299
9299
  * call is made from JavaScript's <function>window.close</function> function or
@@ -9301,7 +9301,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9301
9301
  * It is the owner's responsibility to handle this signal to hide or
9302
9302
  * destroy the #WebKitWebView, if necessary.
9303
9303
  */
9304
- onClose?: (self: WebKit.WebView) => void | null;
9304
+ onClose?: ((self: WebKit.WebView) => void) | null;
9305
9305
  /**
9306
9306
  * Emitted when a context menu is about to be displayed to give the application
9307
9307
  * a chance to customize the proposed menu, prevent the menu from being displayed,
@@ -9337,12 +9337,12 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9337
9337
  * The proposed #WebKitContextMenu passed in `context_menu` argument is only valid
9338
9338
  * during the signal emission.
9339
9339
  */
9340
- onContextMenu?: (contextMenu: WebKit.ContextMenu, hitTestResult: WebKit.HitTestResult, self: WebKit.WebView) => boolean | null;
9340
+ onContextMenu?: ((contextMenu: WebKit.ContextMenu, hitTestResult: WebKit.HitTestResult, self: WebKit.WebView) => boolean) | null;
9341
9341
  /**
9342
9342
  * Emitted after #WebKitWebView::context-menu signal, if the context menu is shown,
9343
9343
  * to notify that the context menu is dismissed.
9344
9344
  */
9345
- onContextMenuDismissed?: (self: WebKit.WebView) => void | null;
9345
+ onContextMenuDismissed?: ((self: WebKit.WebView) => void) | null;
9346
9346
  /**
9347
9347
  * Emitted when the creation of a new #WebKitWebView is requested.
9348
9348
  * If this signal is handled the signal handler should return the
@@ -9360,7 +9360,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9360
9360
  * For creating views as response to automation tools requests, see the
9361
9361
  * #WebKitAutomationSession::create-web-view signal.
9362
9362
  */
9363
- onCreate?: (navigationAction: WebKit.NavigationAction, self: WebKit.WebView) => Gtk.Widget | null;
9363
+ onCreate?: ((navigationAction: WebKit.NavigationAction, self: WebKit.WebView) => Gtk.Widget) | null;
9364
9364
  /**
9365
9365
  * This signal is emitted when WebKit is requesting the client to decide a policy
9366
9366
  * decision, such as whether to navigate to a page, open a new window or whether or
@@ -9404,7 +9404,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9404
9404
  * default signal handler will simply call webkit_policy_decision_use(). Only the first
9405
9405
  * policy decision chosen for a given #WebKitPolicyDecision will have any affect.
9406
9406
  */
9407
- onDecidePolicy?: (decision: WebKit.PolicyDecision, decisionType: WebKit.PolicyDecisionType, self: WebKit.WebView) => boolean | null;
9407
+ onDecidePolicy?: ((decision: WebKit.PolicyDecision, decisionType: WebKit.PolicyDecisionType, self: WebKit.WebView) => boolean) | null;
9408
9408
  /**
9409
9409
  * Emitted when JavaScript code calls
9410
9410
  * <function>element.webkitRequestFullScreen</function>. If the
@@ -9415,20 +9415,20 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9415
9415
  * (e.g. hide some widgets that would otherwise be part of the
9416
9416
  * full screen window).
9417
9417
  */
9418
- onEnterFullscreen?: (self: WebKit.WebView) => boolean | null;
9418
+ onEnterFullscreen?: ((self: WebKit.WebView) => boolean) | null;
9419
9419
  /**
9420
9420
  * Prior to 2.46, this signal was emitted when insecure content was
9421
9421
  * loaded in a secure content. Since 2.46, this signal is generally
9422
9422
  * no longer emitted.
9423
9423
  */
9424
- onInsecureContentDetected?: (event: WebKit.InsecureContentEvent, self: WebKit.WebView) => void | null;
9424
+ onInsecureContentDetected?: ((event: WebKit.InsecureContentEvent, self: WebKit.WebView) => void) | null;
9425
9425
  /**
9426
9426
  * Emitted when the #WebKitWebView is about to restore its top level
9427
9427
  * window out of its full screen state. This signal can be used by
9428
9428
  * client code to restore widgets hidden during the
9429
9429
  * #WebKitWebView::enter-fullscreen stage for instance.
9430
9430
  */
9431
- onLeaveFullscreen?: (self: WebKit.WebView) => boolean | null;
9431
+ onLeaveFullscreen?: ((self: WebKit.WebView) => boolean) | null;
9432
9432
  /**
9433
9433
  * Emitted when a load operation in `web_view` changes.
9434
9434
  * The signal is always emitted with %WEBKIT_LOAD_STARTED when a
@@ -9475,7 +9475,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9475
9475
  * }
9476
9476
  * ```
9477
9477
  */
9478
- onLoadChanged?: (loadEvent: WebKit.LoadEvent, self: WebKit.WebView) => void | null;
9478
+ onLoadChanged?: ((loadEvent: WebKit.LoadEvent, self: WebKit.WebView) => void) | null;
9479
9479
  /**
9480
9480
  * Emitted when an error occurs during a load operation.
9481
9481
  * If the error happened when starting to load data for a page
@@ -9488,7 +9488,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9488
9488
  * By default, if the signal is not handled, a stock error page will be displayed.
9489
9489
  * You need to handle the signal if you want to provide your own error page.
9490
9490
  */
9491
- onLoadFailed?: (loadEvent: WebKit.LoadEvent, failingUri: string, error: GLib.GError, self: WebKit.WebView) => boolean | null;
9491
+ onLoadFailed?: ((loadEvent: WebKit.LoadEvent, failingUri: string, error: GLib.GError, self: WebKit.WebView) => boolean) | null;
9492
9492
  /**
9493
9493
  * Emitted when a TLS error occurs during a load operation.
9494
9494
  * To allow an exception for this `certificate`
@@ -9500,7 +9500,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9500
9500
  * If %FALSE is returned, #WebKitWebView::load-failed will be emitted. The load
9501
9501
  * will finish regardless of the returned value.
9502
9502
  */
9503
- onLoadFailedWithTlsErrors?: (failingUri: string, certificate: Gio.TlsCertificate, errors: Gio.TlsCertificateFlags, self: WebKit.WebView) => boolean | null;
9503
+ onLoadFailedWithTlsErrors?: ((failingUri: string, certificate: Gio.TlsCertificate, errors: Gio.TlsCertificateFlags, self: WebKit.WebView) => boolean) | null;
9504
9504
  /**
9505
9505
  * This signal is emitted when the mouse cursor moves over an
9506
9506
  * element such as a link, image or a media element. To determine
@@ -9511,7 +9511,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9511
9511
  * The signal is emitted again when the mouse is moved out of the
9512
9512
  * current element with a new `hit_test_result`.
9513
9513
  */
9514
- onMouseTargetChanged?: (hitTestResult: WebKit.HitTestResult, modifiers: number, self: WebKit.WebView) => void | null;
9514
+ onMouseTargetChanged?: ((hitTestResult: WebKit.HitTestResult, modifiers: number, self: WebKit.WebView) => void) | null;
9515
9515
  /**
9516
9516
  * This signal is emitted when WebKit is requesting the client to
9517
9517
  * decide about a permission request, such as allowing the browser
@@ -9560,7 +9560,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9560
9560
  * documentation of classes implementing #WebKitPermissionRequest interface to know
9561
9561
  * their default action.
9562
9562
  */
9563
- onPermissionRequest?: (request: WebKit.PermissionRequest, self: WebKit.WebView) => boolean | null;
9563
+ onPermissionRequest?: ((request: WebKit.PermissionRequest, self: WebKit.WebView) => boolean) | null;
9564
9564
  /**
9565
9565
  * Emitted when printing is requested on `web_view`, usually by a JavaScript call,
9566
9566
  * before the print dialog is shown. This signal can be used to set the initial
@@ -9572,7 +9572,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9572
9572
  * You can connect to this signal and return %TRUE to cancel the print operation
9573
9573
  * or implement your own print dialog.
9574
9574
  */
9575
- onPrint?: (printOperation: WebKit.PrintOperation, self: WebKit.WebView) => boolean | null;
9575
+ onPrint?: ((printOperation: WebKit.PrintOperation, self: WebKit.WebView) => boolean) | null;
9576
9576
  /**
9577
9577
  * This signal allows the User-Agent to respond to permission requests for powerful features, as
9578
9578
  * specified by the [Permissions W3C Specification](https://w3c.github.io/permissions/).
@@ -9582,7 +9582,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9582
9582
  * `query` and returning %TRUE. If the last reference of `query` is removed and the query has not
9583
9583
  * been handled, the query result will be set to %WEBKIT_QUERY_PERMISSION_PROMPT.
9584
9584
  */
9585
- onQueryPermissionState?: (query: WebKit.PermissionStateQuery, self: WebKit.WebView) => boolean | null;
9585
+ onQueryPermissionState?: ((query: WebKit.PermissionStateQuery, self: WebKit.WebView) => boolean) | null;
9586
9586
  /**
9587
9587
  * Emitted after #WebKitWebView::create on the newly created #WebKitWebView
9588
9588
  * when it should be displayed to the user. When this signal is emitted
@@ -9591,14 +9591,14 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9591
9591
  * should be displayed, is already set on the #WebKitWindowProperties
9592
9592
  * of `web_view`. See also webkit_web_view_get_window_properties().
9593
9593
  */
9594
- onReadyToShow?: (self: WebKit.WebView) => void | null;
9594
+ onReadyToShow?: ((self: WebKit.WebView) => void) | null;
9595
9595
  /**
9596
9596
  * Emitted when a new resource is going to be loaded. The `request` parameter
9597
9597
  * contains the #WebKitURIRequest that will be sent to the server.
9598
9598
  * You can monitor the load operation by connecting to the different signals
9599
9599
  * of `resource`.
9600
9600
  */
9601
- onResourceLoadStarted?: (resource: WebKit.WebResource, request: WebKit.URIRequest, self: WebKit.WebView) => void | null;
9601
+ onResourceLoadStarted?: ((resource: WebKit.WebResource, request: WebKit.URIRequest, self: WebKit.WebView) => void) | null;
9602
9602
  /**
9603
9603
  * Emitted after #WebKitWebView::ready-to-show on the newly
9604
9604
  * created #WebKitWebView when JavaScript code calls
@@ -9608,7 +9608,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9608
9608
  * main loop will be run to block user interaction in the parent
9609
9609
  * #WebKitWebView until the new dialog is closed.
9610
9610
  */
9611
- onRunAsModal?: (self: WebKit.WebView) => void | null;
9611
+ onRunAsModal?: ((self: WebKit.WebView) => void) | null;
9612
9612
  /**
9613
9613
  * This signal is emitted when the user interacts with a <input
9614
9614
  * type='color' /> HTML element, requesting from WebKit to show
@@ -9624,7 +9624,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9624
9624
  * The default signal handler will asynchronously run a regular
9625
9625
  * #GtkColorChooser for the user to interact with.
9626
9626
  */
9627
- onRunColorChooser?: (request: WebKit.ColorChooserRequest, self: WebKit.WebView) => boolean | null;
9627
+ onRunColorChooser?: ((request: WebKit.ColorChooserRequest, self: WebKit.WebView) => boolean) | null;
9628
9628
  /**
9629
9629
  * This signal is emitted when the user interacts with a <input
9630
9630
  * type='file' /> HTML element, requesting from WebKit to show
@@ -9638,7 +9638,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9638
9638
  * The default signal handler will asynchronously run a regular
9639
9639
  * #GtkFileChooserDialog for the user to interact with.
9640
9640
  */
9641
- onRunFileChooser?: (request: WebKit.FileChooserRequest, self: WebKit.WebView) => boolean | null;
9641
+ onRunFileChooser?: ((request: WebKit.FileChooserRequest, self: WebKit.WebView) => boolean) | null;
9642
9642
  /**
9643
9643
  * Emitted when JavaScript code calls <function>window.alert</function>,
9644
9644
  * <function>window.confirm</function> or <function>window.prompt</function>,
@@ -9668,7 +9668,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9668
9668
  * If the last reference is removed on a #WebKitScriptDialog and the dialog has not been
9669
9669
  * closed, webkit_script_dialog_close() will be called.
9670
9670
  */
9671
- onScriptDialog?: (dialog: WebKit.ScriptDialog, self: WebKit.WebView) => boolean | null;
9671
+ onScriptDialog?: ((dialog: WebKit.ScriptDialog, self: WebKit.WebView) => boolean) | null;
9672
9672
  /**
9673
9673
  * This signal is emitted when a notification should be presented to the
9674
9674
  * user. The `notification` is kept alive until either: 1) the web page cancels it
@@ -9677,7 +9677,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9677
9677
  * The default handler will emit a notification using libnotify, if built with
9678
9678
  * support for it.
9679
9679
  */
9680
- onShowNotification?: (notification: WebKit.Notification, self: WebKit.WebView) => boolean | null;
9680
+ onShowNotification?: ((notification: WebKit.Notification, self: WebKit.WebView) => boolean) | null;
9681
9681
  /**
9682
9682
  * This signal is emitted when a select element in `web_view` needs to display a
9683
9683
  * dropdown menu. This signal can be used to show a custom menu, using `menu` to get
@@ -9688,7 +9688,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9688
9688
  *
9689
9689
  * The default signal handler will pop up a #GtkMenu.
9690
9690
  */
9691
- onShowOptionMenu?: (menu: WebKit.OptionMenu, rectangle: Gdk.Rectangle, self: WebKit.WebView) => boolean | null;
9691
+ onShowOptionMenu?: ((menu: WebKit.OptionMenu, rectangle: Gdk.Rectangle, self: WebKit.WebView) => boolean) | null;
9692
9692
  /**
9693
9693
  * This signal is emitted when a form is about to be submitted. The `request`
9694
9694
  * argument passed contains information about the text fields of the form. This
@@ -9702,7 +9702,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9702
9702
  * If the last reference is removed on a #WebKitFormSubmissionRequest and the
9703
9703
  * form has not been submitted, webkit_form_submission_request_submit() will be called.
9704
9704
  */
9705
- onSubmitForm?: (request: WebKit.FormSubmissionRequest, self: WebKit.WebView) => void | null;
9705
+ onSubmitForm?: ((request: WebKit.FormSubmissionRequest, self: WebKit.WebView) => void) | null;
9706
9706
  /**
9707
9707
  * This signal is emitted when a #WebKitUserMessage is received from the
9708
9708
  * #WebKitWebPage corresponding to `web_view`. You can reply to the message
@@ -9713,12 +9713,12 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
9713
9713
  * and the message has not been replied to, the operation in the #WebKitWebPage will
9714
9714
  * finish with error %WEBKIT_USER_MESSAGE_UNHANDLED_MESSAGE.
9715
9715
  */
9716
- onUserMessageReceived?: (message: WebKit.UserMessage, self: WebKit.WebView) => boolean | null;
9716
+ onUserMessageReceived?: ((message: WebKit.UserMessage, self: WebKit.WebView) => boolean) | null;
9717
9717
  /**
9718
9718
  * This signal is emitted when the web process terminates abnormally due
9719
9719
  * to `reason`.
9720
9720
  */
9721
- onWebProcessTerminated?: (reason: WebKit.WebProcessTerminationReason, self: WebKit.WebView) => void | null;
9721
+ onWebProcessTerminated?: ((reason: WebKit.WebProcessTerminationReason, self: WebKit.WebView) => void) | null;
9722
9722
  children?: ReactNode;
9723
9723
  ref?: Ref<WebKit.WebView>;
9724
9724
  };