@girs/evincedocument-3.0 45.0.0-3.2.6 → 45.0.0-3.2.8

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.
@@ -231,8 +231,8 @@ export enum FindOptions {
231
231
  * (e.g. in version 3.1.4 this is 3).
232
232
  */
233
233
  export const MAJOR_VERSION: number
234
- export function backends_manager_get_document(mime_type: string | null): Document
235
- export function backends_manager_get_document_module_name(document: Document): string | null
234
+ export function backends_manager_get_document(mime_type: string): Document
235
+ export function backends_manager_get_document_module_name(document: Document): string
236
236
  export function document_error_quark(): GLib.Quark
237
237
  /**
238
238
  * Compresses the file at `uri`.
@@ -249,7 +249,7 @@ export function document_error_quark(): GLib.Quark
249
249
  * @param type the compression type
250
250
  * @returns a newly allocated string URI, or %NULL on error
251
251
  */
252
- export function file_compress(uri: string | null, type: CompressionType): string | null
252
+ export function file_compress(uri: string, type: CompressionType): string | null
253
253
  /**
254
254
  * Performs a g_file_copy_attributes() with %G_FILE_COPY_ALL_METADATA
255
255
  * from `from` to `to`.
@@ -257,8 +257,8 @@ export function file_compress(uri: string | null, type: CompressionType): string
257
257
  * @param to the target URI
258
258
  * @returns %TRUE if the attributes were copied successfully, %FALSE otherwise.
259
259
  */
260
- export function file_copy_metadata(from: string | null, to: string | null): boolean
261
- export function file_get_mime_type(uri: string | null, fast: boolean): string | null
260
+ export function file_copy_metadata(from: string, to: string): boolean
261
+ export function file_get_mime_type(uri: string, fast: boolean): string | null
262
262
  export function file_get_mime_type_from_fd(fd: number): string | null
263
263
  export function file_is_temp(file: Gio.File): boolean
264
264
  /**
@@ -275,8 +275,8 @@ export function file_is_temp(file: Gio.File): boolean
275
275
  * @param type the compression type
276
276
  * @returns a newly allocated string URI, or %NULL on error
277
277
  */
278
- export function file_uncompress(uri: string | null, type: CompressionType): string | null
279
- export function get_locale_dir(): string | null
278
+ export function file_uncompress(uri: string, type: CompressionType): string | null
279
+ export function get_locale_dir(): string
280
280
  /**
281
281
  * Initializes the evince document library, and binds the evince
282
282
  * gettext domain.
@@ -291,20 +291,20 @@ export function init(): boolean
291
291
  * @param tmpl a template string; must end in 'XXXXXX'
292
292
  * @returns a newly allocated string with the temp directory name, or %NULL on error with @error filled in
293
293
  */
294
- export function mkdtemp(tmpl: string | null): string | null
294
+ export function mkdtemp(tmpl: string): string | null
295
295
  /**
296
296
  * Creates a temp file in the evince temp directory.
297
297
  * @param tmpl a template string; must contain 'XXXXXX', but not necessarily as a suffix
298
298
  * @param file_name a location to store the filename of the temp file
299
299
  * @returns a file descriptor to the newly created temp file name, or %-1 on error with @error filled in
300
300
  */
301
- export function mkstemp(tmpl: string | null, file_name: string | null): number
301
+ export function mkstemp(tmpl: string, file_name: string | null): number
302
302
  /**
303
303
  * Creates a temp #GFile in the evince temp directory. See ev_mkstemp() for more information.
304
304
  * @param tmpl a template string; must contain 'XXXXXX', but not necessarily as a suffix
305
305
  * @returns a newly allocated #GFile for the newly created temp file name, or %NULL on error with @error filled in
306
306
  */
307
- export function mkstemp_file(tmpl: string | null): Gio.File
307
+ export function mkstemp_file(tmpl: string): Gio.File
308
308
  export function rect_cmp(a: Rectangle, b: Rectangle): number
309
309
  /**
310
310
  * Checks whether evince should use the portal.
@@ -316,16 +316,16 @@ export function should_use_portal(): boolean
316
316
  */
317
317
  export function shutdown(): void
318
318
  export function tmp_file_unlink(file: Gio.File): void
319
- export function tmp_filename_unlink(filename: string | null): void
320
- export function tmp_uri_unlink(uri: string | null): void
319
+ export function tmp_filename_unlink(filename: string): void
320
+ export function tmp_uri_unlink(uri: string): void
321
321
  /**
322
322
  * Performs a g_file_copy() from `from` to `to`.
323
323
  * @param from the source URI
324
324
  * @param to the target URI
325
325
  * @returns %TRUE on success, or %FALSE on error with @error filled in
326
326
  */
327
- export function xfer_uri_simple(from: string | null, to: string | null): boolean
328
- export function xmp_parse(xmp: string | null, size: number, info: DocumentInfo): boolean
327
+ export function xfer_uri_simple(from: string, to: string): boolean
328
+ export function xmp_parse(xmp: string, size: number, info: DocumentInfo): boolean
329
329
  export module AnnotationMarkup {
330
330
 
331
331
  // Constructor properties interface
@@ -334,15 +334,12 @@ export module AnnotationMarkup {
334
334
 
335
335
  // Own constructor properties of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
336
336
 
337
- can_have_popup?: boolean | null
338
- has_popup?: boolean | null
339
- label?: string | null
340
- opacity?: number | null
341
- popup_is_open?: boolean | null
342
- rectangle?: Rectangle | null
343
337
  canHavePopup?: boolean | null
344
338
  hasPopup?: boolean | null
339
+ label?: string | null
340
+ opacity?: number | null
345
341
  popupIsOpen?: boolean | null
342
+ rectangle?: Rectangle | null
346
343
  }
347
344
 
348
345
  }
@@ -351,24 +348,23 @@ export interface AnnotationMarkup extends Annotation {
351
348
 
352
349
  // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
353
350
 
354
- can_have_popup: boolean
355
351
  canHavePopup: boolean
356
- has_popup: boolean
357
352
  hasPopup: boolean
358
353
  label: string | null
359
354
  opacity: number
360
- popup_is_open: boolean
361
355
  popupIsOpen: boolean
362
356
  rectangle: Rectangle
363
357
 
364
358
  // Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationMarkup
365
359
 
366
- get_label(): string | null
360
+ can_have_popup(): boolean
361
+ get_label(): string
367
362
  get_opacity(): number
368
363
  get_popup_is_open(): boolean
369
364
  get_rectangle(ev_rect: Rectangle): void
365
+ has_popup(): boolean
370
366
  set_has_popup(has_popup: boolean): boolean
371
- set_label(label: string | null): boolean
367
+ set_label(label: string): boolean
372
368
  set_opacity(opacity: number): boolean
373
369
  set_popup_is_open(is_open: boolean): boolean
374
370
  set_rectangle(ev_rect: Rectangle): boolean
@@ -597,16 +593,16 @@ export interface DocumentFind {
597
593
 
598
594
  // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentFind
599
595
 
600
- find_text(page: Page, text: string | null, case_sensitive: boolean): Rectangle[]
601
- find_text_extended(page: Page, text: string | null, options: FindOptions): FindRectangle[]
602
- find_text_with_options(page: Page, text: string | null, options: FindOptions): Rectangle[]
596
+ find_text(page: Page, text: string, case_sensitive: boolean): Rectangle[]
597
+ find_text_extended(page: Page, text: string, options: FindOptions): FindRectangle[]
598
+ find_text_with_options(page: Page, text: string, options: FindOptions): Rectangle[]
603
599
  get_supported_options(): FindOptions
604
600
 
605
601
  // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentFind
606
602
 
607
- vfunc_find_text(page: Page, text: string | null, case_sensitive: boolean): Rectangle[]
608
- vfunc_find_text_extended(page: Page, text: string | null, options: FindOptions): FindRectangle[]
609
- vfunc_find_text_with_options(page: Page, text: string | null, options: FindOptions): Rectangle[]
603
+ vfunc_find_text(page: Page, text: string, case_sensitive: boolean): Rectangle[]
604
+ vfunc_find_text_extended(page: Page, text: string, options: FindOptions): FindRectangle[]
605
+ vfunc_find_text_with_options(page: Page, text: string, options: FindOptions): Rectangle[]
610
606
  vfunc_get_supported_options(): FindOptions
611
607
 
612
608
  // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentFind
@@ -644,14 +640,14 @@ export interface DocumentFonts {
644
640
  // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentFonts
645
641
 
646
642
  fill_model(model: Gtk.TreeModel): void
647
- get_fonts_summary(): string | null
643
+ get_fonts_summary(): string
648
644
  get_progress(): number
649
645
  scan(n_pages: number): boolean
650
646
 
651
647
  // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentFonts
652
648
 
653
649
  vfunc_fill_model(model: Gtk.TreeModel): void
654
- vfunc_get_fonts_summary(): string | null
650
+ vfunc_get_fonts_summary(): string
655
651
  vfunc_get_progress(): number
656
652
  vfunc_scan(n_pages: number): boolean
657
653
 
@@ -697,11 +693,11 @@ export interface DocumentForms {
697
693
  form_field_choice_get_text(field: FormField): string | null
698
694
  form_field_choice_is_item_selected(field: FormField, index: number): boolean
699
695
  form_field_choice_select_item(field: FormField, index: number): void
700
- form_field_choice_set_text(field: FormField, text: string | null): void
696
+ form_field_choice_set_text(field: FormField, text: string): void
701
697
  form_field_choice_toggle_item(field: FormField, index: number): void
702
698
  form_field_choice_unselect_all(field: FormField): void
703
699
  form_field_text_get_text(field: FormField): string | null
704
- form_field_text_set_text(field: FormField, text: string | null): void
700
+ form_field_text_set_text(field: FormField, text: string): void
705
701
  get_form_fields(page: Page): MappingList
706
702
  reset_form(action: LinkAction): void
707
703
 
@@ -715,11 +711,11 @@ export interface DocumentForms {
715
711
  vfunc_form_field_choice_get_text(field: FormField): string | null
716
712
  vfunc_form_field_choice_is_item_selected(field: FormField, index: number): boolean
717
713
  vfunc_form_field_choice_select_item(field: FormField, index: number): void
718
- vfunc_form_field_choice_set_text(field: FormField, text: string | null): void
714
+ vfunc_form_field_choice_set_text(field: FormField, text: string): void
719
715
  vfunc_form_field_choice_toggle_item(field: FormField, index: number): void
720
716
  vfunc_form_field_choice_unselect_all(field: FormField): void
721
717
  vfunc_form_field_text_get_text(field: FormField): string | null
722
- vfunc_form_field_text_set_text(field: FormField, text: string | null): void
718
+ vfunc_form_field_text_set_text(field: FormField, text: string): void
723
719
  vfunc_get_form_fields(page: Page): MappingList
724
720
  vfunc_reset_form(action: LinkAction): void
725
721
 
@@ -847,8 +843,8 @@ export interface DocumentLinks {
847
843
 
848
844
  // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentLinks
849
845
 
850
- find_link_dest(link_name: string | null): LinkDest
851
- find_link_page(link_name: string | null): number
846
+ find_link_dest(link_name: string): LinkDest
847
+ find_link_page(link_name: string): number
852
848
  get_dest_page(dest: LinkDest): number
853
849
  get_dest_page_label(dest: LinkDest): string | null
854
850
  get_link_page(link: Link): number
@@ -859,8 +855,8 @@ export interface DocumentLinks {
859
855
 
860
856
  // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentLinks
861
857
 
862
- vfunc_find_link_dest(link_name: string | null): LinkDest
863
- vfunc_find_link_page(link_name: string | null): number
858
+ vfunc_find_link_dest(link_name: string): LinkDest
859
+ vfunc_find_link_page(link_name: string): number
864
860
  vfunc_get_links(page: Page): MappingList
865
861
  vfunc_get_links_model(): Gtk.TreeModel
866
862
  vfunc_has_document_links(): boolean
@@ -980,12 +976,12 @@ export interface DocumentSecurity {
980
976
  // Owm methods of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
981
977
 
982
978
  has_document_security(): boolean
983
- set_password(password: string | null): void
979
+ set_password(password: string): void
984
980
 
985
981
  // Own virtual methods of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
986
982
 
987
983
  vfunc_has_document_security(): boolean
988
- vfunc_set_password(password: string | null): void
984
+ vfunc_set_password(password: string): void
989
985
 
990
986
  // Class property signals of EvinceDocument-3.0.EvinceDocument.DocumentSecurity
991
987
 
@@ -1277,19 +1273,19 @@ export interface Annotation {
1277
1273
  * alternate description of the annotation's content for non-text annotations
1278
1274
  * @returns a string with the contents of the annotation or %NULL if @annot has no contents.
1279
1275
  */
1280
- get_contents(): string | null
1276
+ get_contents(): string
1281
1277
  /**
1282
1278
  * Get the last modification date of `annot`.
1283
1279
  * @returns A string containing the last modification date.
1284
1280
  */
1285
- get_modified(): string | null
1281
+ get_modified(): string
1286
1282
  /**
1287
1283
  * Get the name of `annot`. The name of the annotation is a string
1288
1284
  * that uniquely indenftifies `annot` amongs all the annotations
1289
1285
  * in the same page.
1290
1286
  * @returns the string with the annotation's name.
1291
1287
  */
1292
- get_name(): string | null
1288
+ get_name(): string
1293
1289
  /**
1294
1290
  * Get the page where `annot` appears.
1295
1291
  * @returns the #EvPage where @annot appears
@@ -1326,7 +1322,7 @@ export interface Annotation {
1326
1322
  * @param contents
1327
1323
  * @returns %TRUE if the contents have been changed, %FALSE otherwise.
1328
1324
  */
1329
- set_contents(contents: string | null): boolean
1325
+ set_contents(contents: string): boolean
1330
1326
  /**
1331
1327
  * Set the last modification date of `annot` to `modified`. To
1332
1328
  * set the last modification date using a #time_t, use
@@ -1336,7 +1332,7 @@ export interface Annotation {
1336
1332
  * @param modified string with the last modification date.
1337
1333
  * @returns %TRUE if the last modification date has been updated, %FALSE otherwise.
1338
1334
  */
1339
- set_modified(modified: string | null): boolean
1335
+ set_modified(modified: string): boolean
1340
1336
  /**
1341
1337
  * Set the last modification date of `annot` to `utime`. You can
1342
1338
  * monitor changes to the last modification date by connecting to the
@@ -1362,7 +1358,7 @@ export interface Annotation {
1362
1358
  * @param name
1363
1359
  * @returns %TRUE when the name has been changed, %FALSE otherwise.
1364
1360
  */
1365
- set_name(name: string | null): boolean
1361
+ set_name(name: string): boolean
1366
1362
  /**
1367
1363
  * Set the color of the annotation to `rgba`.
1368
1364
  * @param rgba a #GdkRGBA
@@ -1510,7 +1506,6 @@ export module AnnotationText {
1510
1506
  // Own constructor properties of EvinceDocument-3.0.EvinceDocument.AnnotationText
1511
1507
 
1512
1508
  icon?: AnnotationTextIcon | null
1513
- is_open?: boolean | null
1514
1509
  isOpen?: boolean | null
1515
1510
  }
1516
1511
 
@@ -1521,7 +1516,6 @@ export interface AnnotationText extends AnnotationMarkup {
1521
1516
  // Own properties of EvinceDocument-3.0.EvinceDocument.AnnotationText
1522
1517
 
1523
1518
  icon: AnnotationTextIcon
1524
- is_open: boolean
1525
1519
  isOpen: boolean
1526
1520
 
1527
1521
  // Owm methods of EvinceDocument-3.0.EvinceDocument.AnnotationText
@@ -1726,10 +1720,10 @@ export interface Attachment {
1726
1720
  // Owm methods of EvinceDocument-3.0.EvinceDocument.Attachment
1727
1721
 
1728
1722
  get_creation_date(): GLib.Time
1729
- get_description(): string | null
1730
- get_mime_type(): string | null
1723
+ get_description(): string
1724
+ get_mime_type(): string
1731
1725
  get_modification_date(): GLib.Time
1732
- get_name(): string | null
1726
+ get_name(): string
1733
1727
  open(screen: Gdk.Screen, timestamp: number): boolean
1734
1728
  save(file: Gio.File): boolean
1735
1729
 
@@ -1769,8 +1763,8 @@ export class Attachment extends GObject.Object {
1769
1763
  // Constructors of EvinceDocument-3.0.EvinceDocument.Attachment
1770
1764
 
1771
1765
  constructor(config?: Attachment.ConstructorProperties)
1772
- constructor(name: string | null, description: string | null, mtime: GLib.Time, ctime: GLib.Time, size: number, data: any | null)
1773
- static new(name: string | null, description: string | null, mtime: GLib.Time, ctime: GLib.Time, size: number, data: any | null): Attachment
1766
+ constructor(name: string, description: string, mtime: GLib.Time, ctime: GLib.Time, size: number, data: any | null)
1767
+ static new(name: string, description: string, mtime: GLib.Time, ctime: GLib.Time, size: number, data: any | null): Attachment
1774
1768
  _init(config?: Attachment.ConstructorProperties): void
1775
1769
  static error_quark(): GLib.Quark
1776
1770
  }
@@ -1802,7 +1796,7 @@ export interface Document {
1802
1796
  // Owm methods of EvinceDocument-3.0.EvinceDocument.Document
1803
1797
 
1804
1798
  check_dimensions(): boolean
1805
- find_page_by_label(page_label: string | null, page_index: number): boolean
1799
+ find_page_by_label(page_label: string, page_index: number): boolean
1806
1800
  get_backend_info(info: DocumentBackendInfo): boolean
1807
1801
  /**
1808
1802
  * Returns the #EvDocumentInfo for the document.
@@ -1820,8 +1814,8 @@ export interface Document {
1820
1814
  get_size(): number
1821
1815
  get_thumbnail(rc: RenderContext): GdkPixbuf.Pixbuf
1822
1816
  get_thumbnail_surface(rc: RenderContext): cairo.Surface
1823
- get_title(): string | null
1824
- get_uri(): string | null
1817
+ get_title(): string
1818
+ get_uri(): string
1825
1819
  has_synctex(): boolean
1826
1820
  has_text_page_labels(): boolean
1827
1821
  is_page_size_uniform(): boolean
@@ -1838,7 +1832,7 @@ export interface Document {
1838
1832
  * @param uri the document's URI
1839
1833
  * @returns %TRUE on success, or %FALSE on failure.
1840
1834
  */
1841
- load(uri: string | null): boolean
1835
+ load(uri: string): boolean
1842
1836
  /**
1843
1837
  * Synchronously loads the document from `fd,` which must refer to
1844
1838
  * a regular file.
@@ -1867,7 +1861,7 @@ export interface Document {
1867
1861
  * @param flags flags from #EvDocumentLoadFlags
1868
1862
  * @returns %TRUE on success, or %FALSE on failure.
1869
1863
  */
1870
- load_full(uri: string | null, flags: DocumentLoadFlags): boolean
1864
+ load_full(uri: string, flags: DocumentLoadFlags): boolean
1871
1865
  /**
1872
1866
  * Synchronously loads the document from `file`.
1873
1867
  * See ev_document_load() for more information.
@@ -1892,7 +1886,7 @@ export interface Document {
1892
1886
  * @param uri the target URI
1893
1887
  * @returns %TRUE on success, or %FALSE on error with @error filled in
1894
1888
  */
1895
- save(uri: string | null): boolean
1889
+ save(uri: string): boolean
1896
1890
  /**
1897
1891
  * Set the `document` modification state as `modified`.
1898
1892
  * @param modified a boolean value to set the document as modified or not.
@@ -1938,7 +1932,7 @@ export interface Document {
1938
1932
  * @param uri the document's URI
1939
1933
  * @returns %TRUE on success, or %FALSE on failure.
1940
1934
  */
1941
- vfunc_load(uri: string | null): boolean
1935
+ vfunc_load(uri: string): boolean
1942
1936
  /**
1943
1937
  * Synchronously loads the document from `fd,` which must refer to
1944
1938
  * a regular file.
@@ -1982,7 +1976,7 @@ export interface Document {
1982
1976
  * @param uri the target URI
1983
1977
  * @returns %TRUE on success, or %FALSE on error with @error filled in
1984
1978
  */
1985
- vfunc_save(uri: string | null): boolean
1979
+ vfunc_save(uri: string): boolean
1986
1980
  vfunc_support_synctex(): boolean
1987
1981
 
1988
1982
  // Class property signals of EvinceDocument-3.0.EvinceDocument.Document
@@ -2032,7 +2026,7 @@ export class Document extends GObject.Object {
2032
2026
  * @param uri an URI
2033
2027
  * @returns a new #EvDocument, or %NULL
2034
2028
  */
2035
- static factory_get_document(uri: string | null): Document
2029
+ static factory_get_document(uri: string): Document
2036
2030
  /**
2037
2031
  * Synchronously creates a #EvDocument for the document from `fd` using the backend
2038
2032
  * for loading documents of type `mime_type;` or, if the backend does not support
@@ -2053,7 +2047,7 @@ export class Document extends GObject.Object {
2053
2047
  * @param cancellable a #GCancellable, or %NULL
2054
2048
  * @returns a new #EvDocument, or %NULL
2055
2049
  */
2056
- static factory_get_document_for_fd(fd: number, mime_type: string | null, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null): Document
2050
+ static factory_get_document_for_fd(fd: number, mime_type: string, flags: DocumentLoadFlags, cancellable: Gio.Cancellable | null): Document
2057
2051
  /**
2058
2052
  * Synchronously creates a #EvDocument for the document at `file;` or, if no
2059
2053
  * backend handling the document's type is found, or an error occurred on
@@ -2093,7 +2087,7 @@ export class Document extends GObject.Object {
2093
2087
  * @param flags flags from #EvDocumentLoadFlags
2094
2088
  * @returns a new #EvDocument, or %NULL
2095
2089
  */
2096
- static factory_get_document_full(uri: string | null, flags: DocumentLoadFlags): Document
2090
+ static factory_get_document_full(uri: string, flags: DocumentLoadFlags): Document
2097
2091
  static fc_mutex_lock(): void
2098
2092
  static fc_mutex_trylock(): boolean
2099
2093
  static fc_mutex_unlock(): void
@@ -2366,8 +2360,8 @@ export interface Image {
2366
2360
  get_id(): number
2367
2361
  get_page(): number
2368
2362
  get_pixbuf(): GdkPixbuf.Pixbuf
2369
- get_tmp_uri(): string | null
2370
- save_tmp(pixbuf: GdkPixbuf.Pixbuf): string | null
2363
+ get_tmp_uri(): string
2364
+ save_tmp(pixbuf: GdkPixbuf.Pixbuf): string
2371
2365
 
2372
2366
  // Class property signals of EvinceDocument-3.0.EvinceDocument.Image
2373
2367
 
@@ -2461,7 +2455,7 @@ export interface Link {
2461
2455
  // Owm methods of EvinceDocument-3.0.EvinceDocument.Link
2462
2456
 
2463
2457
  get_action(): LinkAction
2464
- get_title(): string | null
2458
+ get_title(): string
2465
2459
 
2466
2460
  // Class property signals of EvinceDocument-3.0.EvinceDocument.Link
2467
2461
 
@@ -2487,8 +2481,8 @@ export class Link extends GObject.Object {
2487
2481
  // Constructors of EvinceDocument-3.0.EvinceDocument.Link
2488
2482
 
2489
2483
  constructor(config?: Link.ConstructorProperties)
2490
- constructor(title: string | null, action: LinkAction)
2491
- static new(title: string | null, action: LinkAction): Link
2484
+ constructor(title: string, action: LinkAction)
2485
+ static new(title: string, action: LinkAction): Link
2492
2486
  _init(config?: Link.ConstructorProperties): void
2493
2487
  }
2494
2488
 
@@ -2501,21 +2495,16 @@ export module LinkAction {
2501
2495
  // Own constructor properties of EvinceDocument-3.0.EvinceDocument.LinkAction
2502
2496
 
2503
2497
  dest?: LinkDest | null
2504
- exclude_reset_fields?: boolean | null
2498
+ excludeResetFields?: boolean | null
2505
2499
  filename?: string | null
2506
- hide_list?: any | null
2500
+ hideList?: any | null
2507
2501
  name?: string | null
2508
2502
  params?: string | null
2509
- reset_fields?: any | null
2510
- show_list?: any | null
2511
- toggle_list?: any | null
2512
- type?: LinkActionType | null
2513
- uri?: string | null
2514
- excludeResetFields?: boolean | null
2515
- hideList?: any | null
2516
2503
  resetFields?: any | null
2517
2504
  showList?: any | null
2518
2505
  toggleList?: any | null
2506
+ type?: LinkActionType | null
2507
+ uri?: string | null
2519
2508
  }
2520
2509
 
2521
2510
  }
@@ -2525,18 +2514,13 @@ export interface LinkAction {
2525
2514
  // Own properties of EvinceDocument-3.0.EvinceDocument.LinkAction
2526
2515
 
2527
2516
  readonly dest: LinkDest
2528
- readonly exclude_reset_fields: boolean
2529
2517
  readonly excludeResetFields: boolean
2530
2518
  readonly filename: string | null
2531
- readonly hide_list: any
2532
2519
  readonly hideList: any
2533
2520
  readonly name: string | null
2534
2521
  readonly params: string | null
2535
- readonly reset_fields: any
2536
2522
  readonly resetFields: any
2537
- readonly show_list: any
2538
2523
  readonly showList: any
2539
- readonly toggle_list: any
2540
2524
  readonly toggleList: any
2541
2525
  readonly type: LinkActionType
2542
2526
  readonly uri: string | null
@@ -2552,14 +2536,14 @@ export interface LinkAction {
2552
2536
  get_action_type(): LinkActionType
2553
2537
  get_dest(): LinkDest
2554
2538
  get_exclude_reset_fields(): boolean
2555
- get_filename(): string | null
2539
+ get_filename(): string
2556
2540
  get_hide_list(): Layer[]
2557
- get_name(): string | null
2558
- get_params(): string | null
2541
+ get_name(): string
2542
+ get_params(): string
2559
2543
  get_reset_fields(): string[]
2560
2544
  get_show_list(): Layer[]
2561
2545
  get_toggle_list(): Layer[]
2562
- get_uri(): string | null
2546
+ get_uri(): string
2563
2547
 
2564
2548
  // Class property signals of EvinceDocument-3.0.EvinceDocument.LinkAction
2565
2549
 
@@ -2613,11 +2597,11 @@ export class LinkAction extends GObject.Object {
2613
2597
 
2614
2598
  constructor(config?: LinkAction.ConstructorProperties)
2615
2599
  static new_dest(dest: LinkDest): LinkAction
2616
- static new_external_uri(uri: string | null): LinkAction
2617
- static new_launch(filename: string | null, params: string | null): LinkAction
2600
+ static new_external_uri(uri: string): LinkAction
2601
+ static new_launch(filename: string, params: string): LinkAction
2618
2602
  static new_layers_state(show_list: Layer[], hide_list: Layer[], toggle_list: Layer[]): LinkAction
2619
- static new_named(name: string | null): LinkAction
2620
- static new_remote(dest: LinkDest, filename: string | null): LinkAction
2603
+ static new_named(name: string): LinkAction
2604
+ static new_remote(dest: LinkDest, filename: string): LinkAction
2621
2605
  static new_reset_form(fields: string[], exclude_fields: boolean): LinkAction
2622
2606
  _init(config?: LinkAction.ConstructorProperties): void
2623
2607
  }
@@ -2635,12 +2619,11 @@ export module LinkDest {
2635
2619
  left?: number | null
2636
2620
  named?: string | null
2637
2621
  page?: number | null
2638
- page_label?: string | null
2622
+ pageLabel?: string | null
2639
2623
  right?: number | null
2640
2624
  top?: number | null
2641
2625
  type?: LinkDestType | null
2642
2626
  zoom?: number | null
2643
- pageLabel?: string | null
2644
2627
  }
2645
2628
 
2646
2629
  }
@@ -2654,7 +2637,6 @@ export interface LinkDest {
2654
2637
  readonly left: number
2655
2638
  readonly named: string | null
2656
2639
  readonly page: number
2657
- readonly page_label: string | null
2658
2640
  readonly pageLabel: string | null
2659
2641
  readonly right: number
2660
2642
  readonly top: number
@@ -2672,9 +2654,9 @@ export interface LinkDest {
2672
2654
  get_bottom(): number
2673
2655
  get_dest_type(): LinkDestType
2674
2656
  get_left(change_left: boolean): number
2675
- get_named_dest(): string | null
2657
+ get_named_dest(): string
2676
2658
  get_page(): number
2677
- get_page_label(): string | null
2659
+ get_page_label(): string
2678
2660
  get_right(): number
2679
2661
  get_top(change_top: boolean): number
2680
2662
  get_zoom(change_zoom: boolean): number
@@ -2731,9 +2713,9 @@ export class LinkDest extends GObject.Object {
2731
2713
  static new_fith(page: number, top: number, change_top: boolean): LinkDest
2732
2714
  static new_fitr(page: number, left: number, bottom: number, right: number, top: number): LinkDest
2733
2715
  static new_fitv(page: number, left: number, change_left: boolean): LinkDest
2734
- static new_named(named_dest: string | null): LinkDest
2716
+ static new_named(named_dest: string): LinkDest
2735
2717
  static new_page(page: number): LinkDest
2736
- static new_page_label(page_label: string | null): LinkDest
2718
+ static new_page_label(page_label: string): LinkDest
2737
2719
  static new_xyz(page: number, left: number, top: number, zoom: number, change_left: boolean, change_top: boolean, change_zoom: boolean): LinkDest
2738
2720
  _init(config?: LinkDest.ConstructorProperties): void
2739
2721
  }
@@ -2758,7 +2740,7 @@ export interface Media {
2758
2740
 
2759
2741
  get_page_index(): number
2760
2742
  get_show_controls(): boolean
2761
- get_uri(): string | null
2743
+ get_uri(): string
2762
2744
  set_show_controls(show_controls: boolean): void
2763
2745
 
2764
2746
  // Class property signals of EvinceDocument-3.0.EvinceDocument.Media
@@ -2779,7 +2761,7 @@ export class Media extends GObject.Object {
2779
2761
  // Constructors of EvinceDocument-3.0.EvinceDocument.Media
2780
2762
 
2781
2763
  constructor(config?: Media.ConstructorProperties)
2782
- static new_for_uri(page: Page, uri: string | null): Media
2764
+ static new_for_uri(page: Page, uri: string): Media
2783
2765
  _init(config?: Media.ConstructorProperties): void
2784
2766
  }
2785
2767
 
@@ -2889,11 +2871,10 @@ export module TransitionEffect {
2889
2871
  angle?: number | null
2890
2872
  direction?: TransitionEffectDirection | null
2891
2873
  duration?: number | null
2892
- duration_real?: number | null
2874
+ durationReal?: number | null
2893
2875
  rectangular?: boolean | null
2894
2876
  scale?: number | null
2895
2877
  type?: TransitionEffectType | null
2896
- durationReal?: number | null
2897
2878
  }
2898
2879
 
2899
2880
  }
@@ -2906,7 +2887,6 @@ export interface TransitionEffect {
2906
2887
  angle: number
2907
2888
  direction: TransitionEffectDirection
2908
2889
  duration: number
2909
- duration_real: number
2910
2890
  durationReal: number
2911
2891
  rectangular: boolean
2912
2892
  scale: number
@@ -3081,8 +3061,8 @@ export interface DocumentBackendInfo {
3081
3061
 
3082
3062
  // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentBackendInfo
3083
3063
 
3084
- name: string | null
3085
- version: string | null
3064
+ name: string
3065
+ version: string
3086
3066
  }
3087
3067
 
3088
3068
  export class DocumentBackendInfo {
@@ -3097,8 +3077,8 @@ export interface DocumentClass {
3097
3077
  // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentClass
3098
3078
 
3099
3079
  base_class: GObject.ObjectClass
3100
- load: (document: Document, uri: string | null) => boolean
3101
- save: (document: Document, uri: string | null) => boolean
3080
+ load: (document: Document, uri: string) => boolean
3081
+ save: (document: Document, uri: string) => boolean
3102
3082
  get_n_pages: (document: Document) => number
3103
3083
  get_page: (document: Document, index: number) => Page
3104
3084
  get_page_size: (document: Document, page_index: Page) => [ /* width */ number, /* height */ number ]
@@ -3126,10 +3106,10 @@ export interface DocumentFindInterface {
3126
3106
  // Own fields of EvinceDocument-3.0.EvinceDocument.DocumentFindInterface
3127
3107
 
3128
3108
  base_iface: GObject.TypeInterface
3129
- find_text: (document_find: DocumentFind, page: Page, text: string | null, case_sensitive: boolean) => Rectangle[]
3130
- find_text_with_options: (document_find: DocumentFind, page: Page, text: string | null, options: FindOptions) => Rectangle[]
3109
+ find_text: (document_find: DocumentFind, page: Page, text: string, case_sensitive: boolean) => Rectangle[]
3110
+ find_text_with_options: (document_find: DocumentFind, page: Page, text: string, options: FindOptions) => Rectangle[]
3131
3111
  get_supported_options: (document_find: DocumentFind) => FindOptions
3132
- find_text_extended: (document_find: DocumentFind, page: Page, text: string | null, options: FindOptions) => FindRectangle[]
3112
+ find_text_extended: (document_find: DocumentFind, page: Page, text: string, options: FindOptions) => FindRectangle[]
3133
3113
  }
3134
3114
 
3135
3115
  export abstract class DocumentFindInterface {
@@ -3147,7 +3127,7 @@ export interface DocumentFontsInterface {
3147
3127
  scan: (document_fonts: DocumentFonts, n_pages: number) => boolean
3148
3128
  get_progress: (document_fonts: DocumentFonts) => number
3149
3129
  fill_model: (document_fonts: DocumentFonts, model: Gtk.TreeModel) => void
3150
- get_fonts_summary: (document_fonts: DocumentFonts) => string | null
3130
+ get_fonts_summary: (document_fonts: DocumentFonts) => string
3151
3131
  }
3152
3132
 
3153
3133
  export abstract class DocumentFontsInterface {
@@ -3165,7 +3145,7 @@ export interface DocumentFormsInterface {
3165
3145
  get_form_fields: (document_forms: DocumentForms, page: Page) => MappingList
3166
3146
  document_is_modified: (document_forms: DocumentForms) => boolean
3167
3147
  form_field_text_get_text: (document_forms: DocumentForms, field: FormField) => string | null
3168
- form_field_text_set_text: (document_forms: DocumentForms, field: FormField, text: string | null) => void
3148
+ form_field_text_set_text: (document_forms: DocumentForms, field: FormField, text: string) => void
3169
3149
  form_field_button_get_state: (document_forms: DocumentForms, field: FormField) => boolean
3170
3150
  form_field_button_set_state: (document_forms: DocumentForms, field: FormField, state: boolean) => void
3171
3151
  form_field_choice_get_item: (document_forms: DocumentForms, field: FormField, index: number) => string | null
@@ -3174,7 +3154,7 @@ export interface DocumentFormsInterface {
3174
3154
  form_field_choice_select_item: (document_forms: DocumentForms, field: FormField, index: number) => void
3175
3155
  form_field_choice_toggle_item: (document_forms: DocumentForms, field: FormField, index: number) => void
3176
3156
  form_field_choice_unselect_all: (document_forms: DocumentForms, field: FormField) => void
3177
- form_field_choice_set_text: (document_forms: DocumentForms, field: FormField, text: string | null) => void
3157
+ form_field_choice_set_text: (document_forms: DocumentForms, field: FormField, text: string) => void
3178
3158
  form_field_choice_get_text: (document_forms: DocumentForms, field: FormField) => string | null
3179
3159
  reset_form: (document_forms: DocumentForms, action: LinkAction) => void
3180
3160
  }
@@ -3237,7 +3217,7 @@ export interface DocumentInfo {
3237
3217
  free(): void
3238
3218
  get_created_datetime(): GLib.DateTime | null
3239
3219
  get_modified_datetime(): GLib.DateTime | null
3240
- set_from_xmp(xmp: string | null, size: number): boolean
3220
+ set_from_xmp(xmp: string, size: number): boolean
3241
3221
  take_created_datetime(datetime: GLib.DateTime): void
3242
3222
  take_modified_datetime(datetime: GLib.DateTime): void
3243
3223
  }
@@ -3313,8 +3293,8 @@ export interface DocumentLinksInterface {
3313
3293
  has_document_links: (document_links: DocumentLinks) => boolean
3314
3294
  get_links_model: (document_links: DocumentLinks) => Gtk.TreeModel
3315
3295
  get_links: (document_links: DocumentLinks, page: Page) => MappingList
3316
- find_link_dest: (document_links: DocumentLinks, link_name: string | null) => LinkDest
3317
- find_link_page: (document_links: DocumentLinks, link_name: string | null) => number
3296
+ find_link_dest: (document_links: DocumentLinks, link_name: string) => LinkDest
3297
+ find_link_page: (document_links: DocumentLinks, link_name: string) => number
3318
3298
  }
3319
3299
 
3320
3300
  export abstract class DocumentLinksInterface {
@@ -3370,7 +3350,7 @@ export interface DocumentSecurityInterface {
3370
3350
 
3371
3351
  base_iface: GObject.TypeInterface
3372
3352
  has_document_security: (document_security: DocumentSecurity) => boolean
3373
- set_password: (document_security: DocumentSecurity, password: string | null) => void
3353
+ set_password: (document_security: DocumentSecurity, password: string) => void
3374
3354
  }
3375
3355
 
3376
3356
  export abstract class DocumentSecurityInterface {
@@ -3419,7 +3399,7 @@ export interface FileExporterContext {
3419
3399
  // Own fields of EvinceDocument-3.0.EvinceDocument.FileExporterContext
3420
3400
 
3421
3401
  format: FileExporterFormat
3422
- filename: string | null
3402
+ filename: string
3423
3403
  first_page: number
3424
3404
  last_page: number
3425
3405
  paper_width: number
@@ -3839,8 +3819,8 @@ export class SourceLink {
3839
3819
 
3840
3820
  // Constructors of EvinceDocument-3.0.EvinceDocument.SourceLink
3841
3821
 
3842
- constructor(filename: string | null, line: number, col: number)
3843
- static new(filename: string | null, line: number, col: number): SourceLink
3822
+ constructor(filename: string, line: number, col: number)
3823
+ static new(filename: string, line: number, col: number): SourceLink
3844
3824
  }
3845
3825
 
3846
3826
  export interface TransitionEffectClass {
@@ -3861,8 +3841,8 @@ export interface TypeInfo {
3861
3841
 
3862
3842
  // Own fields of EvinceDocument-3.0.EvinceDocument.TypeInfo
3863
3843
 
3864
- desc: string | null
3865
- mime_types: string | null
3844
+ desc: string
3845
+ mime_types: string
3866
3846
  }
3867
3847
 
3868
3848
  export class TypeInfo {