@girs/mx-2.0 1.99.4-3.2.6 → 1.99.4-3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +1 -1
  2. package/mx-2.0.d.cts +102 -102
  3. package/mx-2.0.d.ts +102 -102
  4. package/package.json +19 -19
package/mx-2.0.d.ts CHANGED
@@ -289,10 +289,10 @@ const VERSION_HEX: number
289
289
  * The full version of the Mx library, in string form (suited for
290
290
  * string concatenation)
291
291
  */
292
- const VERSION_S: string | null
292
+ const VERSION_S: string
293
293
  function actor_box_clamp_to_pixels(box: Clutter.ActorBox): void
294
294
  function allocate_align_fill(child: Clutter.Actor, childbox: Clutter.ActorBox, x_alignment: Align, y_alignment: Align, x_fill: boolean, y_fill: boolean): void
295
- function border_image_set_from_string(value: any, str: string | null, filename: string | null): void
295
+ function border_image_set_from_string(value: any, str: string, filename: string): void
296
296
  /**
297
297
  * Transforms a focus direction to a focus hint. This is a convenience
298
298
  * function for actors that implement the #MxFocusable interface, to
@@ -310,7 +310,7 @@ function border_image_set_from_string(value: any, str: string | null, filename:
310
310
  * @returns A #MxFocusHint
311
311
  */
312
312
  function focus_hint_from_direction(direction: FocusDirection): FocusHint
313
- function font_weight_set_from_string(value: any, str: string | null): void
313
+ function font_weight_set_from_string(value: any, str: string): void
314
314
  function image_error_quark(): GLib.Quark
315
315
  /**
316
316
  * Initializes internationalization support for Mx. If MxApplication is
@@ -341,7 +341,7 @@ interface ActionCallbackFunc {
341
341
  * @param text text from the clipboard
342
342
  */
343
343
  interface ClipboardCallbackFunc {
344
- (clipboard: Clipboard, text: string | null): void
344
+ (clipboard: Clipboard, text: string): void
345
345
  }
