@girs/granite-7.0 7.0.0-3.2.6 → 7.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/granite-7.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Granite-7.0, generated from library version 7.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Granite-7.0, generated from library version 7.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
 
11
11
  ## Install
package/granite-7.0.d.cts CHANGED
@@ -43,55 +43,55 @@ export enum SettingsColorScheme {
43
43
  DARK,
44
44
  LIGHT,
45
45
  }
46
- export const SettingsUriLOCATION: string | null
47
- export const SettingsUriONLINE_ACCOUNTS: string | null
48
- export const SettingsUriNETWORK: string | null
49
- export const SettingsUriPERMISSIONS: string | null
50
- export const SettingsUriNOTIFICATIONS: string | null
51
- export const SettingsUriSOUND_INPUT: string | null
52
- export const SettingsUriSHORTCUTS: string | null
53
- export const STYLE_CLASS_ACCENT: string | null
54
- export const STYLE_CLASS_BACK_BUTTON: string | null
55
- export const STYLE_CLASS_BACKGROUND: string | null
56
- export const STYLE_CLASS_BADGE: string | null
57
- export const STYLE_CLASS_CARD: string | null
58
- export const STYLE_CLASS_CHECKERBOARD: string | null
59
- export const STYLE_CLASS_CIRCULAR: string | null
60
- export const STYLE_CLASS_COLOR_BUTTON: string | null
61
- export const STYLE_CLASS_DEFAULT_DECORATION: string | null
62
- export const STYLE_CLASS_DESTRUCTIVE_ACTION: string | null
63
- export const STYLE_CLASS_DIALOG_CONTENT_AREA: string | null
64
- export const STYLE_CLASS_FRAME: string | null
65
- export const STYLE_CLASS_H1_LABEL: string | null
66
- export const STYLE_CLASS_H2_LABEL: string | null
67
- export const STYLE_CLASS_H3_LABEL: string | null
68
- export const STYLE_CLASS_H4_LABEL: string | null
69
- export const STYLE_CLASS_KEYCAP: string | null
70
- export const STYLE_CLASS_LARGE_ICONS: string | null
71
- export const STYLE_CLASS_MODE_SWITCH: string | null
72
- export const STYLE_CLASS_OSD: string | null
73
- export const STYLE_CLASS_ROUNDED: string | null
74
- export const STYLE_CLASS_SIDEBAR: string | null
75
- export const STYLE_CLASS_SMALL_LABEL: string | null
76
- export const STYLE_CLASS_TERMINAL: string | null
77
- export const STYLE_CLASS_TITLE_LABEL: string | null
78
- export const STYLE_CLASS_WARMTH: string | null
79
- export const STYLE_CLASS_TEMPERATURE: string | null
80
- export const STYLE_CLASS_LINKED: string | null
81
- export const STYLE_CLASS_MENU: string | null
82
- export const STYLE_CLASS_MENUITEM: string | null
83
- export const STYLE_CLASS_DIM_LABEL: string | null
84
- export const STYLE_CLASS_ERROR: string | null
85
- export const STYLE_CLASS_FLAT: string | null
86
- export const STYLE_CLASS_MESSAGE_DIALOG: string | null
87
- export const STYLE_CLASS_RICH_LIST: string | null
88
- export const STYLE_CLASS_SUGGESTED_ACTION: string | null
89
- export const STYLE_CLASS_VIEW: string | null
90
- export const STYLE_CLASS_WARNING: string | null
46
+ export const SettingsUriLOCATION: string
47
+ export const SettingsUriONLINE_ACCOUNTS: string
48
+ export const SettingsUriNETWORK: string
49
+ export const SettingsUriPERMISSIONS: string
50
+ export const SettingsUriNOTIFICATIONS: string
51
+ export const SettingsUriSOUND_INPUT: string
52
+ export const SettingsUriSHORTCUTS: string
53
+ export const STYLE_CLASS_ACCENT: string
54
+ export const STYLE_CLASS_BACK_BUTTON: string
55
+ export const STYLE_CLASS_BACKGROUND: string
56
+ export const STYLE_CLASS_BADGE: string
57
+ export const STYLE_CLASS_CARD: string
58
+ export const STYLE_CLASS_CHECKERBOARD: string
59
+ export const STYLE_CLASS_CIRCULAR: string
60
+ export const STYLE_CLASS_COLOR_BUTTON: string
61
+ export const STYLE_CLASS_DEFAULT_DECORATION: string
62
+ export const STYLE_CLASS_DESTRUCTIVE_ACTION: string
63
+ export const STYLE_CLASS_DIALOG_CONTENT_AREA: string
64
+ export const STYLE_CLASS_FRAME: string
65
+ export const STYLE_CLASS_H1_LABEL: string
66
+ export const STYLE_CLASS_H2_LABEL: string
67
+ export const STYLE_CLASS_H3_LABEL: string
68
+ export const STYLE_CLASS_H4_LABEL: string
69
+ export const STYLE_CLASS_KEYCAP: string
70
+ export const STYLE_CLASS_LARGE_ICONS: string
71
+ export const STYLE_CLASS_MODE_SWITCH: string
72
+ export const STYLE_CLASS_OSD: string
73
+ export const STYLE_CLASS_ROUNDED: string
74
+ export const STYLE_CLASS_SIDEBAR: string
75
+ export const STYLE_CLASS_SMALL_LABEL: string
76
+ export const STYLE_CLASS_TERMINAL: string
77
+ export const STYLE_CLASS_TITLE_LABEL: string
78
+ export const STYLE_CLASS_WARMTH: string
79
+ export const STYLE_CLASS_TEMPERATURE: string
80
+ export const STYLE_CLASS_LINKED: string
81
+ export const STYLE_CLASS_MENU: string
82
+ export const STYLE_CLASS_MENUITEM: string
83
+ export const STYLE_CLASS_DIM_LABEL: string
84
+ export const STYLE_CLASS_ERROR: string
85
+ export const STYLE_CLASS_FLAT: string
86
+ export const STYLE_CLASS_MESSAGE_DIALOG: string
87
+ export const STYLE_CLASS_RICH_LIST: string
88
+ export const STYLE_CLASS_SUGGESTED_ACTION: string
89
+ export const STYLE_CLASS_VIEW: string
90
+ export const STYLE_CLASS_WARNING: string
91
91
  export const TRANSITION_DURATION_CLOSE: number
