@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.cts CHANGED
@@ -287,10 +287,10 @@ export const VERSION_HEX: number
287
287
  * The full version of the Mx library, in string form (suited for
288
288
  * string concatenation)
289
289
  */
290
- export const VERSION_S: string | null
290
+ export const VERSION_S: string
291
291
  export function actor_box_clamp_to_pixels(box: Clutter.ActorBox): void
292
292
  export function allocate_align_fill(child: Clutter.Actor, childbox: Clutter.ActorBox, x_alignment: Align, y_alignment: Align, x_fill: boolean, y_fill: boolean): void
293
- export function border_image_set_from_string(value: any, str: string | null, filename: string | null): void
293
+ export function border_image_set_from_string(value: any, str: string, filename: string): void
294
294
  /**
295
295
  * Transforms a focus direction to a focus hint. This is a convenience
296
296
  * function for actors that implement the #MxFocusable interface, to
@@ -308,7 +308,7 @@ export function border_image_set_from_string(value: any, str: string | null, fil
308
308
  * @returns A #MxFocusHint
309
309
  */
310
310
  export function focus_hint_from_direction(direction: FocusDirection): FocusHint
311
- export function font_weight_set_from_string(value: any, str: string | null): void
311
+ export function font_weight_set_from_string(value: any, str: string): void
312
312
  export function image_error_quark(): GLib.Quark
313
313
  /**
314
314
  * Initializes internationalization support for Mx. If MxApplication is
@@ -339,7 +339,7 @@ export interface ActionCallbackFunc {
339
339
  * @param text text from the clipboard
340
340
  */
341
341
  export interface ClipboardCallbackFunc {
342
- (clipboard: Clipboard, text: string | null): void
342
+ (clipboard: Clipboard, text: string): void
343
343
  }
