@girs/gtksource-4 4.3.0 → 4.4.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.
package/gtksource-4.d.ts CHANGED
@@ -926,6 +926,7 @@ export namespace GtkSource {
926
926
  * @param iter an iterator.
927
927
  * @param category category to search for, or `null`
928
928
  * @returns whether `iter` was moved.
929
+ * @since 2.2
929
930
  */
930
931
  backward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): [boolean, Gtk.TextIter];
931
932
 
@@ -945,6 +946,7 @@ export namespace GtkSource {
945
946
  * @param case_type how to change the case.
946
947
  * @param start a {@link Gtk.TextIter}.
947
948
  * @param end a {@link Gtk.TextIter}.
949
+ * @since 3.12
948
950
  */
949
951
  change_case(case_type: ChangeCaseType, start: Gtk.TextIter, end: Gtk.TextIter): void;
950
952
 
@@ -966,6 +968,7 @@ export namespace GtkSource {
966
968
  * @param category a string defining the mark category.
967
969
  * @param where location to place the mark.
968
970
  * @returns a new {@link GtkSource.Mark}, owned by the buffer.
971
+ * @since 2.2
969
972
  */
970
973
  create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark;
971
974
 
@@ -999,6 +1002,7 @@ export namespace GtkSource {
999
1002
  * @param iter an iterator.
1000
1003
  * @param category category to search for, or `null`
1001
1004
  * @returns whether `iter` was moved.
1005
+ * @since 2.2
1002
1006
  */
1003
1007
  forward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): [boolean, Gtk.TextIter];
1004
1008
 
@@ -1008,6 +1012,7 @@ export namespace GtkSource {
1008
1012
  * See the {@link GtkSource.Buffer} description for the list of default context classes.
1009
1013
  * @param iter a {@link Gtk.TextIter}.
1010
1014
  * @returns a new `null` terminated array of context class names. Use `g_strfreev()` to free the array if it is no longer needed.
1015
+ * @since 2.10
1011
1016
  */
1012
1017
  get_context_classes_at_iter(iter: Gtk.TextIter): string[];
1013
1018
 
@@ -1027,6 +1032,7 @@ export namespace GtkSource {
1027
1032
 
1028
1033
  /**
1029
1034
  * @returns whether the `buffer` has an implicit trailing newline.
1035
+ * @since 3.14
1030
1036
  */
1031
1037
  get_implicit_trailing_newline(): boolean;
1032
1038
 
@@ -1050,6 +1056,7 @@ export namespace GtkSource {
1050
1056
  * @param iter an iterator.
1051
1057
  * @param category category to search for, or `null`
1052
1058
  * @returns a newly allocated {@link GLib.SList}.
1059
+ * @since 2.2
1053
1060
  */
1054
1061
  get_source_marks_at_iter(iter: Gtk.TextIter, category: string | null): Mark[];
1055
1062
 
@@ -1059,6 +1066,7 @@ export namespace GtkSource {
1059
1066
  * @param line a line number.
1060
1067
  * @param category category to search for, or `null`
1061
1068
  * @returns a newly allocated {@link GLib.SList}.
1069
+ * @since 2.2
1062
1070
  */
1063
1071
  get_source_marks_at_line(line: number, category: string | null): Mark[];
1064
1072
 
@@ -1089,6 +1097,7 @@ export namespace GtkSource {
1089
1097
  * @param iter a {@link Gtk.TextIter}.
1090
1098
  * @param context_class the context class.
1091
1099
  * @returns whether we found a context class toggle before `iter`
1100
+ * @since 2.10
1092
1101
  */
1093
1102
  iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [boolean, Gtk.TextIter];
1094
1103
 
@@ -1103,6 +1112,7 @@ export namespace GtkSource {
1103
1112
  * @param iter a {@link Gtk.TextIter}.
1104
1113
  * @param context_class the context class.
1105
1114
  * @returns whether we found a context class toggle after `iter`
1115
+ * @since 2.10
1106
1116
  */
1107
1117
  iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [boolean, Gtk.TextIter];
1108
1118
 
@@ -1113,6 +1123,7 @@ export namespace GtkSource {
1113
1123
  * @param iter a {@link Gtk.TextIter}.
1114
1124
  * @param context_class class to search for.
1115
1125
  * @returns whether `iter` has the context class.
1126
+ * @since 2.10
1116
1127
  */
1117
1128
  iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean;
1118
1129
 
@@ -1120,6 +1131,7 @@ export namespace GtkSource {
1120
1131
  * Joins the lines of text between the specified iterators.
1121
1132
  * @param start a {@link Gtk.TextIter}.
1122
1133
  * @param end a {@link Gtk.TextIter}.
1134
+ * @since 3.16
1123
1135
  */
1124
1136
  join_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
1125
1137
 
@@ -1137,6 +1149,7 @@ export namespace GtkSource {
1137
1149
  * @param start a {@link Gtk.TextIter}.
1138
1150
  * @param end a {@link Gtk.TextIter}.
1139
1151
  * @param category category to search for, or `null`.
1152
+ * @since 2.2
1140
1153
  */
1141
1154
  remove_source_marks(start: Gtk.TextIter, end: Gtk.TextIter, category: string | null): void;
1142
1155
 
@@ -1180,6 +1193,7 @@ export namespace GtkSource {
1180
1193
  * content is not modified when loaded into the `buffer`, and the `buffer`'s
1181
1194
  * content is not modified when saved into a file.
1182
1195
  * @param implicit_trailing_newline the new value.
1196
+ * @since 3.14
1183
1197
  */
1184
1198
  set_implicit_trailing_newline(implicit_trailing_newline: boolean): void;
1185
1199
 
@@ -1238,6 +1252,7 @@ export namespace GtkSource {
1238
1252
  * @param end a {@link Gtk.TextIter}.
1239
1253
  * @param flags {@link GtkSource.SortFlags} specifying how the sort should behave
1240
1254
  * @param column sort considering the text starting at the given column
1255
+ * @since 3.18
1241
1256
  */
1242
1257
  sort_lines(start: Gtk.TextIter, end: Gtk.TextIter, flags: SortFlags, column: number): void;
1243
1258
 
@@ -1683,6 +1698,7 @@ export namespace GtkSource {
1683
1698
  * @param builder a {@link Gtk.Builder}
1684
1699
  * @param child child to add
1685
1700
  * @param type kind of child or `null`
1701
+ * @since 2.12
1686
1702
  */
1687
1703
  add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
1688
1704
 
@@ -1694,6 +1710,7 @@ export namespace GtkSource {
1694
1710
  * @param builder {@link Gtk.Builder} used to construct this object
1695
1711
  * @param name name of child to construct
1696
1712
  * @returns the constructed child
1713
+ * @since 2.12
1697
1714
  */
1698
1715
  construct_child<T = GObject.Object>(builder: Gtk.Builder, name: string): T;
1699
1716
 
@@ -1704,6 +1721,7 @@ export namespace GtkSource {
1704
1721
  * @param child child object or `null` for non-child tags
1705
1722
  * @param tagname the name of the tag
1706
1723
  * @param data user data created in custom_tag_start
1724
+ * @since 2.12
1707
1725
  */
1708
1726
  custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
1709
1727
 
@@ -1714,6 +1732,7 @@ export namespace GtkSource {
1714
1732
  * @param child child object or `null` for non-child tags
1715
1733
  * @param tagname name of tag
1716
1734
  * @param data user data that will be passed in to parser functions
1735
+ * @since 2.12
1717
1736
  */
1718
1737
  custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
1719
1738
 
@@ -1723,6 +1742,7 @@ export namespace GtkSource {
1723
1742
  * @param child child object or `null` for non-child tags
1724
1743
  * @param tagname name of tag
1725
1744
  * @returns `true` if a object has a custom implementation, `false` if it doesn't.
1745
+ * @since 2.12
1726
1746
  */
1727
1747
  custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, null];
1728
1748
 
@@ -1731,6 +1751,7 @@ export namespace GtkSource {
1731
1751
  * @param builder a {@link Gtk.Builder}
1732
1752
  * @param childname name of child
1733
1753
  * @returns the internal child of the buildable object
1754
+ * @since 2.12
1734
1755
  */
1735
1756
  get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
1736
1757
 
@@ -1741,6 +1762,7 @@ export namespace GtkSource {
1741
1762
  * [GtkBuilder UI definition][BUILDER-UI]
1742
1763
  * used to construct the `buildable`.
1743
1764
  * @returns the name set with `gtk_buildable_set_name()`
1765
+ * @since 2.12
1744
1766
  */
1745
1767
  get_name(): string;
1746
1768
 
@@ -1751,6 +1773,7 @@ export namespace GtkSource {
1751
1773
  * `gtk_builder_add_from_file()` or `gtk_builder_add_from_string()`
1752
1774
  * is called on a builder.
1753
1775
  * @param builder a {@link Gtk.Builder}
1776
+ * @since 2.12
1754
1777
  */
1755
1778
  parser_finished(builder: Gtk.Builder): void;
1756
1779
 
@@ -1759,12 +1782,14 @@ export namespace GtkSource {
1759
1782
  * @param builder a {@link Gtk.Builder}
1760
1783
  * @param name name of property
1761
1784
  * @param value value of property
1785
+ * @since 2.12
1762
1786
  */
1763
1787
  set_buildable_property(builder: Gtk.Builder, name: string, value: GObject.Value | any): void;
1764
1788
 
1765
1789
  /**
1766
1790
  * Sets the name of the `buildable` object.
1767
1791
  * @param name name to set
1792
+ * @since 2.12
1768
1793
  */
1769
1794
  set_name(name: string): void;
1770
1795
 
@@ -1774,6 +1799,7 @@ export namespace GtkSource {
1774
1799
  * @param builder a {@link Gtk.Builder}
1775
1800
  * @param child child to add
1776
1801
  * @param type kind of child or `null`
1802
+ * @since 2.12
1777
1803
  * @virtual
1778
1804
  */
1779
1805
  vfunc_add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
@@ -1785,6 +1811,7 @@ export namespace GtkSource {
1785
1811
  * specified in the UI definition.
1786
1812
  * @param builder {@link Gtk.Builder} used to construct this object
1787
1813
  * @param name name of child to construct
1814
+ * @since 2.12
1788
1815
  * @virtual
1789
1816
  */
1790
1817
  vfunc_construct_child<T = GObject.Object>(builder: Gtk.Builder, name: string): T;
@@ -1796,6 +1823,7 @@ export namespace GtkSource {
1796
1823
  * @param child child object or `null` for non-child tags
1797
1824
  * @param tagname the name of the tag
1798
1825
  * @param data user data created in custom_tag_start
1826
+ * @since 2.12
1799
1827
  * @virtual
1800
1828
  */
1801
1829
  vfunc_custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
@@ -1807,6 +1835,7 @@ export namespace GtkSource {
1807
1835
  * @param child child object or `null` for non-child tags
1808
1836
  * @param tagname name of tag
1809
1837
  * @param data user data that will be passed in to parser functions
1838
+ * @since 2.12
1810
1839
  * @virtual
1811
1840
  */
1812
1841
  vfunc_custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
@@ -1816,6 +1845,7 @@ export namespace GtkSource {
1816
1845
  * @param builder a {@link Gtk.Builder} used to construct this object
1817
1846
  * @param child child object or `null` for non-child tags
1818
1847
  * @param tagname name of tag
1848
+ * @since 2.12
1819
1849
  * @virtual
1820
1850
  */
1821
1851
  vfunc_custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, GLib.MarkupParser, never];
@@ -1824,6 +1854,7 @@ export namespace GtkSource {
1824
1854
  * Get the internal child called `childname` of the `buildable` object.
1825
1855
  * @param builder a {@link Gtk.Builder}
1826
1856
  * @param childname name of child
1857
+ * @since 2.12
1827
1858
  * @virtual
1828
1859
  */
1829
1860
  vfunc_get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
@@ -1834,6 +1865,7 @@ export namespace GtkSource {
1834
1865
  * {@link Gtk.Builder} sets the name based on the
1835
1866
  * [GtkBuilder UI definition][BUILDER-UI]
1836
1867
  * used to construct the `buildable`.
1868
+ * @since 2.12
1837
1869
  * @virtual
1838
1870
  */
1839
1871
  vfunc_get_name(): string;
@@ -1845,6 +1877,7 @@ export namespace GtkSource {
1845
1877
  * `gtk_builder_add_from_file()` or `gtk_builder_add_from_string()`
1846
1878
  * is called on a builder.
1847
1879
  * @param builder a {@link Gtk.Builder}
1880
+ * @since 2.12
1848
1881
  * @virtual
1849
1882
  */
1850
1883
  vfunc_parser_finished(builder: Gtk.Builder): void;
@@ -1854,6 +1887,7 @@ export namespace GtkSource {
1854
1887
  * @param builder a {@link Gtk.Builder}
1855
1888
  * @param name name of property
1856
1889
  * @param value value of property
1890
+ * @since 2.12
1857
1891
  * @virtual
1858
1892
  */
1859
1893
  vfunc_set_buildable_property(builder: Gtk.Builder, name: string, value: unknown): void;
@@ -1861,6 +1895,7 @@ export namespace GtkSource {
1861
1895
  /**
1862
1896
  * Sets the name of the `buildable` object.
1863
1897
  * @param name name to set
1898
+ * @since 2.12
1864
1899
  * @virtual
1865
1900
  */
1866
1901
  vfunc_set_name(name: string): void;
@@ -2233,36 +2268,43 @@ export namespace GtkSource {
2233
2268
  // Methods
2234
2269
  /**
2235
2270
  * @param gicon the {@link Gio.Icon}, or `null`.
2271
+ * @since 3.24
2236
2272
  */
2237
2273
  set_gicon(gicon: Gio.Icon | null): void;
2238
2274
 
2239
2275
  /**
2240
2276
  * @param icon the {@link GdkPixbuf.Pixbuf}, or `null`.
2277
+ * @since 3.24
2241
2278
  */
2242
2279
  set_icon(icon: GdkPixbuf.Pixbuf | null): void;
2243
2280
 
2244
2281
  /**
2245
2282
  * @param icon_name the icon name, or `null`.
2283
+ * @since 3.24
2246
2284
  */
2247
2285
  set_icon_name(icon_name: string | null): void;
2248
2286
 
2249
2287
  /**
2250
2288
  * @param info the info, or `null`.
2289
+ * @since 3.24
2251
2290
  */
2252
2291
  set_info(info: string | null): void;
2253
2292
 
2254
2293
  /**
2255
2294
  * @param label the label, or `null`.
2295
+ * @since 3.24
2256
2296
  */
2257
2297
  set_label(label: string | null): void;
2258
2298
 
2259
2299
  /**
2260
2300
  * @param markup the markup, or `null`.
2301
+ * @since 3.24
2261
2302
  */
2262
2303
  set_markup(markup: string | null): void;
2263
2304
 
2264
2305
  /**
2265
2306
  * @param text the text, or `null`.
2307
+ * @since 3.24
2266
2308
  */
2267
2309
  set_text(text: string | null): void;
2268
2310
 
@@ -2285,6 +2327,7 @@ export namespace GtkSource {
2285
2327
  /**
2286
2328
  * Gets the {@link Gio.Icon} for the icon of `proposal`.
2287
2329
  * @returns A {@link Gio.Icon} with the icon of `proposal`.
2330
+ * @since 3.18
2288
2331
  */
2289
2332
  get_gicon(): Gio.Icon | null;
2290
2333
 
@@ -2297,6 +2340,7 @@ export namespace GtkSource {
2297
2340
  /**
2298
2341
  * Gets the icon name of `proposal`.
2299
2342
  * @returns The icon name of `proposal`.
2343
+ * @since 3.18
2300
2344
  */
2301
2345
  get_icon_name(): string | null;
2302
2346
 
@@ -2364,6 +2408,7 @@ export namespace GtkSource {
2364
2408
 
2365
2409
  /**
2366
2410
  * Gets the {@link Gio.Icon} for the icon of `proposal`.
2411
+ * @since 3.18
2367
2412
  * @virtual
2368
2413
  */
2369
2414
  vfunc_get_gicon(): Gio.Icon | null;
@@ -2376,6 +2421,7 @@ export namespace GtkSource {
2376
2421
 
2377
2422
  /**
2378
2423
  * Gets the icon name of `proposal`.
2424
+ * @since 3.18
2379
2425
  * @virtual
2380
2426
  */
2381
2427
  vfunc_get_icon_name(): string | null;
@@ -2603,6 +2649,7 @@ export namespace GtkSource {
2603
2649
  /**
2604
2650
  * Gets the {@link Gio.Icon} for the icon of `provider`.
2605
2651
  * @returns The icon to be used for the provider, or `null` if the provider does not have a special icon.
2652
+ * @since 3.18
2606
2653
  */
2607
2654
  get_gicon(): Gio.Icon | null;
2608
2655
 
@@ -2615,6 +2662,7 @@ export namespace GtkSource {
2615
2662
  /**
2616
2663
  * Gets the icon name of `provider`.
2617
2664
  * @returns The icon name to be used for the provider, or `null` if the provider does not have a special icon.
2665
+ * @since 3.18
2618
2666
  */
2619
2667
  get_icon_name(): string | null;
2620
2668
 
@@ -2736,6 +2784,7 @@ export namespace GtkSource {
2736
2784
 
2737
2785
  /**
2738
2786
  * Gets the {@link Gio.Icon} for the icon of `provider`.
2787
+ * @since 3.18
2739
2788
  * @virtual
2740
2789
  */
2741
2790
  vfunc_get_gicon(): Gio.Icon | null;
@@ -2748,6 +2797,7 @@ export namespace GtkSource {
2748
2797
 
2749
2798
  /**
2750
2799
  * Gets the icon name of `provider`.
2800
+ * @since 3.18
2751
2801
  * @virtual
2752
2802
  */
2753
2803
  vfunc_get_icon_name(): string | null;
@@ -2984,11 +3034,13 @@ export namespace GtkSource {
2984
3034
  *
2985
3035
  * Since this function is synchronous, it is advised to call it only on local
2986
3036
  * files. See `gtk_source_file_is_local()`.
3037
+ * @since 3.18
2987
3038
  */
2988
3039
  check_file_on_disk(): void;
2989
3040
 
2990
3041
  /**
2991
3042
  * @returns the compression type.
3043
+ * @since 3.14
2992
3044
  */
2993
3045
  get_compression_type(): CompressionType;
2994
3046
 
@@ -2996,16 +3048,19 @@ export namespace GtkSource {
2996
3048
  * The encoding is initially `null`. After a successful file loading or saving
2997
3049
  * operation, the encoding is non-`null`.
2998
3050
  * @returns the character encoding.
3051
+ * @since 3.14
2999
3052
  */
3000
3053
  get_encoding(): Encoding;
3001
3054
 
3002
3055
  /**
3003
3056
  * @returns the {@link Gio.File}.
3057
+ * @since 3.14
3004
3058
  */
3005
3059
  get_location(): Gio.File;
3006
3060
 
3007
3061
  /**
3008
3062
  * @returns the newline type.
3063
+ * @since 3.14
3009
3064
  */
3010
3065
  get_newline_type(): NewlineType;
3011
3066
 
@@ -3016,6 +3071,7 @@ export namespace GtkSource {
3016
3071
  * To have an up-to-date value, you must first call
3017
3072
  * `gtk_source_file_check_file_on_disk()`.
3018
3073
  * @returns whether the file has been deleted.
3074
+ * @since 3.18
3019
3075
  */
3020
3076
  is_deleted(): boolean;
3021
3077
 
@@ -3026,6 +3082,7 @@ export namespace GtkSource {
3026
3082
  * To have an up-to-date value, you must first call
3027
3083
  * `gtk_source_file_check_file_on_disk()`.
3028
3084
  * @returns whether the file is externally modified.
3085
+ * @since 3.18
3029
3086
  */
3030
3087
  is_externally_modified(): boolean;
3031
3088
 
@@ -3033,6 +3090,7 @@ export namespace GtkSource {
3033
3090
  * Returns whether the file is local. If the {@link GtkSource.File.location} is `null`,
3034
3091
  * returns `false`.
3035
3092
  * @returns whether the file is local.
3093
+ * @since 3.18
3036
3094
  */
3037
3095
  is_local(): boolean;
3038
3096
 
@@ -3043,12 +3101,14 @@ export namespace GtkSource {
3043
3101
  * To have an up-to-date value, you must first call
3044
3102
  * `gtk_source_file_check_file_on_disk()`.
3045
3103
  * @returns whether the file is read-only.
3104
+ * @since 3.18
3046
3105
  */
3047
3106
  is_readonly(): boolean;
3048
3107
 
3049
3108
  /**
3050
3109
  * Sets the location.
3051
3110
  * @param location the new {@link Gio.File}, or `null`.
3111
+ * @since 3.14
3052
3112
  */
3053
3113
  set_location(location: Gio.File | null): void;
3054
3114
  }
@@ -3155,36 +3215,43 @@ export namespace GtkSource {
3155
3215
  // Methods
3156
3216
  /**
3157
3217
  * @returns the {@link GtkSource.Buffer} to load the contents into.
3218
+ * @since 3.14
3158
3219
  */
3159
3220
  get_buffer(): Buffer;
3160
3221
 
3161
3222
  /**
3162
3223
  * @returns the detected compression type.
3224
+ * @since 3.14
3163
3225
  */
3164
3226
  get_compression_type(): CompressionType;
3165
3227
 
3166
3228
  /**
3167
3229
  * @returns the detected file encoding.
3230
+ * @since 3.14
3168
3231
  */
3169
3232
  get_encoding(): Encoding;
3170
3233
 
3171
3234
  /**
3172
3235
  * @returns the {@link GtkSource.File}.
3236
+ * @since 3.14
3173
3237
  */
3174
3238
  get_file(): File;
3175
3239
 
3176
3240
  /**
3177
3241
  * @returns the {@link Gio.InputStream} to load, or `null` if a {@link Gio.File} is used.
3242
+ * @since 3.14
3178
3243
  */
3179
3244
  get_input_stream(): Gio.InputStream | null;
3180
3245
 
3181
3246
  /**
3182
3247
  * @returns the {@link Gio.File} to load, or `null` if an input stream is used.
3248
+ * @since 3.14
3183
3249
  */
3184
3250
  get_location(): Gio.File | null;
3185
3251
 
3186
3252
  /**
3187
3253
  * @returns the detected newline type.
3254
+ * @since 3.14
3188
3255
  */
3189
3256
  get_newline_type(): NewlineType;
3190
3257
 
@@ -3195,6 +3262,7 @@ export namespace GtkSource {
3195
3262
  * @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
3196
3263
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
3197
3264
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
3265
+ * @since 3.14
3198
3266
  */
3199
3267
  load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
3200
3268
 
@@ -3206,6 +3274,7 @@ export namespace GtkSource {
3206
3274
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
3207
3275
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
3208
3276
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
3277
+ * @since 3.14
3209
3278
  */
3210
3279
  load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
3211
3280
 
@@ -3217,6 +3286,7 @@ export namespace GtkSource {
3217
3286
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
3218
3287
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
3219
3288
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
3289
+ * @since 3.14
3220
3290
  */
3221
3291
  load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
3222
3292
 
@@ -3228,6 +3298,7 @@ export namespace GtkSource {
3228
3298
  * type.
3229
3299
  * @param result a {@link Gio.AsyncResult}.
3230
3300
  * @returns whether the contents has been loaded successfully.
3301
+ * @since 3.14
3231
3302
  */
3232
3303
  load_finish(result: Gio.AsyncResult): boolean;
3233
3304
 
@@ -3244,6 +3315,7 @@ export namespace GtkSource {
3244
3315
  * 2. The default candidates as returned by
3245
3316
  * `gtk_source_encoding_get_default_candidates()`.
3246
3317
  * @param candidate_encodings a list of {@link GtkSource.Encoding}<!-- -->s.
3318
+ * @since 3.14
3247
3319
  */
3248
3320
  set_candidate_encodings(candidate_encodings: Encoding[]): void;
3249
3321
  }
@@ -3390,36 +3462,43 @@ export namespace GtkSource {
3390
3462
  // Methods
3391
3463
  /**
3392
3464
  * @returns the {@link GtkSource.Buffer} to save.
3465
+ * @since 3.14
3393
3466
  */
3394
3467
  get_buffer(): Buffer;
3395
3468
 
3396
3469
  /**
3397
3470
  * @returns the compression type.
3471
+ * @since 3.14
3398
3472
  */
3399
3473
  get_compression_type(): CompressionType;
3400
3474
 
3401
3475
  /**
3402
3476
  * @returns the encoding.
3477
+ * @since 3.14
3403
3478
  */
3404
3479
  get_encoding(): Encoding;
3405
3480
 
3406
3481
  /**
3407
3482
  * @returns the {@link GtkSource.File}.
3483
+ * @since 3.14
3408
3484
  */
3409
3485
  get_file(): File;
3410
3486
 
3411
3487
  /**
3412
3488
  * @returns the flags.
3489
+ * @since 3.14
3413
3490
  */
3414
3491
  get_flags(): FileSaverFlags;
3415
3492
 
3416
3493
  /**
3417
3494
  * @returns the {@link Gio.File} where to save the buffer to.
3495
+ * @since 3.14
3418
3496
  */
3419
3497
  get_location(): Gio.File;
3420
3498
 
3421
3499
  /**
3422
3500
  * @returns the newline type.
3501
+ * @since 3.14
3423
3502
  */
3424
3503
  get_newline_type(): NewlineType;
3425
3504
 
@@ -3429,6 +3508,7 @@ export namespace GtkSource {
3429
3508
  * @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
3430
3509
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
3431
3510
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
3511
+ * @since 3.14
3432
3512
  */
3433
3513
  save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
3434
3514
 
@@ -3439,6 +3519,7 @@ export namespace GtkSource {
3439
3519
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
3440
3520
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
3441
3521
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
3522
+ * @since 3.14
3442
3523
  */
3443
3524
  save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
3444
3525
 
@@ -3449,6 +3530,7 @@ export namespace GtkSource {
3449
3530
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
3450
3531
  * @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
3451
3532
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
3533
+ * @since 3.14
3452
3534
  */
3453
3535
  save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
3454
3536
 
@@ -3463,6 +3545,7 @@ export namespace GtkSource {
3463
3545
  * if the file has been saved successfully.
3464
3546
  * @param result a {@link Gio.AsyncResult}.
3465
3547
  * @returns whether the file was saved successfully.
3548
+ * @since 3.14
3466
3549
  */
3467
3550
  save_finish(result: Gio.AsyncResult): boolean;
3468
3551
 
@@ -3470,6 +3553,7 @@ export namespace GtkSource {
3470
3553
  * Sets the compression type. By default the compression type is taken from the
3471
3554
  * {@link GtkSource.File}.
3472
3555
  * @param compression_type the new compression type.
3556
+ * @since 3.14
3473
3557
  */
3474
3558
  set_compression_type(compression_type: CompressionType): void;
3475
3559
 
@@ -3477,11 +3561,13 @@ export namespace GtkSource {
3477
3561
  * Sets the encoding. If `encoding` is `null`, the UTF-8 encoding will be set.
3478
3562
  * By default the encoding is taken from the {@link GtkSource.File}.
3479
3563
  * @param encoding the new encoding, or `null` for UTF-8.
3564
+ * @since 3.14
3480
3565
  */
3481
3566
  set_encoding(encoding: Encoding | null): void;
3482
3567
 
3483
3568
  /**
3484
3569
  * @param flags the new flags.
3570
+ * @since 3.14
3485
3571
  */
3486
3572
  set_flags(flags: FileSaverFlags): void;
3487
3573
 
@@ -3489,6 +3575,7 @@ export namespace GtkSource {
3489
3575
  * Sets the newline type. By default the newline type is taken from the
3490
3576
  * {@link GtkSource.File}.
3491
3577
  * @param newline_type the new newline type.
3578
+ * @since 3.14
3492
3579
  */
3493
3580
  set_newline_type(newline_type: NewlineType): void;
3494
3581
  }
@@ -3574,11 +3661,13 @@ export namespace GtkSource {
3574
3661
 
3575
3662
  /**
3576
3663
  * @returns the associated {@link GtkSource.View}.
3664
+ * @since 3.24
3577
3665
  */
3578
3666
  get_view(): View;
3579
3667
 
3580
3668
  /**
3581
3669
  * @returns the {@link Gtk.TextWindowType} of `gutter`.
3670
+ * @since 3.24
3582
3671
  */
3583
3672
  get_window_type(): Gtk.TextWindowType;
3584
3673
 
@@ -3589,18 +3678,21 @@ export namespace GtkSource {
3589
3678
  * @param renderer a gutter renderer (must inherit from {@link GtkSource.GutterRenderer}).
3590
3679
  * @param position the renderer position.
3591
3680
  * @returns `true` if operation succeeded. Otherwise `false`.
3681
+ * @since 3.0
3592
3682
  */
3593
3683
  insert(renderer: GutterRenderer, position: number): boolean;
3594
3684
 
3595
3685
  /**
3596
3686
  * Invalidates the drawable area of the gutter. You can use this to force a
3597
3687
  * redraw of the gutter if something has changed and needs to be redrawn.
3688
+ * @since 2.8
3598
3689
  */
3599
3690
  queue_draw(): void;
3600
3691
 
3601
3692
  /**
3602
3693
  * Removes `renderer` from `gutter`.
3603
3694
  * @param renderer a {@link GtkSource.GutterRenderer}.
3695
+ * @since 2.8
3604
3696
  */
3605
3697
  remove(renderer: GutterRenderer): void;
3606
3698
 
@@ -3608,6 +3700,7 @@ export namespace GtkSource {
3608
3700
  * Reorders `renderer` in `gutter` to new `position`.
3609
3701
  * @param renderer a {@link Gtk.CellRenderer}.
3610
3702
  * @param position the new renderer position.
3703
+ * @since 2.8
3611
3704
  */
3612
3705
  reorder(renderer: GutterRenderer, position: number): void;
3613
3706
  }
@@ -4486,6 +4579,7 @@ export namespace GtkSource {
4486
4579
  * is not present in the current style scheme.
4487
4580
  * @param style_id a style ID.
4488
4581
  * @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.
4582
+ * @since 3.4
4489
4583
  */
4490
4584
  get_style_fallback(style_id: string): string | null;
4491
4585
 
@@ -4635,6 +4729,7 @@ export namespace GtkSource {
4635
4729
  * @param filename a filename in Glib filename encoding, or `null`.
4636
4730
  * @param content_type a content type (as in GIO API), or `null`.
4637
4731
  * @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.
4732
+ * @since 2.4
4638
4733
  */
4639
4734
  guess_language(filename: string | null, content_type: string | null): Language | null;
4640
4735
 
@@ -4799,12 +4894,14 @@ export namespace GtkSource {
4799
4894
  /**
4800
4895
  * Gets the {@link GtkSource.Map.view} property, which is the view this widget is mapping.
4801
4896
  * @returns a {@link GtkSource.View} or `null`.
4897
+ * @since 3.18
4802
4898
  */
4803
4899
  get_view(): View | null;
4804
4900
 
4805
4901
  /**
4806
4902
  * Sets the view that `map` will be doing the mapping to.
4807
4903
  * @param view a {@link GtkSource.View}
4904
+ * @since 3.18
4808
4905
  */
4809
4906
  set_view(view: View): void;
4810
4907
  }
@@ -4875,6 +4972,7 @@ export namespace GtkSource {
4875
4972
  /**
4876
4973
  * Returns the mark category.
4877
4974
  * @returns the category of the {@link GtkSource.Mark}.
4975
+ * @since 2.2
4878
4976
  */
4879
4977
  get_category(): string;
4880
4978
 
@@ -4885,6 +4983,7 @@ export namespace GtkSource {
4885
4983
  * If `category` is `null`, looks for marks of any category.
4886
4984
  * @param category a string specifying the mark category, or `null`.
4887
4985
  * @returns the next {@link GtkSource.Mark}, or `null`.
4986
+ * @since 2.2
4888
4987
  */
4889
4988
  next(category: string | null): Mark | null;
4890
4989
 
@@ -4895,6 +4994,7 @@ export namespace GtkSource {
4895
4994
  * If `category` is `null`, looks for marks of any category
4896
4995
  * @param category a string specifying the mark category, or `null`.
4897
4996
  * @returns the previous {@link GtkSource.Mark}, or `null`.
4997
+ * @since 2.2
4898
4998
  */
4899
4999
  prev(category: string): Mark | null;
4900
5000
  }
@@ -5504,6 +5604,7 @@ export namespace GtkSource {
5504
5604
  * Returns the name of the font used to print the text body. The returned string
5505
5605
  * must be freed with `g_free()`.
5506
5606
  * @returns a new string containing the name of the font used to print the text body.
5607
+ * @since 2.2
5507
5608
  */
5508
5609
  get_body_font_name(): string;
5509
5610
 
@@ -5511,6 +5612,7 @@ export namespace GtkSource {
5511
5612
  * Gets the bottom margin in units of `unit`.
5512
5613
  * @param unit the unit for the return value.
5513
5614
  * @returns the bottom margin.
5615
+ * @since 2.2
5514
5616
  */
5515
5617
  get_bottom_margin(unit: Gtk.Unit): number;
5516
5618
 
@@ -5519,6 +5621,7 @@ export namespace GtkSource {
5519
5621
  * object reference is owned by the compositor object and
5520
5622
  * should not be unreferenced.
5521
5623
  * @returns the {@link GtkSource.Buffer} associated with the compositor.
5624
+ * @since 2.2
5522
5625
  */
5523
5626
  get_buffer(): Buffer;
5524
5627
 
@@ -5526,6 +5629,7 @@ export namespace GtkSource {
5526
5629
  * Returns the name of the font used to print the page footer.
5527
5630
  * The returned string must be freed with `g_free()`.
5528
5631
  * @returns a new string containing the name of the font used to print the page footer.
5632
+ * @since 2.2
5529
5633
  */
5530
5634
  get_footer_font_name(): string;
5531
5635
 
@@ -5533,6 +5637,7 @@ export namespace GtkSource {
5533
5637
  * Returns the name of the font used to print the page header.
5534
5638
  * The returned string must be freed with `g_free()`.
5535
5639
  * @returns a new string containing the name of the font used to print the page header.
5640
+ * @since 2.2
5536
5641
  */
5537
5642
  get_header_font_name(): string;
5538
5643
 
@@ -5541,6 +5646,7 @@ export namespace GtkSource {
5541
5646
  * buffer rules. Note that highlighting will happen
5542
5647
  * only if the buffer to print has highlighting activated.
5543
5648
  * @returns `true` if the printed output will be highlighted.
5649
+ * @since 2.2
5544
5650
  */
5545
5651
  get_highlight_syntax(): boolean;
5546
5652
 
@@ -5548,6 +5654,7 @@ export namespace GtkSource {
5548
5654
  * Gets the left margin in units of `unit`.
5549
5655
  * @param unit the unit for the return value.
5550
5656
  * @returns the left margin
5657
+ * @since 2.2
5551
5658
  */
5552
5659
  get_left_margin(unit: Gtk.Unit): number;
5553
5660
 
@@ -5555,6 +5662,7 @@ export namespace GtkSource {
5555
5662
  * Returns the name of the font used to print line numbers on the left margin.
5556
5663
  * The returned string must be freed with `g_free()`.
5557
5664
  * @returns a new string containing the name of the font used to print line numbers on the left margin.
5665
+ * @since 2.2
5558
5666
  */
5559
5667
  get_line_numbers_font_name(): string;
5560
5668
 
@@ -5562,12 +5670,14 @@ export namespace GtkSource {
5562
5670
  * Returns the number of pages in the document or <code>-1</code> if the
5563
5671
  * document has not been completely paginated.
5564
5672
  * @returns the number of pages in the document or <code>-1</code> if the document has not been completely paginated.
5673
+ * @since 2.2
5565
5674
  */
5566
5675
  get_n_pages(): number;
5567
5676
 
5568
5677
  /**
5569
5678
  * Returns the current fraction of the document pagination that has been completed.
5570
5679
  * @returns a fraction from 0.0 to 1.0 inclusive.
5680
+ * @since 2.2
5571
5681
  */
5572
5682
  get_pagination_progress(): number;
5573
5683
 
@@ -5577,6 +5687,7 @@ export namespace GtkSource {
5577
5687
  * <emphasis>and</emphasis> some format strings have been specified
5578
5688
  * with `gtk_source_print_compositor_set_footer_format()`.
5579
5689
  * @returns `true` if the footer is set to be printed.
5690
+ * @since 2.2
5580
5691
  */
5581
5692
  get_print_footer(): boolean;
5582
5693
 
@@ -5586,6 +5697,7 @@ export namespace GtkSource {
5586
5697
  * <emphasis>and</emphasis> some format strings have been specified
5587
5698
  * with `gtk_source_print_compositor_set_header_format()`.
5588
5699
  * @returns `true` if the header is set to be printed.
5700
+ * @since 2.2
5589
5701
  */
5590
5702
  get_print_header(): boolean;
5591
5703
 
@@ -5594,6 +5706,7 @@ export namespace GtkSource {
5594
5706
  * value is 0, no line numbers will be printed. The default value is
5595
5707
  * 1 (i.e. numbers printed in all lines).
5596
5708
  * @returns the interval of printed line numbers.
5709
+ * @since 2.2
5597
5710
  */
5598
5711
  get_print_line_numbers(): number;
5599
5712
 
@@ -5601,12 +5714,14 @@ export namespace GtkSource {
5601
5714
  * Gets the right margin in units of `unit`.
5602
5715
  * @param unit the unit for the return value.
5603
5716
  * @returns the right margin.
5717
+ * @since 2.2
5604
5718
  */
5605
5719
  get_right_margin(unit: Gtk.Unit): number;
5606
5720
 
5607
5721
  /**
5608
5722
  * Returns the width of tabulation in characters for printed text.
5609
5723
  * @returns width of tab.
5724
+ * @since 2.2
5610
5725
  */
5611
5726
  get_tab_width(): number;
5612
5727
 
@@ -5614,12 +5729,14 @@ export namespace GtkSource {
5614
5729
  * Gets the top margin in units of `unit`.
5615
5730
  * @param unit the unit for the return value.
5616
5731
  * @returns the top margin.
5732
+ * @since 2.2
5617
5733
  */
5618
5734
  get_top_margin(unit: Gtk.Unit): number;
5619
5735
 
5620
5736
  /**
5621
5737
  * Gets the line wrapping mode for the printed text.
5622
5738
  * @returns the line wrap mode.
5739
+ * @since 2.2
5623
5740
  */
5624
5741
  get_wrap_mode(): Gtk.WrapMode;
5625
5742
 
@@ -5686,6 +5803,7 @@ export namespace GtkSource {
5686
5803
  * </programlisting></informalexample>
5687
5804
  * @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.
5688
5805
  * @returns `true` if the document has been completely paginated, `false` otherwise.
5806
+ * @since 2.2
5689
5807
  */
5690
5808
  paginate(context: Gtk.PrintContext): boolean;
5691
5809
 
@@ -5700,6 +5818,7 @@ export namespace GtkSource {
5700
5818
  * This function cannot be called anymore after the first call to the
5701
5819
  * `gtk_source_print_compositor_paginate()` function.
5702
5820
  * @param font_name the name of the default font for the body text.
5821
+ * @since 2.2
5703
5822
  */
5704
5823
  set_body_font_name(font_name: string): void;
5705
5824
 
@@ -5707,6 +5826,7 @@ export namespace GtkSource {
5707
5826
  * Sets the bottom margin used by `compositor`.
5708
5827
  * @param margin the new bottom margin in units of `unit`.
5709
5828
  * @param unit the units for `margin`.
5829
+ * @since 2.2
5710
5830
  */
5711
5831
  set_bottom_margin(margin: number, unit: Gtk.Unit): void;
5712
5832
 
@@ -5723,6 +5843,7 @@ export namespace GtkSource {
5723
5843
  * This function cannot be called anymore after the first call to the
5724
5844
  * `gtk_source_print_compositor_paginate()` function.
5725
5845
  * @param font_name the name of the font for the footer text, or `null`.
5846
+ * @since 2.2
5726
5847
  */
5727
5848
  set_footer_font_name(font_name: string | null): void;
5728
5849
 
@@ -5733,6 +5854,7 @@ export namespace GtkSource {
5733
5854
  * @param left a format string to print on the left of the footer.
5734
5855
  * @param center a format string to print on the center of the footer.
5735
5856
  * @param right a format string to print on the right of the footer.
5857
+ * @since 2.2
5736
5858
  */
5737
5859
  set_footer_format(separator: boolean, left: string | null, center: string | null, right: string | null): void;
5738
5860
 
@@ -5749,6 +5871,7 @@ export namespace GtkSource {
5749
5871
  * This function cannot be called anymore after the first call to the
5750
5872
  * `gtk_source_print_compositor_paginate()` function.
5751
5873
  * @param font_name the name of the font for header text, or `null`.
5874
+ * @since 2.2
5752
5875
  */
5753
5876
  set_header_font_name(font_name: string | null): void;
5754
5877
 
@@ -5778,6 +5901,7 @@ export namespace GtkSource {
5778
5901
  * @param left a format string to print on the left of the header.
5779
5902
  * @param center a format string to print on the center of the header.
5780
5903
  * @param right a format string to print on the right of the header.
5904
+ * @since 2.2
5781
5905
  */
5782
5906
  set_header_format(separator: boolean, left: string | null, center: string | null, right: string | null): void;
5783
5907
 
@@ -5788,6 +5912,7 @@ export namespace GtkSource {
5788
5912
  * This function cannot be called anymore after the first call to the
5789
5913
  * `gtk_source_print_compositor_paginate()` function.
5790
5914
  * @param highlight whether syntax should be highlighted.
5915
+ * @since 2.2
5791
5916
  */
5792
5917
  set_highlight_syntax(highlight: boolean): void;
5793
5918
 
@@ -5795,6 +5920,7 @@ export namespace GtkSource {
5795
5920
  * Sets the left margin used by `compositor`.
5796
5921
  * @param margin the new left margin in units of `unit`.
5797
5922
  * @param unit the units for `margin`.
5923
+ * @since 2.2
5798
5924
  */
5799
5925
  set_left_margin(margin: number, unit: Gtk.Unit): void;
5800
5926
 
@@ -5811,6 +5937,7 @@ export namespace GtkSource {
5811
5937
  * This function cannot be called anymore after the first call to the
5812
5938
  * `gtk_source_print_compositor_paginate()` function.
5813
5939
  * @param font_name the name of the font for line numbers, or `null`.
5940
+ * @since 2.2
5814
5941
  */
5815
5942
  set_line_numbers_font_name(font_name: string | null): void;
5816
5943
 
@@ -5826,6 +5953,7 @@ export namespace GtkSource {
5826
5953
  * This function cannot be called anymore after the first call to the
5827
5954
  * `gtk_source_print_compositor_paginate()` function.
5828
5955
  * @param print `true` if you want the footer to be printed.
5956
+ * @since 2.2
5829
5957
  */
5830
5958
  set_print_footer(print: boolean): void;
5831
5959
 
@@ -5841,6 +5969,7 @@ export namespace GtkSource {
5841
5969
  * This function cannot be called anymore after the first call to the
5842
5970
  * `gtk_source_print_compositor_paginate()` function.
5843
5971
  * @param print `true` if you want the header to be printed.
5972
+ * @since 2.2
5844
5973
  */
5845
5974
  set_print_header(print: boolean): void;
5846
5975
 
@@ -5854,6 +5983,7 @@ export namespace GtkSource {
5854
5983
  * This function cannot be called anymore after the first call to the
5855
5984
  * `gtk_source_print_compositor_paginate()` function.
5856
5985
  * @param interval interval for printed line numbers.
5986
+ * @since 2.2
5857
5987
  */
5858
5988
  set_print_line_numbers(interval: number): void;
5859
5989
 
@@ -5861,6 +5991,7 @@ export namespace GtkSource {
5861
5991
  * Sets the right margin used by `compositor`.
5862
5992
  * @param margin the new right margin in units of `unit`.
5863
5993
  * @param unit the units for `margin`.
5994
+ * @since 2.2
5864
5995
  */
5865
5996
  set_right_margin(margin: number, unit: Gtk.Unit): void;
5866
5997
 
@@ -5870,6 +6001,7 @@ export namespace GtkSource {
5870
6001
  * This function cannot be called anymore after the first call to the
5871
6002
  * `gtk_source_print_compositor_paginate()` function.
5872
6003
  * @param width width of tab in characters.
6004
+ * @since 2.2
5873
6005
  */
5874
6006
  set_tab_width(width: number): void;
5875
6007
 
@@ -5877,6 +6009,7 @@ export namespace GtkSource {
5877
6009
  * Sets the top margin used by `compositor`.
5878
6010
  * @param margin the new top margin in units of `unit`
5879
6011
  * @param unit the units for `margin`
6012
+ * @since 2.2
5880
6013
  */
5881
6014
  set_top_margin(margin: number, unit: Gtk.Unit): void;
5882
6015
 
@@ -5886,6 +6019,7 @@ export namespace GtkSource {
5886
6019
  * This function cannot be called anymore after the first call to the
5887
6020
  * `gtk_source_print_compositor_paginate()` function.
5888
6021
  * @param wrap_mode a {@link Gtk.WrapMode}.
6022
+ * @since 2.2
5889
6023
  */
5890
6024
  set_wrap_mode(wrap_mode: Gtk.WrapMode): void;
5891
6025
  }
@@ -5951,6 +6085,7 @@ export namespace GtkSource {
5951
6085
  /**
5952
6086
  * Adds `region_to_add` to `region`. `region_to_add` is not modified.
5953
6087
  * @param region_to_add the {@link GtkSource.Region} to add to `region`, or `null`.
6088
+ * @since 3.22
5954
6089
  */
5955
6090
  add_region(region_to_add: Region | null): void;
5956
6091
 
@@ -5958,23 +6093,27 @@ export namespace GtkSource {
5958
6093
  * Adds the subregion delimited by `_start` and `_end` to `region`.
5959
6094
  * @param _start the start of the subregion.
5960
6095
  * @param _end the end of the subregion.
6096
+ * @since 3.22
5961
6097
  */
5962
6098
  add_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): void;
5963
6099
 
5964
6100
  /**
5965
6101
  * Gets the `start` and `end` bounds of the `region`.
5966
6102
  * @returns `true` if `start` and `end` have been set successfully (if non-`null`), or `false` if the `region` is empty.
6103
+ * @since 3.22
5967
6104
  */
5968
6105
  get_bounds(): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
5969
6106
 
5970
6107
  /**
5971
6108
  * @returns the {@link Gtk.TextBuffer}.
6109
+ * @since 3.22
5972
6110
  */
5973
6111
  get_buffer(): Gtk.TextBuffer | null;
5974
6112
 
5975
6113
  /**
5976
6114
  * Initializes a {@link GtkSource.RegionIter} to the first subregion of `region`. If
5977
6115
  * `region` is empty, `iter` will be initialized to the end iterator.
6116
+ * @since 3.22
5978
6117
  */
5979
6118
  get_start_region_iter(): RegionIter;
5980
6119
 
@@ -5983,6 +6122,7 @@ export namespace GtkSource {
5983
6122
  * `region2` are not modified.
5984
6123
  * @param region2 a {@link GtkSource.Region}, or `null`.
5985
6124
  * @returns the intersection as a {@link GtkSource.Region} object.
6125
+ * @since 3.22
5986
6126
  */
5987
6127
  intersect_region(region2: Region | null): Region | null;
5988
6128
 
@@ -5992,12 +6132,14 @@ export namespace GtkSource {
5992
6132
  * @param _start the start of the subregion.
5993
6133
  * @param _end the end of the subregion.
5994
6134
  * @returns the intersection as a new {@link GtkSource.Region}.
6135
+ * @since 3.22
5995
6136
  */
5996
6137
  intersect_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): Region | null;
5997
6138
 
5998
6139
  /**
5999
6140
  * Returns whether the `region` is empty. A `null` `region` is considered empty.
6000
6141
  * @returns whether the `region` is empty.
6142
+ * @since 3.22
6001
6143
  */
6002
6144
  is_empty(): boolean;
6003
6145
 
@@ -6005,6 +6147,7 @@ export namespace GtkSource {
6005
6147
  * Subtracts `region_to_subtract` from `region`. `region_to_subtract` is not
6006
6148
  * modified.
6007
6149
  * @param region_to_subtract the {@link GtkSource.Region} to subtract from `region`, or `null`.
6150
+ * @since 3.22
6008
6151
  */
6009
6152
  subtract_region(region_to_subtract: Region | null): void;
6010
6153
 
@@ -6012,6 +6155,7 @@ export namespace GtkSource {
6012
6155
  * Subtracts the subregion delimited by `_start` and `_end` from `region`.
6013
6156
  * @param _start the start of the subregion.
6014
6157
  * @param _end the end of the subregion.
6158
+ * @since 3.22
6015
6159
  */
6016
6160
  subtract_subregion(_start: Gtk.TextIter, _end: Gtk.TextIter): void;
6017
6161
 
@@ -6021,6 +6165,7 @@ export namespace GtkSource {
6021
6165
  * The returned string contains the character offsets of the subregions. It
6022
6166
  * doesn't include a newline character at the end of the string.
6023
6167
  * @returns a string represention of `region`. Free with `g_free()` when no longer needed.
6168
+ * @since 3.22
6024
6169
  */
6025
6170
  to_string(): string | null;
6026
6171
  }
@@ -6181,6 +6326,7 @@ export namespace GtkSource {
6181
6326
  * the same value as the {@link GtkSource.SearchSettings.wrap_around} property.
6182
6327
  * @param iter start of search.
6183
6328
  * @returns whether a match was found.
6329
+ * @since 4.0
6184
6330
  */
6185
6331
  backward(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
6186
6332
 
@@ -6197,6 +6343,7 @@ export namespace GtkSource {
6197
6343
  * ownership of `cancellable`, so you can unref it after calling this function.
6198
6344
  * @param iter start of search.
6199
6345
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
6346
+ * @since 3.10
6200
6347
  */
6201
6348
  backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]>;
6202
6349
 
@@ -6214,6 +6361,7 @@ export namespace GtkSource {
6214
6361
  * @param iter start of search.
6215
6362
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
6216
6363
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
6364
+ * @since 3.10
6217
6365
  */
6218
6366
  backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
6219
6367
 
@@ -6231,6 +6379,7 @@ export namespace GtkSource {
6231
6379
  * @param iter start of search.
6232
6380
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
6233
6381
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
6382
+ * @since 3.10
6234
6383
  */
6235
6384
  backward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]> | void;
6236
6385
 
@@ -6242,6 +6391,7 @@ export namespace GtkSource {
6242
6391
  * details.
6243
6392
  * @param result a {@link Gio.AsyncResult}.
6244
6393
  * @returns whether a match was found.
6394
+ * @since 4.0
6245
6395
  */
6246
6396
  backward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
6247
6397
 
@@ -6258,6 +6408,7 @@ export namespace GtkSource {
6258
6408
  * the same value as the {@link GtkSource.SearchSettings.wrap_around} property.
6259
6409
  * @param iter start of search.
6260
6410
  * @returns whether a match was found.
6411
+ * @since 4.0
6261
6412
  */
6262
6413
  forward(iter: Gtk.TextIter): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
6263
6414
 
@@ -6274,6 +6425,7 @@ export namespace GtkSource {
6274
6425
  * ownership of `cancellable`, so you can unref it after calling this function.
6275
6426
  * @param iter start of search.
6276
6427
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
6428
+ * @since 3.10
6277
6429
  */
6278
6430
  forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]>;
6279
6431
 
@@ -6291,6 +6443,7 @@ export namespace GtkSource {
6291
6443
  * @param iter start of search.
6292
6444
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
6293
6445
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
6446
+ * @since 3.10
6294
6447
  */
6295
6448
  forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
6296
6449
 
@@ -6308,6 +6461,7 @@ export namespace GtkSource {
6308
6461
  * @param iter start of search.
6309
6462
  * @param cancellable a {@link Gio.Cancellable}, or `null`.
6310
6463
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the operation is finished.
6464
+ * @since 3.10
6311
6465
  */
6312
6466
  forward_async(iter: Gtk.TextIter, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<[Gtk.TextIter | null, Gtk.TextIter | null, boolean]> | void;
6313
6467
 
@@ -6319,21 +6473,25 @@ export namespace GtkSource {
6319
6473
  * details.
6320
6474
  * @param result a {@link Gio.AsyncResult}.
6321
6475
  * @returns whether a match was found.
6476
+ * @since 4.0
6322
6477
  */
6323
6478
  forward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
6324
6479
 
6325
6480
  /**
6326
6481
  * @returns the associated buffer.
6482
+ * @since 3.10
6327
6483
  */
6328
6484
  get_buffer(): Buffer;
6329
6485
 
6330
6486
  /**
6331
6487
  * @returns whether to highlight the search occurrences.
6488
+ * @since 3.10
6332
6489
  */
6333
6490
  get_highlight(): boolean;
6334
6491
 
6335
6492
  /**
6336
6493
  * @returns the {@link GtkSource.Style} to apply on search matches.
6494
+ * @since 3.16
6337
6495
  */
6338
6496
  get_match_style(): Style;
6339
6497
 
@@ -6345,6 +6503,7 @@ export namespace GtkSource {
6345
6503
  * @param match_start the start of the occurrence.
6346
6504
  * @param match_end the end of the occurrence.
6347
6505
  * @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.
6506
+ * @since 3.10
6348
6507
  */
6349
6508
  get_occurrence_position(match_start: Gtk.TextIter, match_end: Gtk.TextIter): number;
6350
6509
 
@@ -6353,6 +6512,7 @@ export namespace GtkSource {
6353
6512
  * fully scanned, the total number of occurrences is unknown, and -1 is
6354
6513
  * returned.
6355
6514
  * @returns the total number of search occurrences, or -1 if unknown.
6515
+ * @since 3.10
6356
6516
  */
6357
6517
  get_occurrences_count(): number;
6358
6518
 
@@ -6363,11 +6523,13 @@ export namespace GtkSource {
6363
6523
  *
6364
6524
  * Free the return value with `g_error_free()`.
6365
6525
  * @returns the {@link GLib.Error}, or `null` if the pattern is valid.
6526
+ * @since 3.10
6366
6527
  */
6367
6528
  get_regex_error(): GLib.Error | null;
6368
6529
 
6369
6530
  /**
6370
6531
  * @returns the search settings.
6532
+ * @since 3.10
6371
6533
  */
6372
6534
  get_settings(): SearchSettings;
6373
6535
 
@@ -6386,6 +6548,7 @@ export namespace GtkSource {
6386
6548
  * @param replace the replacement text.
6387
6549
  * @param replace_length the length of `replace` in bytes, or -1.
6388
6550
  * @returns whether the match has been replaced.
6551
+ * @since 4.0
6389
6552
  */
6390
6553
  replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean;
6391
6554
 
@@ -6399,12 +6562,14 @@ export namespace GtkSource {
6399
6562
  * @param replace the replacement text.
6400
6563
  * @param replace_length the length of `replace` in bytes, or -1.
6401
6564
  * @returns the number of replaced matches.
6565
+ * @since 3.10
6402
6566
  */
6403
6567
  replace_all(replace: string, replace_length: number): number;
6404
6568
 
6405
6569
  /**
6406
6570
  * Enables or disables the search occurrences highlighting.
6407
6571
  * @param highlight the setting.
6572
+ * @since 3.10
6408
6573
  */
6409
6574
  set_highlight(highlight: boolean): void;
6410
6575
 
@@ -6414,6 +6579,7 @@ export namespace GtkSource {
6414
6579
  * To enable or disable the search highlighting, use
6415
6580
  * `gtk_source_search_context_set_highlight()`.
6416
6581
  * @param match_style a {@link GtkSource.Style}, or `null`.
6582
+ * @since 3.16
6417
6583
  */
6418
6584
  set_match_style(match_style: Style | null): void;
6419
6585
  }
@@ -6575,16 +6741,19 @@ export namespace GtkSource {
6575
6741
  // Methods
6576
6742
  /**
6577
6743
  * @returns whether to search at word boundaries.
6744
+ * @since 3.10
6578
6745
  */
6579
6746
  get_at_word_boundaries(): boolean;
6580
6747
 
6581
6748
  /**
6582
6749
  * @returns whether the search is case sensitive.
6750
+ * @since 3.10
6583
6751
  */
6584
6752
  get_case_sensitive(): boolean;
6585
6753
 
6586
6754
  /**
6587
6755
  * @returns whether to search by regular expressions.
6756
+ * @since 3.10
6588
6757
  */
6589
6758
  get_regex_enabled(): boolean;
6590
6759
 
@@ -6594,11 +6763,13 @@ export namespace GtkSource {
6594
6763
  * You may be interested to call `gtk_source_utils_escape_search_text()` after
6595
6764
  * this function.
6596
6765
  * @returns the text to search, or `null` if the search is disabled.
6766
+ * @since 3.10
6597
6767
  */
6598
6768
  get_search_text(): string | null;
6599
6769
 
6600
6770
  /**
6601
6771
  * @returns whether to wrap around the search.
6772
+ * @since 3.10
6602
6773
  */
6603
6774
  get_wrap_around(): boolean;
6604
6775
 
@@ -6608,12 +6779,14 @@ export namespace GtkSource {
6608
6779
  * multiple words. See also `gtk_text_iter_starts_word()` and
6609
6780
  * `gtk_text_iter_ends_word()`.
6610
6781
  * @param at_word_boundaries the setting.
6782
+ * @since 3.10
6611
6783
  */
6612
6784
  set_at_word_boundaries(at_word_boundaries: boolean): void;
6613
6785
 
6614
6786
  /**
6615
6787
  * Enables or disables the case sensitivity for the search.
6616
6788
  * @param case_sensitive the setting.
6789
+ * @since 3.10
6617
6790
  */
6618
6791
  set_case_sensitive(case_sensitive: boolean): void;
6619
6792
 
@@ -6626,6 +6799,7 @@ export namespace GtkSource {
6626
6799
  * [Regular expression syntax](https://developer.gnome.org/glib/stable/glib-regex-syntax.html)
6627
6800
  * page in the GLib reference manual.
6628
6801
  * @param regex_enabled the setting.
6802
+ * @since 3.10
6629
6803
  */
6630
6804
  set_regex_enabled(regex_enabled: boolean): void;
6631
6805
 
@@ -6637,6 +6811,7 @@ export namespace GtkSource {
6637
6811
  * You may be interested to call `gtk_source_utils_unescape_search_text()` before
6638
6812
  * this function.
6639
6813
  * @param search_text the nul-terminated text to search, or `null` to disable the search.
6814
+ * @since 3.10
6640
6815
  */
6641
6816
  set_search_text(search_text: string | null): void;
6642
6817
 
@@ -6646,6 +6821,7 @@ export namespace GtkSource {
6646
6821
  * occurrences are found. Similarly, the backward search continues to search at
6647
6822
  * the end of the buffer.
6648
6823
  * @param wrap_around the setting.
6824
+ * @since 3.10
6649
6825
  */
6650
6826
  set_wrap_around(wrap_around: boolean): void;
6651
6827
  }
@@ -6751,11 +6927,13 @@ export namespace GtkSource {
6751
6927
  * @param settings a {@link Gio.Settings} object.
6752
6928
  * @param key the `settings` key to bind.
6753
6929
  * @param flags flags for the binding.
6930
+ * @since 3.24
6754
6931
  */
6755
6932
  bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void;
6756
6933
 
6757
6934
  /**
6758
6935
  * @returns whether the {@link GtkSource.SpaceDrawer.matrix} property is enabled.
6936
+ * @since 3.24
6759
6937
  */
6760
6938
  get_enable_matrix(): boolean;
6761
6939
 
@@ -6766,6 +6944,7 @@ export namespace GtkSource {
6766
6944
  * The `gtk_source_space_drawer_get_types_for_locations()` function may be more
6767
6945
  * convenient to use.
6768
6946
  * @returns the {@link GtkSource.SpaceDrawer.matrix} value as a new floating {@link GLib.Variant} instance.
6947
+ * @since 3.24
6769
6948
  */
6770
6949
  get_matrix(): GLib.Variant;
6771
6950
 
@@ -6780,12 +6959,14 @@ export namespace GtkSource {
6780
6959
  * specified `locations`.
6781
6960
  * @param locations one or several {@link GtkSource.SpaceLocationFlags}.
6782
6961
  * @returns a combination of {@link GtkSource.SpaceTypeFlags}.
6962
+ * @since 3.24
6783
6963
  */
6784
6964
  get_types_for_locations(locations: SpaceLocationFlags): SpaceTypeFlags;
6785
6965
 
6786
6966
  /**
6787
6967
  * Sets whether the {@link GtkSource.SpaceDrawer.matrix} property is enabled.
6788
6968
  * @param enable_matrix the new value.
6969
+ * @since 3.24
6789
6970
  */
6790
6971
  set_enable_matrix(enable_matrix: boolean): void;
6791
6972
 
@@ -6798,6 +6979,7 @@ export namespace GtkSource {
6798
6979
  * The `gtk_source_space_drawer_set_types_for_locations()` function may be more
6799
6980
  * convenient to use.
6800
6981
  * @param matrix the new matrix value, or `null`.
6982
+ * @since 3.24
6801
6983
  */
6802
6984
  set_matrix(matrix: GLib.Variant | null): void;
6803
6985
 
@@ -6806,6 +6988,7 @@ export namespace GtkSource {
6806
6988
  * `locations`.
6807
6989
  * @param locations one or several {@link GtkSource.SpaceLocationFlags}.
6808
6990
  * @param types a combination of {@link GtkSource.SpaceTypeFlags}.
6991
+ * @since 3.24
6809
6992
  */
6810
6993
  set_types_for_locations(locations: SpaceLocationFlags, types: SpaceTypeFlags): void;
6811
6994
  }
@@ -7093,6 +7276,7 @@ export namespace GtkSource {
7093
7276
  * If `style` is `null`, the related *-set properties of {@link Gtk.TextTag} are set to
7094
7277
  * `false`.
7095
7278
  * @param tag a {@link Gtk.TextTag} to apply styles to.
7279
+ * @since 3.22
7096
7280
  */
7097
7281
  apply(tag: Gtk.TextTag): void;
7098
7282
 
@@ -7100,6 +7284,7 @@ export namespace GtkSource {
7100
7284
  * Creates a copy of `style`, that is a new {@link GtkSource.Style} instance which
7101
7285
  * has the same attributes set.
7102
7286
  * @returns copy of `style`, call `g_object_unref()` when you are done with it.
7287
+ * @since 2.0
7103
7288
  */
7104
7289
  copy(): Style;
7105
7290
  }
@@ -7192,32 +7377,38 @@ export namespace GtkSource {
7192
7377
  // Methods
7193
7378
  /**
7194
7379
  * @returns a `null`-terminated array containing the `scheme` authors or `null` if no author is specified by the style scheme.
7380
+ * @since 2.0
7195
7381
  */
7196
7382
  get_authors(): string[] | null;
7197
7383
 
7198
7384
  /**
7199
7385
  * @returns `scheme` description (if defined), or `null`.
7386
+ * @since 2.0
7200
7387
  */
7201
7388
  get_description(): string | null;
7202
7389
 
7203
7390
  /**
7204
7391
  * @returns `scheme` file name if the scheme was created parsing a style scheme file or `null` in the other cases.
7392
+ * @since 2.0
7205
7393
  */
7206
7394
  get_filename(): string | null;
7207
7395
 
7208
7396
  /**
7209
7397
  * @returns `scheme` id.
7398
+ * @since 2.0
7210
7399
  */
7211
7400
  get_id(): string;
7212
7401
 
7213
7402
  /**
7214
7403
  * @returns `scheme` name.
7404
+ * @since 2.0
7215
7405
  */
7216
7406
  get_name(): string;
7217
7407
 
7218
7408
  /**
7219
7409
  * @param style_id id of the style to retrieve.
7220
7410
  * @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.
7411
+ * @since 2.0
7221
7412
  */
7222
7413
  get_style(style_id: string): Style | null;
7223
7414
  }
@@ -7434,6 +7625,7 @@ export namespace GtkSource {
7434
7625
  *
7435
7626
  * See `gtk_actionable_set_action_name()` for more information.
7436
7627
  * @returns the action name, or `null` if none is set
7628
+ * @since 3.4
7437
7629
  */
7438
7630
  get_action_name(): string | null;
7439
7631
 
@@ -7442,6 +7634,7 @@ export namespace GtkSource {
7442
7634
  *
7443
7635
  * See `gtk_actionable_set_action_target_value()` for more information.
7444
7636
  * @returns the current target value
7637
+ * @since 3.4
7445
7638
  */
7446
7639
  get_action_target_value(): GLib.Variant;
7447
7640
 
@@ -7458,6 +7651,7 @@ export namespace GtkSource {
7458
7651
  * respectively. This is the same form used for actions in the {@link Gio.Menu}
7459
7652
  * associated with the window.
7460
7653
  * @param action_name an action name, or `null`
7654
+ * @since 3.4
7461
7655
  */
7462
7656
  set_action_name(action_name: string | null): void;
7463
7657
 
@@ -7482,6 +7676,7 @@ export namespace GtkSource {
7482
7676
  * be rendered as active (and the other buttons, with different targets,
7483
7677
  * rendered inactive).
7484
7678
  * @param target_value a {@link GLib.Variant} to set as the target value, or `null`
7679
+ * @since 3.4
7485
7680
  */
7486
7681
  set_action_target_value(target_value: GLib.Variant | null): void;
7487
7682
 
@@ -7498,6 +7693,7 @@ export namespace GtkSource {
7498
7693
  * `action` is the action name and `target` is the string to use
7499
7694
  * as the target.)
7500
7695
  * @param detailed_action_name the detailed action name
7696
+ * @since 3.4
7501
7697
  */
7502
7698
  set_detailed_action_name(detailed_action_name: string): void;
7503
7699
 
@@ -7505,6 +7701,7 @@ export namespace GtkSource {
7505
7701
  * Gets the action name for `actionable`.
7506
7702
  *
7507
7703
  * See `gtk_actionable_set_action_name()` for more information.
7704
+ * @since 3.4
7508
7705
  * @virtual
7509
7706
  */
7510
7707
  vfunc_get_action_name(): string | null;
@@ -7513,6 +7710,7 @@ export namespace GtkSource {
7513
7710
  * Gets the current target value of `actionable`.
7514
7711
  *
7515
7712
  * See `gtk_actionable_set_action_target_value()` for more information.
7713
+ * @since 3.4
7516
7714
  * @virtual
7517
7715
  */
7518
7716
  vfunc_get_action_target_value(): GLib.Variant;
@@ -7530,6 +7728,7 @@ export namespace GtkSource {
7530
7728
  * respectively. This is the same form used for actions in the {@link Gio.Menu}
7531
7729
  * associated with the window.
7532
7730
  * @param action_name an action name, or `null`
7731
+ * @since 3.4
7533
7732
  * @virtual
7534
7733
  */
7535
7734
  vfunc_set_action_name(action_name: string | null): void;
@@ -7555,6 +7754,7 @@ export namespace GtkSource {
7555
7754
  * be rendered as active (and the other buttons, with different targets,
7556
7755
  * rendered inactive).
7557
7756
  * @param target_value a {@link GLib.Variant} to set as the target value, or `null`
7757
+ * @since 3.4
7558
7758
  * @virtual
7559
7759
  */
7560
7760
  vfunc_set_action_target_value(target_value: GLib.Variant | null): void;
@@ -7576,12 +7776,16 @@ export namespace GtkSource {
7576
7776
  * > `gtk_activatable_get_related_action()` to retrieve the
7577
7777
  * > previous action.
7578
7778
  * @param action the {@link Gtk.Action} to set
7779
+ * @since 2.16
7780
+ * @deprecated since 3.10
7579
7781
  */
7580
7782
  do_set_related_action(action: Gtk.Action): void;
7581
7783
 
7582
7784
  /**
7583
7785
  * Gets the related {@link Gtk.Action} for `activatable`.
7584
7786
  * @returns the related {@link Gtk.Action} if one is set.
7787
+ * @since 2.16
7788
+ * @deprecated since 3.10
7585
7789
  */
7586
7790
  get_related_action(): Gtk.Action;
7587
7791
 
@@ -7590,6 +7794,8 @@ export namespace GtkSource {
7590
7794
  * and appearance when setting the related action or when
7591
7795
  * the action changes appearance.
7592
7796
  * @returns whether `activatable` uses its actions appearance.
7797
+ * @since 2.16
7798
+ * @deprecated since 3.10
7593
7799
  */
7594
7800
  get_use_action_appearance(): boolean;
7595
7801
 
@@ -7599,6 +7805,8 @@ export namespace GtkSource {
7599
7805
  * > {@link Gtk.Activatable} implementors need to handle the {@link Gtk.Activatable.related_action}
7600
7806
  * > property and call `gtk_activatable_do_set_related_action()` when it changes.
7601
7807
  * @param action the {@link Gtk.Action} to set
7808
+ * @since 2.16
7809
+ * @deprecated since 3.10
7602
7810
  */
7603
7811
  set_related_action(action: Gtk.Action): void;
7604
7812
 
@@ -7611,6 +7819,8 @@ export namespace GtkSource {
7611
7819
  * > `gtk_activatable_sync_action_properties()` to update `activatable`
7612
7820
  * > if needed.
7613
7821
  * @param use_appearance whether to use the actions appearance
7822
+ * @since 2.16
7823
+ * @deprecated since 3.10
7614
7824
  */
7615
7825
  set_use_action_appearance(use_appearance: boolean): void;
7616
7826
 
@@ -7620,6 +7830,8 @@ export namespace GtkSource {
7620
7830
  * or unset and by the implementing class when
7621
7831
  * {@link Gtk.Activatable.use_action_appearance} changes.
7622
7832
  * @param action the related {@link Gtk.Action} or `null`
7833
+ * @since 2.16
7834
+ * @deprecated since 3.10
7623
7835
  */
7624
7836
  sync_action_properties(action: Gtk.Action | null): void;
7625
7837
 
@@ -7629,6 +7841,8 @@ export namespace GtkSource {
7629
7841
  * or unset and by the implementing class when
7630
7842
  * {@link Gtk.Activatable.use_action_appearance} changes.
7631
7843
  * @param action the related {@link Gtk.Action} or `null`
7844
+ * @since 2.16
7845
+ * @deprecated since 3.10
7632
7846
  * @virtual
7633
7847
  */
7634
7848
  vfunc_sync_action_properties(action: Gtk.Action | null): void;
@@ -7646,17 +7860,20 @@ export namespace GtkSource {
7646
7860
  /**
7647
7861
  * Gets the currently-selected scheme.
7648
7862
  * @returns the currently-selected scheme.
7863
+ * @since 3.16
7649
7864
  */
7650
7865
  get_style_scheme(): StyleScheme;
7651
7866
 
7652
7867
  /**
7653
7868
  * Sets the scheme.
7654
7869
  * @param scheme a {@link GtkSource.StyleScheme}
7870
+ * @since 3.16
7655
7871
  */
7656
7872
  set_style_scheme(scheme: StyleScheme): void;
7657
7873
 
7658
7874
  /**
7659
7875
  * Gets the currently-selected scheme.
7876
+ * @since 3.16
7660
7877
  * @virtual
7661
7878
  */
7662
7879
  vfunc_get_style_scheme(): StyleScheme;
@@ -7664,6 +7881,7 @@ export namespace GtkSource {
7664
7881
  /**
7665
7882
  * Sets the scheme.
7666
7883
  * @param scheme a {@link GtkSource.StyleScheme}
7884
+ * @since 3.16
7667
7885
  * @virtual
7668
7886
  */
7669
7887
  vfunc_set_style_scheme(scheme: StyleScheme): void;
@@ -7690,6 +7908,7 @@ export namespace GtkSource {
7690
7908
  * Returns whether the widget should grab focus when it is clicked with the mouse.
7691
7909
  * See `gtk_widget_set_focus_on_click()`.
7692
7910
  * @returns `true` if the widget should grab focus when it is clicked with the mouse.
7911
+ * @since 3.20
7693
7912
  */
7694
7913
  get_focus_on_click(): boolean;
7695
7914
 
@@ -7699,6 +7918,7 @@ export namespace GtkSource {
7699
7918
  * you don’t want the keyboard focus removed from the main area of the
7700
7919
  * application.
7701
7920
  * @param focus_on_click whether the widget should grab focus when clicked with the mouse
7921
+ * @since 3.20
7702
7922
  */
7703
7923
  set_focus_on_click(focus_on_click: boolean): void;
7704
7924
  }
@@ -7814,17 +8034,20 @@ export namespace GtkSource {
7814
8034
  /**
7815
8035
  * Gets the currently-selected scheme.
7816
8036
  * @returns the currently-selected scheme.
8037
+ * @since 3.16
7817
8038
  */
7818
8039
  get_style_scheme(): StyleScheme;
7819
8040
 
7820
8041
  /**
7821
8042
  * Sets the scheme.
7822
8043
  * @param scheme a {@link GtkSource.StyleScheme}
8044
+ * @since 3.16
7823
8045
  */
7824
8046
  set_style_scheme(scheme: StyleScheme): void;
7825
8047
 
7826
8048
  /**
7827
8049
  * Gets the currently-selected scheme.
8050
+ * @since 3.16
7828
8051
  * @virtual
7829
8052
  */
7830
8053
  vfunc_get_style_scheme(): StyleScheme;
@@ -7832,6 +8055,7 @@ export namespace GtkSource {
7832
8055
  /**
7833
8056
  * Sets the scheme.
7834
8057
  * @param scheme a {@link GtkSource.StyleScheme}
8058
+ * @since 3.16
7835
8059
  * @virtual
7836
8060
  */
7837
8061
  vfunc_set_style_scheme(scheme: StyleScheme): void;
@@ -8643,6 +8867,7 @@ export namespace GtkSource {
8643
8867
  * Returns the {@link GtkSource.BackgroundPatternType} specifying if and how
8644
8868
  * the background pattern should be displayed for this `view`.
8645
8869
  * @returns the {@link GtkSource.BackgroundPatternType}.
8870
+ * @since 3.16
8646
8871
  */
8647
8872
  get_background_pattern(): BackgroundPatternType;
8648
8873
 
@@ -8661,6 +8886,7 @@ export namespace GtkSource {
8661
8886
  * and mark category icons are rendered in the left gutter.
8662
8887
  * @param window_type the gutter window type.
8663
8888
  * @returns the {@link GtkSource.Gutter}.
8889
+ * @since 2.8
8664
8890
  */
8665
8891
  get_gutter(window_type: Gtk.TextWindowType): Gutter;
8666
8892
 
@@ -8708,6 +8934,7 @@ export namespace GtkSource {
8708
8934
  /**
8709
8935
  * Returns whether line marks are displayed beside the text.
8710
8936
  * @returns `true` if the line marks are displayed.
8937
+ * @since 2.2
8711
8938
  */
8712
8939
  get_show_line_marks(): boolean;
8713
8940
 
@@ -8727,6 +8954,7 @@ export namespace GtkSource {
8727
8954
  * Returns `true` if pressing the Backspace key will try to delete spaces
8728
8955
  * up to the previous tab stop.
8729
8956
  * @returns `true` if smart Backspace handling is enabled.
8957
+ * @since 3.18
8730
8958
  */
8731
8959
  get_smart_backspace(): boolean;
8732
8960
 
@@ -8742,6 +8970,7 @@ export namespace GtkSource {
8742
8970
  * guaranteed to be the same for the lifetime of `view`. Each {@link GtkSource.View}
8743
8971
  * object has a different {@link GtkSource.SpaceDrawer}.
8744
8972
  * @returns the {@link GtkSource.SpaceDrawer} associated with `view`.
8973
+ * @since 3.24
8745
8974
  */
8746
8975
  get_space_drawer(): SpaceDrawer;
8747
8976
 
@@ -8764,6 +8993,7 @@ export namespace GtkSource {
8764
8993
  * empty lines are not indented.
8765
8994
  * @param start {@link Gtk.TextIter} of the first line to indent
8766
8995
  * @param end {@link Gtk.TextIter} of the last line to indent
8996
+ * @since 3.16
8767
8997
  */
8768
8998
  indent_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
8769
8999
 
@@ -8781,6 +9011,7 @@ export namespace GtkSource {
8781
9011
  /**
8782
9012
  * Set if and how the background pattern should be displayed.
8783
9013
  * @param background_pattern the {@link GtkSource.BackgroundPatternType}.
9014
+ * @since 3.16
8784
9015
  */
8785
9016
  set_background_pattern(background_pattern: BackgroundPatternType): void;
8786
9017
 
@@ -8854,6 +9085,7 @@ export namespace GtkSource {
8854
9085
  /**
8855
9086
  * If `true` line marks will be displayed beside the text.
8856
9087
  * @param show whether line marks should be displayed.
9088
+ * @since 2.2
8857
9089
  */
8858
9090
  set_show_line_marks(show: boolean): void;
8859
9091
 
@@ -8873,6 +9105,7 @@ export namespace GtkSource {
8873
9105
  * When set to `true`, pressing the Backspace key will try to delete spaces
8874
9106
  * up to the previous tab stop.
8875
9107
  * @param smart_backspace whether to enable smart Backspace handling.
9108
+ * @since 3.18
8876
9109
  */
8877
9110
  set_smart_backspace(smart_backspace: boolean): void;
8878
9111
 
@@ -8896,6 +9129,7 @@ export namespace GtkSource {
8896
9129
  * specified lines.
8897
9130
  * @param start {@link Gtk.TextIter} of the first line to indent
8898
9131
  * @param end {@link Gtk.TextIter} of the last line to indent
9132
+ * @since 3.16
8899
9133
  */
8900
9134
  unindent_lines(start: Gtk.TextIter, end: Gtk.TextIter): void;
8901
9135
 
@@ -8964,36 +9198,42 @@ export namespace GtkSource {
8964
9198
  * display overlayed graphics, like the overshoot indication,
8965
9199
  * at the right position.
8966
9200
  * @returns `true` if `border` has been set
9201
+ * @since 3.16
8967
9202
  */
8968
9203
  get_border(): [boolean, Gtk.Border];
8969
9204
 
8970
9205
  /**
8971
9206
  * Retrieves the {@link Gtk.Adjustment} used for horizontal scrolling.
8972
9207
  * @returns horizontal {@link Gtk.Adjustment}.
9208
+ * @since 3.0
8973
9209
  */
8974
9210
  get_hadjustment(): Gtk.Adjustment;
8975
9211
 
8976
9212
  /**
8977
9213
  * Gets the horizontal {@link Gtk.ScrollablePolicy}.
8978
9214
  * @returns The horizontal {@link Gtk.ScrollablePolicy}.
9215
+ * @since 3.0
8979
9216
  */
8980
9217
  get_hscroll_policy(): Gtk.ScrollablePolicy;
8981
9218
 
8982
9219
  /**
8983
9220
  * Retrieves the {@link Gtk.Adjustment} used for vertical scrolling.
8984
9221
  * @returns vertical {@link Gtk.Adjustment}.
9222
+ * @since 3.0
8985
9223
  */
8986
9224
  get_vadjustment(): Gtk.Adjustment;
8987
9225
 
8988
9226
  /**
8989
9227
  * Gets the vertical {@link Gtk.ScrollablePolicy}.
8990
9228
  * @returns The vertical {@link Gtk.ScrollablePolicy}.
9229
+ * @since 3.0
8991
9230
  */
8992
9231
  get_vscroll_policy(): Gtk.ScrollablePolicy;
8993
9232
 
8994
9233
  /**
8995
9234
  * Sets the horizontal adjustment of the {@link Gtk.Scrollable}.
8996
9235
  * @param hadjustment a {@link Gtk.Adjustment}
9236
+ * @since 3.0
8997
9237
  */
8998
9238
  set_hadjustment(hadjustment: Gtk.Adjustment | null): void;
8999
9239
 
@@ -9002,12 +9242,14 @@ export namespace GtkSource {
9002
9242
  * horizontal scrolling should start below the minimum width or
9003
9243
  * below the natural width.
9004
9244
  * @param policy the horizontal {@link Gtk.ScrollablePolicy}
9245
+ * @since 3.0
9005
9246
  */
9006
9247
  set_hscroll_policy(policy: Gtk.ScrollablePolicy): void;
9007
9248
 
9008
9249
  /**
9009
9250
  * Sets the vertical adjustment of the {@link Gtk.Scrollable}.
9010
9251
  * @param vadjustment a {@link Gtk.Adjustment}
9252
+ * @since 3.0
9011
9253
  */
9012
9254
  set_vadjustment(vadjustment: Gtk.Adjustment | null): void;
9013
9255
 
@@ -9016,6 +9258,7 @@ export namespace GtkSource {
9016
9258
  * vertical scrolling should start below the minimum height or
9017
9259
  * below the natural height.
9018
9260
  * @param policy the vertical {@link Gtk.ScrollablePolicy}
9261
+ * @since 3.0
9019
9262
  */
9020
9263
  set_vscroll_policy(policy: Gtk.ScrollablePolicy): void;
9021
9264
 
@@ -9025,6 +9268,7 @@ export namespace GtkSource {
9025
9268
  * be treeview headers. GTK+ can use this information to
9026
9269
  * display overlayed graphics, like the overshoot indication,
9027
9270
  * at the right position.
9271
+ * @since 3.16
9028
9272
  * @virtual
9029
9273
  */
9030
9274
  vfunc_get_border(): [boolean, Gtk.Border];
@@ -9128,11 +9372,13 @@ export namespace GtkSource {
9128
9372
  // Static methods
9129
9373
  /**
9130
9374
  * Gets all encodings.
9375
+ * @since 3.14
9131
9376
  */
9132
9377
  static get_all(): Encoding[];
9133
9378
 
9134
9379
  /**
9135
9380
  * Gets the {@link GtkSource.Encoding} for the current locale. See also `g_get_charset()`.
9381
+ * @since 3.14
9136
9382
  */
9137
9383
  static get_current(): Encoding;
9138
9384
 
@@ -9143,6 +9389,7 @@ export namespace GtkSource {
9143
9389
  * This function returns a different list depending on the current locale (i.e.
9144
9390
  * language, country and default encoding). The UTF-8 encoding and the current
9145
9391
  * locale encoding are guaranteed to be present in the returned list.
9392
+ * @since 3.18
9146
9393
  */
9147
9394
  static get_default_candidates(): Encoding[];
9148
9395
 
@@ -9150,20 +9397,26 @@ export namespace GtkSource {
9150
9397
  * Gets a {@link GtkSource.Encoding} from a character set such as "UTF-8" or
9151
9398
  * "ISO-8859-1".
9152
9399
  * @param charset a character set.
9400
+ * @since 3.14
9153
9401
  */
9154
9402
  static get_from_charset(charset: string): Encoding | null;
9155
9403
 
9404
+ /**
9405
+ * @since 3.14
9406
+ */
9156
9407
  static get_utf8(): Encoding;
9157
9408
 
9158
9409
  // Methods
9159
9410
  /**
9160
9411
  * Used by language bindings.
9161
9412
  * @returns a copy of `enc`.
9413
+ * @since 3.14
9162
9414
  */
9163
9415
  copy(): Encoding;
9164
9416
 
9165
9417
  /**
9166
9418
  * Used by language bindings.
9419
+ * @since 3.14
9167
9420
  */
9168
9421
  free(): void;
9169
9422
 
@@ -9171,17 +9424,20 @@ export namespace GtkSource {
9171
9424
  * Gets the character set of the {@link GtkSource.Encoding}, such as "UTF-8" or
9172
9425
  * "ISO-8859-1".
9173
9426
  * @returns the character set of the {@link GtkSource.Encoding}.
9427
+ * @since 3.14
9174
9428
  */
9175
9429
  get_charset(): string;
9176
9430
 
9177
9431
  /**
9178
9432
  * Gets the name of the {@link GtkSource.Encoding} such as "Unicode" or "Western".
9179
9433
  * @returns the name of the {@link GtkSource.Encoding}.
9434
+ * @since 3.14
9180
9435
  */
9181
9436
  get_name(): string;
9182
9437
 
9183
9438
  /**
9184
9439
  * @returns a string representation. Free with `g_free()` when no longer needed.
9440
+ * @since 3.14
9185
9441
  */
9186
9442
  to_string(): string;
9187
9443
  }
@@ -9369,17 +9625,20 @@ export namespace GtkSource {
9369
9625
  /**
9370
9626
  * Gets the subregion at this iterator.
9371
9627
  * @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.
9628
+ * @since 3.22
9372
9629
  */
9373
9630
  get_subregion(): [boolean, Gtk.TextIter | null, Gtk.TextIter | null];
9374
9631
 
9375
9632
  /**
9376
9633
  * @returns whether `iter` is the end iterator.
9634
+ * @since 3.22
9377
9635
  */
9378
9636
  is_end(): boolean;
9379
9637
 
9380
9638
  /**
9381
9639
  * Moves `iter` to the next subregion.
9382
9640
  * @returns `true` if `iter` moved and is dereferenceable, or `false` if `iter` has been set to the end iterator.
9641
+ * @since 3.22
9383
9642
  */
9384
9643
  next(): boolean;
9385
9644
  }
@@ -9520,6 +9779,7 @@ export namespace GtkSource {
9520
9779
 
9521
9780
  /**
9522
9781
  * Gets the {@link Gio.Icon} for the icon of `proposal`.
9782
+ * @since 3.18
9523
9783
  * @virtual
9524
9784
  */
9525
9785
  vfunc_get_gicon(): Gio.Icon | null;
@@ -9532,6 +9792,7 @@ export namespace GtkSource {
9532
9792
 
9533
9793
  /**
9534
9794
  * Gets the icon name of `proposal`.
9795
+ * @since 3.18
9535
9796
  * @virtual
9536
9797
  */
9537
9798
  vfunc_get_icon_name(): string | null;
@@ -9616,6 +9877,7 @@ export namespace GtkSource {
9616
9877
  /**
9617
9878
  * Gets the {@link Gio.Icon} for the icon of `proposal`.
9618
9879
  * @returns A {@link Gio.Icon} with the icon of `proposal`.
9880
+ * @since 3.18
9619
9881
  */
9620
9882
  get_gicon(): Gio.Icon | null;
9621
9883
 
@@ -9628,6 +9890,7 @@ export namespace GtkSource {
9628
9890
  /**
9629
9891
  * Gets the icon name of `proposal`.
9630
9892
  * @returns The icon name of `proposal`.
9893
+ * @since 3.18
9631
9894
  */
9632
9895
  get_icon_name(): string | null;
9633
9896
 
@@ -9715,6 +9978,7 @@ export namespace GtkSource {
9715
9978
 
9716
9979
  /**
9717
9980
  * Gets the {@link Gio.Icon} for the icon of `provider`.
9981
+ * @since 3.18
9718
9982
  * @virtual
9719
9983
  */
9720
9984
  vfunc_get_gicon(): Gio.Icon | null;
@@ -9727,6 +9991,7 @@ export namespace GtkSource {
9727
9991
 
9728
9992
  /**
9729
9993
  * Gets the icon name of `provider`.
9994
+ * @since 3.18
9730
9995
  * @virtual
9731
9996
  */
9732
9997
  vfunc_get_icon_name(): string | null;
@@ -9868,6 +10133,7 @@ export namespace GtkSource {
9868
10133
  /**
9869
10134
  * Gets the {@link Gio.Icon} for the icon of `provider`.
9870
10135
  * @returns The icon to be used for the provider, or `null` if the provider does not have a special icon.
10136
+ * @since 3.18
9871
10137
  */
9872
10138
  get_gicon(): Gio.Icon | null;
9873
10139
 
@@ -9880,6 +10146,7 @@ export namespace GtkSource {
9880
10146
  /**
9881
10147
  * Gets the icon name of `provider`.
9882
10148
  * @returns The icon name to be used for the provider, or `null` if the provider does not have a special icon.
10149
+ * @since 3.18
9883
10150
  */
9884
10151
  get_icon_name(): string | null;
9885
10152
 
@@ -9992,6 +10259,7 @@ export namespace GtkSource {
9992
10259
  // Virtual methods
9993
10260
  /**
9994
10261
  * Gets the currently-selected scheme.
10262
+ * @since 3.16
9995
10263
  * @virtual
9996
10264
  */
9997
10265
  vfunc_get_style_scheme(): StyleScheme;
@@ -9999,6 +10267,7 @@ export namespace GtkSource {
9999
10267
  /**
10000
10268
  * Sets the scheme.
10001
10269
  * @param scheme a {@link GtkSource.StyleScheme}
10270
+ * @since 3.16
10002
10271
  * @virtual
10003
10272
  */
10004
10273
  vfunc_set_style_scheme(scheme: StyleScheme): void;
@@ -10044,12 +10313,14 @@ export namespace GtkSource {
10044
10313
  /**
10045
10314
  * Gets the currently-selected scheme.
10046
10315
  * @returns the currently-selected scheme.
10316
+ * @since 3.16
10047
10317
  */
10048
10318
  get_style_scheme(): StyleScheme;
10049
10319
 
10050
10320
  /**
10051
10321
  * Sets the scheme.
10052
10322
  * @param scheme a {@link GtkSource.StyleScheme}
10323
+ * @since 3.16
10053
10324
  */
10054
10325
  set_style_scheme(scheme: StyleScheme): void;
10055
10326
  }
@@ -10071,36 +10342,42 @@ export namespace GtkSource {
10071
10342
  * Begin a not undoable action on the buffer. All changes between this call
10072
10343
  * and the call to `gtk_source_undo_manager_end_not_undoable_action()` cannot
10073
10344
  * be undone. This function should be re-entrant.
10345
+ * @since 2.10
10074
10346
  * @virtual
10075
10347
  */
10076
10348
  vfunc_begin_not_undoable_action(): void;
10077
10349
 
10078
10350
  /**
10079
10351
  * Get whether there are redo operations available.
10352
+ * @since 2.10
10080
10353
  * @virtual
10081
10354
  */
10082
10355
  vfunc_can_redo(): boolean;
10083
10356
 
10084
10357
  /**
10085
10358
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_redo_changed | GtkSource.UndoManager::can-redo-changed} signal.
10359
+ * @since 2.10
10086
10360
  * @virtual
10087
10361
  */
10088
10362
  vfunc_can_redo_changed(): void;
10089
10363
 
10090
10364
  /**
10091
10365
  * Get whether there are undo operations available.
10366
+ * @since 2.10
10092
10367
  * @virtual
10093
10368
  */
10094
10369
  vfunc_can_undo(): boolean;
10095
10370
 
10096
10371
  /**
10097
10372
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_undo_changed | GtkSource.UndoManager::can-undo-changed} signal.
10373
+ * @since 2.10
10098
10374
  * @virtual
10099
10375
  */
10100
10376
  vfunc_can_undo_changed(): void;
10101
10377
 
10102
10378
  /**
10103
10379
  * Ends a not undoable action on the buffer.
10380
+ * @since 2.10
10104
10381
  * @virtual
10105
10382
  */
10106
10383
  vfunc_end_not_undoable_action(): void;
@@ -10109,6 +10386,7 @@ export namespace GtkSource {
10109
10386
  * Perform a single redo. Calling this function when there are no redo operations
10110
10387
  * available is an error. Use `gtk_source_undo_manager_can_redo()` to find out
10111
10388
  * if there are redo operations available.
10389
+ * @since 2.10
10112
10390
  * @virtual
10113
10391
  */
10114
10392
  vfunc_redo(): void;
@@ -10117,6 +10395,7 @@ export namespace GtkSource {
10117
10395
  * Perform a single undo. Calling this function when there are no undo operations
10118
10396
  * available is an error. Use `gtk_source_undo_manager_can_undo()` to find out
10119
10397
  * if there are undo operations available.
10398
+ * @since 2.10
10120
10399
  * @virtual
10121
10400
  */
10122
10401
  vfunc_undo(): void;
@@ -10141,33 +10420,39 @@ export namespace GtkSource {
10141
10420
  * Begin a not undoable action on the buffer. All changes between this call
10142
10421
  * and the call to `gtk_source_undo_manager_end_not_undoable_action()` cannot
10143
10422
  * be undone. This function should be re-entrant.
10423
+ * @since 2.10
10144
10424
  */
10145
10425
  begin_not_undoable_action(): void;
10146
10426
 
10147
10427
  /**
10148
10428
  * Get whether there are redo operations available.
10149
10429
  * @returns `true` if there are redo operations available, `false` otherwise
10430
+ * @since 2.10
10150
10431
  */
10151
10432
  can_redo(): boolean;
10152
10433
 
10153
10434
  /**
10154
10435
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_redo_changed | GtkSource.UndoManager::can-redo-changed} signal.
10436
+ * @since 2.10
10155
10437
  */
10156
10438
  can_redo_changed(): void;
10157
10439
 
10158
10440
  /**
10159
10441
  * Get whether there are undo operations available.
10160
10442
  * @returns `true` if there are undo operations available, `false` otherwise
10443
+ * @since 2.10
10161
10444
  */
10162
10445
  can_undo(): boolean;
10163
10446
 
10164
10447
  /**
10165
10448
  * Emits the {@link GtkSource.UndoManager.SignalSignatures.can_undo_changed | GtkSource.UndoManager::can-undo-changed} signal.
10449
+ * @since 2.10
10166
10450
  */
10167
10451
  can_undo_changed(): void;
10168
10452
 
10169
10453
  /**
10170
10454
  * Ends a not undoable action on the buffer.
10455
+ * @since 2.10
10171
10456
  */
10172
10457
  end_not_undoable_action(): void;
10173
10458
 
@@ -10175,6 +10460,7 @@ export namespace GtkSource {
10175
10460
  * Perform a single redo. Calling this function when there are no redo operations
10176
10461
  * available is an error. Use `gtk_source_undo_manager_can_redo()` to find out
10177
10462
  * if there are redo operations available.
10463
+ * @since 2.10
10178
10464
  */
10179
10465
  redo(): void;
10180
10466
 
@@ -10182,6 +10468,7 @@ export namespace GtkSource {
10182
10468
  * Perform a single undo. Calling this function when there are no undo operations
10183
10469
  * available is an error. Use `gtk_source_undo_manager_can_undo()` to find out
10184
10470
  * if there are undo operations available.
10471
+ * @since 2.10
10185
10472
  */
10186
10473
  undo(): void;
10187
10474
  }