346
346
  module Draggable {
347
347
 
@@ -1310,14 +1310,14 @@ interface Stylable {
1310
1310
  * @param property_name the name of the property to find
1311
1311
  * @returns a #GParamSpec for the given property, or %NULL if no property with that name was found
1312
1312
  */
1313
- find_property(property_name: string | null): GObject.ParamSpec
1313
+ find_property(property_name: string): GObject.ParamSpec
1314
1314
  /**
1315
1315
  * Query `stylable` for the default value of property `property_name` and
1316
1316
  * fill `value_out` with the result.
1317
1317
  * @param property_name name of the property to query
1318
1318
  * @returns %TRUE if property @property_name exists and the default value has been returned.
1319
1319
  */
1320
- get_default_value(property_name: string | null): [ /* returnType */ boolean, /* value_out */ any ]
1320
+ get_default_value(property_name: string): [ /* returnType */ boolean, /* value_out */ any ]
1321
1321
  /**
1322
1322
  * Retrieves the #MxStyle used by `stylable`. This function does not
1323
1323
  * alter the reference count of the returned object.
@@ -1328,19 +1328,19 @@ interface Stylable {
1328
1328
  * Get the current style class name
1329
1329
  * @returns the class name string. The string is owned by the #MxWidget and should not be modified or freed.
1330
1330
  */
1331
- get_style_class(): string | null
1331
+ get_style_class(): string
1332
1332
  /**
1333
1333
  * Retrieves the value of `property_name` for `stylable,` and puts it
1334
1334
  * into `value`.
1335
1335
  * @param property_name the name of the property
1336
1336
  */
1337
- get_style_property(property_name: string | null): /* value */ any
1337
+ get_style_property(property_name: string): /* value */ any
1338
1338
  /**
1339
1339
  * Get the current style pseudo class. This can contain multiple pseudo class
1340
1340
  * names, separated by ':'.
1341
1341
  * @returns the pseudo class string. The string is owned by the #MxWidget and should not be modified or freed.
1342
1342
  */
1343
- get_style_pseudo_class(): string | null
1343
+ get_style_pseudo_class(): string
1344
1344
  /**
1345
1345
  * Retrieves all the #GParamSpec<!-- -->s installed by `stylable`.
1346
1346
  * @returns an array of #GParamSpec<!-- -->s. Free it with g_free() when done.
@@ -1360,13 +1360,13 @@ interface Stylable {
1360
1360
  * Set the style class name
1361
1361
  * @param style_class a new style class string
1362
1362
  */
1363
- set_style_class(style_class: string | null): void
1363
+ set_style_class(style_class: string): void
1364
1364
  /**
1365
1365
  * Set the style pseudo class. The string can contain multiple pseudo class
1366
1366
  * names, separated by ':'.
1367
1367
  * @param pseudo_class a new pseudo class string
1368
1368
  */
1369
- set_style_pseudo_class(pseudo_class: string | null): void
1369
+ set_style_pseudo_class(pseudo_class: string): void
1370
1370
  /**
1371
1371
  * Emit the "style-changed" signal on `stylable` to notify it that one or more
1372
1372
  * of the style properties has changed.
@@ -1382,20 +1382,20 @@ interface Stylable {
1382
1382
  * #MxStylable:style-pseudo-class property.
1383
1383
  * @param new_class A pseudo-class name to add
1384
1384
  */
1385
- style_pseudo_class_add(new_class: string | null): void
1385
+ style_pseudo_class_add(new_class: string): void
1386
1386
  /**
1387
1387
  * Check if the given pseudo-class name is contained in the list of
1388
1388
  * set pseudo classes on this #MxStylable object.
1389
1389
  * @param pseudo_class A pseudo-class name
1390
1390
  * @returns %TRUE if the given pseudo-class is set, %FALSE otherwise
1391
1391
  */
1392
- style_pseudo_class_contains(pseudo_class: string | null): boolean
1392
+ style_pseudo_class_contains(pseudo_class: string): boolean
1393
1393
  /**
1394
1394
  * Remove the specified pseudo class name from the list of pseudo classes
1395
1395
  * contained in the #MxStylable:style-pseudo-class property.
1396
1396
  * @param remove_class A pseudo class name to remove
1397
1397
  */
1398
- style_pseudo_class_remove(remove_class: string | null): void
1398
+ style_pseudo_class_remove(remove_class: string): void
1399
1399
 
1400
1400
  // Own virtual methods of Mx-2.0.Mx.Stylable
1401
1401
 
@@ -1411,14 +1411,14 @@ interface Stylable {
1411
1411
  * @virtual
1412
1412
  * @returns the class name string. The string is owned by the #MxWidget and should not be modified or freed.
1413
1413
  */
1414
- vfunc_get_style_class(): string | null
1414
+ vfunc_get_style_class(): string
1415
1415
  /**
1416
1416
  * Get the current style pseudo class. This can contain multiple pseudo class
1417
1417
  * names, separated by ':'.
1418
1418
  * @virtual
1419
1419
  * @returns the pseudo class string. The string is owned by the #MxWidget and should not be modified or freed.
1420
1420
  */
1421
- vfunc_get_style_pseudo_class(): string | null
1421
+ vfunc_get_style_pseudo_class(): string
1422
1422
  /**
1423
1423
  * Sets `style` as the new #MxStyle to be used by `stylable`.
1424
1424
  *
@@ -1435,14 +1435,14 @@ interface Stylable {
1435
1435
  * @virtual
1436
1436
  * @param style_class a new style class string
1437
1437
  */
1438
- vfunc_set_style_class(style_class: string | null): void
1438
+ vfunc_set_style_class(style_class: string): void
1439
1439
  /**
1440
1440
  * Set the style pseudo class. The string can contain multiple pseudo class
1441
1441
  * names, separated by ':'.
1442
1442
  * @virtual
1443
1443
  * @param pseudo_class a new pseudo class string
1444
1444
  */
1445
- vfunc_set_style_pseudo_class(pseudo_class: string | null): void
1445
+ vfunc_set_style_pseudo_class(pseudo_class: string): void
1446
1446
  /**
1447
1447
  * Emit the "style-changed" signal on `stylable` to notify it that one or more
1448
1448
  * of the style properties has changed.
@@ -1584,17 +1584,17 @@ interface Action extends Gio.Action {
1584
1584
  * Get the display name of the action
1585
1585
  * @returns display-name of the action, owned by MxAction
1586
1586
  */
1587
- get_display_name(): string | null
1587
+ get_display_name(): string
1588
1588
  /**
1589
1589
  * Get the icon of the action
1590
1590
  * @returns icon of the action, owned by MxAction
1591
1591
  */
1592
- get_icon(): string | null
1592
+ get_icon(): string
1593
1593
  /**
1594
1594
  * Get the name of the action
1595
1595
  * @returns name of the action, owned by MxAction
1596
1596
  */
1597
- get_name(): string | null
1597
+ get_name(): string
1598
1598
  /**
1599
1599
  * Set the value of the active property
1600
1600
  * @param active the value to set
@@ -1604,17 +1604,17 @@ interface Action extends Gio.Action {
1604
1604
  * Set the name of the action to display to the user
1605
1605
  * @param name new display name to set
1606
1606
  */
1607
- set_display_name(name: string | null): void
1607
+ set_display_name(name: string): void
1608
1608
  /**
1609
1609
  * The icon to be used in a visual representation of an action.
1610
1610
  * @param name new icon to set
1611
1611
  */
1612
- set_icon(name: string | null): void
1612
+ set_icon(name: string): void
1613
1613
  /**
1614
1614
  * Set the name of the action
1615
1615
  * @param name new name to set
1616
1616
  */
1617
- set_name(name: string | null): void
1617
+ set_name(name: string): void
1618
1618
 
1619
1619
  // Own virtual methods of Mx-2.0.Mx.Action
1620
1620
 
@@ -1696,7 +1696,7 @@ class Action extends GObject.InitiallyUnowned {
1696
1696
  * @param activated_cb callback to connect to the activated signal
1697
1697
  * @returns a newly allocated #MxAction
1698
1698
  */
1699
- static new_full(name: string | null, display_name: string | null, activated_cb: ActionCallbackFunc | null): Action
1699
+ static new_full(name: string, display_name: string, activated_cb: ActionCallbackFunc | null): Action
1700
1700
  /**
1701
1701
  * Creates a new stateful action.
1702
1702
  *
@@ -1708,7 +1708,7 @@ class Action extends GObject.InitiallyUnowned {
1708
1708
  * @param state the initial state of the action
1709
1709
  * @returns a new #MxAction
1710
1710
  */
1711
- static new_stateful(name: string | null, parameter_type: GLib.VariantType | null, state: GLib.Variant): Action
1711
+ static new_stateful(name: string, parameter_type: GLib.VariantType | null, state: GLib.Variant): Action
1712
1712
  /**
1713
1713
  * Creates a new action with a parameter.
1714
1714
  *
@@ -1718,7 +1718,7 @@ class Action extends GObject.InitiallyUnowned {
1718
1718
  * @param parameter_type the type of parameter to the activate function
1719
1719
  * @returns a new #MxAction
1720
1720
  */
1721
- static new_with_parameter(name: string | null, parameter_type?: GLib.VariantType | null): Action
1721
+ static new_with_parameter(name: string, parameter_type?: GLib.VariantType | null): Action
1722
1722
  _init(config?: Action.ConstructorProperties): void
1723
1723
  }
1724
1724
 
@@ -2286,7 +2286,7 @@ interface Application extends Gio.ActionGroup, Gio.ActionMap {
2286
2286
  * @param window_title Title for the new window
2287
2287
  * @returns The newly created MxWindow
2288
2288
  */
2289
- create_window(window_title: string | null): Window
2289
+ create_window(window_title: string): Window
2290
2290
  /**
2291
2291
  * Retrieves all windows added to `application`.
2292
2292
  * @returns a list of #MxWindow<!-- -->s. The returned list is owned by @application and must not be altered.
@@ -2354,7 +2354,7 @@ class Application extends Gio.Application {
2354
2354
  * @param flags Application flags.
2355
2355
  * @returns the #MxApplication singleton.
2356
2356
  */
2357
- constructor(application_id: string | null, flags: Gio.ApplicationFlags)
2357
+ constructor(application_id: string, flags: Gio.ApplicationFlags)
2358
2358
  /**
2359
2359
  * Intialises everything needed to operate Clutter and use #MxApplication.
2360
2360
  * See clutter_init().
@@ -2363,7 +2363,7 @@ class Application extends Gio.Application {
2363
2363
  * @param flags Application flags.
2364
2364
  * @returns the #MxApplication singleton.
2365
2365
  */
2366
- static new(application_id: string | null, flags: Gio.ApplicationFlags): Application
2366
+ static new(application_id: string, flags: Gio.ApplicationFlags): Application
2367
2367
 
2368
2368
  // Overloads of new
2369
2369
 
@@ -3478,12 +3478,12 @@ interface Button extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Conta
3478
3478
  * @param name the name of the action to retrieve
3479
3479
  * @returns a #ClutterAction for the given name, or %NULL. The returned #ClutterAction is owned by the actor and it should not be unreferenced directly
3480
3480
  */
3481
- get_action(name: string | null): Clutter.Action
3481
+ get_action(name: string): Clutter.Action
3482
3482
  /**
3483
3483
  * Get the icon-name being used on the button.
3484
3484
  * @returns the icon-name. This must not be freed by the application. %NULL if no icon has been set
3485
3485
  */
3486
- get_icon_name(): string | null
3486
+ get_icon_name(): string
3487
3487
  /**
3488
3488
  * Retrieves the icon's relative position to the text.
3489
3489
  * @returns A #MxPosition
@@ -3508,7 +3508,7 @@ interface Button extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Conta
3508
3508
  * Get the text displayed on the button
3509
3509
  * @returns the text for the button. This must not be freed by the application
3510
3510
  */
3511
- get_label(): string | null
3511
+ get_label(): string
3512
3512
  /**
3513
3513
  * Retrieves the visibility of the text associated with the button's action.
3514
3514
  * @returns %TRUE if the text is visible, %FALSE otherwise
@@ -3559,7 +3559,7 @@ interface Button extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Conta
3559
3559
  * Sets the text displayed on the button
3560
3560
  * @param text text to set the label to
3561
3561
  */
3562
- set_label(text: string | null): void
3562
+ set_label(text: string): void
3563
3563
  /**
3564
3564
  * Sets the visibility of the text associated with the button's action.
3565
3565
  * @param visible %TRUE if the text should be visible
@@ -3938,7 +3938,7 @@ class Button extends Widget {
3938
3938
  * @param text text to set the label to
3939
3939
  * @returns a new #MxButton
3940
3940
  */
3941
- static new_with_label(text: string | null): Button
3941
+ static new_with_label(text: string): Button
3942
3942
  _init(config?: Button.ConstructorProperties): void
3943
3943
  }
3944
3944
 
@@ -4083,7 +4083,7 @@ interface Clipboard {
4083
4083
  * Sets text as the current contents of the clipboard.
4084
4084
  * @param text text to copy to the clipboard
4085
4085
  */
4086
- set_text(text: string | null): void
4086
+ set_text(text: string): void
4087
4087
 
4088
4088
  // Class property signals of Mx-2.0.Mx.Clipboard
4089
4089
 
@@ -4149,17 +4149,17 @@ interface ComboBox extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Con
4149
4149
  * Append an item to the combo box list
4150
4150
  * @param text name of the item
4151
4151
  */
4152
- append_text(text: string | null): void
4152
+ append_text(text: string): void
4153
4153
  /**
4154
4154
  * Get the name of the icon displayed in the combo box
4155
4155
  * @returns the text string of the name of the displayed icon, owned by the combo box, or %NULL if there is no active icon.
4156
4156
  */
4157
- get_active_icon_name(): string | null
4157
+ get_active_icon_name(): string
4158
4158
  /**
4159
4159
  * Get the text displayed in the combo box
4160
4160
  * @returns the text string, owned by the combo box
4161
4161
  */
4162
- get_active_text(): string | null
4162
+ get_active_text(): string
4163
4163
  /**
4164
4164
  * Get the index of the last item selected
4165
4165
  * @returns gint
@@ -4170,19 +4170,19 @@ interface ComboBox extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Con
4170
4170
  * @param position zero indexed position to insert the item at
4171
4171
  * @param text name of the item
4172
4172
  */
4173
- insert_text(position: number, text: string | null): void
4173
+ insert_text(position: number, text: string): void
4174
4174
  /**
4175
4175
  * Insert an item with text and an icon into the combo box list.
4176
4176
  * @param position zero indexed position to insert the item at
4177
4177
  * @param text name of the item
4178
4178
  * @param icon name of an icon from the icon theme
4179
4179
  */
4180
- insert_text_with_icon(position: number, text: string | null, icon: string | null): void
4180
+ insert_text_with_icon(position: number, text: string, icon: string): void
4181
4181
  /**
4182
4182
  * Prepend an item to the combo box list
4183
4183
  * @param text name of the item
4184
4184
  */
4185
- prepend_text(text: string | null): void
4185
+ prepend_text(text: string): void
4186
4186
  /**
4187
4187
  * Remove all the items of `box`
4188
4188
  */
@@ -4201,7 +4201,7 @@ interface ComboBox extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Con
4201
4201
  * Set the text displayed in the combo box
4202
4202
  * @param text text to display
4203
4203
  */
4204
- set_active_text(text: string | null): void
4204
+ set_active_text(text: string): void
4205
4205
  /**
4206
4206
  * Set the current combo box text from the item at `index` in the list.
4207
4207
  * @param index the index of the list item to set
@@ -5004,7 +5004,7 @@ interface Entry extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Contai
5004
5004
  * of the icon.
5005
5005
  * @returns the highlight filename suffix. This string is owned by the #MxEntry and should not be freed or modified.
5006
5006
  */
5007
- get_icon_highlight_suffix(): string | null
5007
+ get_icon_highlight_suffix(): string
5008
5008
  /**
5009
5009
  * Gets the character to display instead of the text.
5010
5010
  * @returns a character, or 0 if input should not be hidden.
@@ -5014,12 +5014,12 @@ interface Entry extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Contai
5014
5014
  * Gets the text that is displayed when the entry is empty and unfocused
5015
5015
  * @returns the current value of the placeholder property. This string is owned by the #MxEntry and should not be freed or modified.
5016
5016
  */
5017
- get_placeholder(): string | null
5017
+ get_placeholder(): string
5018
5018
  /**
5019
5019
  * Get the text displayed on the entry
5020
5020
  * @returns the text for the entry. This must not be freed by the application
5021
5021
  */
5022
- get_text(): string | null
5022
+ get_text(): string
5023
5023
  /**
5024
5024
  * Sets the suffix appended to the filename to use for the highlighted version
5025
5025
  * of the icon. e.g. if you have set your primay icon to "primary-icon.png"
@@ -5027,7 +5027,7 @@ interface Entry extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Contai
5027
5027
  * "primary-icon-highlight.png"
5028
5028
  * @param suffix the suffix to append to the filename for the highlight version
5029
5029
  */
5030
- set_icon_highlight_suffix(suffix: string | null): void
5030
+ set_icon_highlight_suffix(suffix: string): void
5031
5031
  /**
5032
5032
  * Sets the character to display instead of the text. Use 0 to display
5033
5033
  * the actual text.
@@ -5040,24 +5040,24 @@ interface Entry extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Contai
5040
5040
  * A value of NULL unsets the hint.
5041
5041
  * @param text text to set as the entry hint
5042
5042
  */
5043
- set_placeholder(text: string | null): void
5043
+ set_placeholder(text: string): void
5044
5044
  /**
5045
5045
  * Set the primary icon of the entry to the given filename
5046
5046
  * @param filename filename of an icon
5047
5047
  */
5048
- set_primary_icon_from_file(filename: string | null): void
5049
- set_primary_icon_tooltip_text(text: string | null): void
5048
+ set_primary_icon_from_file(filename: string): void
5049
+ set_primary_icon_tooltip_text(text: string): void
5050
5050
  /**
5051
5051
  * Set the primary icon of the entry to the given filename
5052
5052
  * @param filename filename of an icon
5053
5053
  */
5054
- set_secondary_icon_from_file(filename: string | null): void
5055
- set_secondary_icon_tooltip_text(text: string | null): void
5054
+ set_secondary_icon_from_file(filename: string): void
5055
+ set_secondary_icon_tooltip_text(text: string): void
5056
5056
  /**
5057
5057
  * Sets the text displayed on the entry
5058
5058
  * @param text text to set the entry to
5059
5059
  */
5060
- set_text(text: string | null): void
5060
+ set_text(text: string): void
5061
5061
 
5062
5062
  // Conflicting methods
5063
5063
 
@@ -5423,7 +5423,7 @@ class Entry extends Widget {
5423
5423
  * @param text text to set the entry to
5424
5424
  * @returns a new #MxEntry
5425
5425
  */
5426
- static new_with_text(text: string | null): Entry
5426
+ static new_with_text(text: string): Entry
5427
5427
  _init(config?: Entry.ConstructorProperties): void
5428
5428
  }
5429
5429
 
@@ -5475,7 +5475,7 @@ interface Expander extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Con
5475
5475
  * Sets the text displayed as the title of the expander
5476
5476
  * @param label string to set as the expander label
5477
5477
  */
5478
- set_label(label: string | null): void
5478
+ set_label(label: string): void
5479
5479
 
5480
5480
  // Conflicting methods
5481
5481
 
@@ -7213,9 +7213,9 @@ interface Icon extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Contain
7213
7213
 
7214
7214
  // Owm methods of Mx-2.0.Mx.Icon
7215
7215
 
7216
- get_icon_name(): string | null
7216
+ get_icon_name(): string
7217
7217
  get_icon_size(): number
7218
- set_icon_name(icon_name: string | null): void
7218
+ set_icon_name(icon_name: string): void
7219
7219
  set_icon_size(size: number): void
7220
7220
 
7221
7221
  // Conflicting methods
@@ -7587,22 +7587,22 @@ interface IconTheme {
7587
7587
  * Get the value of the #MxIconTheme:theme-name property.
7588
7588
  * @returns the current value of the "theme-name" property.
7589
7589
  */
7590
- get_theme_name(): string | null
7591
- has_icon(icon_name: string | null): boolean
7590
+ get_theme_name(): string
7591
+ has_icon(icon_name: string): boolean
7592
7592
  /**
7593
7593
  * If the icon is available, returns a #CoglHandle of the icon.
7594
7594
  * @param icon_name The name of the icon
7595
7595
  * @param size The desired size of the icon
7596
7596
  * @returns a #CoglHandle of the icon, or %NULL.
7597
7597
  */
7598
- lookup(icon_name: string | null, size: number): Cogl.Handle
7598
+ lookup(icon_name: string, size: number): Cogl.Handle
7599
7599
  /**
7600
7600
  * If the icon is available, returns a #ClutterTexture of the icon.
7601
7601
  * @param icon_name The name of the icon
7602
7602
  * @param size The desired size of the icon
7603
7603
  * @returns a #ClutterTexture of the icon, or %NULL.
7604
7604
  */
7605
- lookup_texture(icon_name: string | null, size: number): Clutter.Texture
7605
+ lookup_texture(icon_name: string, size: number): Clutter.Texture
7606
7606
  /**
7607
7607
  * Sets the directories the #MxIconTheme will search in to find icons.
7608
7608
  * By default, it will look in the default system and local icon
@@ -7620,7 +7620,7 @@ interface IconTheme {
7620
7620
  * icon theme, this function can be called with a %NULL `theme_name` argument.
7621
7621
  * @param theme_name the name of an icon theme to load, or %NULL
7622
7622
  */
7623
- set_theme_name(theme_name: string | null): void
7623
+ set_theme_name(theme_name: string): void
7624
7624
 
7625
7625
  // Class property signals of Mx-2.0.Mx.IconTheme
7626
7626
 
@@ -7840,7 +7840,7 @@ interface Image extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Contai
7840
7840
  * @param filename Filename to read the file from
7841
7841
  * @returns #TRUE if the image was successfully updated
7842
7842
  */
7843
- set_from_file(filename: string | null): boolean
7843
+ set_from_file(filename: string): boolean
7844
7844
  /**
7845
7845
  * Set the image data from an image file, and scale the image during loading.
7846
7846
  * In case of failure, #FALSE is returned and `error` is set. The aspect ratio
@@ -7850,7 +7850,7 @@ interface Image extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Contai
7850
7850
  * @param height Height to scale the image to, or -1
7851
7851
  * @returns #TRUE if the image was successfully updated
7852
7852
  */
7853
- set_from_file_at_size(filename: string | null, width: number, height: number): boolean
7853
+ set_from_file_at_size(filename: string, width: number, height: number): boolean
7854
7854
  /**
7855
7855
  * Set the MxImage:image-rotation property.
7856
7856
  * @param rotation Rotation angle in degrees
@@ -8295,7 +8295,7 @@ interface ItemView extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Con
8295
8295
  * @param attribute Name of the attribute
8296
8296
  * @param column Column number
8297
8297
  */
8298
- add_attribute(attribute: string | null, column: number): void
8298
+ add_attribute(attribute: string, column: number): void
8299
8299
  /**
8300
8300
  * Freeze the view. This means that the view will not act on changes to the
8301
8301
  * model until it is thawed. Call #mx_item_view_thaw to thaw the view
@@ -9380,7 +9380,7 @@ interface Label extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Contai
9380
9380
  * Get the text displayed on the label
9381
9381
  * @returns the text for the label. This must not be freed by the application
9382
9382
  */
9383
- get_text(): string | null
9383
+ get_text(): string
9384
9384
  /**
9385
9385
  * Determines whether the text of the label is being treated as Pango markup.
9386
9386
  * @returns %TRUE if the text of the label is treated as Pango markup, %FALSE otherwise.
@@ -9433,7 +9433,7 @@ interface Label extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Contai
9433
9433
  * Sets the text displayed on the label
9434
9434
  * @param text text to set the label to
9435
9435
  */
9436
- set_text(text: string | null): void
9436
+ set_text(text: string): void
9437
9437
  /**
9438
9438
  * Sets whether the text of the label should be treated as Pango markup.
9439
9439
  * @param use_markup %TRUE to use Pango markup, %FALSE otherwise
@@ -9811,7 +9811,7 @@ class Label extends Widget {
9811
9811
  * @param text text to set the label to
9812
9812
  * @returns a new #MxLabel
9813
9813
  */
9814
- static new_with_text(text: string | null): Label
9814
+ static new_with_text(text: string): Label
9815
9815
  _init(config?: Label.ConstructorProperties): void
9816
9816
  }
9817
9817
 
@@ -9848,7 +9848,7 @@ interface ListView extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Con
9848
9848
  * @param attribute Name of the attribute
9849
9849
  * @param column Column number
9850
9850
  */
9851
- add_attribute(attribute: string | null, column: number): void
9851
+ add_attribute(attribute: string, column: number): void
9852
9852
  /**
9853
9853
  * Freeze the view. This means that the view will not act on changes to the
9854
9854
  * model until it is thawed. Call #mx_list_view_thaw to thaw the view.
@@ -11458,11 +11458,11 @@ interface PathBar extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Cont
11458
11458
  * @returns MxEntry *
11459
11459
  */
11460
11460
  get_entry(): Entry
11461
- get_label(level: number): string | null
11461
+ get_label(level: number): string
11462
11462
  get_level(): number
11463
- get_text(): string | null
11463
+ get_text(): string
11464
11464
  pop(): number
11465
- push(name: string | null): number
11465
+ push(name: string): number
11466
11466
  /**
11467
11467
  * Set theh value of the #MxPathBar:clear-on-change property
11468
11468
  * @param clear_on_change the new value of the property
@@ -11478,12 +11478,12 @@ interface PathBar extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Cont
11478
11478
  * @param level A #gint
11479
11479
  * @param label A #gchar
11480
11480
  */
11481
- set_label(level: number, label: string | null): void
11481
+ set_label(level: number, label: string): void
11482
11482
  /**
11483
11483
  * Set the text in the editable area of the #MxPathBar
11484
11484
  * @param text string to set the editable text to.
11485
11485
  */
11486
- set_text(text: string | null): void
11486
+ set_text(text: string): void
11487
11487
 
11488
11488
  // Conflicting methods
11489
11489
 
@@ -14367,7 +14367,7 @@ interface Style {
14367
14367
  * @param property_name the name of the property to get
14368
14368
  * @param value return location for the property value
14369
14369
  */
14370
- get_property(property_name: string | null, value: any): void
14370
+ get_property(property_name: string, value: any): void
14371
14371
  /**
14372
14372
  * Load style information from `data,` using `id` to identify the stylesheet.
14373
14373
  * `id` is usually the file name of the style sheet, which is used in the search
@@ -14376,14 +14376,14 @@ interface Style {
14376
14376
  * @param data CSS data to parse
14377
14377
  * @returns TRUE if the style information was loaded successfully. Returns FALSE on error.
14378
14378
  */
14379
- load_from_data(id: string | null, data: string | null): boolean
14379
+ load_from_data(id: string, data: string): boolean
14380
14380
  /**
14381
14381
  * Load style information from the specified file.
14382
14382
  * @param filename filename of the style sheet to load
14383
14383
  * @returns TRUE if the style information was loaded successfully. Returns FALSE on error.
14384
14384
  */
14385
- load_from_file(filename: string | null): boolean
14386
- load_from_resource(path: string | null): boolean
14385
+ load_from_file(filename: string): boolean
14386
+ load_from_resource(path: string): boolean
14387
14387
 
14388
14388
  // Own virtual methods of Mx-2.0.Mx.Style
14389
14389
 
@@ -15113,7 +15113,7 @@ interface TextureCache {
15113
15113
  * @param uri A URI or path to an image file
15114
15114
  * @returns %TRUE if the image exists, %FALSE otherwise
15115
15115
  */
15116
- contains(uri: string | null): boolean
15116
+ contains(uri: string): boolean
15117
15117
  /**
15118
15118
  * Checks whether there are any textures associated with the given URI by
15119
15119
  * the given identifier.
@@ -15121,14 +15121,14 @@ interface TextureCache {
15121
15121
  * @param ident A unique identifier
15122
15122
  * @returns %TRUE if the data exists, %FALSE otherwise
15123
15123
  */
15124
- contains_meta(uri: string | null, ident: any): boolean
15124
+ contains_meta(uri: string, ident: any): boolean
15125
15125
  /**
15126
15126
  * This is a wrapper around mx_texture_cache_get_texture() which returns
15127
15127
  * a ClutterActor.
15128
15128
  * @param uri A URI or path to a image file
15129
15129
  * @returns a newly created ClutterTexture
15130
15130
  */
15131
- get_actor(uri: string | null): Clutter.Actor
15131
+ get_actor(uri: string): Clutter.Actor
15132
15132
  /**
15133
15133
  * Create a #CoglHandle representing a texture of the specified image. Adds
15134
15134
  * the image to the cache if the image had not been previously loaded.
@@ -15137,7 +15137,7 @@ interface TextureCache {
15137
15137
  * @param uri A URI or path to an image file
15138
15138
  * @returns a #CoglHandle to the cached texture
15139
15139
  */
15140
- get_cogl_texture(uri: string | null): Cogl.Handle
15140
+ get_cogl_texture(uri: string): Cogl.Handle
15141
15141
  /**
15142
15142
  * Retrieves the #CoglHandle of the previously added image associated
15143
15143
  * with the given unique identifier.
@@ -15147,7 +15147,7 @@ interface TextureCache {
15147
15147
  * @param ident A unique identifier
15148
15148
  * @returns A #CoglHandle to a texture, with an added reference. %NULL if no image was found.
15149
15149
  */
15150
- get_meta_cogl_texture(uri: string | null, ident: any): Cogl.Handle
15150
+ get_meta_cogl_texture(uri: string, ident: any): Cogl.Handle
15151
15151
  /**
15152
15152
  * Create a new ClutterTexture using the previously added image associated
15153
15153
  * with the given unique identifier.
@@ -15157,7 +15157,7 @@ interface TextureCache {
15157
15157
  * @param ident A unique identifier
15158
15158
  * @returns A newly allocated #ClutterTexture, or %NULL if no image was found
15159
15159
  */
15160
- get_meta_texture(uri: string | null, ident: any): Clutter.Texture
15160
+ get_meta_texture(uri: string, ident: any): Clutter.Texture
15161
15161
  /**
15162
15162
  * Returns the number of items in the texture cache
15163
15163
  * @returns the current size of the cache
@@ -15171,7 +15171,7 @@ interface TextureCache {
15171
15171
  * @param uri A URI or path to a image file
15172
15172
  * @returns a newly created ClutterTexture
15173
15173
  */
15174
- get_texture(uri: string | null): Clutter.Texture
15174
+ get_texture(uri: string): Clutter.Texture
15175
15175
  /**
15176
15176
  * Inserts a texture into the texture cache. This can be useful if you
15177
15177
  * want to cache a texture from a custom or unhandled URI type, or you
@@ -15182,7 +15182,7 @@ interface TextureCache {
15182
15182
  * @param uri A URI or local file path
15183
15183
  * @param texture A #CoglHandle to a texture
15184
15184
  */
15185
- insert(uri: string | null, texture: Cogl.Handle): void
15185
+ insert(uri: string, texture: Cogl.Handle): void
15186
15186
  /**
15187
15187
  * Inserts a texture that's associated with a URI into the cache.
15188
15188
  * If the metadata already exists for this URI, it will be replaced.
@@ -15194,13 +15194,13 @@ interface TextureCache {
15194
15194
  * @param texture A #CoglHandle to a texture
15195
15195
  * @param destroy_func An optional destruction function for `ident`
15196
15196
  */
15197
- insert_meta(uri: string | null, ident: any, texture: Cogl.Handle, destroy_func: GLib.DestroyNotify): void
15198
- load_cache(filename: string | null): void
15197
+ insert_meta(uri: string, ident: any, texture: Cogl.Handle, destroy_func: GLib.DestroyNotify): void
15198
+ load_cache(filename: string): void
15199
15199
 
15200
15200
  // Own virtual methods of Mx-2.0.Mx.TextureCache
15201
15201
 
15202
15202
  vfunc_error_loading(error: GLib.Error): void
15203
- vfunc_loaded(uri: string | null, texture: Clutter.Texture): void
15203
+ vfunc_loaded(uri: string, texture: Clutter.Texture): void
15204
15204
 
15205
15205
  // Class property signals of Mx-2.0.Mx.TextureCache
15206
15206
 
@@ -16393,7 +16393,7 @@ interface Tooltip extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Cont
16393
16393
  * Get the text displayed on the tooltip
16394
16394
  * @returns the text for the tooltip. This must not be freed by the application
16395
16395
  */
16396
- get_text(): string | null
16396
+ get_text(): string
16397
16397
  /**
16398
16398
  * Retrieve the area on the stage that the tooltip currently applies to
16399
16399
  * @returns the #ClutterGeometry, owned by the tooltip which must not be freed by the application.
@@ -16407,7 +16407,7 @@ interface Tooltip extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Cont
16407
16407
  * Sets the text displayed on the tooltip
16408
16408
  * @param text text to set the label to
16409
16409
  */
16410
- set_text(text: string | null): void
16410
+ set_text(text: string): void
16411
16411
  /**
16412
16412
  * Set the area on the stage that the tooltip applies to.
16413
16413
  * @param area A #ClutterGeometry
@@ -17260,7 +17260,7 @@ interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Conta
17260
17260
  * Get the current tooltip string
17261
17261
  * @returns The current tooltip string, owned by the #MxWidget
17262
17262
  */
17263
- get_tooltip_text(): string | null
17263
+ get_tooltip_text(): string
17264
17264
  /**
17265
17265
  * Hide the tooltip for `widget`
17266
17266
  */
@@ -17299,7 +17299,7 @@ interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutter.Conta
17299
17299
  * %FALSE.
17300
17300
  * @param text text to set as the tooltip
17301
17301
  */
17302
- set_tooltip_text(text: string | null): void
17302
+ set_tooltip_text(text: string): void
17303
17303
  /**
17304
17304
  * Show the tooltip for `widget`
17305
17305
  */
@@ -17705,7 +17705,7 @@ interface Window {
17705
17705
  * set, or the icon was set with mx_window_set_icon_from_cogl_texture().
17706
17706
  * @returns The window icon name, or %NULL
17707
17707
  */
17708
- get_icon_name(): string | null
17708
+ get_icon_name(): string
17709
17709
  /**
17710
17710
  * Determines if the window is in small-screen mode.
17711
17711
  * See mx_window_set_small_screen().
@@ -17716,7 +17716,7 @@ interface Window {
17716
17716
  * Retrieves the title used for the window.
17717
17717
  * @returns The title used for the window
17718
17718
  */
17719
- get_title(): string | null
17719
+ get_title(): string
17720
17720
  /**
17721
17721
  * Retrieves the toolbar associated with the window.
17722
17722
  * @returns A #MxToolbar
@@ -17794,7 +17794,7 @@ interface Window {
17794
17794
  * window-system specific.
17795
17795
  * @param title A string to use for the window title name
17796
17796
  */
17797
- set_title(title: string | null): void
17797
+ set_title(title: string): void
17798
17798
  /**
17799
17799
  * Sets the toolbar associated with the window.
17800
17800
  * @param toolbar
@@ -18085,7 +18085,7 @@ class BorderImage {
18085
18085
 
18086
18086
  // Constructors of Mx-2.0.Mx.BorderImage
18087
18087
 
18088
- static set_from_string(value: any, str: string | null, filename: string | null): void
18088
+ static set_from_string(value: any, str: string, filename: string): void
18089
18089
  }
18090
18090
 
18091
18091
  interface BoxLayoutChildClass {
@@ -19024,10 +19024,10 @@ interface StylableIface {
19024
19024
 
19025
19025
  get_style: (stylable: Stylable) => Style
19026
19026
  set_style: (stylable: Stylable, style: Style) => void
19027
- get_style_class: (stylable: Stylable) => string | null
19028
- set_style_class: (stylable: Stylable, style_class: string | null) => void
19029
- get_style_pseudo_class: (stylable: Stylable) => string | null
19030
- set_style_pseudo_class: (stylable: Stylable, pseudo_class: string | null) => void
19027
+ get_style_class: (stylable: Stylable) => string
19028
+ set_style_class: (stylable: Stylable, style_class: string) => void
19029
+ get_style_pseudo_class: (stylable: Stylable) => string
19030
+ set_style_pseudo_class: (stylable: Stylable, pseudo_class: string) => void
19031
19031
  style_changed: (stylable: Stylable, flags: StyleChangedFlags) => void
19032
19032
  }
19033
19033
 
@@ -19166,7 +19166,7 @@ interface TextureCacheClass {
19166
19166
  // Own fields of Mx-2.0.Mx.TextureCacheClass
19167
19167
 
19168
19168
  parent_class: GObject.ObjectClass
19169
- loaded: (self: TextureCache, uri: string | null, texture: Clutter.Texture) => void
19169
+ loaded: (self: TextureCache, uri: string, texture: Clutter.Texture) => void
19170
19170
  error_loading: (self: TextureCache, error: GLib.Error) => void
19171
19171
  }
19172
19172