@girs/gtksource-3.0 4.3.0 → 4.5.0

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.
@@ -47,11 +47,11 @@ export namespace GtkSource {
47
47
  /**
48
48
  * no pattern
49
49
  */
50
- NONE,
50
+ NONE = 0,
51
51
  /**
52
52
  * grid pattern
53
53
  */
54
- GRID,
54
+ GRID = 1,
55
55
  }
56
56
 
57
57
 
@@ -69,20 +69,20 @@ export namespace GtkSource {
69
69
  /**
70
70
  * there is no bracket to match.
71
71
  */
72
- NONE,
72
+ NONE = 0,
73
73
  /**
74
74
  * matching a bracket
75
75
  * failed because the maximum range was reached.
76
76
  */
77
- OUT_OF_RANGE,
77
+ OUT_OF_RANGE = 1,
78
78
  /**
79
79
  * a matching bracket was not found.
80
80
  */
81
- NOT_FOUND,
81
+ NOT_FOUND = 2,
82
82
  /**
83
83
  * a matching bracket was found.
84
84
  */
85
- FOUND,
85
+ FOUND = 3,
86
86
  }
87
87
 
88
88
 
@@ -101,19 +101,19 @@ export namespace GtkSource {
101
101
  /**
102
102
  * change case to lowercase.
103
103
  */
104
- LOWER,
104
+ LOWER = 0,
105
105
  /**
106
106
  * change case to uppercase.
107
107
  */
108
- UPPER,
108
+ UPPER = 1,
109
109
  /**
110
110
  * toggle case of each character.
111
111
  */
112
- TOGGLE,
112
+ TOGGLE = 2,
113
113
  /**
114
114
  * capitalize each word.
115
115
  */
116
- TITLE,
116
+ TITLE = 3,
117
117
  }
118
118
 
119
119
 
@@ -161,11 +161,11 @@ export namespace GtkSource {
161
161
  /**
162
162
  * plain text.
163
163
  */
164
- NONE,
164
+ NONE = 0,
165
165
  /**
166
166
  * gzip compression.
167
167
  */
168
- GZIP,
168
+ GZIP = 1,
169
169
  }
170
170
 
171
171
 
@@ -246,15 +246,15 @@ export namespace GtkSource {
246
246
  /**
247
247
  * The full cell.
248
248
  */
249
- CELL,
249
+ CELL = 0,
250
250
  /**
251
251
  * The first line.
252
252
  */
253
- FIRST,
253
+ FIRST = 1,
254
254
  /**
255
255
  * The last line.
256
256
  */
257
- LAST,
257
+ LAST = 2,
258
258
  }
259
259
 
260
260
 
@@ -273,16 +273,16 @@ export namespace GtkSource {
273
273
  /**
274
274
  * line feed, used on UNIX.
275
275
  */
276
- LF,
276
+ LF = 0,
277
277
  /**
278
278
  * carriage return, used on Mac.
279
279
  */
280
- CR,
280
+ CR = 1,
281
281
  /**
282
282
  * carriage return followed by a line feed, used
283
283
  * on Windows.
284
284
  */
285
- CR_LF,
285
+ CR_LF = 2,
286
286
  }
287
287
 
288
288
 
@@ -300,24 +300,24 @@ export namespace GtkSource {
300
300
  /**
301
301
  * smart-home-end disabled.
302
302
  */
303
- DISABLED,
303
+ DISABLED = 0,
304
304
  /**
305
305
  * move to the first/last
306
306
  * non-whitespace character on the first press of the HOME/END keys and
307
307
  * to the beginning/end of the line on the second press.
308
308
  */
309
- BEFORE,
309
+ BEFORE = 1,
310
310
  /**
311
311
  * move to the beginning/end of the
312
312
  * line on the first press of the HOME/END keys and to the first/last
313
313
  * non-whitespace character on the second press.
314
314
  */
315
- AFTER,
315
+ AFTER = 2,
316
316
  /**
317
317
  * always move to the first/last
318
318
  * non-whitespace character when the HOME/END keys are pressed.
319
319
  */
320
- ALWAYS,
320
+ ALWAYS = 3,
321
321
  }
322
322
 
323
323
 
@@ -336,12 +336,12 @@ export namespace GtkSource {
336
336
  * the gutter position of the lines
337
337
  * renderer
338
338
  */
339
- LINES,
339
+ LINES = -30,
340
340
  /**
341
341
  * the gutter position of the marks
342
342
  * renderer
343
343
  */
344
- MARKS,
344
+ MARKS = -20,
345
345
  }
346
346
 
347
347
 
@@ -444,19 +444,19 @@ export namespace GtkSource {
444
444
  /**
445
445
  * None.
446
446
  */
447
- NONE,
447
+ NONE = 0,
448
448
  /**
449
449
  * Interactive activation. By
450
450
  * default, it occurs on each insertion in the {@link Gtk.TextBuffer}. This can be
451
451
  * blocked temporarily with `gtk_source_completion_block_interactive()`.
452
452
  */
453
- INTERACTIVE,
453
+ INTERACTIVE = 1,
454
454
  /**
455
455
  * User requested activation.
456
456
  * By default, it occurs when the user presses
457
457
  * <keycombo><keycap>Control</keycap><keycap>space</keycap></keycombo>.
458
458
  */
459
- USER_REQUESTED,
459
+ USER_REQUESTED = 2,
460
460
  }
461
461
 
462
462
 
@@ -479,37 +479,37 @@ export namespace GtkSource {
479
479
  /**
480
480
  * whether the space character should be drawn.
481
481
  */
482
- SPACE,
482
+ SPACE = 1,
483
483
  /**
484
484
  * whether the tab character should be drawn.
485
485
  */
486
- TAB,
486
+ TAB = 2,
487
487
  /**
488
488
  * whether the line breaks should be drawn. If
489
489
  * the {@link GtkSource.Buffer.implicit_trailing_newline} property is `true`, a line
490
490
  * break is also drawn at the end of the buffer.
491
491
  */
492
- NEWLINE,
492
+ NEWLINE = 4,
493
493
  /**
494
494
  * whether the non-breaking whitespaces should be drawn.
495
495
  */
496
- NBSP,
496
+ NBSP = 8,
497
497
  /**
498
498
  * whether leading whitespaces should be drawn.
499
499
  */
500
- LEADING,
500
+ LEADING = 16,
501
501
  /**
502
502
  * whether whitespaces inside text should be drawn.
503
503
  */
504
- TEXT,
504
+ TEXT = 32,
505
505
  /**
506
506
  * whether trailing whitespaces should be drawn.
507
507
  */
508
- TRAILING,
508
+ TRAILING = 64,
509
509
  /**
510
510
  * wheter all kind of spaces should be drawn.
511
511
  */
512
- ALL,
512
+ ALL = 127,
513
513
  }
514
514
 
515
515
 
@@ -529,19 +529,19 @@ export namespace GtkSource {
529
529
  /**
530
530
  * No flags.
531
531
  */
532
- NONE,
532
+ NONE = 0,
533
533
  /**
534
534
  * Ignore invalid characters.
535
535
  */
536
- IGNORE_INVALID_CHARS,
536
+ IGNORE_INVALID_CHARS = 1,
537
537
  /**
538
538
  * Save file despite external modifications.
539
539
  */
540
- IGNORE_MODIFICATION_TIME,
540
+ IGNORE_MODIFICATION_TIME = 2,
541
541
  /**
542
542
  * Create a backup before saving the file.
543
543
  */
544
- CREATE_BACKUP,
544
+ CREATE_BACKUP = 4,
545
545
  }
546
546
 
547
547
 
@@ -559,22 +559,22 @@ export namespace GtkSource {
559
559
  /**
560
560
  * normal state
561
561
  */
562
- NORMAL,
562
+ NORMAL = 0,
563
563
  /**
564
564
  * area in the renderer represents the
565
565
  * line on which the insert cursor is currently positioned
566
566
  */
567
- CURSOR,
567
+ CURSOR = 1,
568
568
  /**
569
569
  * the mouse pointer is currently
570
570
  * over the activatable area of the renderer
571
571
  */
572
- PRELIT,
572
+ PRELIT = 2,
573
573
  /**
574
574
  * area in the renderer represents
575
575
  * a line in the buffer which contains part of the selection
576
576
  */
577
- SELECTED,
577
+ SELECTED = 4,
578
578
  }
579
579
 
580
580
 
@@ -593,19 +593,19 @@ export namespace GtkSource {
593
593
  /**
594
594
  * no flags specified
595
595
  */
596
- NONE,
596
+ NONE = 0,
597
597
  /**
598
598
  * case sensitive sort
599
599
  */
600
- CASE_SENSITIVE,
600
+ CASE_SENSITIVE = 1,
601
601
  /**
602
602
  * sort in reverse order
603
603
  */
604
- REVERSE_ORDER,
604
+ REVERSE_ORDER = 2,
605
605
  /**
606
606
  * remove duplicates
607
607
  */
608
- REMOVE_DUPLICATES,
608
+ REMOVE_DUPLICATES = 4,
609
609
  }
610
610
 
611
611
 
@@ -628,24 +628,24 @@ export namespace GtkSource {
628
628
  /**
629
629
  * No flags.
630
630
  */
631
- NONE,
631
+ NONE = 0,
632
632
  /**
633
633
  * Leading white spaces on a line, i.e. the
634
634
  * indentation.
635
635
  */
636
- LEADING,
636
+ LEADING = 1,
637
637
  /**
638
638
  * White spaces inside a line of text.
639
639
  */
640
- INSIDE_TEXT,
640
+ INSIDE_TEXT = 2,
641
641
  /**
642
642
  * Trailing white spaces on a line.
643
643
  */
644
- TRAILING,
644
+ TRAILING = 4,
645
645
  /**
646
646
  * White spaces anywhere.
647
647
  */
648
- ALL,
648
+ ALL = 7,
649
649
  }
650
650
 
651
651
 
@@ -665,29 +665,29 @@ export namespace GtkSource {
665
665
  /**
666
666
  * No flags.
667
667
  */
668
- NONE,
668
+ NONE = 0,
669
669
  /**
670
670
  * Space character.
671
671
  */
672
- SPACE,
672
+ SPACE = 1,
673
673
  /**
674
674
  * Tab character.
675
675
  */
676
- TAB,
676
+ TAB = 2,
677
677
  /**
678
678
  * Line break character. If the
679
679
  * {@link GtkSource.Buffer.implicit_trailing_newline} property is `true`,
680
680
  * {@link GtkSource.SpaceDrawer} also draws a line break at the end of the buffer.
681
681
  */
682
- NEWLINE,
682
+ NEWLINE = 4,
683
683
  /**
684
684
  * Non-breaking space character.
685
685
  */
686
- NBSP,
686
+ NBSP = 8,
687
687
  /**
688
688
  * All white spaces.
689
689
  */
690
- ALL,
690
+ ALL = 15,
691
691
  }
692
692
 
693
693
 
@@ -707,7 +707,7 @@ export namespace GtkSource {
707
707
  * @since 2.12
708
708
  * @run-last
709
709
  */
710
- "bracket-matched": (arg0: Gtk.TextIter | null, arg1: BracketMatchType) => void;
710
+ "bracket-matched": (iter: Gtk.TextIter | null, state: BracketMatchType) => void;
711
711
  /**
712
712
  * The ::highlight-updated signal is emitted when the syntax
713
713
  * highlighting and [context classes][context-classes] are updated in a
@@ -715,7 +715,7 @@ export namespace GtkSource {
715
715
  * @signal
716
716
  * @run-last
717
717
  */
718
- "highlight-updated": (arg0: Gtk.TextIter, arg1: Gtk.TextIter) => void;
718
+ "highlight-updated": (start: Gtk.TextIter, end: Gtk.TextIter) => void;
719
719
  /**
720
720
  * The ::redo signal is emitted to redo the last undo operation.
721
721
  * @signal
@@ -728,7 +728,7 @@ export namespace GtkSource {
728
728
  * @signal
729
729
  * @run-last
730
730
  */
731
- "source-mark-updated": (arg0: Gtk.TextMark) => void;
731
+ "source-mark-updated": (mark: Gtk.TextMark) => void;
732
732
  /**
733
733
  * The ::undo signal is emitted to undo the last user action which
734
734
  * modified the buffer.
@@ -959,6 +959,7 @@ export namespace GtkSource {
959
959
  * @param iter an iterator.
960
960
  * @param category category to search for, or `null`
961
961
  * @returns whether `iter` was moved.
962
+ * @since 2.2
962
963
  */
963
964
  backward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): boolean;
964
965
 