344
344
  export module Draggable {
345
345
 
@@ -1308,14 +1308,14 @@ export interface Stylable {
1308
1308
  * @param property_name the name of the property to find
1309
1309
  * @returns a #GParamSpec for the given property, or %NULL if no property with that name was found
1310
1310
  */
1311
- find_property(property_name: string | null): GObject.ParamSpec
1311
+ find_property(property_name: string): GObject.ParamSpec
1312
1312
  /**
1313
1313
  * Query `stylable` for the default value of property `property_name` and
1314
1314
  * fill `value_out` with the result.
1315
1315
  * @param property_name name of the property to query
1316
1316
  * @returns %TRUE if property @property_name exists and the default value has been returned.
1317
1317
  */
1318
- get_default_value(property_name: string | null): [ /* returnType */ boolean, /* value_out */ any ]
1318
+ get_default_value(property_name: string): [ /* returnType */ boolean, /* value_out */ any ]
1319
1319
  /**
1320
1320
  * Retrieves the #MxStyle used by `stylable`. This function does not
1321
1321
  * alter the reference count of the returned object.
@@ -1326,19 +1326,19 @@ export interface Stylable {
1326
1326
  * Get the current style class name
1327
1327
  * @returns the class name string. The string is owned by the #MxWidget and should not be modified or freed.
1328
1328
  */
1329
- get_style_class(): string | null
1329
+ get_style_class(): string
1330
1330
  /**
1331
1331
  * Retrieves the value of `property_name` for `stylable,` and puts it
1332
1332
  * into `value`.
1333
1333
  * @param property_name the name of the property
1334
1334
  */
1335
- get_style_property(property_name: string | null): /* value */ any
1335
+ get_style_property(property_name: string): /* value */ any
1336
1336
  /**
1337
1337
  * Get the current style pseudo class. This can contain multiple pseudo class
1338
1338
  * names, separated by ':'.
1339
1339
  * @returns the pseudo class string. The string is owned by the #MxWidget and should not be modified or freed.
1340
1340
  */
1341
- get_style_pseudo_class(): string | null
1341
+ get_style_pseudo_class(): string
1342
1342
  /**
1343
1343
  * Retrieves all the #GParamSpec<!-- -->s installed by `stylable`.
1344
1344
  * @returns an array of #GParamSpec<!-- -->s. Free it with g_free() when done.
@@ -1358,13 +1358,13 @@ export interface Stylable {
1358
1358
  * Set the style class name
1359
1359
  * @param style_class a new style class string
1360
1360
  */
1361
- set_style_class(style_class: string | null): void
1361
+ set_style_class(style_class: string): void
1362
1362
  /**
1363
1363
  * Set the style pseudo class. The string can contain multiple pseudo class
1364
1364
  * names, separated by ':'.
1365
1365
  * @param pseudo_class a new pseudo class string
1366
1366
  */
1367
- set_style_pseudo_class(pseudo_class: string | null): void
1367
+ set_style_pseudo_class(pseudo_class: string): void
1368
1368
  /**
1369
1369
  * Emit the "style-changed" signal on `stylable` to notify it that one or more
1370
1370
  * of the style properties has changed.
@@ -1380,20 +1380,20 @@ export interface Stylable {
1380
1380
  * #MxStylable:style-pseudo-class property.
1381
1381
  * @param new_class A pseudo-class name to add
1382
1382
  */
1383
- style_pseudo_class_add(new_class: string | null): void
1383
+ style_pseudo_class_add(new_class: string): void
1384
1384
  /**
1385
1385
  * Check if the given pseudo-class name is contained in the list of
1386
1386
  * set pseudo classes on this #MxStylable object.
1387
1387
  * @param pseudo_class A pseudo-class name
1388
1388
  * @returns %TRUE if the given pseudo-class is set, %FALSE otherwise
1389
1389
  */
1390
- style_pseudo_class_contains(pseudo_class: string | null): boolean
1390
+ style_pseudo_class_contains(pseudo_class: string): boolean
1391
1391
  /**
1392
1392
  * Remove the specified pseudo class name from the list of pseudo classes
1393
1393
  * contained in the #MxStylable:style-pseudo-class property.
1394
1394
  * @param remove_class A pseudo class name to remove
1395
1395
  */
1396
- style_pseudo_class_remove(remove_class: string | null): void
1396
+ style_pseudo_class_remove(remove_class: string): void
1397
1397
 
1398
1398
  // Own virtual methods of Mx-2.0.Mx.Stylable
1399
1399
 
@@ -1409,14 +1409,14 @@ export interface Stylable {
1409
1409
  * @virtual
1410
1410
  * @returns the class name string. The string is owned by the #MxWidget and should not be modified or freed.
1411
1411
  */
1412
- vfunc_get_style_class(): string | null
1412
+ vfunc_get_style_class(): string
1413
1413
  /**
1414
1414
  * Get the current style pseudo class. This can contain multiple pseudo class
1415
1415
  * names, separated by ':'.
1416
1416
  * @virtual
1417
1417
  * @returns the pseudo class string. The string is owned by the #MxWidget and should not be modified or freed.
1418
1418
  */
1419
- vfunc_get_style_pseudo_class(): string | null
1419
+ vfunc_get_style_pseudo_class(): string
1420
1420
  /**
1421
1421
  * Sets `style` as the new #MxStyle to be used by `stylable`.
1422
1422
  *
@@ -1433,14 +1433,14 @@ export interface Stylable {
1433
1433
  * @virtual
1434
1434
  * @param style_class a new style class string
1435
1435
  */
1436
- vfunc_set_style_class(style_class: string | null): void
1436
+ vfunc_set_style_class(style_class: string): void
1437
1437
  /**
1438
1438
  * Set the style pseudo class. The string can contain multiple pseudo class
1439
1439
  * names, separated by ':'.
1440
1440
  * @virtual
1441
1441
  * @param pseudo_class a new pseudo class string
1442
1442
  */
1443
- vfunc_set_style_pseudo_class(pseudo_class: string | null): void
1443
+ vfunc_set_style_pseudo_class(pseudo_class: string): void
1444
1444
  /**
1445
1445
  * Emit the "style-changed" signal on `stylable` to notify it that one or more
1446
1446
  * of the style properties has changed.
@@ -1582,17 +1582,17 @@ export interface Action extends Gio.Action {
1582
1582
  * Get the display name of the action
1583
1583
  * @returns display-name of the action, owned by MxAction
1584
1584
  */
1585
- get_display_name(): string | null
1585
+ get_display_name(): string
1586
1586
  /**
1587
1587
  * Get the icon of the action
1588
1588
  * @returns icon of the action, owned by MxAction
1589
1589
  */
1590
- get_icon(): string | null
1590
+ get_icon(): string
1591
1591
  /**
1592
1592
  * Get the name of the action
1593
1593
  * @returns name of the action, owned by MxAction
1594
1594
  */
1595
- get_name(): string | null
1595
+ get_name(): string
1596
1596
  /**
1597
1597
  * Set the value of the active property
1598
1598
  * @param active the value to set
@@ -1602,17 +1602,17 @@ export interface Action extends Gio.Action {
1602
1602
  * Set the name of the action to display to the user
1603
1603
  * @param name new display name to set
1604
1604
  */
1605
- set_display_name(name: string | null): void
1605
+ set_display_name(name: string): void
1606
1606
  /**
1607
1607
  * The icon to be used in a visual representation of an action.
1608
1608
  * @param name new icon to set
1609
1609
  */
1610
- set_icon(name: string | null): void
1610
+ set_icon(name: string): void
1611
1611
  /**
1612
1612
  * Set the name of the action
1613
1613
  * @param name new name to set
1614
1614
  */
1615
- set_name(name: string | null): void
1615
+ set_name(name: string): void
1616
1616
 
1617
1617
  // Own virtual methods of Mx-2.0.Mx.Action
1618
1618
 
@@ -1694,7 +1694,7 @@ export class Action extends GObject.InitiallyUnowned {
1694
1694
  * @param activated_cb callback to connect to the activated signal
1695
1695
  * @returns a newly allocated #MxAction
1696
1696
  */
1697
- static new_full(name: string | null, display_name: string | null, activated_cb: ActionCallbackFunc | null): Action
1697
+ static new_full(name: string, display_name: string, activated_cb: ActionCallbackFunc | null): Action
1698
1698
  /**
1699
1699
  * Creates a new stateful action.
1700
1700
  *
@@ -1706,7 +1706,7 @@ export class Action extends GObject.InitiallyUnowned {
1706
1706
  * @param state the initial state of the action
1707
1707
  * @returns a new #MxAction
1708
1708
  */
1709
- static new_stateful(name: string | null, parameter_type: GLib.VariantType | null, state: GLib.Variant): Action
1709
+ static new_stateful(name: string, parameter_type: GLib.VariantType | null, state: GLib.Variant): Action
1710
1710
  /**
1711
1711
  * Creates a new action with a parameter.
1712
1712
  *
@@ -1716,7 +1716,7 @@ export class Action extends GObject.InitiallyUnowned {
1716
1716
  * @param parameter_type the type of parameter to the activate function
1717
1717
  * @returns a new #MxAction
1718
1718
  */
1719
- static new_with_parameter(name: string | null, parameter_type?: GLib.VariantType | null): Action
1719
+ static new_with_parameter(name: string, parameter_type?: GLib.VariantType | null): Action
1720
1720
  _init(config?: Action.ConstructorProperties): void
1721
1721
  }
1722
1722
 
@@ -2284,7 +2284,7 @@ export interface Application extends Gio.ActionGroup, Gio.ActionMap {
2284
2284
  * @param window_title Title for the new window
2285
2285
  * @returns The newly created MxWindow
2286
2286
  */
2287
- create_window(window_title: string | null): Window
2287
+ create_window(window_title: string): Window
2288
2288
  /**
2289
2289
  * Retrieves all windows added to `application`.
2290
2290
  * @returns a list of #MxWindow<!-- -->s. The returned list is owned by @application and must not be altered.
@@ -2352,7 +2352,7 @@ export class Application extends Gio.Application {
2352
2352
  * @param flags Application flags.
2353
2353
  * @returns the #MxApplication singleton.
2354
2354
  */
2355
- constructor(application_id: string | null, flags: Gio.ApplicationFlags)
2355
+ constructor(application_id: string, flags: Gio.ApplicationFlags)
2356
2356
  /**
2357
2357
  * Intialises everything needed to operate Clutter and use #MxApplication.
2358
2358
  * See clutter_init().
@@ -2361,7 +2361,7 @@ export class Application extends Gio.Application {
2361
2361
  * @param flags Application flags.
2362
2362
  * @returns the #MxApplication singleton.
2363
2363
  */
2364
- static new(application_id: string | null, flags: Gio.ApplicationFlags): Application
2364
+ static new(application_id: string, flags: Gio.ApplicationFlags): Application
2365
2365
 
2366
2366
  // Overloads of new
2367
2367
 
@@ -3476,12 +3476,12 @@ export interface Button extends Atk.ImplementorIface, Clutter.Animatable, Clutte
3476
3476
  * @param name the name of the action to retrieve
3477
3477
  * @returns a #ClutterAction for the given name, or %NULL. The returned #ClutterAction is owned by the actor and it should not be unreferenced directly
3478
3478
  */
3479
- get_action(name: string | null): Clutter.Action
3479
+ get_action(name: string): Clutter.Action
3480
3480
  /**
3481
3481
  * Get the icon-name being used on the button.
3482
3482
  * @returns the icon-name. This must not be freed by the application. %NULL if no icon has been set
3483
3483
  */
3484
- get_icon_name(): string | null
3484
+ get_icon_name(): string
3485
3485
  /**
3486
3486
  * Retrieves the icon's relative position to the text.
3487
3487
  * @returns A #MxPosition
@@ -3506,7 +3506,7 @@ export interface Button extends Atk.ImplementorIface, Clutter.Animatable, Clutte
3506
3506
  * Get the text displayed on the button
3507
3507
  * @returns the text for the button. This must not be freed by the application
3508
3508
  */
3509
- get_label(): string | null
3509
+ get_label(): string
3510
3510
  /**
3511
3511
  * Retrieves the visibility of the text associated with the button's action.
3512
3512
  * @returns %TRUE if the text is visible, %FALSE otherwise
@@ -3557,7 +3557,7 @@ export interface Button extends Atk.ImplementorIface, Clutter.Animatable, Clutte
3557
3557
  * Sets the text displayed on the button
3558
3558
  * @param text text to set the label to
3559
3559
  */
3560
- set_label(text: string | null): void
3560
+ set_label(text: string): void
3561
3561
  /**
3562
3562
  * Sets the visibility of the text associated with the button's action.
3563
3563
  * @param visible %TRUE if the text should be visible
@@ -3936,7 +3936,7 @@ export class Button extends Widget {
3936
3936
  * @param text text to set the label to
3937
3937
  * @returns a new #MxButton
3938
3938
  */
3939
- static new_with_label(text: string | null): Button
3939
+ static new_with_label(text: string): Button
3940
3940
  _init(config?: Button.ConstructorProperties): void
3941
3941
  }
3942
3942
 
@@ -4081,7 +4081,7 @@ export interface Clipboard {
4081
4081
  * Sets text as the current contents of the clipboard.
4082
4082
  * @param text text to copy to the clipboard
4083
4083
  */
4084
- set_text(text: string | null): void
4084
+ set_text(text: string): void
4085
4085
 
4086
4086
  // Class property signals of Mx-2.0.Mx.Clipboard
4087
4087
 
@@ -4147,17 +4147,17 @@ export interface ComboBox extends Atk.ImplementorIface, Clutter.Animatable, Clut
4147
4147
  * Append an item to the combo box list
4148
4148
  * @param text name of the item
4149
4149
  */
4150
- append_text(text: string | null): void
4150
+ append_text(text: string): void
4151
4151
  /**
4152
4152
  * Get the name of the icon displayed in the combo box
4153
4153
  * @returns the text string of the name of the displayed icon, owned by the combo box, or %NULL if there is no active icon.
4154
4154
  */
4155
- get_active_icon_name(): string | null
4155
+ get_active_icon_name(): string
4156
4156
  /**
4157
4157
  * Get the text displayed in the combo box
4158
4158
  * @returns the text string, owned by the combo box
4159
4159
  */
4160
- get_active_text(): string | null
4160
+ get_active_text(): string
4161
4161
  /**
4162
4162
  * Get the index of the last item selected
4163
4163
  * @returns gint
@@ -4168,19 +4168,19 @@ export interface ComboBox extends Atk.ImplementorIface, Clutter.Animatable, Clut
4168
4168
  * @param position zero indexed position to insert the item at
4169
4169
  * @param text name of the item
4170
4170
  */
4171
- insert_text(position: number, text: string | null): void
4171
+ insert_text(position: number, text: string): void
4172
4172
  /**
4173
4173
  * Insert an item with text and an icon into the combo box list.
4174
4174
  * @param position zero indexed position to insert the item at
4175
4175
  * @param text name of the item
4176
4176
  * @param icon name of an icon from the icon theme
4177
4177
  */
4178
- insert_text_with_icon(position: number, text: string | null, icon: string | null): void
4178
+ insert_text_with_icon(position: number, text: string, icon: string): void
4179
4179
  /**
4180
4180
  * Prepend an item to the combo box list
4181
4181
  * @param text name of the item
4182
4182
  */
4183
- prepend_text(text: string | null): void
4183
+ prepend_text(text: string): void
4184
4184
  /**
4185
4185
  * Remove all the items of `box`
4186
4186
  */
@@ -4199,7 +4199,7 @@ export interface ComboBox extends Atk.ImplementorIface, Clutter.Animatable, Clut
4199
4199
  * Set the text displayed in the combo box
4200
4200
  * @param text text to display
4201
4201
  */
4202
- set_active_text(text: string | null): void
4202
+ set_active_text(text: string): void
4203
4203
  /**
4204
4204
  * Set the current combo box text from the item at `index` in the list.
4205
4205
  * @param index the index of the list item to set
@@ -5002,7 +5002,7 @@ export interface Entry extends Atk.ImplementorIface, Clutter.Animatable, Clutter
5002
5002
  * of the icon.
5003
5003
  * @returns the highlight filename suffix. This string is owned by the #MxEntry and should not be freed or modified.
5004
5004
  */
5005
- get_icon_highlight_suffix(): string | null
5005
+ get_icon_highlight_suffix(): string
5006
5006
  /**
5007
5007
  * Gets the character to display instead of the text.
5008
5008
  * @returns a character, or 0 if input should not be hidden.
@@ -5012,12 +5012,12 @@ export interface Entry extends Atk.ImplementorIface, Clutter.Animatable, Clutter
5012
5012
  * Gets the text that is displayed when the entry is empty and unfocused
5013
5013
  * @returns the current value of the placeholder property. This string is owned by the #MxEntry and should not be freed or modified.
5014
5014
  */
5015
- get_placeholder(): string | null
5015
+ get_placeholder(): string
5016
5016
  /**
5017
5017
  * Get the text displayed on the entry
5018
5018
  * @returns the text for the entry. This must not be freed by the application
5019
5019
  */
5020
- get_text(): string | null
5020
+ get_text(): string
5021
5021
  /**
5022
5022
  * Sets the suffix appended to the filename to use for the highlighted version
5023
5023
  * of the icon. e.g. if you have set your primay icon to "primary-icon.png"
@@ -5025,7 +5025,7 @@ export interface Entry extends Atk.ImplementorIface, Clutter.Animatable, Clutter
5025
5025
  * "primary-icon-highlight.png"
5026
5026
  * @param suffix the suffix to append to the filename for the highlight version
5027
5027
  */
5028
- set_icon_highlight_suffix(suffix: string | null): void
5028
+ set_icon_highlight_suffix(suffix: string): void
5029
5029
  /**
5030
5030
  * Sets the character to display instead of the text. Use 0 to display
5031
5031
  * the actual text.
@@ -5038,24 +5038,24 @@ export interface Entry extends Atk.ImplementorIface, Clutter.Animatable, Clutter
5038
5038
  * A value of NULL unsets the hint.
5039
5039
  * @param text text to set as the entry hint
5040
5040
  */
5041
- set_placeholder(text: string | null): void
5041
+ set_placeholder(text: string): void
5042
5042
  /**
5043
5043
  * Set the primary icon of the entry to the given filename
5044
5044
  * @param filename filename of an icon
5045
5045
  */
5046
- set_primary_icon_from_file(filename: string | null): void
5047
- set_primary_icon_tooltip_text(text: string | null): void
5046
+ set_primary_icon_from_file(filename: string): void
5047
+ set_primary_icon_tooltip_text(text: string): void
5048
5048
  /**
5049
5049
  * Set the primary icon of the entry to the given filename
5050
5050
  * @param filename filename of an icon
5051
5051
  */
5052
- set_secondary_icon_from_file(filename: string | null): void
5053
- set_secondary_icon_tooltip_text(text: string | null): void
5052
+ set_secondary_icon_from_file(filename: string): void
5053
+ set_secondary_icon_tooltip_text(text: string): void
5054
5054
  /**
5055
5055
  * Sets the text displayed on the entry
5056
5056
  * @param text text to set the entry to
5057
5057
  */
5058
- set_text(text: string | null): void
5058
+ set_text(text: string): void
5059
5059
 
5060
5060
  // Conflicting methods
5061
5061
 
@@ -5421,7 +5421,7 @@ export class Entry extends Widget {
5421
5421
  * @param text text to set the entry to
5422
5422
  * @returns a new #MxEntry
5423
5423
  */
5424
- static new_with_text(text: string | null): Entry
5424
+ static new_with_text(text: string): Entry
5425
5425
  _init(config?: Entry.ConstructorProperties): void
5426
5426
  }
5427
5427
 
@@ -5473,7 +5473,7 @@ export interface Expander extends Atk.ImplementorIface, Clutter.Animatable, Clut
5473
5473
  * Sets the text displayed as the title of the expander
5474
5474
  * @param label string to set as the expander label
5475
5475
  */
5476
- set_label(label: string | null): void
5476
+ set_label(label: string): void
5477
5477
 
5478
5478
  // Conflicting methods
5479
5479
 
@@ -7211,9 +7211,9 @@ export interface Icon extends Atk.ImplementorIface, Clutter.Animatable, Clutter.
7211
7211
 
7212
7212
  // Owm methods of Mx-2.0.Mx.Icon
7213
7213
 
7214
- get_icon_name(): string | null
7214
+ get_icon_name(): string
7215
7215
  get_icon_size(): number
7216
- set_icon_name(icon_name: string | null): void
7216
+ set_icon_name(icon_name: string): void
7217
7217
  set_icon_size(size: number): void
7218
7218
 
7219
7219
  // Conflicting methods
@@ -7585,22 +7585,22 @@ export interface IconTheme {
7585
7585
  * Get the value of the #MxIconTheme:theme-name property.
7586
7586
  * @returns the current value of the "theme-name" property.
7587
7587
  */
7588
- get_theme_name(): string | null
7589
- has_icon(icon_name: string | null): boolean
7588
+ get_theme_name(): string
7589
+ has_icon(icon_name: string): boolean
7590
7590
  /**
7591
7591
  * If the icon is available, returns a #CoglHandle of the icon.
7592
7592
  * @param icon_name The name of the icon
7593
7593
  * @param size The desired size of the icon
7594
7594
  * @returns a #CoglHandle of the icon, or %NULL.
7595
7595
  */
7596
- lookup(icon_name: string | null, size: number): Cogl.Handle
7596
+ lookup(icon_name: string, size: number): Cogl.Handle
7597
7597
  /**
7598
7598
  * If the icon is available, returns a #ClutterTexture of the icon.
7599
7599
  * @param icon_name The name of the icon
7600
7600
  * @param size The desired size of the icon
7601
7601
  * @returns a #ClutterTexture of the icon, or %NULL.
7602
7602
  */
7603
- lookup_texture(icon_name: string | null, size: number): Clutter.Texture
7603
+ lookup_texture(icon_name: string, size: number): Clutter.Texture
7604
7604
  /**
7605
7605
  * Sets the directories the #MxIconTheme will search in to find icons.
7606
7606
  * By default, it will look in the default system and local icon
@@ -7618,7 +7618,7 @@ export interface IconTheme {
7618
7618
  * icon theme, this function can be called with a %NULL `theme_name` argument.
7619
7619
  * @param theme_name the name of an icon theme to load, or %NULL
7620
7620
  */
7621
- set_theme_name(theme_name: string | null): void
7621
+ set_theme_name(theme_name: string): void
7622
7622
 
7623
7623
  // Class property signals of Mx-2.0.Mx.IconTheme
7624
7624
 
@@ -7838,7 +7838,7 @@ export interface Image extends Atk.ImplementorIface, Clutter.Animatable, Clutter
7838
7838
  * @param filename Filename to read the file from
7839
7839
  * @returns #TRUE if the image was successfully updated
7840
7840
  */
7841
- set_from_file(filename: string | null): boolean
7841
+ set_from_file(filename: string): boolean
7842
7842
  /**
7843
7843
  * Set the image data from an image file, and scale the image during loading.
7844
7844
  * In case of failure, #FALSE is returned and `error` is set. The aspect ratio
@@ -7848,7 +7848,7 @@ export interface Image extends Atk.ImplementorIface, Clutter.Animatable, Clutter
7848
7848
  * @param height Height to scale the image to, or -1
7849
7849
  * @returns #TRUE if the image was successfully updated
7850
7850
  */
7851
- set_from_file_at_size(filename: string | null, width: number, height: number): boolean
7851
+ set_from_file_at_size(filename: string, width: number, height: number): boolean
7852
7852
  /**
7853
7853
  * Set the MxImage:image-rotation property.
7854
7854
  * @param rotation Rotation angle in degrees
@@ -8293,7 +8293,7 @@ export interface ItemView extends Atk.ImplementorIface, Clutter.Animatable, Clut
8293
8293
  * @param attribute Name of the attribute
8294
8294
  * @param column Column number
8295
8295
  */
8296
- add_attribute(attribute: string | null, column: number): void
8296
+ add_attribute(attribute: string, column: number): void
8297
8297
  /**
8298
8298
  * Freeze the view. This means that the view will not act on changes to the
8299
8299
  * model until it is thawed. Call #mx_item_view_thaw to thaw the view
@@ -9378,7 +9378,7 @@ export interface Label extends Atk.ImplementorIface, Clutter.Animatable, Clutter
9378
9378
  * Get the text displayed on the label
9379
9379
  * @returns the text for the label. This must not be freed by the application
9380
9380
  */
9381
- get_text(): string | null
9381
+ get_text(): string
9382
9382
  /**
9383
9383
  * Determines whether the text of the label is being treated as Pango markup.
9384
9384
  * @returns %TRUE if the text of the label is treated as Pango markup, %FALSE otherwise.
@@ -9431,7 +9431,7 @@ export interface Label extends Atk.ImplementorIface, Clutter.Animatable, Clutter
9431
9431
  * Sets the text displayed on the label
9432
9432
  * @param text text to set the label to
9433
9433
  */
9434
- set_text(text: string | null): void
9434
+ set_text(text: string): void
9435
9435
  /**
9436
9436
  * Sets whether the text of the label should be treated as Pango markup.
9437
9437
  * @param use_markup %TRUE to use Pango markup, %FALSE otherwise
@@ -9809,7 +9809,7 @@ export class Label extends Widget {
9809
9809
  * @param text text to set the label to
9810
9810
  * @returns a new #MxLabel
9811
9811
  */
9812
- static new_with_text(text: string | null): Label
9812
+ static new_with_text(text: string): Label
9813
9813
  _init(config?: Label.ConstructorProperties): void
9814
9814
  }
9815
9815
 
@@ -9846,7 +9846,7 @@ export interface ListView extends Atk.ImplementorIface, Clutter.Animatable, Clut
9846
9846
  * @param attribute Name of the attribute
9847
9847
  * @param column Column number
9848
9848
  */
9849
- add_attribute(attribute: string | null, column: number): void
9849
+ add_attribute(attribute: string, column: number): void
9850
9850
  /**
9851
9851
  * Freeze the view. This means that the view will not act on changes to the
9852
9852
  * model until it is thawed. Call #mx_list_view_thaw to thaw the view.
@@ -11456,11 +11456,11 @@ export interface PathBar extends Atk.ImplementorIface, Clutter.Animatable, Clutt
11456
11456
  * @returns MxEntry *
11457
11457
  */
11458
11458
  get_entry(): Entry
11459
- get_label(level: number): string | null
11459
+ get_label(level: number): string
11460
11460
  get_level(): number
11461
- get_text(): string | null
11461
+ get_text(): string
11462
11462
  pop(): number
11463
- push(name: string | null): number
11463
+ push(name: string): number
11464
11464
  /**
11465
11465
  * Set theh value of the #MxPathBar:clear-on-change property
11466
11466
  * @param clear_on_change the new value of the property
@@ -11476,12 +11476,12 @@ export interface PathBar extends Atk.ImplementorIface, Clutter.Animatable, Clutt
11476
11476
  * @param level A #gint
11477
11477
  * @param label A #gchar
11478
11478
  */
11479
- set_label(level: number, label: string | null): void
11479
+ set_label(level: number, label: string): void
11480
11480
  /**
11481
11481
  * Set the text in the editable area of the #MxPathBar
11482
11482
  * @param text string to set the editable text to.
11483
11483
  */
11484
- set_text(text: string | null): void
11484
+ set_text(text: string): void
11485
11485
 
11486
11486
  // Conflicting methods
11487
11487
 
@@ -14365,7 +14365,7 @@ export interface Style {
14365
14365
  * @param property_name the name of the property to get
14366
14366
  * @param value return location for the property value
14367
14367
  */
14368
- get_property(property_name: string | null, value: any): void
14368
+ get_property(property_name: string, value: any): void
14369
14369
  /**
14370
14370
  * Load style information from `data,` using `id` to identify the stylesheet.
14371
14371
  * `id` is usually the file name of the style sheet, which is used in the search
@@ -14374,14 +14374,14 @@ export interface Style {
14374
14374
  * @param data CSS data to parse
14375
14375
  * @returns TRUE if the style information was loaded successfully. Returns FALSE on error.
14376
14376
  */
14377
- load_from_data(id: string | null, data: string | null): boolean
14377
+ load_from_data(id: string, data: string): boolean
14378
14378
  /**
14379
14379
  * Load style information from the specified file.
14380
14380
  * @param filename filename of the style sheet to load
14381
14381
  * @returns TRUE if the style information was loaded successfully. Returns FALSE on error.
14382
14382
  */
14383
- load_from_file(filename: string | null): boolean
14384
- load_from_resource(path: string | null): boolean
14383
+ load_from_file(filename: string): boolean
14384
+ load_from_resource(path: string): boolean
14385
14385
 
14386
14386
  // Own virtual methods of Mx-2.0.Mx.Style
14387
14387
 
@@ -15111,7 +15111,7 @@ export interface TextureCache {
15111
15111
  * @param uri A URI or path to an image file
15112
15112
  * @returns %TRUE if the image exists, %FALSE otherwise
15113
15113
  */
15114
- contains(uri: string | null): boolean
15114
+ contains(uri: string): boolean
15115
15115
  /**
15116
15116
  * Checks whether there are any textures associated with the given URI by
15117
15117
  * the given identifier.
@@ -15119,14 +15119,14 @@ export interface TextureCache {
15119
15119
  * @param ident A unique identifier
15120
15120
  * @returns %TRUE if the data exists, %FALSE otherwise
15121
15121
  */
15122
- contains_meta(uri: string | null, ident: any): boolean
15122
+ contains_meta(uri: string, ident: any): boolean
15123
15123
  /**
15124
15124
  * This is a wrapper around mx_texture_cache_get_texture() which returns
15125
15125
  * a ClutterActor.
15126
15126
  * @param uri A URI or path to a image file
15127
15127
  * @returns a newly created ClutterTexture
15128
15128
  */
15129
- get_actor(uri: string | null): Clutter.Actor
15129
+ get_actor(uri: string): Clutter.Actor
15130
15130
  /**
15131
15131
  * Create a #CoglHandle representing a texture of the specified image. Adds
15132
15132
  * the image to the cache if the image had not been previously loaded.
@@ -15135,7 +15135,7 @@ export interface TextureCache {
15135
15135
  * @param uri A URI or path to an image file
15136
15136
  * @returns a #CoglHandle to the cached texture
15137
15137
  */
15138
- get_cogl_texture(uri: string | null): Cogl.Handle
15138
+ get_cogl_texture(uri: string): Cogl.Handle
15139
15139
  /**
15140
15140
  * Retrieves the #CoglHandle of the previously added image associated
15141
15141
  * with the given unique identifier.
@@ -15145,7 +15145,7 @@ export interface TextureCache {
15145
15145
  * @param ident A unique identifier
15146
15146
  * @returns A #CoglHandle to a texture, with an added reference. %NULL if no image was found.
15147
15147
  */
15148
- get_meta_cogl_texture(uri: string | null, ident: any): Cogl.Handle
15148
+ get_meta_cogl_texture(uri: string, ident: any): Cogl.Handle
15149
15149
  /**
15150
15150
  * Create a new ClutterTexture using the previously added image associated
15151
15151
  * with the given unique identifier.
@@ -15155,7 +15155,7 @@ export interface TextureCache {
15155
15155
  * @param ident A unique identifier
15156
15156
  * @returns A newly allocated #ClutterTexture, or %NULL if no image was found
15157
15157
  */
15158
- get_meta_texture(uri: string | null, ident: any): Clutter.Texture
15158
+ get_meta_texture(uri: string, ident: any): Clutter.Texture
15159
15159
  /**
15160
15160
  * Returns the number of items in the texture cache
15161
15161
  * @returns the current size of the cache
@@ -15169,7 +15169,7 @@ export interface TextureCache {
15169
15169
  * @param uri A URI or path to a image file
15170
15170
  * @returns a newly created ClutterTexture
15171
15171
  */
15172
- get_texture(uri: string | null): Clutter.Texture
15172
+ get_texture(uri: string): Clutter.Texture
15173
15173
  /**
15174
15174
  * Inserts a texture into the texture cache. This can be useful if you
15175
15175
  * want to cache a texture from a custom or unhandled URI type, or you
@@ -15180,7 +15180,7 @@ export interface TextureCache {
15180
15180
  * @param uri A URI or local file path
15181
15181
  * @param texture A #CoglHandle to a texture
15182
15182
  */
15183
- insert(uri: string | null, texture: Cogl.Handle): void
15183
+ insert(uri: string, texture: Cogl.Handle): void
15184
15184
  /**
15185
15185
  * Inserts a texture that's associated with a URI into the cache.
15186
15186
  * If the metadata already exists for this URI, it will be replaced.
@@ -15192,13 +15192,13 @@ export interface TextureCache {
15192
15192
  * @param texture A #CoglHandle to a texture
15193
15193
  * @param destroy_func An optional destruction function for `ident`
15194
15194
  */
15195
- insert_meta(uri: string | null, ident: any, texture: Cogl.Handle, destroy_func: GLib.DestroyNotify): void
15196
- load_cache(filename: string | null): void
15195
+ insert_meta(uri: string, ident: any, texture: Cogl.Handle, destroy_func: GLib.DestroyNotify): void
15196
+ load_cache(filename: string): void
15197
15197
 
15198
15198
  // Own virtual methods of Mx-2.0.Mx.TextureCache
15199
15199
 
15200
15200
  vfunc_error_loading(error: GLib.Error): void
15201
- vfunc_loaded(uri: string | null, texture: Clutter.Texture): void
15201
+ vfunc_loaded(uri: string, texture: Clutter.Texture): void
15202
15202
 
15203
15203
  // Class property signals of Mx-2.0.Mx.TextureCache
15204
15204
 
@@ -16391,7 +16391,7 @@ export interface Tooltip extends Atk.ImplementorIface, Clutter.Animatable, Clutt
16391
16391
  * Get the text displayed on the tooltip
16392
16392
  * @returns the text for the tooltip. This must not be freed by the application
16393
16393
  */
16394
- get_text(): string | null
16394
+ get_text(): string
16395
16395
  /**
16396
16396
  * Retrieve the area on the stage that the tooltip currently applies to
16397
16397
  * @returns the #ClutterGeometry, owned by the tooltip which must not be freed by the application.
@@ -16405,7 +16405,7 @@ export interface Tooltip extends Atk.ImplementorIface, Clutter.Animatable, Clutt
16405
16405
  * Sets the text displayed on the tooltip
16406
16406
  * @param text text to set the label to
16407
16407
  */
16408
- set_text(text: string | null): void
16408
+ set_text(text: string): void
16409
16409
  /**
16410
16410
  * Set the area on the stage that the tooltip applies to.
16411
16411
  * @param area A #ClutterGeometry
@@ -17258,7 +17258,7 @@ export interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutte
17258
17258
  * Get the current tooltip string
17259
17259
  * @returns The current tooltip string, owned by the #MxWidget
17260
17260
  */
17261
- get_tooltip_text(): string | null
17261
+ get_tooltip_text(): string
17262
17262
  /**
17263
17263
  * Hide the tooltip for `widget`
17264
17264
  */
@@ -17297,7 +17297,7 @@ export interface Widget extends Atk.ImplementorIface, Clutter.Animatable, Clutte
17297
17297
  * %FALSE.
17298
17298
  * @param text text to set as the tooltip
17299
17299
  */
17300
- set_tooltip_text(text: string | null): void
17300
+ set_tooltip_text(text: string): void
17301
17301
  /**
17302
17302
  * Show the tooltip for `widget`
17303
17303
  */
@@ -17703,7 +17703,7 @@ export interface Window {
17703
17703
  * set, or the icon was set with mx_window_set_icon_from_cogl_texture().
17704
17704
  * @returns The window icon name, or %NULL
17705
17705
  */
17706
- get_icon_name(): string | null
17706
+ get_icon_name(): string
17707
17707
  /**
17708
17708
  * Determines if the window is in small-screen mode.
17709
17709
  * See mx_window_set_small_screen().
@@ -17714,7 +17714,7 @@ export interface Window {
17714
17714
  * Retrieves the title used for the window.
17715
17715
  * @returns The title used for the window
17716
17716
  */
17717
- get_title(): string | null
17717
+ get_title(): string
17718
17718
  /**
17719
17719
  * Retrieves the toolbar associated with the window.
17720
17720
  * @returns A #MxToolbar
@@ -17792,7 +17792,7 @@ export interface Window {
17792
17792
  * window-system specific.
17793
17793
  * @param title A string to use for the window title name
17794
17794
  */
17795
- set_title(title: string | null): void
17795
+ set_title(title: string): void
17796
17796
  /**
17797
17797
  * Sets the toolbar associated with the window.
17798
17798
  * @param toolbar
@@ -18083,7 +18083,7 @@ export class BorderImage {
18083
18083
 
18084
18084
  // Constructors of Mx-2.0.Mx.BorderImage
18085
18085
 
18086
- static set_from_string(value: any, str: string | null, filename: string | null): void
18086
+ static set_from_string(value: any, str: string, filename: string): void
18087
18087
  }
18088
18088
 
18089
18089
  export interface BoxLayoutChildClass {
@@ -19022,10 +19022,10 @@ export interface StylableIface {
19022
19022
 
19023
19023
  get_style: (stylable: Stylable) => Style
19024
19024
  set_style: (stylable: Stylable, style: Style) => void
19025
- get_style_class: (stylable: Stylable) => string | null
19026
- set_style_class: (stylable: Stylable, style_class: string | null) => void
19027
- get_style_pseudo_class: (stylable: Stylable) => string | null
19028
- set_style_pseudo_class: (stylable: Stylable, pseudo_class: string | null) => void
19025
+ get_style_class: (stylable: Stylable) => string
19026
+ set_style_class: (stylable: Stylable, style_class: string) => void
19027
+ get_style_pseudo_class: (stylable: Stylable) => string
19028
+ set_style_pseudo_class: (stylable: Stylable, pseudo_class: string) => void
19029
19029
  style_changed: (stylable: Stylable, flags: StyleChangedFlags) => void
19030
19030
  }
19031
19031
 
@@ -19164,7 +19164,7 @@ export interface TextureCacheClass {
19164
19164
  // Own fields of Mx-2.0.Mx.TextureCacheClass
19165
19165
 
19166
19166
  parent_class: GObject.ObjectClass
19167
- loaded: (self: TextureCache, uri: string | null, texture: Clutter.Texture) => void
19167
+ loaded: (self: TextureCache, uri: string, texture: Clutter.Texture) => void
19168
19168
  error_loading: (self: TextureCache, error: GLib.Error) => void
19169
19169
  }
19170
19170