@girs/gedit-3.0 3.0.0-3.2.6 → 3.0.0-3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gedit-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gedit-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Gedit-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
  Official text editor of the GNOME desktop environment.
11
11
 
package/gedit-3.0.d.cts CHANGED
@@ -155,7 +155,7 @@ export function commands_save_document_finish(document: Document, result: Gio.As
155
155
  * @param line line number.
156
156
  * @param function_ name of the function that is calling gedit_debug().
157
157
  */
158
- export function debug(section: DebugSection, file: string | null, line: number, function_: string | null): void
158
+ export function debug(section: DebugSection, file: string, line: number, function_: string): void
159
159
  /**
160
160
  * Initializes the debugging subsystem of gedit.
161
161
  *
@@ -197,7 +197,7 @@ export function debug_init(): void
197
197
  * @param function_ name of the function that is calling gedit_debug_plugin_message().
198
198
  * @param message a message.
199
199
  */
200
- export function debug_plugin_message(file: string | null, line: number, function_: string | null, message: string | null): void
200
+ export function debug_plugin_message(file: string, line: number, function_: string, message: string): void
201
201
  export function utils_basename_for_display(location: Gio.File): string | null
202
202
  /**
203
203
  * Create a list of valid uri's from a uri-list drop.
@@ -205,7 +205,7 @@ export function utils_basename_for_display(location: Gio.File): string | null
205
205
  * @returns a string array which will hold the uris or %NULL if there were no valid uris. g_strfreev should be used when the string array is no longer used
206
206
  */
207
207
  export function utils_drop_get_uris(selection_data: Gtk.SelectionData): string[]
208
- export function utils_get_compression_type_from_content_type(content_type: string | null): GtkSource.CompressionType
208
+ export function utils_get_compression_type_from_content_type(content_type: string): GtkSource.CompressionType
209
209
  export function utils_is_valid_location(location: Gio.File): boolean
210
210
  /**
211
211
  * Returns a string suitable to be displayed in the UI indicating
@@ -217,7 +217,7 @@ export function utils_is_valid_location(location: Gio.File): boolean
217
217
  */
218
218
  export function utils_location_get_dirname_for_display(location: Gio.File): string | null
219
219
  export function utils_menu_position_under_tree_view(tree_view: Gtk.TreeView, rect: Gdk.Rectangle): boolean
220
- export function utils_newline_type_to_string(newline_type: GtkSource.NewlineType): string | null
220
+ export function utils_newline_type_to_string(newline_type: GtkSource.NewlineType): string
221
221
  /**
222
222
  * This function sets up name and description
223
223
  * for a specified gtk widget.
@@ -225,10 +225,10 @@ export function utils_newline_type_to_string(newline_type: GtkSource.NewlineType
225
225
  * @param name Atk name string
226
226
  * @param description Atk description string
227
227
  */
228
- export function utils_set_atk_name_description(widget: Gtk.Widget, name: string | null, description: string | null): void
228
+ export function utils_set_atk_name_description(widget: Gtk.Widget, name: string, description: string): void
229
229
  export function utils_set_direct_save_filename(context: Gdk.DragContext): string | null
230
230
  export interface MessageBusForeach {
231
- (object_path: string | null, method: string | null): void
231
+ (object_path: string, method: string): void
232
232
  }
233
233
  /**
234
234
  * Callback signature used for connecting callback functions to be called
@@ -284,7 +284,7 @@ export interface AppActivatable {
284
284
  * @param extension_point the extension point section of the menu to get.
285
285
  * @returns a #GeditMenuExtension for the specific section or %NULL if not found.
286
286
  */
287
- extend_menu(extension_point: string | null): MenuExtension
287
+ extend_menu(extension_point: string): MenuExtension
288
288
 
289
289
  // Own virtual methods of Gedit-3.0.Gedit.AppActivatable
290
290
 
@@ -525,15 +525,15 @@ export interface App extends Gio.ActionGroup, Gio.ActionMap {
525
525
  */
526
526
  get_views(): View[]
527
527
  process_window_event(window: Window, event: Gdk.Event): boolean
528
- set_window_title(window: Window, title: string | null): void
529
- show_help(parent: Gtk.Window, name: string | null, link_id: string | null): boolean
528
+ set_window_title(window: Window, title: string): void
529
+ show_help(parent: Gtk.Window, name: string, link_id: string): boolean
530
530
 
531
531
  // Own virtual methods of Gedit-3.0.Gedit.App
532
532
 
533
- vfunc_help_link_id(name: string | null, link_id: string | null): string | null
533
+ vfunc_help_link_id(name: string, link_id: string): string | null
534
534
  vfunc_process_window_event(window: Window, event: Gdk.Event): boolean
535
- vfunc_set_window_title(window: Window, title: string | null): void
536
- vfunc_show_help(parent: Gtk.Window, name: string | null, link_id: string | null): boolean
535
+ vfunc_set_window_title(window: Window, title: string): void
536
+ vfunc_show_help(parent: Gtk.Window, name: string, link_id: string): boolean
537
537
 
538
538
  // Class property signals of Gedit-3.0.Gedit.App
539
539
 
@@ -721,7 +721,7 @@ export interface Document {
721
721
  * @param key name of the key
722
722
  * @returns the value assigned to @key. Free with g_free().
723
723
  */
724
- get_metadata(key: string | null): string | null
724
+ get_metadata(key: string): string | null
725
725
  /**
726
726
  * Note: this never returns %NULL.
727
727
  */
@@ -937,7 +937,7 @@ export interface EncodingsComboBox extends Atk.ImplementorIface, Gtk.Buildable,
937
937
  * Also see gtk_container_child_notify().
938
938
  * @param child_property the name of a child property installed on the class of `widget’`s parent
939
939
  */
940
- child_notify(child_property: string | null): void
940
+ child_notify(child_property: string): void
941
941
  /**
942
942
  * Emits a #GtkWidget::child-notify signal for the
943
943
  * [child property][child-properties]
@@ -949,7 +949,7 @@ export interface EncodingsComboBox extends Atk.ImplementorIface, Gtk.Buildable,
949
949
  * @param child the child widget
950
950
  * @param child_property the name of a child property installed on the class of `container`
951
951
  */
952
- child_notify(child: Gtk.Widget, child_property: string | null): void
952
+ child_notify(child: Gtk.Widget, child_property: string): void
953
953
 
954
954
  // Overloads of child_notify
955
955
 
@@ -963,7 +963,7 @@ export interface EncodingsComboBox extends Atk.ImplementorIface, Gtk.Buildable,
963
963
  * Also see gtk_container_child_notify().
964
964
  * @param child_property the name of a child property installed on the class of `widget’`s parent
965
965
  */
966
- child_notify(child_property: string | null): void
966
+ child_notify(child_property: string): void
967
967
 
968
968
  // Class property signals of Gedit-3.0.Gedit.EncodingsComboBox
969
969
 
@@ -1286,18 +1286,18 @@ export interface Message {
1286
1286
  * Get the message method.
1287
1287
  * @returns the message method
1288
1288
  */
1289
- get_method(): string | null
1289
+ get_method(): string
1290
1290
  /**
1291
1291
  * Get the message object path.
1292
1292
  * @returns the message object path
1293
1293
  */
1294
- get_object_path(): string | null
1294
+ get_object_path(): string
1295
1295
  /**
1296
1296
  * Check if a message has a certain property.
1297
1297
  * @param propname the property name
1298
1298
  * @returns %TRUE if message has @propname, %FALSE otherwise
1299
1299
  */
1300
- has(propname: string | null): boolean
1300
+ has(propname: string): boolean
1301
1301
 
1302
1302
  // Class property signals of Gedit-3.0.Gedit.Message
1303
1303
 
@@ -1330,8 +1330,8 @@ export class Message extends GObject.Object {
1330
1330
  * @returns %TRUE if @object_path is a valid object path
1331
1331
  */
1332
1332
  static is_valid_object_path(object_path: string | null): boolean
1333
- static type_check(gtype: GObject.GType, propname: string | null, value_type: GObject.GType): boolean
1334
- static type_has(gtype: GObject.GType, propname: string | null): boolean
1333
+ static type_check(gtype: GObject.GType, propname: string, value_type: GObject.GType): boolean
1334
+ static type_has(gtype: GObject.GType, propname: string): boolean
1335
1335
  /**
1336
1336
  * Get the string identifier for `method` at `object_path`.
1337
1337
  * @param object_path the object path
@@ -1396,7 +1396,7 @@ export interface MessageBus {
1396
1396
  * @param method the method
1397
1397
  * @param callback the callback to block
1398
1398
  */
1399
- block_by_func(object_path: string | null, method: string | null, callback: MessageCallback): void
1399
+ block_by_func(object_path: string, method: string, callback: MessageCallback): void
1400
1400
  /**
1401
1401
  * Connect a callback handler to be evoked when message `method` at `object_path`
1402
1402
  * is sent over the bus.
@@ -1405,7 +1405,7 @@ export interface MessageBus {
1405
1405
  * @param callback function to be called when message `method` at `object_path` is sent
1406
1406
  * @returns the callback identifier
1407
1407
  */
1408
- connect(object_path: string | null, method: string | null, callback: MessageCallback): number
1408
+ connect(object_path: string, method: string, callback: MessageCallback): number
1409
1409
  /**
1410
1410
  * Disconnects a previously connected message callback.
1411
1411
  * @param id the callback id as returned by gedit_message_bus_connect()
@@ -1419,7 +1419,7 @@ export interface MessageBus {
1419
1419
  * @param method the method
1420
1420
  * @param callback the connected callback
1421
1421
  */
1422
- disconnect_by_func(object_path: string | null, method: string | null, callback: MessageCallback): void
1422
+ disconnect_by_func(object_path: string, method: string, callback: MessageCallback): void
1423
1423
  /**
1424
1424
  * Calls `func` for each message type registered on the bus
1425
1425
  * @param func the callback function
@@ -1432,7 +1432,7 @@ export interface MessageBus {
1432
1432
  * @param method the method
1433
1433
  * @returns %TRUE if the @method at @object_path is a registered message type on the bus
1434
1434
  */
1435
- is_registered(object_path: string | null, method: string | null): boolean
1435
+ is_registered(object_path: string, method: string): boolean
1436
1436
  /**
1437
1437
  * Get the registered #GeditMessageType for `method` at `object_path`. The
1438
1438
  * returned #GeditMessageType is owned by the bus and should not be unreffed.
@@ -1440,7 +1440,7 @@ export interface MessageBus {
1440
1440
  * @param method the method
1441
1441
  * @returns the registered #GeditMessageType or %NULL if no message type is registered for @method at @object_path
1442
1442
  */
1443
- lookup(object_path: string | null, method: string | null): GObject.GType
1443
+ lookup(object_path: string, method: string): GObject.GType
1444
1444
  /**
1445
1445
  * Register a message on the bus. A message must be registered on the bus before
1446
1446
  * it can be send. This function registers the type for `method` at
@@ -1451,7 +1451,7 @@ export interface MessageBus {
1451
1451
  * @param object_path the object path
1452
1452
  * @param method the method to register
1453
1453
  */
1454
- register(message_type: GObject.GType, object_path: string | null, method: string | null): void
1454
+ register(message_type: GObject.GType, object_path: string, method: string): void
1455
1455
  /**
1456
1456
  * This sends the provided `message` asynchronously over the bus. To send
1457
1457
  * a message synchronously, use gedit_message_bus_send_message_sync(). The
@@ -1479,7 +1479,7 @@ export interface MessageBus {
1479
1479
  * @param method the method
1480
1480
  * @param callback the callback to block
1481
1481
  */
1482
- unblock_by_func(object_path: string | null, method: string | null, callback: MessageCallback): void
1482
+ unblock_by_func(object_path: string, method: string, callback: MessageCallback): void
1483
1483
  /**
1484
1484
  * Unregisters a previously registered message type. This is especially useful
1485
1485
  * for plugins which should unregister message types when they are deactivated.
@@ -1488,7 +1488,7 @@ export interface MessageBus {
1488
1488
  * @param object_path the object path
1489
1489
  * @param method the method
1490
1490
  */
1491
- unregister(object_path: string | null, method: string | null): void
1491
+ unregister(object_path: string, method: string): void
1492
1492
  /**
1493
1493
  * Unregisters all message types for `object_path`. This is especially useful for
1494
1494
  * plugins which should unregister message types when they are deactivated.
@@ -1497,13 +1497,13 @@ export interface MessageBus {
1497
1497
  * unregistered message types.
1498
1498
  * @param object_path the object path
1499
1499
  */
1500
- unregister_all(object_path: string | null): void
1500
+ unregister_all(object_path: string): void
1501
1501
 
1502
1502
  // Own virtual methods of Gedit-3.0.Gedit.MessageBus
1503
1503
 
1504
1504
  vfunc_dispatch(message: Message): void
1505
- vfunc_registered(object_path: string | null, method: string | null): void
1506
- vfunc_unregistered(object_path: string | null, method: string | null): void
1505
+ vfunc_registered(object_path: string, method: string): void
1506
+ vfunc_unregistered(object_path: string, method: string): void
1507
1507
 
1508
1508
  // Own signals of Gedit-3.0.Gedit.MessageBus
1509
1509
 
@@ -1629,7 +1629,7 @@ export interface Statusbar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orie
1629
1629
  * @param child the child widget
1630
1630
  * @param child_property the name of a child property installed on the class of `container`
1631
1631
  */
1632
- child_notify(child: Gtk.Widget, child_property: string | null): void
1632
+ child_notify(child: Gtk.Widget, child_property: string): void
1633
1633
 
1634
1634
  // Overloads of child_notify
1635
1635
 
@@ -1643,7 +1643,7 @@ export interface Statusbar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orie
1643
1643
  * Also see gtk_container_child_notify().
1644
1644
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1645
1645
  */
1646
- child_notify(child_property: string | null): void
1646
+ child_notify(child_property: string): void
1647
1647
  /**
1648
1648
  * Emits a #GtkWidget::child-notify signal for the
1649
1649
  * [child property][child-properties] `child_property`
@@ -1654,7 +1654,7 @@ export interface Statusbar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orie
1654
1654
  * Also see gtk_container_child_notify().
1655
1655
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1656
1656
  */
1657
- child_notify(child_property: string | null): void
1657
+ child_notify(child_property: string): void
1658
1658
 
1659
1659
  // Class property signals of Gedit-3.0.Gedit.Statusbar
1660
1660
 
@@ -1942,7 +1942,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
1942
1942
  * @param child the child widget
1943
1943
  * @param child_property the name of a child property installed on the class of `container`
1944
1944
  */
1945
- child_notify(child: Gtk.Widget, child_property: string | null): void
1945
+ child_notify(child: Gtk.Widget, child_property: string): void
1946
1946
 
1947
1947
  // Overloads of child_notify
1948
1948
 
@@ -1956,7 +1956,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
1956
1956
  * Also see gtk_container_child_notify().
1957
1957
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1958
1958
  */
1959
- child_notify(child_property: string | null): void
1959
+ child_notify(child_property: string): void
1960
1960
  /**
1961
1961
  * Emits a #GtkWidget::child-notify signal for the
1962
1962
  * [child property][child-properties] `child_property`
@@ -1967,7 +1967,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
1967
1967
  * Also see gtk_container_child_notify().
1968
1968
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1969
1969
  */
1970
- child_notify(child_property: string | null): void
1970
+ child_notify(child_property: string): void
1971
1971
 
1972
1972
  // Own signals of Gedit-3.0.Gedit.Tab
1973
1973
 
@@ -2215,7 +2215,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
2215
2215
  * @param child the child widget
2216
2216
  * @param child_property the name of a child property installed on the class of `container`
2217
2217
  */
2218
- child_notify(child: Gtk.Widget, child_property: string | null): void
2218
+ child_notify(child: Gtk.Widget, child_property: string): void
2219
2219
 
2220
2220
  // Overloads of child_notify
2221
2221
 
@@ -2229,7 +2229,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
2229
2229
  * Also see gtk_container_child_notify().
2230
2230
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2231
2231
  */
2232
- child_notify(child_property: string | null): void
2232
+ child_notify(child_property: string): void
2233
2233
  /**
2234
2234
  * Emits a #GtkWidget::child-notify signal for the
2235
2235
  * [child property][child-properties] `child_property`
@@ -2240,7 +2240,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
2240
2240
  * Also see gtk_container_child_notify().
2241
2241
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2242
2242
  */
2243
- child_notify(child_property: string | null): void
2243
+ child_notify(child_property: string): void
2244
2244
 
2245
2245
  // Own virtual methods of Gedit-3.0.Gedit.View
2246
2246
 
@@ -2771,7 +2771,7 @@ export interface Window extends Atk.ImplementorIface, Gio.ActionGroup, Gio.Actio
2771
2771
  * @param child the child widget
2772
2772
  * @param child_property the name of a child property installed on the class of `container`
2773
2773
  */
2774
- child_notify(child: Gtk.Widget, child_property: string | null): void
2774
+ child_notify(child: Gtk.Widget, child_property: string): void
2775
2775
 
2776
2776
  // Overloads of child_notify
2777
2777
 
@@ -2785,7 +2785,7 @@ export interface Window extends Atk.ImplementorIface, Gio.ActionGroup, Gio.Actio
2785
2785
  * Also see gtk_container_child_notify().
2786
2786
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2787
2787
  */
2788
- child_notify(child_property: string | null): void
2788
+ child_notify(child_property: string): void
2789
2789
  /**
2790
2790
  * Emits a #GtkWidget::child-notify signal for the
2791
2791
  * [child property][child-properties] `child_property`
@@ -2796,7 +2796,7 @@ export interface Window extends Atk.ImplementorIface, Gio.ActionGroup, Gio.Actio
2796
2796
  * Also see gtk_container_child_notify().
2797
2797
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2798
2798
  */
2799
- child_notify(child_property: string | null): void
2799
+ child_notify(child_property: string): void
2800
2800
 
2801
2801
  // Own virtual methods of Gedit-3.0.Gedit.Window
2802
2802
 
@@ -3101,9 +3101,9 @@ export interface AppClass {
3101
3101
  // Own fields of Gedit-3.0.Gedit.AppClass
3102
3102
 
3103
3103
  parent_class: Gtk.ApplicationClass
3104
- show_help: (app: App, parent: Gtk.Window, name: string | null, link_id: string | null) => boolean
3105
- help_link_id: (app: App, name: string | null, link_id: string | null) => string | null
3106
- set_window_title: (app: App, window: Window, title: string | null) => void
3104
+ show_help: (app: App, parent: Gtk.Window, name: string, link_id: string) => boolean
3105
+ help_link_id: (app: App, name: string, link_id: string) => string | null
3106
+ set_window_title: (app: App, window: Window, title: string) => void
3107
3107
  process_window_event: (app: App, window: Window, event: Gdk.Event) => boolean
3108
3108
  }
3109
3109
 
@@ -3165,8 +3165,8 @@ export interface MessageBusClass {
3165
3165
 
3166
3166
  parent_class: GObject.ObjectClass
3167
3167
  dispatch: (bus: MessageBus, message: Message) => void
3168
- registered: (bus: MessageBus, object_path: string | null, method: string | null) => void
3169
- unregistered: (bus: MessageBus, object_path: string | null, method: string | null) => void
3168
+ registered: (bus: MessageBus, object_path: string, method: string) => void
3169
+ unregistered: (bus: MessageBus, object_path: string, method: string) => void
3170
3170
  }
3171
3171
 
3172
3172
  export abstract class MessageBusClass {
package/gedit-3.0.d.ts CHANGED
@@ -157,7 +157,7 @@ function commands_save_document_finish(document: Document, result: Gio.AsyncResu
157
157
  * @param line line number.
158
158
  * @param function_ name of the function that is calling gedit_debug().
159
159
  */
160
- function debug(section: DebugSection, file: string | null, line: number, function_: string | null): void
160
+ function debug(section: DebugSection, file: string, line: number, function_: string): void
161
161
  /**
162
162
  * Initializes the debugging subsystem of gedit.
163
163
  *
@@ -199,7 +199,7 @@ function debug_init(): void
199
199
  * @param function_ name of the function that is calling gedit_debug_plugin_message().
200
200
  * @param message a message.
201
201
  */
202
- function debug_plugin_message(file: string | null, line: number, function_: string | null, message: string | null): void
202
+ function debug_plugin_message(file: string, line: number, function_: string, message: string): void
203
203
  function utils_basename_for_display(location: Gio.File): string | null
204
204
  /**
205
205
  * Create a list of valid uri's from a uri-list drop.
@@ -207,7 +207,7 @@ function utils_basename_for_display(location: Gio.File): string | null
207
207
  * @returns a string array which will hold the uris or %NULL if there were no valid uris. g_strfreev should be used when the string array is no longer used
208
208
  */
209
209
  function utils_drop_get_uris(selection_data: Gtk.SelectionData): string[]
210
- function utils_get_compression_type_from_content_type(content_type: string | null): GtkSource.CompressionType
210
+ function utils_get_compression_type_from_content_type(content_type: string): GtkSource.CompressionType
211
211
  function utils_is_valid_location(location: Gio.File): boolean
212
212
  /**
213
213
  * Returns a string suitable to be displayed in the UI indicating
@@ -219,7 +219,7 @@ function utils_is_valid_location(location: Gio.File): boolean
219
219
  */
220
220
  function utils_location_get_dirname_for_display(location: Gio.File): string | null
221
221
  function utils_menu_position_under_tree_view(tree_view: Gtk.TreeView, rect: Gdk.Rectangle): boolean
222
- function utils_newline_type_to_string(newline_type: GtkSource.NewlineType): string | null
222
+ function utils_newline_type_to_string(newline_type: GtkSource.NewlineType): string
223
223
  /**
224
224
  * This function sets up name and description
225
225
  * for a specified gtk widget.
@@ -227,10 +227,10 @@ function utils_newline_type_to_string(newline_type: GtkSource.NewlineType): stri
227
227
  * @param name Atk name string
228
228
  * @param description Atk description string
229
229
  */
230
- function utils_set_atk_name_description(widget: Gtk.Widget, name: string | null, description: string | null): void
230
+ function utils_set_atk_name_description(widget: Gtk.Widget, name: string, description: string): void
231
231
  function utils_set_direct_save_filename(context: Gdk.DragContext): string | null
232
232
  interface MessageBusForeach {
233
- (object_path: string | null, method: string | null): void
233
+ (object_path: string, method: string): void
234
234
  }
235
235
  /**
236
236
  * Callback signature used for connecting callback functions to be called
@@ -286,7 +286,7 @@ interface AppActivatable {
286
286
  * @param extension_point the extension point section of the menu to get.
287
287
  * @returns a #GeditMenuExtension for the specific section or %NULL if not found.
288
288
  */
289
- extend_menu(extension_point: string | null): MenuExtension
289
+ extend_menu(extension_point: string): MenuExtension
290
290
 
291
291
  // Own virtual methods of Gedit-3.0.Gedit.AppActivatable
292
292
 
@@ -527,15 +527,15 @@ interface App extends Gio.ActionGroup, Gio.ActionMap {
527
527
  */
528
528
  get_views(): View[]
529
529
  process_window_event(window: Window, event: Gdk.Event): boolean
530
- set_window_title(window: Window, title: string | null): void
531
- show_help(parent: Gtk.Window, name: string | null, link_id: string | null): boolean
530
+ set_window_title(window: Window, title: string): void
531
+ show_help(parent: Gtk.Window, name: string, link_id: string): boolean
532
532
 
533
533
  // Own virtual methods of Gedit-3.0.Gedit.App
534
534
 
535
- vfunc_help_link_id(name: string | null, link_id: string | null): string | null
535
+ vfunc_help_link_id(name: string, link_id: string): string | null
536
536
  vfunc_process_window_event(window: Window, event: Gdk.Event): boolean
537
- vfunc_set_window_title(window: Window, title: string | null): void
538
- vfunc_show_help(parent: Gtk.Window, name: string | null, link_id: string | null): boolean
537
+ vfunc_set_window_title(window: Window, title: string): void
538
+ vfunc_show_help(parent: Gtk.Window, name: string, link_id: string): boolean
539
539
 
540
540
  // Class property signals of Gedit-3.0.Gedit.App
541
541
 
@@ -723,7 +723,7 @@ interface Document {
723
723
  * @param key name of the key
724
724
  * @returns the value assigned to @key. Free with g_free().
725
725
  */
726
- get_metadata(key: string | null): string | null
726
+ get_metadata(key: string): string | null
727
727
  /**
728
728
  * Note: this never returns %NULL.
729
729
  */
@@ -939,7 +939,7 @@ interface EncodingsComboBox extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Cel
939
939
  * Also see gtk_container_child_notify().
940
940
  * @param child_property the name of a child property installed on the class of `widget’`s parent
941
941
  */
942
- child_notify(child_property: string | null): void
942
+ child_notify(child_property: string): void
943
943
  /**
944
944
  * Emits a #GtkWidget::child-notify signal for the
945
945
  * [child property][child-properties]
@@ -951,7 +951,7 @@ interface EncodingsComboBox extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Cel
951
951
  * @param child the child widget
952
952
  * @param child_property the name of a child property installed on the class of `container`
953
953
  */
954
- child_notify(child: Gtk.Widget, child_property: string | null): void
954
+ child_notify(child: Gtk.Widget, child_property: string): void
955
955
 
956
956
  // Overloads of child_notify
957
957
 
@@ -965,7 +965,7 @@ interface EncodingsComboBox extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Cel
965
965
  * Also see gtk_container_child_notify().
966
966
  * @param child_property the name of a child property installed on the class of `widget’`s parent
967
967
  */
968
- child_notify(child_property: string | null): void
968
+ child_notify(child_property: string): void
969
969
 
970
970
  // Class property signals of Gedit-3.0.Gedit.EncodingsComboBox
971
971
 
@@ -1288,18 +1288,18 @@ interface Message {
1288
1288
  * Get the message method.
1289
1289
  * @returns the message method
1290
1290
  */
1291
- get_method(): string | null
1291
+ get_method(): string
1292
1292
  /**
1293
1293
  * Get the message object path.
1294
1294
  * @returns the message object path
1295
1295
  */
1296
- get_object_path(): string | null
1296
+ get_object_path(): string
1297
1297
  /**
1298
1298
  * Check if a message has a certain property.
1299
1299
  * @param propname the property name
1300
1300
  * @returns %TRUE if message has @propname, %FALSE otherwise
1301
1301
  */
1302
- has(propname: string | null): boolean
1302
+ has(propname: string): boolean
1303
1303
 
1304
1304
  // Class property signals of Gedit-3.0.Gedit.Message
1305
1305
 
@@ -1332,8 +1332,8 @@ class Message extends GObject.Object {
1332
1332
  * @returns %TRUE if @object_path is a valid object path
1333
1333
  */
1334
1334
  static is_valid_object_path(object_path: string | null): boolean
1335
- static type_check(gtype: GObject.GType, propname: string | null, value_type: GObject.GType): boolean
1336
- static type_has(gtype: GObject.GType, propname: string | null): boolean
1335
+ static type_check(gtype: GObject.GType, propname: string, value_type: GObject.GType): boolean
1336
+ static type_has(gtype: GObject.GType, propname: string): boolean
1337
1337
  /**
1338
1338
  * Get the string identifier for `method` at `object_path`.
1339
1339
  * @param object_path the object path
@@ -1398,7 +1398,7 @@ interface MessageBus {
1398
1398
  * @param method the method
1399
1399
  * @param callback the callback to block
1400
1400
  */
1401
- block_by_func(object_path: string | null, method: string | null, callback: MessageCallback): void
1401
+ block_by_func(object_path: string, method: string, callback: MessageCallback): void
1402
1402
  /**
1403
1403
  * Connect a callback handler to be evoked when message `method` at `object_path`
1404
1404
  * is sent over the bus.
@@ -1407,7 +1407,7 @@ interface MessageBus {
1407
1407
  * @param callback function to be called when message `method` at `object_path` is sent
1408
1408
  * @returns the callback identifier
1409
1409
  */
1410
- connect(object_path: string | null, method: string | null, callback: MessageCallback): number
1410
+ connect(object_path: string, method: string, callback: MessageCallback): number
1411
1411
  /**
1412
1412
  * Disconnects a previously connected message callback.
1413
1413
  * @param id the callback id as returned by gedit_message_bus_connect()
@@ -1421,7 +1421,7 @@ interface MessageBus {
1421
1421
  * @param method the method
1422
1422
  * @param callback the connected callback
1423
1423
  */
1424
- disconnect_by_func(object_path: string | null, method: string | null, callback: MessageCallback): void
1424
+ disconnect_by_func(object_path: string, method: string, callback: MessageCallback): void
1425
1425
  /**
1426
1426
  * Calls `func` for each message type registered on the bus
1427
1427
  * @param func the callback function
@@ -1434,7 +1434,7 @@ interface MessageBus {
1434
1434
  * @param method the method
1435
1435
  * @returns %TRUE if the @method at @object_path is a registered message type on the bus
1436
1436
  */
1437
- is_registered(object_path: string | null, method: string | null): boolean
1437
+ is_registered(object_path: string, method: string): boolean
1438
1438
  /**
1439
1439
  * Get the registered #GeditMessageType for `method` at `object_path`. The
1440
1440
  * returned #GeditMessageType is owned by the bus and should not be unreffed.
@@ -1442,7 +1442,7 @@ interface MessageBus {
1442
1442
  * @param method the method
1443
1443
  * @returns the registered #GeditMessageType or %NULL if no message type is registered for @method at @object_path
1444
1444
  */
1445
- lookup(object_path: string | null, method: string | null): GObject.GType
1445
+ lookup(object_path: string, method: string): GObject.GType
1446
1446
  /**
1447
1447
  * Register a message on the bus. A message must be registered on the bus before
1448
1448
  * it can be send. This function registers the type for `method` at
@@ -1453,7 +1453,7 @@ interface MessageBus {
1453
1453
  * @param object_path the object path
1454
1454
  * @param method the method to register
1455
1455
  */
1456
- register(message_type: GObject.GType, object_path: string | null, method: string | null): void
1456
+ register(message_type: GObject.GType, object_path: string, method: string): void
1457
1457
  /**
1458
1458
  * This sends the provided `message` asynchronously over the bus. To send
1459
1459
  * a message synchronously, use gedit_message_bus_send_message_sync(). The
@@ -1481,7 +1481,7 @@ interface MessageBus {
1481
1481
  * @param method the method
1482
1482
  * @param callback the callback to block
1483
1483
  */
1484
- unblock_by_func(object_path: string | null, method: string | null, callback: MessageCallback): void
1484
+ unblock_by_func(object_path: string, method: string, callback: MessageCallback): void
1485
1485
  /**
1486
1486
  * Unregisters a previously registered message type. This is especially useful
1487
1487
  * for plugins which should unregister message types when they are deactivated.
@@ -1490,7 +1490,7 @@ interface MessageBus {
1490
1490
  * @param object_path the object path
1491
1491
  * @param method the method
1492
1492
  */
1493
- unregister(object_path: string | null, method: string | null): void
1493
+ unregister(object_path: string, method: string): void
1494
1494
  /**
1495
1495
  * Unregisters all message types for `object_path`. This is especially useful for
1496
1496
  * plugins which should unregister message types when they are deactivated.
@@ -1499,13 +1499,13 @@ interface MessageBus {
1499
1499
  * unregistered message types.
1500
1500
  * @param object_path the object path
1501
1501
  */
1502
- unregister_all(object_path: string | null): void
1502
+ unregister_all(object_path: string): void
1503
1503
 
1504
1504
  // Own virtual methods of Gedit-3.0.Gedit.MessageBus
1505
1505
 
1506
1506
  vfunc_dispatch(message: Message): void
1507
- vfunc_registered(object_path: string | null, method: string | null): void
1508
- vfunc_unregistered(object_path: string | null, method: string | null): void
1507
+ vfunc_registered(object_path: string, method: string): void
1508
+ vfunc_unregistered(object_path: string, method: string): void
1509
1509
 
1510
1510
  // Own signals of Gedit-3.0.Gedit.MessageBus
1511
1511
 
@@ -1631,7 +1631,7 @@ interface Statusbar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
1631
1631
  * @param child the child widget
1632
1632
  * @param child_property the name of a child property installed on the class of `container`
1633
1633
  */
1634
- child_notify(child: Gtk.Widget, child_property: string | null): void
1634
+ child_notify(child: Gtk.Widget, child_property: string): void
1635
1635
 
1636
1636
  // Overloads of child_notify
1637
1637
 
@@ -1645,7 +1645,7 @@ interface Statusbar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
1645
1645
  * Also see gtk_container_child_notify().
1646
1646
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1647
1647
  */
1648
- child_notify(child_property: string | null): void
1648
+ child_notify(child_property: string): void
1649
1649
  /**
1650
1650
  * Emits a #GtkWidget::child-notify signal for the
1651
1651
  * [child property][child-properties] `child_property`
@@ -1656,7 +1656,7 @@ interface Statusbar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
1656
1656
  * Also see gtk_container_child_notify().
1657
1657
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1658
1658
  */
1659
- child_notify(child_property: string | null): void
1659
+ child_notify(child_property: string): void
1660
1660
 
1661
1661
  // Class property signals of Gedit-3.0.Gedit.Statusbar
1662
1662
 
@@ -1944,7 +1944,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
1944
1944
  * @param child the child widget
1945
1945
  * @param child_property the name of a child property installed on the class of `container`
1946
1946
  */
1947
- child_notify(child: Gtk.Widget, child_property: string | null): void
1947
+ child_notify(child: Gtk.Widget, child_property: string): void
1948
1948
 
1949
1949
  // Overloads of child_notify
1950
1950
 
@@ -1958,7 +1958,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
1958
1958
  * Also see gtk_container_child_notify().
1959
1959
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1960
1960
  */
1961
- child_notify(child_property: string | null): void
1961
+ child_notify(child_property: string): void
1962
1962
  /**
1963
1963
  * Emits a #GtkWidget::child-notify signal for the
1964
1964
  * [child property][child-properties] `child_property`
@@ -1969,7 +1969,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
1969
1969
  * Also see gtk_container_child_notify().
1970
1970
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1971
1971
  */
1972
- child_notify(child_property: string | null): void
1972
+ child_notify(child_property: string): void
1973
1973
 
1974
1974
  // Own signals of Gedit-3.0.Gedit.Tab
1975
1975
 
@@ -2217,7 +2217,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
2217
2217
  * @param child the child widget
2218
2218
  * @param child_property the name of a child property installed on the class of `container`
2219
2219
  */
2220
- child_notify(child: Gtk.Widget, child_property: string | null): void
2220
+ child_notify(child: Gtk.Widget, child_property: string): void
2221
2221
 
2222
2222
  // Overloads of child_notify
2223
2223
 
@@ -2231,7 +2231,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
2231
2231
  * Also see gtk_container_child_notify().
2232
2232
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2233
2233
  */
2234
- child_notify(child_property: string | null): void
2234
+ child_notify(child_property: string): void
2235
2235
  /**
2236
2236
  * Emits a #GtkWidget::child-notify signal for the
2237
2237
  * [child property][child-properties] `child_property`
@@ -2242,7 +2242,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
2242
2242
  * Also see gtk_container_child_notify().
2243
2243
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2244
2244
  */
2245
- child_notify(child_property: string | null): void
2245
+ child_notify(child_property: string): void
2246
2246
 
2247
2247
  // Own virtual methods of Gedit-3.0.Gedit.View
2248
2248
 
@@ -2773,7 +2773,7 @@ interface Window extends Atk.ImplementorIface, Gio.ActionGroup, Gio.ActionMap, G
2773
2773
  * @param child the child widget
2774
2774
  * @param child_property the name of a child property installed on the class of `container`
2775
2775
  */
2776
- child_notify(child: Gtk.Widget, child_property: string | null): void
2776
+ child_notify(child: Gtk.Widget, child_property: string): void
2777
2777
 
2778
2778
  // Overloads of child_notify
2779
2779
 
@@ -2787,7 +2787,7 @@ interface Window extends Atk.ImplementorIface, Gio.ActionGroup, Gio.ActionMap, G
2787
2787
  * Also see gtk_container_child_notify().
2788
2788
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2789
2789
  */
2790
- child_notify(child_property: string | null): void
2790
+ child_notify(child_property: string): void
2791
2791
  /**
2792
2792
  * Emits a #GtkWidget::child-notify signal for the
2793
2793
  * [child property][child-properties] `child_property`
@@ -2798,7 +2798,7 @@ interface Window extends Atk.ImplementorIface, Gio.ActionGroup, Gio.ActionMap, G
2798
2798
  * Also see gtk_container_child_notify().
2799
2799
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2800
2800
  */
2801
- child_notify(child_property: string | null): void
2801
+ child_notify(child_property: string): void
2802
2802
 
2803
2803
  // Own virtual methods of Gedit-3.0.Gedit.Window
2804
2804
 
@@ -3103,9 +3103,9 @@ interface AppClass {
3103
3103
  // Own fields of Gedit-3.0.Gedit.AppClass
3104
3104
 
3105
3105
  parent_class: Gtk.ApplicationClass
3106
- show_help: (app: App, parent: Gtk.Window, name: string | null, link_id: string | null) => boolean
3107
- help_link_id: (app: App, name: string | null, link_id: string | null) => string | null
3108
- set_window_title: (app: App, window: Window, title: string | null) => void
3106
+ show_help: (app: App, parent: Gtk.Window, name: string, link_id: string) => boolean
3107
+ help_link_id: (app: App, name: string, link_id: string) => string | null
3108
+ set_window_title: (app: App, window: Window, title: string) => void
3109
3109
  process_window_event: (app: App, window: Window, event: Gdk.Event) => boolean
3110
3110
  }
3111
3111
 
@@ -3167,8 +3167,8 @@ interface MessageBusClass {
3167
3167
 
3168
3168
  parent_class: GObject.ObjectClass
3169
3169
  dispatch: (bus: MessageBus, message: Message) => void
3170
- registered: (bus: MessageBus, object_path: string | null, method: string | null) => void
3171
- unregistered: (bus: MessageBus, object_path: string | null, method: string | null) => void
3170
+ registered: (bus: MessageBus, object_path: string, method: string) => void
3171
+ unregistered: (bus: MessageBus, object_path: string, method: string) => void
3172
3172
  }
3173
3173
 
3174
3174
  abstract class MessageBusClass {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gedit-3.0",
3
- "version": "3.0.0-3.2.6",
3
+ "version": "3.0.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Gedit-3.0, generated from library version 3.0.0",
5
5
  "type": "module",
6
6
  "module": "gedit-3.0.js",
@@ -25,21 +25,21 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gedit-3.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/atk-1.0": "^2.50.0-3.2.6",
29
- "@girs/cairo-1.0": "^1.0.0-3.2.6",
30
- "@girs/freetype2-2.0": "^2.0.0-3.2.6",
31
- "@girs/gdk-3.0": "^3.24.38-3.2.6",
32
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.6",
33
- "@girs/gio-2.0": "^2.78.0-3.2.6",
34
- "@girs/gjs": "^3.2.6",
35
- "@girs/glib-2.0": "^2.78.0-3.2.6",
36
- "@girs/gmodule-2.0": "^2.0.0-3.2.6",
37
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
38
- "@girs/gtk-3.0": "^3.24.38-3.2.6",
39
- "@girs/gtksource-4": "^4.0.0-3.2.6",
40
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
41
- "@girs/pango-1.0": "^1.51.0-3.2.6",
42
- "@girs/xlib-2.0": "^2.0.0-3.2.6"
28
+ "@girs/atk-1.0": "^2.50.0-3.2.7",
29
+ "@girs/cairo-1.0": "^1.0.0-3.2.7",
30
+ "@girs/freetype2-2.0": "^2.0.0-3.2.7",
31
+ "@girs/gdk-3.0": "^3.24.38-3.2.7",
32
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
33
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
34
+ "@girs/gjs": "^3.2.7",
35
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
36
+ "@girs/gmodule-2.0": "^2.0.0-3.2.7",
37
+ "@girs/gobject-2.0": "^2.78.0-3.2.7",
38
+ "@girs/gtk-3.0": "^3.24.38-3.2.7",
39
+ "@girs/gtksource-4": "^4.0.0-3.2.7",
40
+ "@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
41
+ "@girs/pango-1.0": "^1.51.0-3.2.7",
42
+ "@girs/xlib-2.0": "^2.0.0-3.2.7"
43
43
  },
44
44
  "devDependencies": {
45
45
  "typescript": "*"