@@ -978,6 +979,7 @@ export namespace GtkSource {
978
979
  * @param case_type how to change the case.
979
980
  * @param start a {@link Gtk.TextIter}.
980
981
  * @param end a {@link Gtk.TextIter}.
982
+ * @since 3.12
981
983
  */
982
984
  change_case(case_type: ChangeCaseType, start: Gtk.TextIter, end: Gtk.TextIter): void;
983
985
 
@@ -999,6 +1001,7 @@ export namespace GtkSource {
999
1001
  * @param category a string defining the mark category.
1000
1002
  * @param where location to place the mark.
1001
1003
  * @returns a new {@link GtkSource.Mark}, owned by the buffer.
1004
+ * @since 2.2
1002
1005
  */
1003
1006
  create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark;
1004
1007
 
@@ -1032,6 +1035,7 @@ export namespace GtkSource {
1032
1035
  * @param iter an iterator.
1033
1036
  * @param category category to search for, or `null`
1034
1037
  * @returns whether `iter` was moved.
1038
+ * @since 2.2
1035
1039
  */
1036
1040
  forward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): boolean;
1037
1041
 
@@ -1041,6 +1045,7 @@ export namespace GtkSource {
1041
1045
  * See the {@link GtkSource.Buffer} description for the list of default context classes.
1042
1046
  * @param iter a {@link Gtk.TextIter}.
1043
1047
  * @returns a new `null` terminated array of context class names. Use `g_strfreev()` to free the array if it is no longer needed.
1048
+ * @since 2.10
1044
1049
  */
1045
1050
  get_context_classes_at_iter(iter: Gtk.TextIter): string[];
1046
1051
 
@@ -1060,6 +1065,7 @@ export namespace GtkSource {
1060
1065
 
1061
1066
  /**
1062
1067
  * @returns whether the `buffer` has an implicit trailing newline.
1068
+ * @since 3.14
1063
1069
  */
1064
1070
  get_implicit_trailing_newline(): boolean;
1065
1071
 
@@ -1083,6 +1089,7 @@ export namespace GtkSource {
1083
1089
  * @param iter an iterator.
1084
1090
  * @param category category to search for, or `null`
1085
1091
  * @returns a newly allocated {@link GLib.SList}.
1092
+ * @since 2.2
1086
1093
  */
1087
1094
  get_source_marks_at_iter(iter: Gtk.TextIter, category: string | null): Mark[];
1088
1095
 
@@ -1092,6 +1099,7 @@ export namespace GtkSource {
1092
1099
  * @param line a line number.
1093
1100
  * @param category category to search for, or `null`
1094
1101
  * @returns a newly allocated {@link GLib.SList}.
1102
+ * @since 2.2
1095
1103
  */
1096
1104
  get_source_marks_at_line(line: number, category: string | null): Mark[];
1097
1105
 
@@ -1122,6 +1130,7 @@ export namespace GtkSource {
1122
1130
  * @param iter a {@link Gtk.TextIter}.
1123
1131
  * @param context_class the context class.
1124
1132
  * @returns whether we found a context class toggle before `iter`
1133
+ * @since 2.10
1125
1134
  */
1126
1135
  iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean;
1127
1136
 
@@ -1136,6 +1145,7 @@ export namespace GtkSource {
1136
1145
  * @param iter a {@link Gtk.TextIter}.
1137
1146
  * @param context_class the context class.
1138
1147
  * @returns whether we found a context class toggle after `iter`
1148
+ * @since 2.10
1139
1149
  */
1140
1150
  iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean;
1141
1151
 
@@ -1146,6 +1156,7 @@ export namespace GtkSource {
1146
1156
  * @param iter a {@link Gtk.TextIter}.
1147
1157
  * @param context_class class to search for.
1148
1158
  * @returns whether `iter` has the context class.
1159
+ * @since 2.10
1149
1160
  */
1150
1161
  iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean;
1151
1162
 
@@ -1153,6 +1164,7 @@ export namespace GtkSource {
1153
1164
  * Joins the lines of text between the specified iterators.
1154
1165
  * @param start a {@link Gtk.TextIter}.
1155
1166
  * @param end a {@link Gtk.TextIter}.
1167
+ * @since 3.16
1156
1168
  */
1157
1169
  join_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
1158
1170
 
@@ -1170,6 +1182,7 @@ export namespace GtkSource {
1170
1182
  * @param start a {@link Gtk.TextIter}.
1171
1183
  * @param end a {@link Gtk.TextIter}.
1172
1184
  * @param category category to search for, or `null`.
1185
+ * @since 2.2
1173
1186
  */
1174
1187
  remove_source_marks(start: Gtk.TextIter, end: Gtk.TextIter, category: string | null): void;
1175
1188
 
@@ -1213,6 +1226,7 @@ export namespace GtkSource {
1213
1226
  * content is not modified when loaded into the `buffer`, and the `buffer`'s
1214
1227
  * content is not modified when saved into a file.
1215
1228
  * @param implicit_trailing_newline the new value.
1229
+ * @since 3.14
1216
1230
  */
1217
1231
  set_implicit_trailing_newline(implicit_trailing_newline: boolean): void;
1218
1232
 
@@ -1271,6 +1285,7 @@ export namespace GtkSource {
1271
1285
  * @param end a {@link Gtk.TextIter}.
1272
1286
  * @param flags {@link GtkSource.SortFlags} specifying how the sort should behave
1273
1287
  * @param column sort considering the text starting at the given column
1288
+ * @since 3.18
1274
1289
  */
1275
1290
  sort_lines(start: Gtk.TextIter, end: Gtk.TextIter, flags: SortFlags, column: number): void;
1276
1291
 
@@ -1330,7 +1345,7 @@ export namespace GtkSource {
1330
1345
  * @action
1331
1346
  * @run-last
1332
1347
  */
1333
- "move-cursor": (arg0: Gtk.ScrollStep, arg1: number) => void;
1348
+ "move-cursor": (step: Gtk.ScrollStep, num: number) => void;
1334
1349
  /**
1335
1350
  * The {@link GtkSource.Completion.SignalSignatures.move_page | GtkSource.Completion::move-page} signal is a keybinding
1336
1351
  * signal which gets emitted when the user initiates a page
@@ -1355,7 +1370,7 @@ export namespace GtkSource {
1355
1370
  * @action
1356
1371
  * @run-last
1357
1372
  */
1358
- "move-page": (arg0: Gtk.ScrollStep, arg1: number) => void;
1373
+ "move-page": (step: Gtk.ScrollStep, num: number) => void;
1359
1374
  /**
1360
1375
  * Emitted just before starting to populate the completion with providers.
1361
1376
  * You can use this signal to add additional attributes in the context.
@@ -1363,7 +1378,7 @@ export namespace GtkSource {
1363
1378
  * @action
1364
1379
  * @run-last
1365
1380
  */
1366
- "populate-context": (arg0: CompletionContext) => void;
1381
+ "populate-context": (context: CompletionContext) => void;
1367
1382
  /**
1368
1383
  * Emitted when the completion window is shown. The default handler
1369
1384
  * will actually show the window.
@@ -1630,6 +1645,7 @@ export namespace GtkSource {
1630
1645
  * no longer need it.
1631
1646
  * @param provider a {@link GtkSource.CompletionProvider}.
1632
1647
  * @returns `true` if `provider` was successfully added, otherwise if `error` is provided, it will be set with the error and `false` is returned.
1648
+ * @throws GLib.Error
1633
1649
  */
1634
1650
  add_provider(provider: CompletionProvider): boolean;
1635
1651
 
@@ -1683,6 +1699,7 @@ export namespace GtkSource {
1683
1699
  /**
1684
1700
  * Move the completion window to a specific iter.
1685
1701
  * @param iter a {@link Gtk.TextIter}.
1702
+ * @deprecated since 3.8: Use `gtk_source_completion_provider_get_start_iter()` instead.
1686
1703
  */
1687
1704
  move_window(iter: Gtk.TextIter): void;
1688
1705
 
@@ -1690,6 +1707,7 @@ export namespace GtkSource {
1690
1707
  * Remove `provider` from the completion.
1691
1708
  * @param provider a {@link GtkSource.CompletionProvider}.
1692
1709
  * @returns `true` if `provider` was successfully removed, otherwise if `error` is provided, it will be set with the error and `false` is returned.
1710
+ * @throws GLib.Error
1693
1711
  */
1694
1712
  remove_provider(provider: CompletionProvider): boolean;
1695
1713
 
@@ -1722,6 +1740,7 @@ export namespace GtkSource {
1722
1740
  * @param builder a {@link Gtk.Builder}
1723
1741
  * @param child child to add
1724
1742
  * @param type kind of child or `null`
1743
+ * @since 2.12
1725
1744
  */
1726
1745
  add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
1727
1746
 
@@ -1733,6 +1752,7 @@ export namespace GtkSource {
1733
1752
  * @param builder {@link Gtk.Builder} used to construct this object
1734
1753
  * @param name name of child to construct
1735
1754
  * @returns the constructed child
1755
+ * @since 2.12
1736
1756
  */
1737
1757
  construct_child<T = GObject.Object>(builder: Gtk.Builder, name: string): T;
1738
1758
 
@@ -1743,6 +1763,7 @@ export namespace GtkSource {
1743
1763
  * @param child child object or `null` for non-child tags
1744
1764
  * @param tagname the name of the tag
1745
1765
  * @param data user data created in custom_tag_start
1766
+ * @since 2.12
1746
1767
  */
1747
1768
  custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
1748
1769
 
@@ -1753,6 +1774,7 @@ export namespace GtkSource {
1753
1774
  * @param child child object or `null` for non-child tags
1754
1775
  * @param tagname name of tag
1755
1776
  * @param data user data that will be passed in to parser functions
1777
+ * @since 2.12
1756
1778
  */
1757
1779
  custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
1758
1780
 
@@ -1762,6 +1784,7 @@ export namespace GtkSource {
1762
1784
  * @param child child object or `null` for non-child tags
1763
1785
  * @param tagname name of tag
1764
1786
  * @returns `true` if a object has a custom implementation, `false` if it doesn't.
1787
+ * @since 2.12
1765
1788
  */
1766
1789
  custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, null];
1767
1790
 
@@ -1770,6 +1793,7 @@ export namespace GtkSource {
1770
1793
  * @param builder a {@link Gtk.Builder}
1771
1794
  * @param childname name of child
1772
1795
  * @returns the internal child of the buildable object
1796
+ * @since 2.12
1773
1797
  */
1774
1798
  get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
1775
1799
 
@@ -1780,6 +1804,7 @@ export namespace GtkSource {
1780
1804
  * [GtkBuilder UI definition][BUILDER-UI]
1781
1805
  * used to construct the `buildable`.
1782
1806
  * @returns the name set with `gtk_buildable_set_name()`
1807
+ * @since 2.12
1783
1808
  */
1784
1809
  get_name(): string;
1785
1810
 
@@ -1790,6 +1815,7 @@ export namespace GtkSource {
1790
1815
  * `gtk_builder_add_from_file()` or `gtk_builder_add_from_string()`
1791
1816
  * is called on a builder.
1792
1817
  * @param builder a {@link Gtk.Builder}
1818
+ * @since 2.12
1793
1819
  */
1794
1820
  parser_finished(builder: Gtk.Builder): void;
1795
1821
 
@@ -1798,12 +1824,14 @@ export namespace GtkSource {
1798
1824
  * @param builder a {@link Gtk.Builder}
1799
1825
  * @param name name of property
1800
1826
  * @param value value of property
1827
+ * @since 2.12
1801
1828
  */
1802
1829
  set_buildable_property(builder: Gtk.Builder, name: string, value: GObject.Value | any): void;
1803
1830
 
1804
1831
  /**
1805
1832
  * Sets the name of the `buildable` object.
1806
1833
  * @param name name to set
1834
+ * @since 2.12
1807
1835
  */
1808
1836
  set_name(name: string): void;
1809
1837
 
@@ -1813,6 +1841,7 @@ export namespace GtkSource {
1813
1841
  * @param builder a {@link Gtk.Builder}
1814
1842
  * @param child child to add
1815
1843
  * @param type kind of child or `null`
1844
+ * @since 2.12
1816
1845
  * @virtual
1817
1846
  */
1818
1847
  vfunc_add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
@@ -1824,6 +1853,7 @@ export namespace GtkSource {
1824
1853
  * specified in the UI definition.
1825
1854
  * @param builder {@link Gtk.Builder} used to construct this object
1826
1855
  * @param name name of child to construct
1856
+ * @since 2.12
1827
1857
  * @virtual
1828
1858
  */
1829
1859
  vfunc_construct_child<T = GObject.Object>(builder: Gtk.Builder, name: string): T;
@@ -1835,6 +1865,7 @@ export namespace GtkSource {
1835
1865
  * @param child child object or `null` for non-child tags
1836
1866
  * @param tagname the name of the tag
1837
1867
  * @param data user data created in custom_tag_start
1868
+ * @since 2.12
1838
1869
  * @virtual
1839
1870
  */
1840
1871
  vfunc_custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
@@ -1846,6 +1877,7 @@ export namespace GtkSource {
1846
1877
  * @param child child object or `null` for non-child tags
1847
1878
  * @param tagname name of tag
1848
1879
  * @param data user data that will be passed in to parser functions
1880
+ * @since 2.12
1849
1881
  * @virtual
1850
1882
  */
1851
1883
  vfunc_custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
@@ -1855,6 +1887,7 @@ export namespace GtkSource {
1855
1887
  * @param builder a {@link Gtk.Builder} used to construct this object
1856
1888
  * @param child child object or `null` for non-child tags
1857
1889
  * @param tagname name of tag
1890
+ * @since 2.12
1858
1891
  * @virtual
1859
1892
  */
1860
1893
  vfunc_custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, never];
@@ -1863,6 +1896,7 @@ export namespace GtkSource {
1863
1896
  * Get the internal child called `childname` of the `buildable` object.
1864
1897
  * @param builder a {@link Gtk.Builder}
1865
1898
  * @param childname name of child
1899
+ * @since 2.12
1866
1900
  * @virtual
1867
1901
  */
1868
1902
  vfunc_get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
@@ -1873,6 +1907,7 @@ export namespace GtkSource {
1873
1907
  * {@link Gtk.Builder} sets the name based on the
1874
1908
  * [GtkBuilder UI definition][BUILDER-UI]
1875
1909
  * used to construct the `buildable`.
1910
+ * @since 2.12
1876
1911
  * @virtual
1877
1912
  */
1878
1913
  vfunc_get_name(): string;
@@ -1884,6 +1919,7 @@ export namespace GtkSource {
1884
1919
  * `gtk_builder_add_from_file()` or `gtk_builder_add_from_string()`
1885
1920
  * is called on a builder.
1886
1921
  * @param builder a {@link Gtk.Builder}
1922
+ * @since 2.12
1887
1923
  * @virtual
1888
1924
  */
1889
1925
  vfunc_parser_finished(builder: Gtk.Builder): void;
@@ -1893,6 +1929,7 @@ export namespace GtkSource {
1893
1929
  * @param builder a {@link Gtk.Builder}
1894
1930
  * @param name name of property
1895
1931
  * @param value value of property
1932
+ * @since 2.12
1896
1933
  * @virtual
1897
1934
  */
1898
1935
  vfunc_set_buildable_property(builder: Gtk.Builder, name: string, value: unknown): void;
@@ -1900,6 +1937,7 @@ export namespace GtkSource {
1900
1937
  /**
1901
1938
  * Sets the name of the `buildable` object.
1902
1939
  * @param name name to set
1940
+ * @since 2.12
1903
1941
  * @virtual
1904
1942
  */
1905
1943
  vfunc_set_name(name: string): void;
@@ -2158,6 +2196,7 @@ export namespace GtkSource {
2158
2196
  /**
2159
2197
  * Get the current content widget.
2160
2198
  * @returns The current content widget.
2199
+ * @deprecated since 3.8: Use `gtk_bin_get_child()` instead.
2161
2200
  */
2162
2201
  get_widget(): Gtk.Widget;
2163
2202
 
@@ -2176,6 +2215,7 @@ export namespace GtkSource {
2176
2215
  * lose a reference and it can be destroyed, so if you do not want this to
2177
2216
  * happen you must use `g_object_ref()` before calling this method.
2178
2217
  * @param widget a {@link Gtk.Widget}.
2218
+ * @deprecated since 3.8: Use `gtk_container_add()` instead. If there is already a child widget, remove it with `gtk_container_remove()`.
2179
2219
  */
2180
2220
  set_widget(widget: Gtk.Widget | null): void;
2181
2221
  }
@@ -2307,42 +2347,50 @@ export namespace GtkSource {
2307
2347
  /**
2308
2348
  * Creates a new {@link GtkSource.CompletionItem}. The desired properties need to be set
2309
2349
  * afterwards.
2350
+ * @since 3.24
2310
2351
  */
2311
2352
  static new2(): CompletionItem;
2312
2353
 
2313
2354
  // Methods
2314
2355
  /**
2315
2356
  * @param gicon the {@link Gio.Icon}, or `null`.
2357
+ * @since 3.24
2316
2358
  */
2317
2359
  set_gicon(gicon: Gio.Icon | null): void;
2318
2360
 
2319
2361
  /**
2320
2362
  * @param icon the {@link GdkPixbuf.Pixbuf}, or `null`.
2363
+ * @since 3.24
2321
2364
  */
2322
2365
  set_icon(icon: GdkPixbuf.Pixbuf | null): void;
2323
2366
 
2324
2367
  /**
2325
2368
  * @param icon_name the icon name, or `null`.
2369
+ * @since 3.24
2326
2370
  */
2327
2371
  set_icon_name(icon_name: string | null): void;
2328
2372
 
2329
2373
  /**
2330
2374
  * @param info the info, or `null`.
2375
+ * @since 3.24
2331
2376
  */
2332
2377
  set_info(info: string | null): void;
2333
2378
 
2334
2379
  /**
2335
2380
  * @param label the label, or `null`.
2381
+ * @since 3.24
2336
2382
  */
2337
2383
  set_label(label: string | null): void;
2338
2384
 
2339
2385
  /**
2340
2386
  * @param markup the markup, or `null`.
2387
+ * @since 3.24
2341
2388
  */
2342
2389
  set_markup(markup: string | null): void;
2343
2390
 
2344
2391
  /**
2345
2392
  * @param text the text, or `null`.
2393
+ * @since 3.24
2346
2394
  */
2347
2395
  set_text(text: string | null): void;
2348
2396
 
@@ -2365,6 +2413,7 @@ export namespace GtkSource {
2365
2413
  /**
2366
2414
  * Gets the {@link Gio.Icon} for the icon of `proposal`.
2367
2415
  * @returns A {@link Gio.Icon} with the icon of `proposal`.
2416
+ * @since 3.18
2368
2417
  */
2369
2418
  get_gicon(): Gio.Icon | null;
2370
2419
 
@@ -2377,6 +2426,7 @@ export namespace GtkSource {
2377
2426
  /**
2378
2427
  * Gets the icon name of `proposal`.
2379
2428
  * @returns The icon name of `proposal`.
2429
+ * @since 3.18
2380
2430
  */
2381
2431
  get_icon_name(): string | null;
2382
2432
 
@@ -2444,6 +2494,7 @@ export namespace GtkSource {
2444
2494
 
2445
2495
  /**
2446
2496
  * Gets the {@link Gio.Icon} for the icon of `proposal`.
2497
+ * @since 3.18
2447
2498
  * @virtual
2448
2499
  */
2449
2500
  vfunc_get_gicon(): Gio.Icon | null;
@@ -2456,6 +2507,7 @@ export namespace GtkSource {
2456
2507
 
2457
2508
  /**
2458
2509
  * Gets the icon name of `proposal`.
2510
+ * @since 3.18
2459
2511
  * @virtual
2460
2512
  */
2461
2513
  vfunc_get_icon_name(): string | null;
@@ -2683,6 +2735,7 @@ export namespace GtkSource {
2683
2735
  /**
2684
2736
  * Gets the {@link Gio.Icon} for the icon of `provider`.
2685
2737
  * @returns The icon to be used for the provider, or `null` if the provider does not have a special icon.
2738
+ * @since 3.18
2686
2739
  */
2687
2740
  get_gicon(): Gio.Icon | null;
2688
2741
 
@@ -2695,6 +2748,7 @@ export namespace GtkSource {
2695
2748
  /**
2696
2749
  * Gets the icon name of `provider`.
2697
2750
  * @returns The icon name to be used for the provider, or `null` if the provider does not have a special icon.
2751
+ * @since 3.18
2698
2752
  */
2699
2753
  get_icon_name(): string | null;
2700
2754
 
@@ -2816,6 +2870,7 @@ export namespace GtkSource {
2816
2870
 
2817
2871
  /**
2818
2872
  * Gets the {@link Gio.Icon} for the icon of `provider`.
2873
+ * @since 3.18
2819
2874
  * @virtual
2820
2875
  */
2821
2876
  vfunc_get_gicon(): Gio.Icon | null;
@@ -2828,6 +2883,7 @@ export namespace GtkSource {
2828
2883
 
2829
2884
  /**
2830
2885
  * Gets the icon name of `provider`.
2886
+ * @since 3.18
2831
2887
  * @virtual
2832
2888
  */
2833
2889
  vfunc_get_icon_name(): string | null;
@@ -3064,11 +3120,13 @@ export namespace GtkSource {
3064
3120
  *
3065
3121
  * Since this function is synchronous, it is advised to call it only on local
3066
3122
  * files. See `gtk_source_file_is_local()`.
3123
+ * @since 3.18
3067
3124
  */
3068
3125
  check_file_on_disk(): void;
3069
3126
 
3070
3127
  /**
3071
3128
  * @returns the compression type.
3129
+ * @since 3.14
3072
3130
  */
3073
3131
  get_compression_type(): CompressionType;
3074
3132
 
@@ -3076,16 +3134,19 @@ export namespace GtkSource {
3076
3134
  * The encoding is initially `null`. After a successful file loading or saving
3077
3135
  * operation, the encoding is non-`null`.
3078
3136
  * @returns the character encoding.
3137
+ * @since 3.14
3079
3138
  */
3080
3139
  get_encoding(): Encoding;
3081
3140
 
3082
3141
  /**
3083
3142
  * @returns the {@link Gio.File}.
3143
+ * @since 3.14
3084
3144
  */
3085
3145
  get_location(): Gio.File;
3086
3146
 
3087
3147
  /**
3088
3148
  * @returns the newline type.
3149
+ * @since 3.14
3089
3150
  */
3090
3151
  get_newline_type(): NewlineType;
3091
3152
 
@@ -3096,6 +3157,7 @@ export namespace GtkSource {
3096
3157
  * To have an up-to-date value, you must first call
3097
3158
  * `gtk_source_file_check_file_on_disk()`.
3098
3159
  * @returns whether the file has been deleted.
3160
+ * @since 3.18
3099
3161
  */
3100
3162
  is_deleted(): boolean;
3101
3163
 
@@ -3106,6 +3168,7 @@ export namespace GtkSource {
3106
3168
  * To have an up-to-date value, you must first call
3107
3169
  * `gtk_source_file_check_file_on_disk()`.
3108
3170
  * @returns whether the file is externally modified.
3171
+ * @since 3.18
3109
3172
  */
3110
3173
  is_externally_modified(): boolean;
3111
3174
 
@@ -3113,6 +3176,7 @@ export namespace GtkSource {
3113
3176
  * Returns whether the file is local. If the {@link GtkSource.File.location} is `null`,
3114
3177
  * returns `false`.
3115
3178
  * @returns whether the file is local.
3179
+ * @since 3.18
3116
3180
  */
3117
3181
  is_local(): boolean;
3118
3182
 
@@ -3123,12 +3187,14 @@ export namespace GtkSource {
3123
3187
  * To have an up-to-date value, you must first call
3124
3188
  * `gtk_source_file_check_file_on_disk()`.
3125
3189
  * @returns whether the file is read-only.
3190
+ * @since 3.18
3126
3191
  */
3127
3192
  is_readonly(): boolean;
3128
3193
 
3129
3194
  /**
3130
3195
  * Sets the location.
3131
3196
  * @param location the new {@link Gio.File}, or `null`.
3197
+ * @since 3.14
3132
3198
  */
3133
3199
  set_location(location: Gio.File | null): void;
3134
3200
  }
@@ -3235,36 +3301,43 @@ export namespace GtkSource {
3235
3301
  // Methods
3236
3302
  /**
3237
3303
  * @returns the {@link GtkSource.Buffer} to load the contents into.
3304
+ * @since 3.14
3238
3305
  */
3239
3306
  get_buffer(): Buffer;
3240
3307
 
3241
3308
  /**
3242
3309
  * @returns the detected compression type.
3310
+ * @since 3.14
3243
3311
  */
3244
3312
  get_compression_type(): CompressionType;
3245
3313
 
3246
3314
  /**
3247
3315
  * @returns the detected file encoding.
3316
+ * @since 3.14
3248
3317
  */
3249
3318
  get_encoding(): Encoding;
3250
3319
 
3251
3320
  /**
3252
3321
  * @returns the {@link GtkSource.File}.
3322
+ * @since 3.14
3253
3323
  */
3254
3324
  get_file(): File;
3255
3325
 
3256
3326
  /**
3257
3327
  * @returns the {@link Gio.InputStream} to load, or `null` if a {@link Gio.File} is used.
3328
+ * @since 3.14
3258
3329
  */
3259
3330
  get_input_stream(): Gio.InputStream | null;
3260
3331
 
3261
3332
  /**
3262
3333
  * @returns the {@link Gio.File} to load, or `null` if an input stream is used.
3334
+ * @since 3.14
3263
3335
  */
3264
3336
  get_location(): Gio.File | null;
3265
3337
 
3266
3338
  /**
3267
3339
  * @returns the detected newline type.
3340
+ * @since 3.14
3268
3341
  */
3269
3342
  get_newline_type(): NewlineType;
3270
3343
 
@@ -3275,6 +3348,7 @@ export namespace GtkSource {
3275
3348
  * @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
3276
3349
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
3277
3350
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
3351
+ * @since 3.14
3278
3352
  */
3279
3353
  load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
3280
3354
 
@@ -3286,6 +3360,7 @@ export namespace GtkSource {
3286
3360
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
3287
3361
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
3288
3362
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
3363
+ * @since 3.14
3289
3364
  */
3290
3365
  load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
3291
3366
 
@@ -3297,6 +3372,7 @@ export namespace GtkSource {
3297
3372
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
3298
3373
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
3299
3374
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
3375
+ * @since 3.14
3300
3376
  */
3301
3377
  load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
3302
3378
 
@@ -3308,6 +3384,8 @@ export namespace GtkSource {
3308
3384
  * type.
3309
3385
  * @param result a {@link Gio.AsyncResult}.
3310
3386
  * @returns whether the contents has been loaded successfully.
3387
+ * @since 3.14
3388
+ * @throws GLib.Error
3311
3389
  */
3312
3390
  load_finish(result: Gio.AsyncResult): boolean;
3313
3391
 
@@ -3324,6 +3402,7 @@ export namespace GtkSource {
3324
3402
  * 2. The default candidates as returned by
3325
3403
  * `gtk_source_encoding_get_default_candidates()`.
3326
3404
  * @param candidate_encodings a list of {@link GtkSource.Encoding}<!-- -->s.
3405
+ * @since 3.14
3327
3406
  */
3328
3407
  set_candidate_encodings(candidate_encodings: Encoding[]): void;
3329
3408
  }
@@ -3470,36 +3549,43 @@ export namespace GtkSource {
3470
3549
  // Methods
3471
3550
  /**
3472
3551
  * @returns the {@link GtkSource.Buffer} to save.
3552
+ * @since 3.14
3473
3553
  */
3474
3554
  get_buffer(): Buffer;
3475
3555
 
3476
3556
  /**
3477
3557
  * @returns the compression type.
3558
+ * @since 3.14
3478
3559
  */
3479
3560
  get_compression_type(): CompressionType;
3480
3561
 
3481
3562
  /**
3482
3563
  * @returns the encoding.
3564
+ * @since 3.14
3483
3565
  */
3484
3566
  get_encoding(): Encoding;
3485
3567
 
3486
3568
  /**
3487
3569
  * @returns the {@link GtkSource.File}.
3570
+ * @since 3.14
3488
3571
  */
3489
3572
  get_file(): File;
3490
3573
 
3491
3574
  /**
3492
3575
  * @returns the flags.
3576
+ * @since 3.14
3493
3577
  */
3494
3578
  get_flags(): FileSaverFlags;
3495
3579
 
3496
3580
  /**
3497
3581
  * @returns the {@link Gio.File} where to save the buffer to.
3582
+ * @since 3.14
3498
3583
  */
3499
3584
  get_location(): Gio.File;
3500
3585
 
3501
3586
  /**
3502
3587
  * @returns the newline type.
3588
+ * @since 3.14
3503
3589
  */
3504
3590
  get_newline_type(): NewlineType;
3505
3591
 
@@ -3509,6 +3595,7 @@ export namespace GtkSource {
3509
3595
  * @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
3510
3596
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
3511
3597
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
3598
+ * @since 3.14
3512
3599
  */
3513
3600
  save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
3514
3601
 
@@ -3519,6 +3606,7 @@ export namespace GtkSource {
3519
3606
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
3520
3607
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
3521
3608
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
3609
+ * @since 3.14
3522
3610
  */
3523
3611
  save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
3524
3612
 
@@ -3529,6 +3617,7 @@ export namespace GtkSource {
3529
3617
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
3530
3618
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
3531
3619
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
3620
+ * @since 3.14
3532
3621
  */
3533
3622
  save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
3534
3623
 
@@ -3543,6 +3632,8 @@ export namespace GtkSource {
3543
3632
  * if the file has been saved successfully.
3544
3633
  * @param result a {@link Gio.AsyncResult}.
3545
3634
  * @returns whether the file was saved successfully.
3635
+ * @since 3.14
3636
+ * @throws GLib.Error
3546
3637
  */
3547
3638
  save_finish(result: Gio.AsyncResult): boolean;
3548
3639
 
@@ -3550,6 +3641,7 @@ export namespace GtkSource {
3550
3641
  * Sets the compression type. By default the compression type is taken from the
3551
3642
  * {@link GtkSource.File}.
3552
3643
  * @param compression_type the new compression type.
3644
+ * @since 3.14
3553
3645
  */
3554
3646
  set_compression_type(compression_type: CompressionType): void;
3555
3647
 
@@ -3557,11 +3649,13 @@ export namespace GtkSource {
3557
3649
  * Sets the encoding. If `encoding` is `null`, the UTF-8 encoding will be set.
3558
3650
  * By default the encoding is taken from the {@link GtkSource.File}.
3559
3651
  * @param encoding the new encoding, or `null` for UTF-8.
3652
+ * @since 3.14
3560
3653
  */
3561
3654
  set_encoding(encoding: Encoding | null): void;
3562
3655
 
3563
3656
  /**
3564
3657
  * @param flags the new flags.
3658
+ * @since 3.14
3565
3659
  */
3566
3660
  set_flags(flags: FileSaverFlags): void;
3567
3661
 
@@ -3569,6 +3663,7 @@ export namespace GtkSource {
3569
3663
  * Sets the newline type. By default the newline type is taken from the
3570
3664
  * {@link GtkSource.File}.
3571
3665
  * @param newline_type the new newline type.
3666
+ * @since 3.14
3572
3667
  */
3573
3668
  set_newline_type(newline_type: NewlineType): void;
3574
3669
  }
@@ -3667,6 +3762,7 @@ export namespace GtkSource {
3667
3762
  /**
3668
3763
  * @param xpad
3669
3764
  * @param ypad
3765
+ * @deprecated since 3.12: Use `gtk_source_gutter_renderer_get_padding()` instead.
3670
3766
  */
3671
3767
  get_padding(xpad: number, ypad: number): void;
3672
3768
 
@@ -3680,6 +3776,7 @@ export namespace GtkSource {
3680
3776
 
3681
3777
  /**
3682
3778
  * @returns the associated {@link GtkSource.View}.
3779
+ * @since 3.24
3683
3780
  */
3684
3781
  get_view(): View;
3685
3782
 
@@ -3687,11 +3784,14 @@ export namespace GtkSource {
3687
3784
  * Get the {@link Gdk.Window} of the gutter. The window will only be available when the
3688
3785
  * gutter has at least one, non-zero width, cell renderer packed.
3689
3786
  * @returns the {@link Gdk.Window} of the gutter, or `null` if the gutter has no window.
3787
+ * @since 2.8
3788
+ * @deprecated since 3.12: Use `gtk_text_view_get_window()` instead.
3690
3789
  */
3691
3790
  get_window(): Gdk.Window;
3692
3791
 
3693
3792
  /**
3694
3793
  * @returns the {@link Gtk.TextWindowType} of `gutter`.
3794
+ * @since 3.24
3695
3795
  */
3696
3796
  get_window_type(): Gtk.TextWindowType;
3697
3797
 
@@ -3702,18 +3802,21 @@ export namespace GtkSource {
3702
3802
  * @param renderer a gutter renderer (must inherit from {@link GtkSource.GutterRenderer}).
3703
3803
  * @param position the renderer position.
3704
3804
  * @returns `true` if operation succeeded. Otherwise `false`.
3805
+ * @since 3.0
3705
3806
  */
3706
3807
  insert(renderer: GutterRenderer, position: number): boolean;
3707
3808
 
3708
3809
  /**
3709
3810
  * Invalidates the drawable area of the gutter. You can use this to force a
3710
3811
  * redraw of the gutter if something has changed and needs to be redrawn.
3812
+ * @since 2.8
3711
3813
  */
3712
3814
  queue_draw(): void;
3713
3815
 
3714
3816
  /**
3715
3817
  * Removes `renderer` from `gutter`.
3716
3818
  * @param renderer a {@link GtkSource.GutterRenderer}.
3819
+ * @since 2.8
3717
3820
  */
3718
3821
  remove(renderer: GutterRenderer): void;
3719
3822
 
@@ -3721,12 +3824,14 @@ export namespace GtkSource {
3721
3824
  * Reorders `renderer` in `gutter` to new `position`.
3722
3825
  * @param renderer a {@link Gtk.CellRenderer}.
3723
3826
  * @param position the new renderer position.
3827
+ * @since 2.8
3724
3828
  */
3725
3829
  reorder(renderer: GutterRenderer, position: number): void;
3726
3830
 
3727
3831
  /**
3728
3832
  * @param xpad
3729
3833
  * @param ypad
3834
+ * @deprecated since 3.12: Use `gtk_source_gutter_renderer_set_padding()` instead.
3730
3835
  */
3731
3836
  set_padding(xpad: number, ypad: number): void;
3732
3837
  }
@@ -3741,14 +3846,14 @@ export namespace GtkSource {
3741
3846
  * @signal
3742
3847
  * @run-last
3743
3848
  */
3744
- activate: (arg0: Gtk.TextIter, arg1: Gdk.Rectangle, arg2: Gdk.Event) => void;
3849
+ activate: (iter: Gtk.TextIter, area: Gdk.Rectangle, event: Gdk.Event) => void;
3745
3850
  /**
3746
3851
  * The ::query-activatable signal is emitted when the renderer
3747
3852
  * can possibly be activated.
3748
3853
  * @signal
3749
3854
  * @run-last
3750
3855
  */
3751
- "query-activatable": (arg0: Gtk.TextIter, arg1: Gdk.Rectangle, arg2: Gdk.Event) => boolean | void;
3856
+ "query-activatable": (iter: Gtk.TextIter, area: Gdk.Rectangle, event: Gdk.Event) => boolean | void;
3752
3857
  /**
3753
3858
  * The ::query-data signal is emitted when the renderer needs
3754
3859
  * to be filled with data just before a cell is drawn. This can
@@ -3757,14 +3862,14 @@ export namespace GtkSource {
3757
3862
  * @signal
3758
3863
  * @run-last
3759
3864
  */
3760
- "query-data": (arg0: Gtk.TextIter, arg1: Gtk.TextIter, arg2: GutterRendererState) => void;
3865
+ "query-data": (start: Gtk.TextIter, end: Gtk.TextIter, state: GutterRendererState) => void;
3761
3866
  /**
3762
3867
  * The ::query-tooltip signal is emitted when the renderer can
3763
3868
  * show a tooltip.
3764
3869
  * @signal
3765
3870
  * @run-last
3766
3871
  */
3767
- "query-tooltip": (arg0: Gtk.TextIter, arg1: Gdk.Rectangle, arg2: number, arg3: number, arg4: Gtk.Tooltip) => boolean | void;
3872
+ "query-tooltip": (iter: Gtk.TextIter, area: Gdk.Rectangle, x: number, y: number, tooltip: Gtk.Tooltip) => boolean | void;
3768
3873
  /**
3769
3874
  * The ::queue-draw signal is emitted when the renderer needs
3770
3875
  * to be redrawn. Use `gtk_source_gutter_renderer_queue_draw()`
@@ -4370,6 +4475,7 @@ export namespace GtkSource {
4370
4475
 
4371
4476
  /**
4372
4477
  * @returns the stock id.
4478
+ * @deprecated since 3.10: Don't use this function.
4373
4479
  */
4374
4480
  get_stock_id(): string;
4375
4481
 
@@ -4390,6 +4496,7 @@ export namespace GtkSource {
4390
4496
 
4391
4497
  /**
4392
4498
  * @param stock_id the stock id
4499
+ * @deprecated since 3.10: Don't use this function.
4393
4500
  */
4394
4501
  set_stock_id(stock_id: string | null): void;
4395
4502
  }
@@ -4634,6 +4741,7 @@ export namespace GtkSource {
4634
4741
  * is not present in the current style scheme.
4635
4742
  * @param style_id a style ID.
4636
4743
  * @returns the ID of the style to use if the specified `style_id` is not present in the current style scheme or `null` if the style has no fallback defined. The returned string is owned by the `language` and must not be modified.
4744
+ * @since 3.4
4637
4745
  */
4638
4746
  get_style_fallback(style_id: string): string | null;
4639
4747
 
@@ -4783,6 +4891,7 @@ export namespace GtkSource {
4783
4891
  * @param filename a filename in Glib filename encoding, or `null`.
4784
4892
  * @param content_type a content type (as in GIO API), or `null`.
4785
4893
  * @returns a {@link GtkSource.Language}, or `null` if there is no suitable language for given `filename` and/or `content_type`. Return value is owned by `lm` and should not be freed.
4894
+ * @since 2.4
4786
4895
  */
4787
4896
  guess_language(filename: string | null, content_type: string | null): Language | null;
4788
4897
 
@@ -4948,12 +5057,14 @@ export namespace GtkSource {
4948
5057
  /**
4949
5058
  * Gets the {@link GtkSource.Map.view} property, which is the view this widget is mapping.
4950
5059
  * @returns a {@link GtkSource.View} or `null`.
5060
+ * @since 3.18
4951
5061
  */
4952
5062
  get_view(): View | null;
4953
5063
 
4954
5064
  /**
4955
5065
  * Sets the view that `map` will be doing the mapping to.
4956
5066
  * @param view a {@link GtkSource.View}
5067
+ * @since 3.18
4957
5068
  */
4958
5069
  set_view(view: View): void;
4959
5070
  }
@@ -5024,6 +5135,7 @@ export namespace GtkSource {
5024
5135
  /**
5025
5136
  * Returns the mark category.
5026
5137
  * @returns the category of the {@link GtkSource.Mark}.
5138
+ * @since 2.2
5027
5139
  */
5028
5140
  get_category(): string;
5029
5141
 
@@ -5034,6 +5146,7 @@ export namespace GtkSource {
5034
5146
  * If `category` is `null`, looks for marks of any category.
5035
5147
  * @param category a string specifying the mark category, or `null`.
5036
5148
  * @returns the next {@link GtkSource.Mark}, or `null`.
5149
+ * @since 2.2
5037
5150
  */
5038
5151
  next(category: string | null): Mark | null;
5039
5152
 
@@ -5044,6 +5157,7 @@ export namespace GtkSource {
5044
5157
  * If `category` is `null`, looks for marks of any category
5045
5158
  * @param category a string specifying the mark category, or `null`.
5046
5159
  * @returns the previous {@link GtkSource.Mark}, or `null`.
5160
+ * @since 2.2
5047
5161
  */
5048
5162
  prev(category: string): Mark | null;
5049
5163
  }
@@ -5058,14 +5172,14 @@ export namespace GtkSource {
5058
5172
  * @signal
5059
5173
  * @run-last
5060
5174
  */
5061
- "query-tooltip-markup": (arg0: Mark) => string;
5175
+ "query-tooltip-markup": (mark: Mark) => string;
5062
5176
  /**
5063
5177
  * The code should connect to this signal to provide a tooltip for given
5064
5178
  * `mark`. The tooltip should be just a plain text.
5065
5179
  * @signal
5066
5180
  * @run-last
5067
5181
  */
5068
- "query-tooltip-text": (arg0: Mark) => string;
5182
+ "query-tooltip-text": (mark: Mark) => string;
5069
5183
  "notify::background": (pspec: GObject.ParamSpec) => void;
5070
5184
  "notify::gicon": (pspec: GObject.ParamSpec) => void;
5071
5185
  "notify::icon-name": (pspec: GObject.ParamSpec) => void;
@@ -5201,6 +5315,7 @@ export namespace GtkSource {
5201
5315
  * Gets a stock id of an icon used by this attributes. Note that the stock id can
5202
5316
  * be `null` if it wasn't set earlier.
5203
5317
  * @returns Stock id. Returned string is owned by `attributes` and shouldn't be freed.
5318
+ * @deprecated since 3.10: Don't use this function.
5204
5319
  */
5205
5320
  get_stock_id(): string;
5206
5321
 
@@ -5261,6 +5376,7 @@ export namespace GtkSource {
5261
5376
  /**
5262
5377
  * Sets stock id to be used as a base for rendered icon.
5263
5378
  * @param stock_id a stock id.
5379
+ * @deprecated since 3.10: Don't use this function.
5264
5380
  */
5265
5381
  set_stock_id(stock_id: string): void;
5266
5382
  }
@@ -5686,6 +5802,7 @@ export namespace GtkSource {
5686
5802
  * Returns the name of the font used to print the text body. The returned string
5687
5803
  * must be freed with `g_free()`.
5688
5804
  * @returns a new string containing the name of the font used to print the text body.
5805
+ * @since 2.2
5689
5806
  */
5690
5807
  get_body_font_name(): string;
5691
5808
 
@@ -5693,6 +5810,7 @@ export namespace GtkSource {
5693
5810
  * Gets the bottom margin in units of `unit`.
5694
5811
  * @param unit the unit for the return value.
5695
5812
  * @returns the bottom margin.
5813
+ * @since 2.2
5696
5814
  */
5697
5815
  get_bottom_margin(unit: Gtk.Unit): number;
5698
5816
 
@@ -5701,6 +5819,7 @@ export namespace GtkSource {
5701
5819
  * object reference is owned by the compositor object and
5702
5820
  * should not be unreferenced.
5703
5821
  * @returns the {@link GtkSource.Buffer} associated with the compositor.
5822
+ * @since 2.2
5704
5823
  */
5705
5824
  get_buffer(): Buffer;
5706
5825
 
@@ -5708,6 +5827,7 @@ export namespace GtkSource {
5708
5827
  * Returns the name of the font used to print the page footer.
5709
5828
  * The returned string must be freed with `g_free()`.
5710
5829
  * @returns a new string containing the name of the font used to print the page footer.
5830
+ * @since 2.2
5711
5831
  */
5712
5832
  get_footer_font_name(): string;
5713
5833
 
@@ -5715,6 +5835,7 @@ export namespace GtkSource {
5715
5835
  * Returns the name of the font used to print the page header.
5716
5836
  * The returned string must be freed with `g_free()`.
5717
5837
  * @returns a new string containing the name of the font used to print the page header.
5838
+ * @since 2.2
5718
5839
  */
5719
5840
  get_header_font_name(): string;
5720
5841
 
@@ -5723,6 +5844,7 @@ export namespace GtkSource {
5723
5844
  * buffer rules. Note that highlighting will happen
5724
5845
  * only if the buffer to print has highlighting activated.
5725
5846
  * @returns `true` if the printed output will be highlighted.
5847
+ * @since 2.2
5726
5848
  */
5727
5849
  get_highlight_syntax(): boolean;
5728
5850
 
@@ -5730,6 +5852,7 @@ export namespace GtkSource {
5730
5852
  * Gets the left margin in units of `unit`.
5731
5853
  * @param unit the unit for the return value.
5732
5854
  * @returns the left margin
5855
+ * @since 2.2
5733
5856
  */
5734
5857
  get_left_margin(unit: Gtk.Unit): number;
5735
5858
 
@@ -5737,6 +5860,7 @@ export namespace GtkSource {
5737
5860
  * Returns the name of the font used to print line numbers on the left margin.
5738
5861
  * The returned string must be freed with `g_free()`.
5739
5862
  * @returns a new string containing the name of the font used to print line numbers on the left margin.
5863
+ * @since 2.2
5740
5864
  */
5741
5865
  get_line_numbers_font_name(): string;
5742
5866
 
@@ -5744,12 +5868,14 @@ export namespace GtkSource {
5744
5868
  * Returns the number of pages in the document or <code>-1</code> if the
5745
5869
  * document has not been completely paginated.
5746
5870
  * @returns the number of pages in the document or <code>-1</code> if the document has not been completely paginated.
5871
+ * @since 2.2
5747
5872
  */
5748
5873
  get_n_pages(): number;
5749
5874
 
5750
5875
  /**
5751
5876
  * Returns the current fraction of the document pagination that has been completed.
5752
5877
  * @returns a fraction from 0.0 to 1.0 inclusive.
5878
+ * @since 2.2
5753
5879
  */
5754
5880
  get_pagination_progress(): number;
5755
5881
 
@@ -5759,6 +5885,7 @@ export namespace GtkSource {
5759
5885
  * <emphasis>and</emphasis> some format strings have been specified
5760
5886
  * with `gtk_source_print_compositor_set_footer_format()`.
5761
5887
  * @returns `true` if the footer is set to be printed.
5888
+ * @since 2.2
5762
5889
  */
5763
5890
  get_print_footer(): boolean;
5764
5891
 
@@ -5768,6 +5895,7 @@ export namespace GtkSource {
5768
5895
  * <emphasis>and</emphasis> some format strings have been specified
5769
5896
  * with `gtk_source_print_compositor_set_header_format()`.
5770
5897
  * @returns `true` if the header is set to be printed.
5898
+ * @since 2.2
5771
5899
  */
5772
5900
  get_print_header(): boolean;
5773
5901
 
@@ -5776,6 +5904,7 @@ export namespace GtkSource {
5776
5904
  * value is 0, no line numbers will be printed. The default value is
5777
5905
  * 1 (i.e. numbers printed in all lines).
5778
5906
  * @returns the interval of printed line numbers.
5907
+ * @since 2.2
5779
5908
  */
5780
5909
  get_print_line_numbers(): number;
5781
5910
 
@@ -5783,12 +5912,14 @@ export namespace GtkSource {
5783
5912
  * Gets the right margin in units of `unit`.
5784
5913
  * @param unit the unit for the return value.
5785
5914
  * @returns the right margin.
5915
+ * @since 2.2
5786
5916
  */
5787
5917
  get_right_margin(unit: Gtk.Unit): number;
5788
5918
 
5789
5919
  /**
5790
5920
  * Returns the width of tabulation in characters for printed text.
5791
5921
  * @returns width of tab.
5922
+ * @since 2.2
5792
5923
  */
5793
5924
  get_tab_width(): number;
5794
5925
 
@@ -5796,12 +5927,14 @@ export namespace GtkSource {
5796
5927
  * Gets the top margin in units of `unit`.
5797
5928
  * @param unit the unit for the return value.
5798
5929
  * @returns the top margin.
5930
+ * @since 2.2
5799
5931
  */
5800
5932
  get_top_margin(unit: Gtk.Unit): number;
5801
5933
 
5802
5934
  /**
5803
5935
  * Gets the line wrapping mode for the printed text.
5804
5936
  * @returns the line wrap mode.
5937
+ * @since 2.2
5805
5938
  */
5806
5939
  get_wrap_mode(): Gtk.WrapMode;
5807
5940
 
@@ -5868,6 +6001,7 @@ export namespace GtkSource {
5868
6001
  * </programlisting></informalexample>
5869
6002
  * @param context the {@link Gtk.PrintContext} whose parameters (e.g. paper size, print margins, etc.) are used by the the `compositor` to paginate the document.
5870
6003
  * @returns `true` if the document has been completely paginated, `false` otherwise.
6004
+ * @since 2.2
5871
6005
  */
5872
6006
  paginate(context: Gtk.PrintContext): boolean;
5873
6007
 
@@ -5882,6 +6016,7 @@ export namespace GtkSource {
5882
6016
  * This function cannot be called anymore after the first call to the
5883
6017
  * `gtk_source_print_compositor_paginate()` function.
5884
6018
  * @param font_name the name of the default font for the body text.
6019
+ * @since 2.2
5885
6020
  */
5886
6021
  set_body_font_name(font_name: string): void;
5887
6022
 
@@ -5889,6 +6024,7 @@ export namespace GtkSource {
5889
6024
  * Sets the bottom margin used by `compositor`.
5890
6025
  * @param margin the new bottom margin in units of `unit`.
5891
6026
  * @param unit the units for `margin`.
6027
+ * @since 2.2
5892
6028
  */
5893
6029
  set_bottom_margin(margin: number, unit: Gtk.Unit): void;
5894
6030
 
@@ -5905,6 +6041,7 @@ export namespace GtkSource {
5905
6041
  * This function cannot be called anymore after the first call to the
5906
6042
  * `gtk_source_print_compositor_paginate()` function.
5907
6043
  * @param font_name the name of the font for the footer text, or `null`.
6044
+ * @since 2.2
5908
6045
  */
5909
6046
  set_footer_font_name(font_name: string | null): void;
5910
6047
 
@@ -5915,6 +6052,7 @@ export namespace GtkSource {
5915
6052
  * @param left a format string to print on the left of the footer.
5916
6053
  * @param center a format string to print on the center of the footer.
5917
6054
  * @param right a format string to print on the right of the footer.
6055
+ * @since 2.2
5918
6056
  */
5919
6057
  set_footer_format(separator: boolean, left: string | null, center: string | null, right: string | null): void;
5920
6058
 
@@ -5931,6 +6069,7 @@ export namespace GtkSource {
5931
6069
  * This function cannot be called anymore after the first call to the
5932
6070
  * `gtk_source_print_compositor_paginate()` function.
5933
6071
  * @param font_name the name of the font for header text, or `null`.
6072
+ * @since 2.2
5934
6073
  */
5935
6074
  set_header_font_name(font_name: string | null): void;
5936
6075
 
@@ -5960,6 +6099,7 @@ export namespace GtkSource {
5960
6099
  * @param left a format string to print on the left of the header.
5961
6100
  * @param center a format string to print on the center of the header.
5962
6101
  * @param right a format string to print on the right of the header.
6102
+ * @since 2.2
5963
6103
  */
5964
6104
  set_header_format(separator: boolean, left: string | null, center: string | null, right: string | null): void;
5965
6105
 
@@ -5970,6 +6110,7 @@ export namespace GtkSource {
5970
6110
  * This function cannot be called anymore after the first call to the
5971
6111
  * `gtk_source_print_compositor_paginate()` function.
5972
6112
  * @param highlight whether syntax should be highlighted.
6113
+ * @since 2.2
5973
6114
  */
5974
6115
  set_highlight_syntax(highlight: boolean): void;
5975
6116
 
@@ -5977,6 +6118,7 @@ export namespace GtkSource {
5977
6118
  * Sets the left margin used by `compositor`.
5978
6119
  * @param margin the new left margin in units of `unit`.
5979
6120
  * @param unit the units for `margin`.
6121
+ * @since 2.2
5980
6122
  */
5981
6123
  set_left_margin(margin: number, unit: Gtk.Unit): void;
5982
6124
 
@@ -5993,6 +6135,7 @@ export namespace GtkSource {
5993
6135
  * This function cannot be called anymore after the first call to the
5994
6136
  * `gtk_source_print_compositor_paginate()` function.
5995
6137
  * @param font_name the name of the font for line numbers, or `null`.
6138
+ * @since 2.2
5996
6139
  */
5997
6140
  set_line_numbers_font_name(font_name: string | null): void;
5998
6141
 
@@ -6008,6 +6151,7 @@ export namespace GtkSource {
6008
6151
  * This function cannot be called anymore after the first call to the
6009
6152
  * `gtk_source_print_compositor_paginate()` function.
6010
6153
  * @param print `true` if you want the footer to be printed.
6154
+ * @since 2.2
6011
6155
  */
6012
6156
  set_print_footer(print: boolean): void;
6013
6157
 
@@ -6023,6 +6167,7 @@ export namespace GtkSource {
6023
6167
  * This function cannot be called anymore after the first call to the
6024
6168
  * `gtk_source_print_compositor_paginate()` function.
6025
6169
  * @param print `true` if you want the header to be printed.
6170
+ * @since 2.2
6026
6171
  */
6027
6172
  set_print_header(print: boolean): void;
6028
6173
 
@@ -6036,6 +6181,7 @@ export namespace GtkSource {
6036
6181
  * This function cannot be called anymore after the first call to the
6037
6182
  * `gtk_source_print_compositor_paginate()` function.
6038
6183
  * @param interval interval for printed line numbers.
6184
+ * @since 2.2
6039
6185
  */
6040
6186
  set_print_line_numbers(interval: number): void;
6041
6187
 
@@ -6043,6 +6189,7 @@ export namespace GtkSource {
6043
6189
  * Sets the right margin used by `compositor`.
6044
6190
  * @param margin the new right margin in units of `unit`.
6045
6191
  * @param unit the units for `margin`.
6192
+ * @since 2.2
6046
6193
  */
6047
6194
  set_right_margin(margin: number, unit: Gtk.Unit): void;
6048
6195
 
@@ -6052,6 +6199,7 @@ export namespace GtkSource {
6052
6199
  * This function cannot be called anymore after the first call to the
6053
6200
  * `gtk_source_print_compositor_paginate()` function.
6054
6201
  * @param width width of tab in characters.
6202
+ * @since 2.2
6055
6203
  */
6056
6204
  set_tab_width(width: number): void;
6057
6205
 
@@ -6059,6 +6207,7 @@ export namespace GtkSource {
6059
6207
  * Sets the top margin used by `compositor`.
6060
6208
  * @param margin the new top margin in units of `unit`
6061
6209
  * @param unit the units for `margin`
6210
+ * @since 2.2
6062
6211
  */
6063
6212
  set_top_margin(margin: number, unit: Gtk.Unit): void;
6064
6213
 
@@ -6068,6 +6217,7 @@ export namespace GtkSource {
6068
6217
  * This function cannot be called anymore after the first call to the
6069
6218
  * `gtk_source_print_compositor_paginate()` function.
6070
6219
  * @param wrap_mode a {@link Gtk.WrapMode}.
6220
+ * @since 2.2
6071
6221
  */
6072
6222
  set_wrap_mode(wrap_mode: Gtk.WrapMode): void;
6073
6223
  }
@@ -6133,6 +6283,7 @@ export namespace GtkSource {
6133
6283
  /**
6134
6284
  * Adds `region_to_add` to `region`. `region_to_add` is not modified.
6135
6285
  * @param region_to_add the {@link GtkSource.Region} to add to `region`, or `null`.
6286
+ * @since 3.22
6136
6287
  */
6137
6288
  add_region(region_to_add: Region | null): void;
6138
6289
 
@@ -6140,23 +6291,27 @@ export namespace GtkSource {
6140
6291
  * Adds the subregion delimited by `_start` and `_end` to `region`.
6141
6292
  * @param _start the start of the subregion.
6142
6293
  * @param _end the end of the subregion.
6294
+ * @since 3.22
6143
6295
  */
6144
6296
  add_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): void;
6145
6297
 
6146
6298
  /**
6147
6299
  * Gets the `start` and `end` bounds of the `region`.
6148
6300
  * @returns `true` if `start` and `end` have been set successfully (if non-`null`), or `false` if the `region` is empty.
6301
+ * @since 3.22
6149
6302
  */
6150
6303
  get_bounds(): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
6151
6304
 
6152
6305
  /**
6153
6306
  * @returns the {@link Gtk.TextBuffer}.
6307
+ * @since 3.22
6154
6308
  */
6155
6309
  get_buffer(): Gtk.TextBuffer | null;
6156
6310
 
6157
6311
  /**
6158
6312
  * Initializes a {@link GtkSource.RegionIter} to the first subregion of `region`. If
6159
6313
  * `region` is empty, `iter` will be initialized to the end iterator.
6314
+ * @since 3.22
6160
6315
  */
6161
6316
  get_start_region_iter(): RegionIter;
6162
6317
 
@@ -6165,6 +6320,7 @@ export namespace GtkSource {
6165
6320
  * `region2` are not modified.
6166
6321
  * @param region2 a {@link GtkSource.Region}, or `null`.
6167
6322
  * @returns the intersection as a {@link GtkSource.Region} object.
6323
+ * @since 3.22
6168
6324
  */
6169
6325
  intersect_region(region2: Region | null): Region | null;
6170
6326
 
@@ -6174,12 +6330,14 @@ export namespace GtkSource {
6174
6330
  * @param _start the start of the subregion.
6175
6331
  * @param _end the end of the subregion.
6176
6332
  * @returns the intersection as a new {@link GtkSource.Region}.
6333
+ * @since 3.22
6177
6334
  */
6178
6335
  intersect_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): Region | null;
6179
6336
 
6180
6337
  /**
6181
6338
  * Returns whether the `region` is empty. A `null` `region` is considered empty.
6182
6339
  * @returns whether the `region` is empty.
6340
+ * @since 3.22
6183
6341
  */
6184
6342
  is_empty(): boolean;
6185
6343
 
@@ -6187,6 +6345,7 @@ export namespace GtkSource {
6187
6345
  * Subtracts `region_to_subtract` from `region`. `region_to_subtract` is not
6188
6346
  * modified.
6189
6347
  * @param region_to_subtract the {@link GtkSource.Region} to subtract from `region`, or `null`.
6348
+ * @since 3.22
6190
6349
  */
6191
6350
  subtract_region(region_to_subtract: Region | null): void;
6192
6351
 
@@ -6194,6 +6353,7 @@ export namespace GtkSource {
6194
6353
  * Subtracts the subregion delimited by `_start` and `_end` from `region`.
6195
6354
  * @param _start the start of the subregion.
6196
6355
  * @param _end the end of the subregion.
6356
+ * @since 3.22
6197
6357
  */
6198
6358
  subtract_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): void;
6199
6359
 
@@ -6203,6 +6363,7 @@ export namespace GtkSource {
6203
6363
  * The returned string contains the character offsets of the subregions. It
6204
6364
  * doesn't include a newline character at the end of the string.
6205
6365
  * @returns a string represention of `region`. Free with `g_free()` when no longer needed.
6366
+ * @since 3.22
6206
6367
  */
6207
6368
  to_string(): string | null;
6208
6369
  }
@@ -6352,6 +6513,8 @@ export namespace GtkSource {
6352
6513
  * that the `buffer` is small, this function is more convenient to use.
6353
6514
  * @param iter start of search.
6354
6515
  * @returns whether a match was found.
6516
+ * @since 3.10
6517
+ * @deprecated since 3.22: Use `gtk_source_search_context_backward2()` instead.
6355
6518
  */
6356
6519
  backward(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
6357
6520
 
@@ -6371,6 +6534,7 @@ export namespace GtkSource {
6371
6534
  * the same value as the {@link GtkSource.SearchSettings.wrap_around} property.
6372
6535
  * @param iter start of search.
6373
6536
  * @returns whether a match was found.
6537
+ * @since 3.22
6374
6538
  */
6375
6539
  backward2(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
6376
6540
 
@@ -6387,6 +6551,7 @@ export namespace GtkSource {
6387
6551
  * ownership of `cancellable`, so you can unref it after calling this function.
6388
6552
  * @param iter start of search.
6389
6553
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
6554
+ * @since 3.10
6390
6555
  */
6391
6556
  backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null]>;
6392
6557
 
@@ -6404,6 +6569,7 @@ export namespace GtkSource {
6404
6569
  * @param iter start of search.
6405
6570
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
6406
6571
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
6572
+ * @since 3.10
6407
6573
  */
6408
6574
  backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
6409
6575
 
@@ -6421,6 +6587,7 @@ export namespace GtkSource {
6421
6587
  * @param iter start of search.
6422
6588
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
6423
6589
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
6590
+ * @since 3.10
6424
6591
  */
6425
6592
  backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null]> | void;
6426
6593
 
@@ -6429,6 +6596,9 @@ export namespace GtkSource {
6429
6596
  * `gtk_source_search_context_backward_async()`.
6430
6597
  * @param result a {@link Gio.AsyncResult}.
6431
6598
  * @returns whether a match was found.
6599
+ * @since 3.10
6600
+ * @deprecated since 3.22: Use `gtk_source_search_context_backward_finish2()` instead.
6601
+ * @throws GLib.Error
6432
6602
  */
6433
6603
  backward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
6434
6604
 
@@ -6440,6 +6610,8 @@ export namespace GtkSource {
6440
6610
  * details.
6441
6611
  * @param result a {@link Gio.AsyncResult}.
6442
6612
  * @returns whether a match was found.
6613
+ * @since 3.22
6614
+ * @throws GLib.Error
6443
6615
  */
6444
6616
  backward_finish2(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
6445
6617
 
@@ -6449,6 +6621,8 @@ export namespace GtkSource {
6449
6621
  * that the `buffer` is small, this function is more convenient to use.
6450
6622
  * @param iter start of search.
6451
6623
  * @returns whether a match was found.
6624
+ * @since 3.10
6625
+ * @deprecated since 3.22: Use `gtk_source_search_context_forward2()` instead.
6452
6626
  */
6453
6627
  forward(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
6454
6628
 
@@ -6468,6 +6642,7 @@ export namespace GtkSource {
6468
6642
  * the same value as the {@link GtkSource.SearchSettings.wrap_around} property.
6469
6643
  * @param iter start of search.
6470
6644
  * @returns whether a match was found.
6645
+ * @since 3.22
6471
6646
  */
6472
6647
  forward2(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
6473
6648
 
@@ -6484,6 +6659,7 @@ export namespace GtkSource {
6484
6659
  * ownership of `cancellable`, so you can unref it after calling this function.
6485
6660
  * @param iter start of search.
6486
6661
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
6662
+ * @since 3.10
6487
6663
  */
6488
6664
  forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null]>;
6489
6665
 
@@ -6501,6 +6677,7 @@ export namespace GtkSource {
6501
6677
  * @param iter start of search.
6502
6678
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
6503
6679
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
6680
+ * @since 3.10
6504
6681
  */
6505
6682
  forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
6506
6683
 
@@ -6518,6 +6695,7 @@ export namespace GtkSource {
6518
6695
  * @param iter start of search.
6519
6696
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
6520
6697
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
6698
+ * @since 3.10
6521
6699
  */
6522
6700
  forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null]> | void;
6523
6701
 
@@ -6526,6 +6704,9 @@ export namespace GtkSource {
6526
6704
  * `gtk_source_search_context_forward_async()`.
6527
6705
  * @param result a {@link Gio.AsyncResult}.
6528
6706
  * @returns whether a match was found.
6707
+ * @since 3.10
6708
+ * @deprecated since 3.22: Use `gtk_source_search_context_forward_finish2()` instead.
6709
+ * @throws GLib.Error
6529
6710
  */
6530
6711
  forward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
6531
6712
 
@@ -6537,21 +6718,26 @@ export namespace GtkSource {
6537
6718
  * details.
6538
6719
  * @param result a {@link Gio.AsyncResult}.
6539
6720
  * @returns whether a match was found.
6721
+ * @since 3.22
6722
+ * @throws GLib.Error
6540
6723
  */
6541
6724
  forward_finish2(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
6542
6725
 
6543
6726
  /**
6544
6727
  * @returns the associated buffer.
6728
+ * @since 3.10
6545
6729
  */
6546
6730
  get_buffer(): Buffer;
6547
6731
 
6548
6732
  /**
6549
6733
  * @returns whether to highlight the search occurrences.
6734
+ * @since 3.10
6550
6735
  */
6551
6736
  get_highlight(): boolean;
6552
6737
 
6553
6738
  /**
6554
6739
  * @returns the {@link GtkSource.Style} to apply on search matches.
6740
+ * @since 3.16
6555
6741
  */
6556
6742
  get_match_style(): Style;
6557
6743
 
@@ -6563,6 +6749,7 @@ export namespace GtkSource {
6563
6749
  * @param match_start the start of the occurrence.
6564
6750
  * @param match_end the end of the occurrence.
6565
6751
  * @returns the position of the search occurrence. The first occurrence has the position 1 (not 0). Returns 0 if `match_start` and `match_end` don't delimit an occurrence. Returns -1 if the position is not yet known.
6752
+ * @since 3.10
6566
6753
  */
6567
6754
  get_occurrence_position(match_start: Gtk.TextIter, match_end: Gtk.TextIter): number;
6568
6755
 
@@ -6571,6 +6758,7 @@ export namespace GtkSource {
6571
6758
  * fully scanned, the total number of occurrences is unknown, and -1 is
6572
6759
  * returned.
6573
6760
  * @returns the total number of search occurrences, or -1 if unknown.
6761
+ * @since 3.10
6574
6762
  */
6575
6763
  get_occurrences_count(): number;
6576
6764
 
@@ -6581,11 +6769,13 @@ export namespace GtkSource {
6581
6769
  *
6582
6770
  * Free the return value with `g_error_free()`.
6583
6771
  * @returns the {@link GLib.Error}, or `null` if the pattern is valid.
6772
+ * @since 3.10
6584
6773
  */
6585
6774
  get_regex_error(): GLib.Error | null;
6586
6775
 
6587
6776
  /**
6588
6777
  * @returns the search settings.
6778
+ * @since 3.10
6589
6779
  */
6590
6780
  get_settings(): SearchSettings;
6591
6781
 
@@ -6601,6 +6791,9 @@ export namespace GtkSource {
6601
6791
  * @param replace the replacement text.
6602
6792
  * @param replace_length the length of `replace` in bytes, or -1.
6603
6793
  * @returns whether the match has been replaced.
6794
+ * @since 3.10
6795
+ * @deprecated since 3.22: Use `gtk_source_search_context_replace2()` instead.
6796
+ * @throws GLib.Error
6604
6797
  */
6605
6798
  replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean;
6606
6799
 
@@ -6619,6 +6812,8 @@ export namespace GtkSource {
6619
6812
  * @param replace the replacement text.
6620
6813
  * @param replace_length the length of `replace` in bytes, or -1.
6621
6814
  * @returns whether the match has been replaced.
6815
+ * @since 3.22
6816
+ * @throws GLib.Error
6622
6817
  */
6623
6818
  replace2(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean;
6624
6819
 
@@ -6632,12 +6827,15 @@ export namespace GtkSource {
6632
6827
  * @param replace the replacement text.
6633
6828
  * @param replace_length the length of `replace` in bytes, or -1.
6634
6829
  * @returns the number of replaced matches.
6830
+ * @since 3.10
6831
+ * @throws GLib.Error
6635
6832
  */
6636
6833
  replace_all(replace: string, replace_length: number): number;
6637
6834
 
6638
6835
  /**
6639
6836
  * Enables or disables the search occurrences highlighting.
6640
6837
  * @param highlight the setting.
6838
+ * @since 3.10
6641
6839
  */
6642
6840
  set_highlight(highlight: boolean): void;
6643
6841
 
@@ -6647,6 +6845,7 @@ export namespace GtkSource {
6647
6845
  * To enable or disable the search highlighting, use
6648
6846
  * `gtk_source_search_context_set_highlight()`.
6649
6847
  * @param match_style a {@link GtkSource.Style}, or `null`.
6848
+ * @since 3.16
6650
6849
  */
6651
6850
  set_match_style(match_style: Style | null): void;
6652
6851
 
@@ -6656,6 +6855,8 @@ export namespace GtkSource {
6656
6855
  *
6657
6856
  * The search context holds a reference to `settings`.
6658
6857
  * @param settings the new {@link GtkSource.SearchSettings}, or `null`.
6858
+ * @since 3.10
6859
+ * @deprecated since 3.24: The {@link GtkSource.SearchContext.settings} property will become a construct-only property in a future version. Create a new {@link GtkSource.SearchContext} instead, or change the {@link GtkSource.SearchSettings} properties. When the {@link GtkSource.SearchContext.settings} property will become construct-only, it will be possible to simplify some code that needed to listen to the notify::settings signal.
6659
6860
  */
6660
6861
  set_settings(settings: SearchSettings | null): void;
6661
6862
  }
@@ -6817,16 +7018,19 @@ export namespace GtkSource {
6817
7018
  // Methods
6818
7019
  /**
6819
7020
  * @returns whether to search at word boundaries.
7021
+ * @since 3.10
6820
7022
  */
6821
7023
  get_at_word_boundaries(): boolean;
6822
7024
 
6823
7025
  /**
6824
7026
  * @returns whether the search is case sensitive.
7027
+ * @since 3.10
6825
7028
  */
6826
7029
  get_case_sensitive(): boolean;
6827
7030
 
6828
7031
  /**
6829
7032
  * @returns whether to search by regular expressions.
7033
+ * @since 3.10
6830
7034
  */
6831
7035
  get_regex_enabled(): boolean;
6832
7036
 
@@ -6836,11 +7040,13 @@ export namespace GtkSource {
6836
7040
  * You may be interested to call `gtk_source_utils_escape_search_text()` after
6837
7041
  * this function.
6838
7042
  * @returns the text to search, or `null` if the search is disabled.
7043
+ * @since 3.10
6839
7044
  */
6840
7045
  get_search_text(): string | null;
6841
7046
 
6842
7047
  /**
6843
7048
  * @returns whether to wrap around the search.
7049
+ * @since 3.10
6844
7050
  */
6845
7051
  get_wrap_around(): boolean;
6846
7052
 
@@ -6850,12 +7056,14 @@ export namespace GtkSource {
6850
7056
  * multiple words. See also `gtk_text_iter_starts_word()` and
6851
7057
  * `gtk_text_iter_ends_word()`.
6852
7058
  * @param at_word_boundaries the setting.
7059
+ * @since 3.10
6853
7060
  */
6854
7061
  set_at_word_boundaries(at_word_boundaries: boolean): void;
6855
7062
 
6856
7063
  /**
6857
7064
  * Enables or disables the case sensitivity for the search.
6858
7065
  * @param case_sensitive the setting.
7066
+ * @since 3.10
6859
7067
  */
6860
7068
  set_case_sensitive(case_sensitive: boolean): void;
6861
7069
 
@@ -6868,6 +7076,7 @@ export namespace GtkSource {
6868
7076
  * [Regular expression syntax](https://developer.gnome.org/glib/stable/glib-regex-syntax.html)
6869
7077
  * page in the GLib reference manual.
6870
7078
  * @param regex_enabled the setting.
7079
+ * @since 3.10
6871
7080
  */
6872
7081
  set_regex_enabled(regex_enabled: boolean): void;
6873
7082
 
@@ -6879,6 +7088,7 @@ export namespace GtkSource {
6879
7088
  * You may be interested to call `gtk_source_utils_unescape_search_text()` before
6880
7089
  * this function.
6881
7090
  * @param search_text the nul-terminated text to search, or `null` to disable the search.
7091
+ * @since 3.10
6882
7092
  */
6883
7093
  set_search_text(search_text: string | null): void;
6884
7094
 
@@ -6888,6 +7098,7 @@ export namespace GtkSource {
6888
7098
  * occurrences are found. Similarly, the backward search continues to search at
6889
7099
  * the end of the buffer.
6890
7100
  * @param wrap_around the setting.
7101
+ * @since 3.10
6891
7102
  */
6892
7103
  set_wrap_around(wrap_around: boolean): void;
6893
7104
  }
@@ -6993,11 +7204,13 @@ export namespace GtkSource {
6993
7204
  * @param settings a {@link Gio.Settings} object.
6994
7205
  * @param key the `settings` key to bind.
6995
7206
  * @param flags flags for the binding.
7207
+ * @since 3.24
6996
7208
  */
6997
7209
  bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void;
6998
7210
 
6999
7211
  /**
7000
7212
  * @returns whether the {@link GtkSource.SpaceDrawer.matrix} property is enabled.
7213
+ * @since 3.24
7001
7214
  */
7002
7215
  get_enable_matrix(): boolean;
7003
7216
 
@@ -7008,6 +7221,7 @@ export namespace GtkSource {
7008
7221
  * The `gtk_source_space_drawer_get_types_for_locations()` function may be more
7009
7222
  * convenient to use.
7010
7223
  * @returns the {@link GtkSource.SpaceDrawer.matrix} value as a new floating {@link GLib.Variant} instance.
7224
+ * @since 3.24
7011
7225
  */
7012
7226
  get_matrix(): GLib.Variant;
7013
7227
 
@@ -7022,12 +7236,14 @@ export namespace GtkSource {
7022
7236
  * specified `locations`.
7023
7237
  * @param locations one or several {@link GtkSource.SpaceLocationFlags}.
7024
7238
  * @returns a combination of {@link GtkSource.SpaceTypeFlags}.
7239
+ * @since 3.24
7025
7240
  */
7026
7241
  get_types_for_locations(locations: SpaceLocationFlags): SpaceTypeFlags;
7027
7242
 
7028
7243
  /**
7029
7244
  * Sets whether the {@link GtkSource.SpaceDrawer.matrix} property is enabled.
7030
7245
  * @param enable_matrix the new value.
7246
+ * @since 3.24
7031
7247
  */
7032
7248
  set_enable_matrix(enable_matrix: boolean): void;
7033
7249
 
@@ -7040,6 +7256,7 @@ export namespace GtkSource {
7040
7256
  * The `gtk_source_space_drawer_set_types_for_locations()` function may be more
7041
7257
  * convenient to use.
7042
7258
  * @param matrix the new matrix value, or `null`.
7259
+ * @since 3.24
7043
7260
  */
7044
7261
  set_matrix(matrix: GLib.Variant | null): void;
7045
7262
 
@@ -7048,6 +7265,7 @@ export namespace GtkSource {
7048
7265
  * `locations`.
7049
7266
  * @param locations one or several {@link GtkSource.SpaceLocationFlags}.
7050
7267
  * @param types a combination of {@link GtkSource.SpaceTypeFlags}.
7268
+ * @since 3.24
7051
7269
  */
7052
7270
  set_types_for_locations(locations: SpaceLocationFlags, types: SpaceTypeFlags): void;
7053
7271
  }
@@ -7344,6 +7562,7 @@ export namespace GtkSource {
7344
7562
  * If `style` is `null`, the related *-set properties of {@link Gtk.TextTag} are set to
7345
7563
  * `false`.
7346
7564
  * @param tag a {@link Gtk.TextTag} to apply styles to.
7565
+ * @since 3.22
7347
7566
  */
7348
7567
  apply(tag: Gtk.TextTag): void;
7349
7568
 
@@ -7351,6 +7570,7 @@ export namespace GtkSource {
7351
7570
  * Creates a copy of `style`, that is a new {@link GtkSource.Style} instance which
7352
7571
  * has the same attributes set.
7353
7572
  * @returns copy of `style`, call `g_object_unref()` when you are done with it.
7573
+ * @since 2.0
7354
7574
  */
7355
7575
  copy(): Style;
7356
7576
  }
@@ -7443,32 +7663,38 @@ export namespace GtkSource {
7443
7663
  // Methods
7444
7664
  /**
7445
7665
  * @returns a `null`-terminated array containing the `scheme` authors or `null` if no author is specified by the style scheme.
7666
+ * @since 2.0
7446
7667
  */
7447
7668
  get_authors(): string[] | null;
7448
7669
 
7449
7670
  /**
7450
7671
  * @returns `scheme` description (if defined), or `null`.
7672
+ * @since 2.0
7451
7673
  */
7452
7674
  get_description(): string | null;
7453
7675
 
7454
7676
  /**
7455
7677
  * @returns `scheme` file name if the scheme was created parsing a style scheme file or `null` in the other cases.
7678
+ * @since 2.0
7456
7679
  */
7457
7680
  get_filename(): string | null;
7458
7681
 
7459
7682
  /**
7460
7683
  * @returns `scheme` id.
7684
+ * @since 2.0
7461
7685
  */
7462
7686
  get_id(): string;
7463
7687
 
7464
7688
  /**
7465
7689
  * @returns `scheme` name.
7690
+ * @since 2.0
7466
7691
  */
7467
7692
  get_name(): string;
7468
7693
 
7469
7694
  /**
7470
7695
  * @param style_id id of the style to retrieve.
7471
7696
  * @returns style which corresponds to `style_id` in the `scheme`, or `null` when no style with this name found. It is owned by `scheme` and may not be unref'ed.
7697
+ * @since 2.0
7472
7698
  */
7473
7699
  get_style(style_id: string): Style | null;
7474
7700
  }
@@ -7685,6 +7911,7 @@ export namespace GtkSource {
7685
7911
  *
7686
7912
  * See `gtk_actionable_set_action_name()` for more information.
7687
7913
  * @returns the action name, or `null` if none is set
7914
+ * @since 3.4
7688
7915
  */
7689
7916
  get_action_name(): string | null;
7690
7917
 
@@ -7693,6 +7920,7 @@ export namespace GtkSource {
7693
7920
  *
7694
7921
  * See `gtk_actionable_set_action_target_value()` for more information.
7695
7922
  * @returns the current target value
7923
+ * @since 3.4
7696
7924
  */
7697
7925
  get_action_target_value(): GLib.Variant;
7698
7926
 
@@ -7709,6 +7937,7 @@ export namespace GtkSource {
7709
7937
  * respectively. This is the same form used for actions in the {@link Gio.Menu}
7710
7938
  * associated with the window.
7711
7939
  * @param action_name an action name, or `null`
7940
+ * @since 3.4
7712
7941
  */
7713
7942
  set_action_name(action_name: string | null): void;
7714
7943
 
@@ -7733,6 +7962,7 @@ export namespace GtkSource {
7733
7962
  * be rendered as active (and the other buttons, with different targets,
7734
7963
  * rendered inactive).
7735
7964
  * @param target_value a {@link GLib.Variant} to set as the target value, or `null`
7965
+ * @since 3.4
7736
7966
  */
7737
7967
  set_action_target_value(target_value: GLib.Variant | null): void;
7738
7968
 
@@ -7749,6 +7979,7 @@ export namespace GtkSource {
7749
7979
  * `action` is the action name and `target` is the string to use
7750
7980
  * as the target.)
7751
7981
  * @param detailed_action_name the detailed action name
7982
+ * @since 3.4
7752
7983
  */
7753
7984
  set_detailed_action_name(detailed_action_name: string): void;
7754
7985
 
@@ -7756,6 +7987,7 @@ export namespace GtkSource {
7756
7987
  * Gets the action name for `actionable`.
7757
7988
  *
7758
7989
  * See `gtk_actionable_set_action_name()` for more information.
7990
+ * @since 3.4
7759
7991
  * @virtual
7760
7992
  */
7761
7993
  vfunc_get_action_name(): string | null;
@@ -7764,6 +7996,7 @@ export namespace GtkSource {
7764
7996
  * Gets the current target value of `actionable`.
7765
7997
  *
7766
7998
  * See `gtk_actionable_set_action_target_value()` for more information.
7999
+ * @since 3.4
7767
8000
  * @virtual
7768
8001
  */
7769
8002
  vfunc_get_action_target_value(): GLib.Variant;
@@ -7781,6 +8014,7 @@ export namespace GtkSource {
7781
8014
  * respectively. This is the same form used for actions in the {@link Gio.Menu}
7782
8015
  * associated with the window.
7783
8016
  * @param action_name an action name, or `null`
8017
+ * @since 3.4
7784
8018
  * @virtual
7785
8019
  */
7786
8020
  vfunc_set_action_name(action_name: string | null): void;
@@ -7806,6 +8040,7 @@ export namespace GtkSource {
7806
8040
  * be rendered as active (and the other buttons, with different targets,
7807
8041
  * rendered inactive).
7808
8042
  * @param target_value a {@link GLib.Variant} to set as the target value, or `null`
8043
+ * @since 3.4
7809
8044
  * @virtual
7810
8045
  */
7811
8046
  vfunc_set_action_target_value(target_value: GLib.Variant | null): void;
@@ -7827,12 +8062,16 @@ export namespace GtkSource {
7827
8062
  * > `gtk_activatable_get_related_action()` to retrieve the
7828
8063
  * > previous action.
7829
8064
  * @param action the {@link Gtk.Action} to set
8065
+ * @since 2.16
8066
+ * @deprecated since 3.10
7830
8067
  */
7831
8068
  do_set_related_action(action: Gtk.Action): void;
7832
8069
 
7833
8070
  /**
7834
8071
  * Gets the related {@link Gtk.Action} for `activatable`.
7835
8072
  * @returns the related {@link Gtk.Action} if one is set.
8073
+ * @since 2.16
8074
+ * @deprecated since 3.10
7836
8075
  */
7837
8076
  get_related_action(): Gtk.Action;
7838
8077
 
@@ -7841,6 +8080,8 @@ export namespace GtkSource {
7841
8080
  * and appearance when setting the related action or when
7842
8081
  * the action changes appearance.
7843
8082
  * @returns whether `activatable` uses its actions appearance.
8083
+ * @since 2.16
8084
+ * @deprecated since 3.10
7844
8085
  */
7845
8086
  get_use_action_appearance(): boolean;
7846
8087
 
@@ -7850,6 +8091,8 @@ export namespace GtkSource {
7850
8091
  * > {@link Gtk.Activatable} implementors need to handle the {@link Gtk.Activatable.related_action}
7851
8092
  * > property and call `gtk_activatable_do_set_related_action()` when it changes.
7852
8093
  * @param action the {@link Gtk.Action} to set
8094
+ * @since 2.16
8095
+ * @deprecated since 3.10
7853
8096
  */
7854
8097
  set_related_action(action: Gtk.Action): void;
7855
8098
 
@@ -7862,6 +8105,8 @@ export namespace GtkSource {
7862
8105
  * > `gtk_activatable_sync_action_properties()` to update `activatable`
7863
8106
  * > if needed.
7864
8107
  * @param use_appearance whether to use the actions appearance
8108
+ * @since 2.16
8109
+ * @deprecated since 3.10
7865
8110
  */
7866
8111
  set_use_action_appearance(use_appearance: boolean): void;
7867
8112
 
@@ -7871,6 +8116,8 @@ export namespace GtkSource {
7871
8116
  * or unset and by the implementing class when
7872
8117
  * {@link Gtk.Activatable.use_action_appearance} changes.
7873
8118
  * @param action the related {@link Gtk.Action} or `null`
8119
+ * @since 2.16
8120
+ * @deprecated since 3.10
7874
8121
  */
7875
8122
  sync_action_properties(action: Gtk.Action | null): void;
7876
8123
 
@@ -7880,6 +8127,8 @@ export namespace GtkSource {
7880
8127
  * or unset and by the implementing class when
7881
8128
  * {@link Gtk.Activatable.use_action_appearance} changes.
7882
8129
  * @param action the related {@link Gtk.Action} or `null`
8130
+ * @since 2.16
8131
+ * @deprecated since 3.10
7883
8132
  * @virtual
7884
8133
  */
7885
8134
  vfunc_sync_action_properties(action: Gtk.Action | null): void;
@@ -7897,17 +8146,20 @@ export namespace GtkSource {
7897
8146
  /**
7898
8147
  * Gets the currently-selected scheme.
7899
8148
  * @returns the currently-selected scheme.
8149
+ * @since 3.16
7900
8150
  */
7901
8151
  get_style_scheme(): StyleScheme;
7902
8152
 
7903
8153
  /**
7904
8154
  * Sets the scheme.
7905
8155
  * @param scheme a {@link GtkSource.StyleScheme}
8156
+ * @since 3.16
7906
8157
  */
7907
8158
  set_style_scheme(scheme: StyleScheme): void;
7908
8159
 
7909
8160
  /**
7910
8161
  * Gets the currently-selected scheme.
8162
+ * @since 3.16
7911
8163
  * @virtual
7912
8164
  */
7913
8165
  vfunc_get_style_scheme(): StyleScheme;
@@ -7915,6 +8167,7 @@ export namespace GtkSource {
7915
8167
  /**
7916
8168
  * Sets the scheme.
7917
8169
  * @param scheme a {@link GtkSource.StyleScheme}
8170
+ * @since 3.16
7918
8171
  * @virtual
7919
8172
  */
7920
8173
  vfunc_set_style_scheme(scheme: StyleScheme): void;
@@ -7941,6 +8194,7 @@ export namespace GtkSource {
7941
8194
  * Returns whether the widget should grab focus when it is clicked with the mouse.
7942
8195
  * See `gtk_widget_set_focus_on_click()`.
7943
8196
  * @returns `true` if the widget should grab focus when it is clicked with the mouse.
8197
+ * @since 3.20
7944
8198
  */
7945
8199
  get_focus_on_click(): boolean;
7946
8200
 
@@ -7950,6 +8204,7 @@ export namespace GtkSource {
7950
8204
  * you don’t want the keyboard focus removed from the main area of the
7951
8205
  * application.
7952
8206
  * @param focus_on_click whether the widget should grab focus when clicked with the mouse
8207
+ * @since 3.20
7953
8208
  */
7954
8209
  set_focus_on_click(focus_on_click: boolean): void;
7955
8210
  }
@@ -8065,17 +8320,20 @@ export namespace GtkSource {
8065
8320
  /**
8066
8321
  * Gets the currently-selected scheme.
8067
8322
  * @returns the currently-selected scheme.
8323
+ * @since 3.16
8068
8324
  */
8069
8325
  get_style_scheme(): StyleScheme;
8070
8326
 
8071
8327
  /**
8072
8328
  * Sets the scheme.
8073
8329
  * @param scheme a {@link GtkSource.StyleScheme}
8330
+ * @since 3.16
8074
8331
  */
8075
8332
  set_style_scheme(scheme: StyleScheme): void;
8076
8333
 
8077
8334
  /**
8078
8335
  * Gets the currently-selected scheme.
8336
+ * @since 3.16
8079
8337
  * @virtual
8080
8338
  */
8081
8339
  vfunc_get_style_scheme(): StyleScheme;
@@ -8083,6 +8341,7 @@ export namespace GtkSource {
8083
8341
  /**
8084
8342
  * Sets the scheme.
8085
8343
  * @param scheme a {@link GtkSource.StyleScheme}
8344
+ * @since 3.16
8086
8345
  * @virtual
8087
8346
  */
8088
8347
  vfunc_set_style_scheme(scheme: StyleScheme): void;
@@ -8399,7 +8658,7 @@ export namespace GtkSource {
8399
8658
  * @action
8400
8659
  * @run-last
8401
8660
  */
8402
- "change-case": (arg0: ChangeCaseType) => void;
8661
+ "change-case": (case_type: ChangeCaseType) => void;
8403
8662
  /**
8404
8663
  * Keybinding signal to edit a number at the current cursor position.
8405
8664
  * @signal
@@ -8407,7 +8666,7 @@ export namespace GtkSource {
8407
8666
  * @action
8408
8667
  * @run-last
8409
8668
  */
8410
- "change-number": (arg0: number) => void;
8669
+ "change-number": (count: number) => void;
8411
8670
  /**
8412
8671
  * Keybinding signal to join the lines currently selected.
8413
8672
  * @signal
@@ -8423,7 +8682,7 @@ export namespace GtkSource {
8423
8682
  * @signal
8424
8683
  * @run-last
8425
8684
  */
8426
- "line-mark-activated": (arg0: Gtk.TextIter, arg1: Gdk.Event) => void;
8685
+ "line-mark-activated": (iter: Gtk.TextIter, event: Gdk.Event) => void;
8427
8686
  /**
8428
8687
  * The ::move-lines signal is a keybinding which gets emitted
8429
8688
  * when the user initiates moving a line. The default binding key
@@ -8438,7 +8697,7 @@ export namespace GtkSource {
8438
8697
  * @action
8439
8698
  * @run-last
8440
8699
  */
8441
- "move-lines": (arg0: boolean, arg1: number) => void;
8700
+ "move-lines": (copy: boolean, count: number) => void;
8442
8701
  /**
8443
8702
  * Keybinding signal to move the cursor to the matching bracket.
8444
8703
  * @signal
@@ -8446,7 +8705,7 @@ export namespace GtkSource {
8446
8705
  * @action
8447
8706
  * @run-last
8448
8707
  */
8449
- "move-to-matching-bracket": (arg0: boolean) => void;
8708
+ "move-to-matching-bracket": (extend_selection: boolean) => void;
8450
8709
  /**
8451
8710
  * The ::move-words signal is a keybinding which gets emitted
8452
8711
  * when the user initiates moving a word. The default binding key
@@ -8457,7 +8716,7 @@ export namespace GtkSource {
8457
8716
  * @action
8458
8717
  * @run-last
8459
8718
  */
8460
- "move-words": (arg0: number) => void;
8719
+ "move-words": (count: number) => void;
8461
8720
  /**
8462
8721
  * @signal
8463
8722
  * @action
@@ -8490,7 +8749,7 @@ export namespace GtkSource {
8490
8749
  * @since 3.0
8491
8750
  * @run-last
8492
8751
  */
8493
- "smart-home-end": (arg0: Gtk.TextIter, arg1: number) => void;
8752
+ "smart-home-end": (iter: Gtk.TextIter, count: number) => void;
8494
8753
  /**
8495
8754
  * @signal
8496
8755
  * @action
@@ -8927,6 +9186,7 @@ export namespace GtkSource {
8927
9186
  * Returns the {@link GtkSource.BackgroundPatternType} specifying if and how
8928
9187
  * the background pattern should be displayed for this `view`.
8929
9188
  * @returns the {@link GtkSource.BackgroundPatternType}.
9189
+ * @since 3.16
8930
9190
  */
8931
9191
  get_background_pattern(): BackgroundPatternType;
8932
9192
 
@@ -8942,6 +9202,7 @@ export namespace GtkSource {
8942
9202
  * Returns the {@link GtkSource.DrawSpacesFlags} specifying if and how spaces
8943
9203
  * should be displayed for this `view`.
8944
9204
  * @returns the {@link GtkSource.DrawSpacesFlags}, 0 if no spaces should be drawn.
9205
+ * @deprecated since 3.24: Use `gtk_source_space_drawer_get_types_for_locations()` instead.
8945
9206
  */
8946
9207
  get_draw_spaces(): DrawSpacesFlags;
8947
9208
 
@@ -8952,6 +9213,7 @@ export namespace GtkSource {
8952
9213
  * and mark category icons are rendered in the left gutter.
8953
9214
  * @param window_type the gutter window type.
8954
9215
  * @returns the {@link GtkSource.Gutter}.
9216
+ * @since 2.8
8955
9217
  */
8956
9218
  get_gutter(window_type: Gtk.TextWindowType): Gutter;
8957
9219
 
@@ -8999,6 +9261,7 @@ export namespace GtkSource {
8999
9261
  /**
9000
9262
  * Returns whether line marks are displayed beside the text.
9001
9263
  * @returns `true` if the line marks are displayed.
9264
+ * @since 2.2
9002
9265
  */
9003
9266
  get_show_line_marks(): boolean;
9004
9267
 
@@ -9018,6 +9281,7 @@ export namespace GtkSource {
9018
9281
  * Returns `true` if pressing the Backspace key will try to delete spaces
9019
9282
  * up to the previous tab stop.
9020
9283
  * @returns `true` if smart Backspace handling is enabled.
9284
+ * @since 3.18
9021
9285
  */
9022
9286
  get_smart_backspace(): boolean;
9023
9287
 
@@ -9033,6 +9297,7 @@ export namespace GtkSource {
9033
9297
  * guaranteed to be the same for the lifetime of `view`. Each {@link GtkSource.View}
9034
9298
  * object has a different {@link GtkSource.SpaceDrawer}.
9035
9299
  * @returns the {@link GtkSource.SpaceDrawer} associated with `view`.
9300
+ * @since 3.24
9036
9301
  */
9037
9302
  get_space_drawer(): SpaceDrawer;
9038
9303
 
@@ -9055,6 +9320,7 @@ export namespace GtkSource {
9055
9320
  * empty lines are not indented.
9056
9321
  * @param start {@link Gtk.TextIter} of the first line to indent
9057
9322
  * @param end {@link Gtk.TextIter} of the last line to indent
9323
+ * @since 3.16
9058
9324
  */
9059
9325
  indent_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
9060
9326
 
@@ -9072,6 +9338,7 @@ export namespace GtkSource {
9072
9338
  /**
9073
9339
  * Set if and how the background pattern should be displayed.
9074
9340
  * @param background_pattern the {@link GtkSource.BackgroundPatternType}.
9341
+ * @since 3.16
9075
9342
  */
9076
9343
  set_background_pattern(background_pattern: BackgroundPatternType): void;
9077
9344
 
@@ -9082,6 +9349,7 @@ export namespace GtkSource {
9082
9349
  * For a finer-grained method, there is also the GtkSourceTag's
9083
9350
  * {@link GtkSource.Tag.draw_spaces} property.
9084
9351
  * @param flags {@link GtkSource.DrawSpacesFlags} specifing how white spaces should be displayed
9352
+ * @deprecated since 3.24: Use `gtk_source_space_drawer_set_types_for_locations()` instead.
9085
9353
  */
9086
9354
  set_draw_spaces(flags: DrawSpacesFlags): void;
9087
9355
 
@@ -9155,6 +9423,7 @@ export namespace GtkSource {
9155
9423
  /**
9156
9424
  * If `true` line marks will be displayed beside the text.
9157
9425
  * @param show whether line marks should be displayed.
9426
+ * @since 2.2
9158
9427
  */
9159
9428
  set_show_line_marks(show: boolean): void;
9160
9429
 
@@ -9174,6 +9443,7 @@ export namespace GtkSource {
9174
9443
  * When set to `true`, pressing the Backspace key will try to delete spaces
9175
9444
  * up to the previous tab stop.
9176
9445
  * @param smart_backspace whether to enable smart Backspace handling.
9446
+ * @since 3.18
9177
9447
  */
9178
9448
  set_smart_backspace(smart_backspace: boolean): void;
9179
9449
 
@@ -9197,6 +9467,7 @@ export namespace GtkSource {
9197
9467
  * specified lines.
9198
9468
  * @param start {@link Gtk.TextIter} of the first line to indent
9199
9469
  * @param end {@link Gtk.TextIter} of the last line to indent
9470
+ * @since 3.16
9200
9471
  */
9201
9472
  unindent_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
9202
9473
 
@@ -9265,36 +9536,42 @@ export namespace GtkSource {
9265
9536
  * display overlayed graphics, like the overshoot indication,
9266
9537
  * at the right position.
9267
9538
  * @returns `true` if `border` has been set
9539
+ * @since 3.16
9268
9540
  */
9269
9541
  get_border(): [boolean, Gtk.Border];
9270
9542
 
9271
9543
  /**
9272
9544
  * Retrieves the {@link Gtk.Adjustment} used for horizontal scrolling.
9273
9545
  * @returns horizontal {@link Gtk.Adjustment}.
9546
+ * @since 3.0
9274
9547
  */
9275
9548
  get_hadjustment(): Gtk.Adjustment;
9276
9549
 
9277
9550
  /**
9278
9551
  * Gets the horizontal {@link Gtk.ScrollablePolicy}.
9279
9552
  * @returns The horizontal {@link Gtk.ScrollablePolicy}.
9553
+ * @since 3.0
9280
9554
  */
9281
9555
  get_hscroll_policy(): Gtk.ScrollablePolicy;
9282
9556
 
9283
9557
  /**
9284
9558
  * Retrieves the {@link Gtk.Adjustment} used for vertical scrolling.
9285
9559
  * @returns vertical {@link Gtk.Adjustment}.
9560
+ * @since 3.0
9286
9561
  */
9287
9562
  get_vadjustment(): Gtk.Adjustment;
9288
9563
 
9289
9564
  /**
9290
9565
  * Gets the vertical {@link Gtk.ScrollablePolicy}.
9291
9566
  * @returns The vertical {@link Gtk.ScrollablePolicy}.
9567
+ * @since 3.0
9292
9568
  */
9293
9569
  get_vscroll_policy(): Gtk.ScrollablePolicy;
9294
9570
 
9295
9571
  /**
9296
9572
  * Sets the horizontal adjustment of the {@link Gtk.Scrollable}.
9297
9573
  * @param hadjustment a {@link Gtk.Adjustment}
9574
+ * @since 3.0
9298
9575
  */
9299
9576
  set_hadjustment(hadjustment: Gtk.Adjustment | null): void;
9300
9577
 
@@ -9303,12 +9580,14 @@ export namespace GtkSource {
9303
9580
  * horizontal scrolling should start below the minimum width or
9304
9581
  * below the natural width.
9305
9582
  * @param policy the horizontal {@link Gtk.ScrollablePolicy}
9583
+ * @since 3.0
9306
9584
  */
9307
9585
  set_hscroll_policy(policy: Gtk.ScrollablePolicy): void;
9308
9586
 
9309
9587
  /**
9310
9588
  * Sets the vertical adjustment of the {@link Gtk.Scrollable}.
9311
9589
  * @param vadjustment a {@link Gtk.Adjustment}
9590
+ * @since 3.0
9312
9591
  */
9313
9592
  set_vadjustment(vadjustment: Gtk.Adjustment | null): void;
9314
9593
 
@@ -9317,6 +9596,7 @@ export namespace GtkSource {
9317
9596
  * vertical scrolling should start below the minimum height or
9318
9597
  * below the natural height.
9319
9598
  * @param policy the vertical {@link Gtk.ScrollablePolicy}
9599
+ * @since 3.0
9320
9600
  */
9321
9601
  set_vscroll_policy(policy: Gtk.ScrollablePolicy): void;
9322
9602
 
@@ -9326,6 +9606,7 @@ export namespace GtkSource {
9326
9606
  * be treeview headers. GTK+ can use this information to
9327
9607
  * display overlayed graphics, like the overshoot indication,
9328
9608
  * at the right position.
9609
+ * @since 3.16
9329
9610
  * @virtual
9330
9611
  */
9331
9612
  vfunc_get_border(): [boolean, Gtk.Border];
@@ -9429,11 +9710,13 @@ export namespace GtkSource {
9429
9710
  // Static methods
9430
9711
  /**
9431
9712
  * Gets all encodings.
9713
+ * @since 3.14
9432
9714
  */
9433
9715
  static get_all(): Encoding[];
9434
9716
 
9435
9717
  /**
9436
9718
  * Gets the {@link GtkSource.Encoding} for the current locale. See also `g_get_charset()`.
9719
+ * @since 3.14
9437
9720
  */
9438
9721
  static get_current(): Encoding;
9439
9722
 
@@ -9444,6 +9727,7 @@ export namespace GtkSource {
9444
9727
  * This function returns a different list depending on the current locale (i.e.
9445
9728
  * language, country and default encoding). The UTF-8 encoding and the current
9446
9729
  * locale encoding are guaranteed to be present in the returned list.
9730
+ * @since 3.18
9447
9731
  */
9448
9732
  static get_default_candidates(): Encoding[];
9449
9733
 
@@ -9451,20 +9735,26 @@ export namespace GtkSource {
9451
9735
  * Gets a {@link GtkSource.Encoding} from a character set such as "UTF-8" or
9452
9736
  * "ISO-8859-1".
9453
9737
  * @param charset a character set.
9738
+ * @since 3.14
9454
9739
  */
9455
9740
  static get_from_charset(charset: string): Encoding | null;
9456
9741
 
9742
+ /**
9743
+ * @since 3.14
9744
+ */
9457
9745
  static get_utf8(): Encoding;
9458
9746
 
9459
9747
  // Methods
9460
9748
  /**
9461
9749
  * Used by language bindings.
9462
9750
  * @returns a copy of `enc`.
9751
+ * @since 3.14
9463
9752
  */
9464
9753
  copy(): Encoding;
9465
9754
 
9466
9755
  /**
9467
9756
  * Used by language bindings.
9757
+ * @since 3.14
9468
9758
  */
9469
9759
  free(): void;
9470
9760
 
@@ -9472,17 +9762,20 @@ export namespace GtkSource {
9472
9762
  * Gets the character set of the {@link GtkSource.Encoding}, such as "UTF-8" or
9473
9763
  * "ISO-8859-1".
9474
9764
  * @returns the character set of the {@link GtkSource.Encoding}.
9765
+ * @since 3.14
9475
9766
  */
9476
9767
  get_charset(): string;
9477
9768
 
9478
9769
  /**
9479
9770
  * Gets the name of the {@link GtkSource.Encoding} such as "Unicode" or "Western".
9480
9771
  * @returns the name of the {@link GtkSource.Encoding}.
9772
+ * @since 3.14
9481
9773
  */
9482
9774
  get_name(): string;
9483
9775
 
9484
9776
  /**
9485
9777
  * @returns a string representation. Free with `g_free()` when no longer needed.
9778
+ * @since 3.14
9486
9779
  */
9487
9780
  to_string(): string;
9488
9781
  }
@@ -9670,17 +9963,20 @@ export namespace GtkSource {
9670
9963
  /**
9671
9964
  * Gets the subregion at this iterator.
9672
9965
  * @returns `true` if `start` and `end` have been set successfully (if non-`null`), or `false` if `iter` is the end iterator or if the region is empty.
9966
+ * @since 3.22
9673
9967
  */
9674
9968
  get_subregion(): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
9675
9969
 
9676
9970
  /**
9677
9971
  * @returns whether `iter` is the end iterator.
9972
+ * @since 3.22
9678
9973
  */
9679
9974
  is_end(): boolean;
9680
9975
 
9681
9976
  /**
9682
9977
  * Moves `iter` to the next subregion.
9683
9978
  * @returns `true` if `iter` moved and is dereferenceable, or `false` if `iter` has been set to the end iterator.
9979
+ * @since 3.22
9684
9980
  */
9685
9981
  next(): boolean;
9686
9982
  }
@@ -9821,6 +10117,7 @@ export namespace GtkSource {
9821
10117
 
9822
10118
  /**
9823
10119
  * Gets the {@link Gio.Icon} for the icon of `proposal`.
10120
+ * @since 3.18
9824
10121
  * @virtual
9825
10122
  */
9826
10123
  vfunc_get_gicon(): Gio.Icon | null;
@@ -9833,6 +10130,7 @@ export namespace GtkSource {
9833
10130
 
9834
10131
  /**
9835
10132
  * Gets the icon name of `proposal`.
10133
+ * @since 3.18
9836
10134
  * @virtual
9837
10135
  */
9838
10136
  vfunc_get_icon_name(): string | null;
@@ -9917,6 +10215,7 @@ export namespace GtkSource {
9917
10215
  /**
9918
10216
  * Gets the {@link Gio.Icon} for the icon of `proposal`.
9919
10217
  * @returns A {@link Gio.Icon} with the icon of `proposal`.
10218
+ * @since 3.18
9920
10219
  */
9921
10220
  get_gicon(): Gio.Icon | null;
9922
10221
 
@@ -9929,6 +10228,7 @@ export namespace GtkSource {
9929
10228
  /**
9930
10229
  * Gets the icon name of `proposal`.
9931
10230
  * @returns The icon name of `proposal`.
10231
+ * @since 3.18
9932
10232
  */
9933
10233
  get_icon_name(): string | null;
9934
10234
 
@@ -10016,6 +10316,7 @@ export namespace GtkSource {
10016
10316
 
10017
10317
  /**
10018
10318
  * Gets the {@link Gio.Icon} for the icon of `provider`.
10319
+ * @since 3.18
10019
10320
  * @virtual
10020
10321
  */
10021
10322
  vfunc_get_gicon(): Gio.Icon | null;
@@ -10028,6 +10329,7 @@ export namespace GtkSource {
10028
10329
 
10029
10330
  /**
10030
10331
  * Gets the icon name of `provider`.
10332
+ * @since 3.18
10031
10333
  * @virtual
10032
10334
  */
10033
10335
  vfunc_get_icon_name(): string | null;
@@ -10169,6 +10471,7 @@ export namespace GtkSource {
10169
10471
  /**
10170
10472
  * Gets the {@link Gio.Icon} for the icon of `provider`.
10171
10473
  * @returns The icon to be used for the provider, or `null` if the provider does not have a special icon.
10474
+ * @since 3.18
10172
10475
  */
10173
10476
  get_gicon(): Gio.Icon | null;
10174
10477
 
@@ -10181,6 +10484,7 @@ export namespace GtkSource {
10181
10484
  /**
10182
10485
  * Gets the icon name of `provider`.
10183
10486
  * @returns The icon name to be used for the provider, or `null` if the provider does not have a special icon.
10487
+ * @since 3.18
10184
10488
  */
10185
10489
  get_icon_name(): string | null;
10186
10490
 
@@ -10293,6 +10597,7 @@ export namespace GtkSource {
10293
10597
  // Virtual methods
10294
10598
  /**
10295
10599
  * Gets the currently-selected scheme.
10600
+ * @since 3.16
10296
10601
  * @virtual
10297
10602
  */
10298
10603
  vfunc_get_style_scheme(): StyleScheme;
@@ -10300,6 +10605,7 @@ export namespace GtkSource {
10300
10605
  /**
10301
10606
  * Sets the scheme.
10302
10607
  * @param scheme a {@link GtkSource.StyleScheme}
10608
+ * @since 3.16
10303
10609
  * @virtual
10304
10610
  */
10305
10611
  vfunc_set_style_scheme(scheme: StyleScheme): void;
@@ -10345,12 +10651,14 @@ export namespace GtkSource {
10345
10651
  /**
10346
10652
  * Gets the currently-selected scheme.
10347
10653
  * @returns the currently-selected scheme.
10654
+ * @since 3.16
10348
10655
  */
10349
10656
  get_style_scheme(): StyleScheme;
10350
10657
 
10351
10658
  /**
10352
10659
  * Sets the scheme.
10353
10660
  * @param scheme a {@link GtkSource.StyleScheme}
10661
+ * @since 3.16
10354
10662
  */
10355
10663
  set_style_scheme(scheme: StyleScheme): void;
10356
10664
  }
@@ -10372,36 +10680,42 @@ export namespace GtkSource {
10372
10680
  * Begin a not undoable action on the buffer. All changes between this call
10373
10681
  * and the call to `gtk_source_undo_manager_end_not_undoable_action()` cannot
10374
10682
  * be undone. This function should be re-entrant.
10683
+ * @since 2.10
10375
10684
  * @virtual
10376
10685
  */
10377
10686
  vfunc_begin_not_undoable_action(): void;
10378
10687
 
10379
10688
  /**
10380
10689
  * Get whether there are redo operations available.
10690
+ * @since 2.10
10381
10691
  * @virtual
10382
10692
  */
10383
10693
  vfunc_can_redo(): boolean;
10384
10694
 
10385
10695
  /**
10386
10696
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_redo_changed | GtkSource.UndoManager::can-redo-changed} signal.
10697
+ * @since 2.10
10387
10698
  * @virtual
10388
10699
  */
10389
10700
  vfunc_can_redo_changed(): void;
10390
10701
 
10391
10702
  /**
10392
10703
  * Get whether there are undo operations available.
10704
+ * @since 2.10
10393
10705
  * @virtual
10394
10706
  */
10395
10707
  vfunc_can_undo(): boolean;
10396
10708
 
10397
10709
  /**
10398
10710
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_undo_changed | GtkSource.UndoManager::can-undo-changed} signal.
10711
+ * @since 2.10
10399
10712
  * @virtual
10400
10713
  */
10401
10714
  vfunc_can_undo_changed(): void;
10402
10715
 
10403
10716
  /**
10404
10717
  * Ends a not undoable action on the buffer.
10718
+ * @since 2.10
10405
10719
  * @virtual
10406
10720
  */
10407
10721
  vfunc_end_not_undoable_action(): void;
@@ -10410,6 +10724,7 @@ export namespace GtkSource {
10410
10724
  * Perform a single redo. Calling this function when there are no redo operations
10411
10725
  * available is an error. Use `gtk_source_undo_manager_can_redo()` to find out
10412
10726
  * if there are redo operations available.
10727
+ * @since 2.10
10413
10728
  * @virtual
10414
10729
  */
10415
10730
  vfunc_redo(): void;
@@ -10418,6 +10733,7 @@ export namespace GtkSource {
10418
10733
  * Perform a single undo. Calling this function when there are no undo operations
10419
10734
  * available is an error. Use `gtk_source_undo_manager_can_undo()` to find out
10420
10735
  * if there are undo operations available.
10736
+ * @since 2.10
10421
10737
  * @virtual
10422
10738
  */
10423
10739
  vfunc_undo(): void;
@@ -10442,33 +10758,39 @@ export namespace GtkSource {
10442
10758
  * Begin a not undoable action on the buffer. All changes between this call
10443
10759
  * and the call to `gtk_source_undo_manager_end_not_undoable_action()` cannot
10444
10760
  * be undone. This function should be re-entrant.
10761
+ * @since 2.10
10445
10762
  */
10446
10763
  begin_not_undoable_action(): void;
10447
10764
 
10448
10765
  /**
10449
10766
  * Get whether there are redo operations available.
10450
10767
  * @returns `true` if there are redo operations available, `false` otherwise
10768
+ * @since 2.10
10451
10769
  */
10452
10770
  can_redo(): boolean;
10453
10771
 
10454
10772
  /**
10455
10773
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_redo_changed | GtkSource.UndoManager::can-redo-changed} signal.
10774
+ * @since 2.10
10456
10775
  */
10457
10776
  can_redo_changed(): void;
10458
10777
 
10459
10778
  /**
10460
10779
  * Get whether there are undo operations available.
10461
10780
  * @returns `true` if there are undo operations available, `false` otherwise
10781
+ * @since 2.10
10462
10782
  */
10463
10783
  can_undo(): boolean;
10464
10784
 
10465
10785
  /**
10466
10786
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_undo_changed | GtkSource.UndoManager::can-undo-changed} signal.
10787
+ * @since 2.10
10467
10788
  */
10468
10789
  can_undo_changed(): void;
10469
10790
 
10470
10791
  /**
10471
10792
  * Ends a not undoable action on the buffer.
10793
+ * @since 2.10
10472
10794
  */
10473
10795
  end_not_undoable_action(): void;
10474
10796
 
@@ -10476,6 +10798,7 @@ export namespace GtkSource {
10476
10798
  * Perform a single redo. Calling this function when there are no redo operations
10477
10799
  * available is an error. Use `gtk_source_undo_manager_can_redo()` to find out
10478
10800
  * if there are redo operations available.
10801
+ * @since 2.10
10479
10802
  */
10480
10803
  redo(): void;
10481
10804
 
@@ -10483,6 +10806,7 @@ export namespace GtkSource {
10483
10806
  * Perform a single undo. Calling this function when there are no undo operations
10484
10807
  * available is an error. Use `gtk_source_undo_manager_can_undo()` to find out
10485
10808
  * if there are undo operations available.
10809
+ * @since 2.10
10486
10810
  */
10487
10811
  undo(): void;
10488
10812
  }