92
92
  export const TRANSITION_DURATION_IN_PLACE: number
93
93
  export const TRANSITION_DURATION_OPEN: number
94
- export const TOOLTIP_SECONDARY_TEXT_MARKUP: string | null
94
+ export const TOOLTIP_SECONDARY_TEXT_MARKUP: string
95
95
  export function date_time_get_default_time_format(is_12h: boolean, with_second: boolean): string | null
96
96
  export function date_time_get_relative_datetime(date_time: GLib.DateTime): string | null
97
97
  export function date_time_is_same_day(day1: GLib.DateTime, day2: GLib.DateTime): boolean
@@ -172,12 +172,12 @@ export interface ServicesSettingsSerializable extends GObject.Object {
172
172
  // Owm methods of Granite-7.0.Granite.ServicesSettingsSerializable
173
173
 
174
174
  settings_serialize(): string | null
175
- settings_deserialize(s: string | null): void
175
+ settings_deserialize(s: string): void
176
176
 
177
177
  // Own virtual methods of Granite-7.0.Granite.ServicesSettingsSerializable
178
178
 
179
179
  vfunc_settings_serialize(): string | null
180
- vfunc_settings_deserialize(s: string | null): void
180
+ vfunc_settings_deserialize(s: string): void
181
181
 
182
182
  // Class property signals of Granite-7.0.Granite.ServicesSettingsSerializable
183
183
 
@@ -255,7 +255,7 @@ export class ServicesContractorProxy extends GObject.Object {
255
255
  _init(config?: ServicesContractorProxy.ConstructorProperties): void
256
256
  static get_instance(): any
257
257
  static get_all_contracts(): Gee.List
258
- static get_contracts_by_mime(mime_type: string | null): Gee.List
258
+ static get_contracts_by_mime(mime_type: string): Gee.List
259
259
  static get_contracts_by_mimelist(mime_types: string[]): Gee.List
260
260
  static get_contracts_for_file(file: Gio.File): Gee.List
261
261
  static get_contracts_for_files(files: Gio.File[]): Gee.List
@@ -348,12 +348,12 @@ export interface SettingsPage {
348
348
  set_status_type(value: SettingsPageStatusType): void
349
349
  get_display_widget(): Gtk.Widget | null
350
350
  get_header(): string | null
351
- get_status(): string | null
352
- set_status(value: string | null): void
351
+ get_status(): string
352
+ set_status(value: string): void
353
353
  get_icon_name(): string | null
354
354
  set_icon_name(value: string | null): void
355
- get_title(): string | null
356
- set_title(value: string | null): void
355
+ get_title(): string
356
+ set_title(value: string): void
357
357
  get_child(): Gtk.Widget
358
358
  set_child(value: Gtk.Widget): void
359
359
 
@@ -556,8 +556,8 @@ export interface SimpleSettingsPage {
556
556
  get_content_area(): Gtk.Grid
557
557
  get_status_switch(): Gtk.Switch | null
558
558
  get_activatable(): boolean
559
- get_description(): string | null
560
- set_description(value: string | null): void
559
+ get_description(): string
560
+ set_description(value: string): void
561
561
 
562
562
  // Class property signals of Granite-7.0.Granite.SimpleSettingsPage
563
563
 
@@ -763,12 +763,12 @@ export interface AccelLabel {
763
763
 
764
764
  // Owm methods of Granite-7.0.Granite.AccelLabel
765
765
 
766
- get_action_name(): string | null
767
- set_action_name(value: string | null): void
766
+ get_action_name(): string
767
+ set_action_name(value: string): void
768
768
  get_accel_string(): string | null
769
769
  set_accel_string(value: string | null): void
770
- get_label(): string | null
771
- set_label(value: string | null): void
770
+ get_label(): string
771
+ set_label(value: string): void
772
772
 
773
773
  // Class property signals of Granite-7.0.Granite.AccelLabel
774
774
 
@@ -911,8 +911,8 @@ export class AccelLabel extends Gtk.Box {
911
911
  // Constructors of Granite-7.0.Granite.AccelLabel
912
912
 
913
913
  constructor(config?: AccelLabel.ConstructorProperties)
914
- constructor(label: string | null, accel_string: string | null)
915
- static new(label: string | null, accel_string: string | null): AccelLabel
914
+ constructor(label: string, accel_string: string | null)
915
+ static new(label: string, accel_string: string | null): AccelLabel
916
916
 
917
917
  // Overloads of new
918
918
 
@@ -924,7 +924,7 @@ export class AccelLabel extends Gtk.Box {
924
924
  * @returns a new `GtkBox`.
925
925
  */
926
926
  static new(orientation: Gtk.Orientation, spacing: number): Gtk.Box
927
- static from_action_name(label: string | null, action_name: string | null): AccelLabel
927
+ static from_action_name(label: string, action_name: string): AccelLabel
928
928
  _init(config?: AccelLabel.ConstructorProperties): void
929
929
  }
930
930
 
@@ -951,7 +951,7 @@ export interface DatePicker extends Gtk.Buildable {
951
951
 
952
952
  // Owm methods of Granite-7.0.Granite.DatePicker
953
953
 
954
- get_format(): string | null
954
+ get_format(): string
955
955
  get_date(): GLib.DateTime
956
956
  set_date(value: GLib.DateTime): void
957
957
 
@@ -1198,7 +1198,7 @@ export class DatePicker extends Gtk.Entry {
1198
1198
  // Constructors of Granite-7.0.Granite.DatePicker
1199
1199
 
1200
1200
  constructor(config?: DatePicker.ConstructorProperties)
1201
- static with_format(format: string | null): DatePicker
1201
+ static with_format(format: string): DatePicker
1202
1202
  constructor()
1203
1203
  static new(): DatePicker
1204
1204
 
@@ -1469,8 +1469,8 @@ export interface HeaderLabel {
1469
1469
 
1470
1470
  // Owm methods of Granite-7.0.Granite.HeaderLabel
1471
1471
 
1472
- get_label(): string | null
1473
- set_label(value: string | null): void
1472
+ get_label(): string
1473
+ set_label(value: string): void
1474
1474
  get_secondary_text(): string | null
1475
1475
  set_secondary_text(value: string | null): void
1476
1476
 
@@ -1600,8 +1600,8 @@ export class HeaderLabel extends Gtk.Widget {
1600
1600
  // Constructors of Granite-7.0.Granite.HeaderLabel
1601
1601
 
1602
1602
  constructor(config?: HeaderLabel.ConstructorProperties)
1603
- constructor(label: string | null)
1604
- static new(label: string | null): HeaderLabel
1603
+ constructor(label: string)
1604
+ static new(label: string): HeaderLabel
1605
1605
  _init(config?: HeaderLabel.ConstructorProperties): void
1606
1606
  }
1607
1607
 
@@ -1875,10 +1875,10 @@ export interface MessageDialog {
1875
1875
 
1876
1876
  // Owm methods of Granite-7.0.Granite.MessageDialog
1877
1877
 
1878
- get_primary_text(): string | null
1879
- set_primary_text(value: string | null): void
1880
- get_secondary_text(): string | null
1881
- set_secondary_text(value: string | null): void
1878
+ get_primary_text(): string
1879
+ set_primary_text(value: string): void
1880
+ get_secondary_text(): string
1881
+ set_secondary_text(value: string): void
1882
1882
  get_image_icon(): Gio.Icon
1883
1883
  set_image_icon(value: Gio.Icon): void
1884
1884
  get_badge_icon(): Gio.Icon
@@ -1886,7 +1886,7 @@ export interface MessageDialog {
1886
1886
  get_primary_label(): Gtk.Label
1887
1887
  get_secondary_label(): Gtk.Label
1888
1888
  get_custom_bin(): Gtk.Box
1889
- show_error_details(error_message: string | null): void
1889
+ show_error_details(error_message: string): void
1890
1890
 
1891
1891
  // Class property signals of Granite-7.0.Granite.MessageDialog
1892
1892
 
@@ -2110,8 +2110,8 @@ export class MessageDialog extends Dialog {
2110
2110
  // Constructors of Granite-7.0.Granite.MessageDialog
2111
2111
 
2112
2112
  constructor(config?: MessageDialog.ConstructorProperties)
2113
- constructor(primary_text: string | null, secondary_text: string | null, image_icon: Gio.Icon, buttons: Gtk.ButtonsType)
2114
- static new(primary_text: string | null, secondary_text: string | null, image_icon: Gio.Icon, buttons: Gtk.ButtonsType): MessageDialog
2113
+ constructor(primary_text: string, secondary_text: string, image_icon: Gio.Icon, buttons: Gtk.ButtonsType)
2114
+ static new(primary_text: string, secondary_text: string, image_icon: Gio.Icon, buttons: Gtk.ButtonsType): MessageDialog
2115
2115
 
2116
2116
  // Overloads of new
2117
2117
 
@@ -2126,7 +2126,7 @@ export class MessageDialog extends Dialog {
2126
2126
  * @returns the new dialog as a `GtkWidget`
2127
2127
  */
2128
2128
  static new(): Gtk.Dialog
2129
- static with_image_from_icon_name(primary_text: string | null, secondary_text: string | null, image_icon_name: string | null, buttons: Gtk.ButtonsType): MessageDialog
2129
+ static with_image_from_icon_name(primary_text: string, secondary_text: string, image_icon_name: string, buttons: Gtk.ButtonsType): MessageDialog
2130
2130
  _init(config?: MessageDialog.ConstructorProperties): void
2131
2131
  }
2132
2132
 
@@ -2183,16 +2183,16 @@ export interface ModeSwitch {
2183
2183
  set_active(value: boolean): void
2184
2184
  get_primary_icon_gicon(): Gio.Icon
2185
2185
  set_primary_icon_gicon(value: Gio.Icon): void
2186
- get_primary_icon_name(): string | null
2187
- set_primary_icon_name(value: string | null): void
2188
- get_primary_icon_tooltip_text(): string | null
2189
- set_primary_icon_tooltip_text(value: string | null): void
2186
+ get_primary_icon_name(): string
2187
+ set_primary_icon_name(value: string): void
2188
+ get_primary_icon_tooltip_text(): string
2189
+ set_primary_icon_tooltip_text(value: string): void
2190
2190
  get_secondary_icon_gicon(): Gio.Icon
2191
2191
  set_secondary_icon_gicon(value: Gio.Icon): void
2192
- get_secondary_icon_name(): string | null
2193
- set_secondary_icon_name(value: string | null): void
2194
- get_secondary_icon_tooltip_text(): string | null
2195
- set_secondary_icon_tooltip_text(value: string | null): void
2192
+ get_secondary_icon_name(): string
2193
+ set_secondary_icon_name(value: string): void
2194
+ get_secondary_icon_tooltip_text(): string
2195
+ set_secondary_icon_tooltip_text(value: string): void
2196
2196
 
2197
2197
  // Class property signals of Granite-7.0.Granite.ModeSwitch
2198
2198
 
@@ -2360,7 +2360,7 @@ export class ModeSwitch extends Gtk.Box {
2360
2360
  * @returns a new `GtkBox`.
2361
2361
  */
2362
2362
  static new(orientation: Gtk.Orientation, spacing: number): Gtk.Box
2363
- static from_icon_name(primary_icon_name: string | null, secondary_icon_name: string | null): ModeSwitch
2363
+ static from_icon_name(primary_icon_name: string, secondary_icon_name: string): ModeSwitch
2364
2364
  _init(config?: ModeSwitch.ConstructorProperties): void
2365
2365
  }
2366
2366
 
@@ -2390,8 +2390,8 @@ export interface OverlayBar {
2390
2390
  // Owm methods of Granite-7.0.Granite.OverlayBar
2391
2391
 
2392
2392
  get_overlay(): Gtk.Overlay | null
2393
- get_label(): string | null
2394
- set_label(value: string | null): void
2393
+ get_label(): string
2394
+ set_label(value: string): void
2395
2395
  get_active(): boolean
2396
2396
  set_active(value: boolean): void
2397
2397
 
@@ -2554,13 +2554,13 @@ export interface Placeholder {
2554
2554
 
2555
2555
  // Owm methods of Granite-7.0.Granite.Placeholder
2556
2556
 
2557
- get_title(): string | null
2558
- set_title(value: string | null): void
2559
- get_description(): string | null
2560
- set_description(value: string | null): void
2557
+ get_title(): string
2558
+ set_title(value: string): void
2559
+ get_description(): string
2560
+ set_description(value: string): void
2561
2561
  get_icon(): Gio.Icon
2562
2562
  set_icon(value: Gio.Icon): void
2563
- append_button(icon: Gio.Icon, label: string | null, description: string | null): Gtk.Button
2563
+ append_button(icon: Gio.Icon, label: string, description: string): Gtk.Button
2564
2564
 
2565
2565
  // Class property signals of Granite-7.0.Granite.Placeholder
2566
2566
 
@@ -2691,8 +2691,8 @@ export class Placeholder extends Gtk.Widget {
2691
2691
  // Constructors of Granite-7.0.Granite.Placeholder
2692
2692
 
2693
2693
  constructor(config?: Placeholder.ConstructorProperties)
2694
- constructor(title: string | null)
2695
- static new(title: string | null): Placeholder
2694
+ constructor(title: string)
2695
+ static new(title: string): Placeholder
2696
2696
  _init(config?: Placeholder.ConstructorProperties): void
2697
2697
  }
2698
2698
 
@@ -2929,8 +2929,8 @@ export interface SwitchModelButton {
2929
2929
 
2930
2930
  // Owm methods of Granite-7.0.Granite.SwitchModelButton
2931
2931
 
2932
- get_text(): string | null
2933
- set_text(value: string | null): void
2932
+ get_text(): string
2933
+ set_text(value: string): void
2934
2934
  get_description(): string | null
2935
2935
  set_description(value: string | null): void
2936
2936
 
@@ -3084,8 +3084,8 @@ export class SwitchModelButton extends Gtk.ToggleButton {
3084
3084
  // Constructors of Granite-7.0.Granite.SwitchModelButton
3085
3085
 
3086
3086
  constructor(config?: SwitchModelButton.ConstructorProperties)
3087
- constructor(text: string | null)
3088
- static new(text: string | null): SwitchModelButton
3087
+ constructor(text: string)
3088
+ static new(text: string): SwitchModelButton
3089
3089
 
3090
3090
  // Overloads of new
3091
3091
 
@@ -3139,8 +3139,8 @@ export interface TimePicker {
3139
3139
 
3140
3140
  // Owm methods of Granite-7.0.Granite.TimePicker
3141
3141
 
3142
- get_format_12(): string | null
3143
- get_format_24(): string | null
3142
+ get_format_12(): string
3143
+ get_format_24(): string
3144
3144
  get_time(): GLib.DateTime
3145
3145
  set_time(value: GLib.DateTime): void
3146
3146
 
@@ -3396,7 +3396,7 @@ export class TimePicker extends Gtk.Entry {
3396
3396
  // Constructors of Granite-7.0.Granite.TimePicker
3397
3397
 
3398
3398
  constructor(config?: TimePicker.ConstructorProperties)
3399
- static with_format(format_12: string | null, format_24: string | null): TimePicker
3399
+ static with_format(format_12: string, format_24: string): TimePicker
3400
3400
  constructor()
3401
3401
  static new(): TimePicker
3402
3402
 
@@ -3449,8 +3449,8 @@ export interface Toast {
3449
3449
 
3450
3450
  // Owm methods of Granite-7.0.Granite.Toast
3451
3451
 
3452
- get_title(): string | null
3453
- set_title(value: string | null): void
3452
+ get_title(): string
3453
+ set_title(value: string): void
3454
3454
  set_default_action(label: string | null): void
3455
3455
  send_notification(): void
3456
3456
 
@@ -3586,8 +3586,8 @@ export class Toast extends Gtk.Widget {
3586
3586
  // Constructors of Granite-7.0.Granite.Toast
3587
3587
 
3588
3588
  constructor(config?: Toast.ConstructorProperties)
3589
- constructor(title: string | null)
3590
- static new(title: string | null): Toast
3589
+ constructor(title: string)
3590
+ static new(title: string): Toast
3591
3591
  _init(config?: Toast.ConstructorProperties): void
3592
3592
  }
3593
3593
 
@@ -3951,7 +3951,7 @@ export interface ServicesSettingsSerializableIface {
3951
3951
  // Own fields of Granite-7.0.Granite.ServicesSettingsSerializableIface
3952
3952
 
3953
3953
  settings_serialize: (self: any) => string | null
3954
- settings_deserialize: (self: any, s: string | null) => void
3954
+ settings_deserialize: (self: any, s: string) => void
3955
3955
  }
3956
3956
 
3957
3957
  export abstract class ServicesSettingsSerializableIface {
package/granite-7.0.d.ts CHANGED
@@ -45,55 +45,55 @@ enum SettingsColorScheme {
45
45
  DARK,
46
46
  LIGHT,
47
47
  }
48
- const SettingsUriLOCATION: string | null
49
- const SettingsUriONLINE_ACCOUNTS: string | null
50
- const SettingsUriNETWORK: string | null
51
- const SettingsUriPERMISSIONS: string | null
52
- const SettingsUriNOTIFICATIONS: string | null
53
- const SettingsUriSOUND_INPUT: string | null
54
- const SettingsUriSHORTCUTS: string | null
55
- const STYLE_CLASS_ACCENT: string | null
56
- const STYLE_CLASS_BACK_BUTTON: string | null
57
- const STYLE_CLASS_BACKGROUND: string | null
58
- const STYLE_CLASS_BADGE: string | null
59
- const STYLE_CLASS_CARD: string | null
60
- const STYLE_CLASS_CHECKERBOARD: string | null
61
- const STYLE_CLASS_CIRCULAR: string | null
62
- const STYLE_CLASS_COLOR_BUTTON: string | null
63
- const STYLE_CLASS_DEFAULT_DECORATION: string | null
64
- const STYLE_CLASS_DESTRUCTIVE_ACTION: string | null
65
- const STYLE_CLASS_DIALOG_CONTENT_AREA: string | null
66
- const STYLE_CLASS_FRAME: string | null
67
- const STYLE_CLASS_H1_LABEL: string | null
68
- const STYLE_CLASS_H2_LABEL: string | null
69
- const STYLE_CLASS_H3_LABEL: string | null
70
- const STYLE_CLASS_H4_LABEL: string | null
71
- const STYLE_CLASS_KEYCAP: string | null
72
- const STYLE_CLASS_LARGE_ICONS: string | null
73
- const STYLE_CLASS_MODE_SWITCH: string | null
74
- const STYLE_CLASS_OSD: string | null
75
- const STYLE_CLASS_ROUNDED: string | null
76
- const STYLE_CLASS_SIDEBAR: string | null
77
- const STYLE_CLASS_SMALL_LABEL: string | null
78
- const STYLE_CLASS_TERMINAL: string | null
79
- const STYLE_CLASS_TITLE_LABEL: string | null
80
- const STYLE_CLASS_WARMTH: string | null
81
- const STYLE_CLASS_TEMPERATURE: string | null
82
- const STYLE_CLASS_LINKED: string | null
83
- const STYLE_CLASS_MENU: string | null
84
- const STYLE_CLASS_MENUITEM: string | null
85
- const STYLE_CLASS_DIM_LABEL: string | null
86
- const STYLE_CLASS_ERROR: string | null
87
- const STYLE_CLASS_FLAT: string | null
88
- const STYLE_CLASS_MESSAGE_DIALOG: string | null
89
- const STYLE_CLASS_RICH_LIST: string | null
90
- const STYLE_CLASS_SUGGESTED_ACTION: string | null
91
- const STYLE_CLASS_VIEW: string | null
92
- const STYLE_CLASS_WARNING: string | null
48
+ const SettingsUriLOCATION: string
49
+ const SettingsUriONLINE_ACCOUNTS: string
50
+ const SettingsUriNETWORK: string
51
+ const SettingsUriPERMISSIONS: string
52
+ const SettingsUriNOTIFICATIONS: string
53
+ const SettingsUriSOUND_INPUT: string
54
+ const SettingsUriSHORTCUTS: string
55
+ const STYLE_CLASS_ACCENT: string
56
+ const STYLE_CLASS_BACK_BUTTON: string
57
+ const STYLE_CLASS_BACKGROUND: string
58
+ const STYLE_CLASS_BADGE: string
59
+ const STYLE_CLASS_CARD: string
60
+ const STYLE_CLASS_CHECKERBOARD: string
61
+ const STYLE_CLASS_CIRCULAR: string
62
+ const STYLE_CLASS_COLOR_BUTTON: string
63
+ const STYLE_CLASS_DEFAULT_DECORATION: string
64
+ const STYLE_CLASS_DESTRUCTIVE_ACTION: string
65
+ const STYLE_CLASS_DIALOG_CONTENT_AREA: string
66
+ const STYLE_CLASS_FRAME: string
67
+ const STYLE_CLASS_H1_LABEL: string
68
+ const STYLE_CLASS_H2_LABEL: string
69
+ const STYLE_CLASS_H3_LABEL: string
70
+ const STYLE_CLASS_H4_LABEL: string
71
+ const STYLE_CLASS_KEYCAP: string
72
+ const STYLE_CLASS_LARGE_ICONS: string
73
+ const STYLE_CLASS_MODE_SWITCH: string
74
+ const STYLE_CLASS_OSD: string
75
+ const STYLE_CLASS_ROUNDED: string
76
+ const STYLE_CLASS_SIDEBAR: string
77
+ const STYLE_CLASS_SMALL_LABEL: string
78
+ const STYLE_CLASS_TERMINAL: string
79
+ const STYLE_CLASS_TITLE_LABEL: string
80
+ const STYLE_CLASS_WARMTH: string
81
+ const STYLE_CLASS_TEMPERATURE: string
82
+ const STYLE_CLASS_LINKED: string
83
+ const STYLE_CLASS_MENU: string
84
+ const STYLE_CLASS_MENUITEM: string
85
+ const STYLE_CLASS_DIM_LABEL: string
86
+ const STYLE_CLASS_ERROR: string
87
+ const STYLE_CLASS_FLAT: string
88
+ const STYLE_CLASS_MESSAGE_DIALOG: string
89
+ const STYLE_CLASS_RICH_LIST: string
90
+ const STYLE_CLASS_SUGGESTED_ACTION: string
91
+ const STYLE_CLASS_VIEW: string
92
+ const STYLE_CLASS_WARNING: string
93
93
  const TRANSITION_DURATION_CLOSE: number
94
94
  const TRANSITION_DURATION_IN_PLACE: number
95
95
  const TRANSITION_DURATION_OPEN: number
96
- const TOOLTIP_SECONDARY_TEXT_MARKUP: string | null
96
+ const TOOLTIP_SECONDARY_TEXT_MARKUP: string
97
97
  function date_time_get_default_time_format(is_12h: boolean, with_second: boolean): string | null
98
98
  function date_time_get_relative_datetime(date_time: GLib.DateTime): string | null
99
99
  function date_time_is_same_day(day1: GLib.DateTime, day2: GLib.DateTime): boolean
@@ -174,12 +174,12 @@ interface ServicesSettingsSerializable extends GObject.Object {
174
174
  // Owm methods of Granite-7.0.Granite.ServicesSettingsSerializable
175
175
 
176
176
  settings_serialize(): string | null
177
- settings_deserialize(s: string | null): void
177
+ settings_deserialize(s: string): void
178
178
 
179
179
  // Own virtual methods of Granite-7.0.Granite.ServicesSettingsSerializable
180
180
 
181
181
  vfunc_settings_serialize(): string | null
182
- vfunc_settings_deserialize(s: string | null): void
182
+ vfunc_settings_deserialize(s: string): void
183
183
 
184
184
  // Class property signals of Granite-7.0.Granite.ServicesSettingsSerializable
185
185
 
@@ -257,7 +257,7 @@ class ServicesContractorProxy extends GObject.Object {
257
257
  _init(config?: ServicesContractorProxy.ConstructorProperties): void
258
258
  static get_instance(): any
259
259
  static get_all_contracts(): Gee.List
260
- static get_contracts_by_mime(mime_type: string | null): Gee.List
260
+ static get_contracts_by_mime(mime_type: string): Gee.List
261
261
  static get_contracts_by_mimelist(mime_types: string[]): Gee.List
262
262
  static get_contracts_for_file(file: Gio.File): Gee.List
263
263
  static get_contracts_for_files(files: Gio.File[]): Gee.List
@@ -350,12 +350,12 @@ interface SettingsPage {
350
350
  set_status_type(value: SettingsPageStatusType): void
351
351
  get_display_widget(): Gtk.Widget | null
352
352
  get_header(): string | null
353
- get_status(): string | null
354
- set_status(value: string | null): void
353
+ get_status(): string
354
+ set_status(value: string): void
355
355
  get_icon_name(): string | null
356
356
  set_icon_name(value: string | null): void
357
- get_title(): string | null
358
- set_title(value: string | null): void
357
+ get_title(): string
358
+ set_title(value: string): void
359
359
  get_child(): Gtk.Widget
360
360
  set_child(value: Gtk.Widget): void
361
361
 
@@ -558,8 +558,8 @@ interface SimpleSettingsPage {
558
558
  get_content_area(): Gtk.Grid
559
559
  get_status_switch(): Gtk.Switch | null
560
560
  get_activatable(): boolean
561
- get_description(): string | null
562
- set_description(value: string | null): void
561
+ get_description(): string
562
+ set_description(value: string): void
563
563
 
564
564
  // Class property signals of Granite-7.0.Granite.SimpleSettingsPage
565
565
 
@@ -765,12 +765,12 @@ interface AccelLabel {
765
765
 
766
766
  // Owm methods of Granite-7.0.Granite.AccelLabel
767
767
 
768
- get_action_name(): string | null
769
- set_action_name(value: string | null): void
768
+ get_action_name(): string
769
+ set_action_name(value: string): void
770
770
  get_accel_string(): string | null
771
771
  set_accel_string(value: string | null): void
772
- get_label(): string | null
773
- set_label(value: string | null): void
772
+ get_label(): string
773
+ set_label(value: string): void
774
774
 
775
775
  // Class property signals of Granite-7.0.Granite.AccelLabel
776
776
 
@@ -913,8 +913,8 @@ class AccelLabel extends Gtk.Box {
913
913
  // Constructors of Granite-7.0.Granite.AccelLabel
914
914
 
915
915
  constructor(config?: AccelLabel.ConstructorProperties)
916
- constructor(label: string | null, accel_string: string | null)
917
- static new(label: string | null, accel_string: string | null): AccelLabel
916
+ constructor(label: string, accel_string: string | null)
917
+ static new(label: string, accel_string: string | null): AccelLabel
918
918
 
919
919
  // Overloads of new
920
920
 
@@ -926,7 +926,7 @@ class AccelLabel extends Gtk.Box {
926
926
  * @returns a new `GtkBox`.
927
927
  */
928
928
  static new(orientation: Gtk.Orientation, spacing: number): Gtk.Box
929
- static from_action_name(label: string | null, action_name: string | null): AccelLabel
929
+ static from_action_name(label: string, action_name: string): AccelLabel
930
930
  _init(config?: AccelLabel.ConstructorProperties): void
931
931
  }
932
932
 
@@ -953,7 +953,7 @@ interface DatePicker extends Gtk.Buildable {
953
953
 
954
954
  // Owm methods of Granite-7.0.Granite.DatePicker
955
955
 
956
- get_format(): string | null
956
+ get_format(): string
957
957
  get_date(): GLib.DateTime
958
958
  set_date(value: GLib.DateTime): void
959
959
 
@@ -1200,7 +1200,7 @@ class DatePicker extends Gtk.Entry {
1200
1200
  // Constructors of Granite-7.0.Granite.DatePicker
1201
1201
 
1202
1202
  constructor(config?: DatePicker.ConstructorProperties)
1203
- static with_format(format: string | null): DatePicker
1203
+ static with_format(format: string): DatePicker
1204
1204
  constructor()
1205
1205
  static new(): DatePicker
1206
1206
 
@@ -1471,8 +1471,8 @@ interface HeaderLabel {
1471
1471
 
1472
1472
  // Owm methods of Granite-7.0.Granite.HeaderLabel
1473
1473
 
1474
- get_label(): string | null
1475
- set_label(value: string | null): void
1474
+ get_label(): string
1475
+ set_label(value: string): void
1476
1476
  get_secondary_text(): string | null
1477
1477
  set_secondary_text(value: string | null): void
1478
1478
 
@@ -1602,8 +1602,8 @@ class HeaderLabel extends Gtk.Widget {
1602
1602
  // Constructors of Granite-7.0.Granite.HeaderLabel
1603
1603
 
1604
1604
  constructor(config?: HeaderLabel.ConstructorProperties)
1605
- constructor(label: string | null)
1606
- static new(label: string | null): HeaderLabel
1605
+ constructor(label: string)
1606
+ static new(label: string): HeaderLabel
1607
1607
  _init(config?: HeaderLabel.ConstructorProperties): void
1608
1608
  }
1609
1609
 
@@ -1877,10 +1877,10 @@ interface MessageDialog {
1877
1877
 
1878
1878
  // Owm methods of Granite-7.0.Granite.MessageDialog
1879
1879
 
1880
- get_primary_text(): string | null
1881
- set_primary_text(value: string | null): void
1882
- get_secondary_text(): string | null
1883
- set_secondary_text(value: string | null): void
1880
+ get_primary_text(): string
1881
+ set_primary_text(value: string): void
1882
+ get_secondary_text(): string
1883
+ set_secondary_text(value: string): void
1884
1884
  get_image_icon(): Gio.Icon
1885
1885
  set_image_icon(value: Gio.Icon): void
1886
1886
  get_badge_icon(): Gio.Icon
@@ -1888,7 +1888,7 @@ interface MessageDialog {
1888
1888
  get_primary_label(): Gtk.Label
1889
1889
  get_secondary_label(): Gtk.Label
1890
1890
  get_custom_bin(): Gtk.Box
1891
- show_error_details(error_message: string | null): void
1891
+ show_error_details(error_message: string): void
1892
1892
 
1893
1893
  // Class property signals of Granite-7.0.Granite.MessageDialog
1894
1894
 
@@ -2112,8 +2112,8 @@ class MessageDialog extends Dialog {
2112
2112
  // Constructors of Granite-7.0.Granite.MessageDialog
2113
2113
 
2114
2114
  constructor(config?: MessageDialog.ConstructorProperties)
2115
- constructor(primary_text: string | null, secondary_text: string | null, image_icon: Gio.Icon, buttons: Gtk.ButtonsType)
2116
- static new(primary_text: string | null, secondary_text: string | null, image_icon: Gio.Icon, buttons: Gtk.ButtonsType): MessageDialog
2115
+ constructor(primary_text: string, secondary_text: string, image_icon: Gio.Icon, buttons: Gtk.ButtonsType)
2116
+ static new(primary_text: string, secondary_text: string, image_icon: Gio.Icon, buttons: Gtk.ButtonsType): MessageDialog
2117
2117
 
2118
2118
  // Overloads of new
2119
2119
 
@@ -2128,7 +2128,7 @@ class MessageDialog extends Dialog {
2128
2128
  * @returns the new dialog as a `GtkWidget`
2129
2129
  */
2130
2130
  static new(): Gtk.Dialog
2131
- static with_image_from_icon_name(primary_text: string | null, secondary_text: string | null, image_icon_name: string | null, buttons: Gtk.ButtonsType): MessageDialog
2131
+ static with_image_from_icon_name(primary_text: string, secondary_text: string, image_icon_name: string, buttons: Gtk.ButtonsType): MessageDialog
2132
2132
  _init(config?: MessageDialog.ConstructorProperties): void
2133
2133
  }
2134
2134
 
@@ -2185,16 +2185,16 @@ interface ModeSwitch {
2185
2185
  set_active(value: boolean): void
2186
2186
  get_primary_icon_gicon(): Gio.Icon
2187
2187
  set_primary_icon_gicon(value: Gio.Icon): void
2188
- get_primary_icon_name(): string | null
2189
- set_primary_icon_name(value: string | null): void
2190
- get_primary_icon_tooltip_text(): string | null
2191
- set_primary_icon_tooltip_text(value: string | null): void
2188
+ get_primary_icon_name(): string
2189
+ set_primary_icon_name(value: string): void
2190
+ get_primary_icon_tooltip_text(): string
2191
+ set_primary_icon_tooltip_text(value: string): void
2192
2192
  get_secondary_icon_gicon(): Gio.Icon
2193
2193
  set_secondary_icon_gicon(value: Gio.Icon): void
2194
- get_secondary_icon_name(): string | null
2195
- set_secondary_icon_name(value: string | null): void
2196
- get_secondary_icon_tooltip_text(): string | null
2197
- set_secondary_icon_tooltip_text(value: string | null): void
2194
+ get_secondary_icon_name(): string
2195
+ set_secondary_icon_name(value: string): void
2196
+ get_secondary_icon_tooltip_text(): string
2197
+ set_secondary_icon_tooltip_text(value: string): void
2198
2198
 
2199
2199
  // Class property signals of Granite-7.0.Granite.ModeSwitch
2200
2200
 
@@ -2362,7 +2362,7 @@ class ModeSwitch extends Gtk.Box {
2362
2362
  * @returns a new `GtkBox`.
2363
2363
  */
2364
2364
  static new(orientation: Gtk.Orientation, spacing: number): Gtk.Box
2365
- static from_icon_name(primary_icon_name: string | null, secondary_icon_name: string | null): ModeSwitch
2365
+ static from_icon_name(primary_icon_name: string, secondary_icon_name: string): ModeSwitch
2366
2366
  _init(config?: ModeSwitch.ConstructorProperties): void
2367
2367
  }
2368
2368
 
@@ -2392,8 +2392,8 @@ interface OverlayBar {
2392
2392
  // Owm methods of Granite-7.0.Granite.OverlayBar
2393
2393
 
2394
2394
  get_overlay(): Gtk.Overlay | null
2395
- get_label(): string | null
2396
- set_label(value: string | null): void
2395
+ get_label(): string
2396
+ set_label(value: string): void
2397
2397
  get_active(): boolean
2398
2398
  set_active(value: boolean): void
2399
2399
 
@@ -2556,13 +2556,13 @@ interface Placeholder {
2556
2556
 
2557
2557
  // Owm methods of Granite-7.0.Granite.Placeholder
2558
2558
 
2559
- get_title(): string | null
2560
- set_title(value: string | null): void
2561
- get_description(): string | null
2562
- set_description(value: string | null): void
2559
+ get_title(): string
2560
+ set_title(value: string): void
2561
+ get_description(): string
2562
+ set_description(value: string): void
2563
2563
  get_icon(): Gio.Icon
2564
2564
  set_icon(value: Gio.Icon): void
2565
- append_button(icon: Gio.Icon, label: string | null, description: string | null): Gtk.Button
2565
+ append_button(icon: Gio.Icon, label: string, description: string): Gtk.Button
2566
2566
 
2567
2567
  // Class property signals of Granite-7.0.Granite.Placeholder
2568
2568
 
@@ -2693,8 +2693,8 @@ class Placeholder extends Gtk.Widget {
2693
2693
  // Constructors of Granite-7.0.Granite.Placeholder
2694
2694
 
2695
2695
  constructor(config?: Placeholder.ConstructorProperties)
2696
- constructor(title: string | null)
2697
- static new(title: string | null): Placeholder
2696
+ constructor(title: string)
2697
+ static new(title: string): Placeholder
2698
2698
  _init(config?: Placeholder.ConstructorProperties): void
2699
2699
  }
2700
2700
 
@@ -2931,8 +2931,8 @@ interface SwitchModelButton {
2931
2931
 
2932
2932
  // Owm methods of Granite-7.0.Granite.SwitchModelButton
2933
2933
 
2934
- get_text(): string | null
2935
- set_text(value: string | null): void
2934
+ get_text(): string
2935
+ set_text(value: string): void
2936
2936
  get_description(): string | null
2937
2937
  set_description(value: string | null): void
2938
2938
 
@@ -3086,8 +3086,8 @@ class SwitchModelButton extends Gtk.ToggleButton {
3086
3086
  // Constructors of Granite-7.0.Granite.SwitchModelButton
3087
3087
 
3088
3088
  constructor(config?: SwitchModelButton.ConstructorProperties)
3089
- constructor(text: string | null)
3090
- static new(text: string | null): SwitchModelButton
3089
+ constructor(text: string)
3090
+ static new(text: string): SwitchModelButton
3091
3091
 
3092
3092
  // Overloads of new
3093
3093
 
@@ -3141,8 +3141,8 @@ interface TimePicker {
3141
3141
 
3142
3142
  // Owm methods of Granite-7.0.Granite.TimePicker
3143
3143
 
3144
- get_format_12(): string | null
3145
- get_format_24(): string | null
3144
+ get_format_12(): string
3145
+ get_format_24(): string
3146
3146
  get_time(): GLib.DateTime
3147
3147
  set_time(value: GLib.DateTime): void
3148
3148
 
@@ -3398,7 +3398,7 @@ class TimePicker extends Gtk.Entry {
3398
3398
  // Constructors of Granite-7.0.Granite.TimePicker
3399
3399
 
3400
3400
  constructor(config?: TimePicker.ConstructorProperties)
3401
- static with_format(format_12: string | null, format_24: string | null): TimePicker
3401
+ static with_format(format_12: string, format_24: string): TimePicker
3402
3402
  constructor()
3403
3403
  static new(): TimePicker
3404
3404
 
@@ -3451,8 +3451,8 @@ interface Toast {
3451
3451
 
3452
3452
  // Owm methods of Granite-7.0.Granite.Toast
3453
3453
 
3454
- get_title(): string | null
3455
- set_title(value: string | null): void
3454
+ get_title(): string
3455
+ set_title(value: string): void
3456
3456
  set_default_action(label: string | null): void
3457
3457
  send_notification(): void
3458
3458
 
@@ -3588,8 +3588,8 @@ class Toast extends Gtk.Widget {
3588
3588
  // Constructors of Granite-7.0.Granite.Toast
3589
3589
 
3590
3590
  constructor(config?: Toast.ConstructorProperties)
3591
- constructor(title: string | null)
3592
- static new(title: string | null): Toast
3591
+ constructor(title: string)
3592
+ static new(title: string): Toast
3593
3593
  _init(config?: Toast.ConstructorProperties): void
3594
3594
  }
3595
3595
 
@@ -3953,7 +3953,7 @@ interface ServicesSettingsSerializableIface {
3953
3953
  // Own fields of Granite-7.0.Granite.ServicesSettingsSerializableIface
3954
3954
 
3955
3955
  settings_serialize: (self: any) => string | null
3956
- settings_deserialize: (self: any, s: string | null) => void
3956
+ settings_deserialize: (self: any, s: string) => void
3957
3957
  }
3958
3958
 
3959
3959
  abstract class ServicesSettingsSerializableIface {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/granite-7.0",
3
- "version": "7.0.0-3.2.6",
3
+ "version": "7.0.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Granite-7.0, generated from library version 7.0.0",
5
5
  "type": "module",
6
6
  "module": "granite-7.0.js",
@@ -25,22 +25,22 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit granite-7.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/cairo-1.0": "^1.0.0-3.2.6",
29
- "@girs/freetype2-2.0": "^2.0.0-3.2.6",
30
- "@girs/gdk-4.0": "^4.0.0-3.2.6",
31
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.6",
32
- "@girs/gee-0.8": "^0.8.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/graphene-1.0": "^1.0.0-3.2.6",
39
- "@girs/gsk-4.0": "^4.0.0-3.2.6",
40
- "@girs/gtk-4.0": "^4.12.3-3.2.6",
41
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
42
- "@girs/pango-1.0": "^1.51.0-3.2.6",
43
- "@girs/pangocairo-1.0": "^1.0.0-3.2.6"
28
+ "@girs/cairo-1.0": "^1.0.0-3.2.7",
29
+ "@girs/freetype2-2.0": "^2.0.0-3.2.7",
30
+ "@girs/gdk-4.0": "^4.0.0-3.2.7",
31
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
32
+ "@girs/gee-0.8": "^0.8.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/graphene-1.0": "^1.0.0-3.2.7",
39
+ "@girs/gsk-4.0": "^4.0.0-3.2.7",
40
+ "@girs/gtk-4.0": "^4.12.4-3.2.7",
41
+ "@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
42
+ "@girs/pango-1.0": "^1.51.0-3.2.7",
43
+ "@girs/pangocairo-1.0": "^1.0.0-3.2.7"
44
44
  },
45
45
  "devDependencies": {
46
46
  "typescript": "*"