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