@girs/gcrui-3 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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gcrui-3)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GcrUi-3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.3.0.
8
+ GJS TypeScript type definitions for GcrUi-3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
9
9
 
10
10
  ## Install
11
11
 
@@ -230,6 +230,23 @@ export interface Widgets {
230
230
  /** Every GType this namespace can create. A consumer derives its own tag map. */
231
231
  export type WidgetGType = keyof Widgets;
232
232
 
233
+ // ---------------------------------------------------------------------------
234
+ // Child holders — the same shape, for objects that CARRY a widget without being one.
235
+ //
236
+ // `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
237
+ // `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
238
+ // them exactly like a container, so they belong in the vocabulary; a check asking "is
239
+ // this a widget" must still be able to say no. Hence a sibling table rather than four
240
+ // more rows in `Widgets`: concatenate them when you mean both.
241
+ // ---------------------------------------------------------------------------
242
+
243
+ export interface ChildHolders {
244
+
245
+ }
246
+
247
+ /** Every GType this namespace holds a child in without it being a widget. */
248
+ export type ChildHolderGType = keyof ChildHolders;
249
+
233
250
  /** The writable, optional, GObject-keyed property surface of one GType. */
234
251
  export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
235
252
 
@@ -265,6 +282,9 @@ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
265
282
  /** Widget GType -> every declaration its members come from, self first. */
266
283
  export const DECLS: Readonly<Record<string, readonly string[]>>;
267
284
 
285
+ /** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
286
+ export const CHILD_HOLDERS: readonly string[];
287
+
268
288
  /** Enum GType -> the nicks this surface offers. */
269
289
  export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
270
290
 
@@ -36,6 +36,12 @@ export const DECLS = {
36
36
  GcrViewerWidget: ['GcrViewerWidget', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
37
37
  };
38
38
 
39
+ // The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
40
+ // and descend from `GObject.Object`. A renderer places them like a container; a check
41
+ // asking "is this a widget" must not count them. Derived from the accessor pair, never
42
+ // from a list — the count is in the provenance line above.
43
+ export const CHILD_HOLDERS = [];
44
+
39
45
  export const ENUM_NICKS = {};
40
46
 
41
47
  export const SLOT_CANDIDATES = {};
package/gcrui-3.d.ts CHANGED
@@ -796,6 +796,7 @@ export namespace GcrUi {
796
796
  * and `root` as the virtual root.
797
797
  * @param root A {@link Gtk.TreePath} or `null`.
798
798
  * @returns A new {@link Gtk.TreeModel}.
799
+ * @since 2.4
799
800
  */
800
801
  filter_new(root: Gtk.TreePath | null): Gtk.TreeModel;
801
802
 
@@ -872,6 +873,7 @@ export namespace GcrUi {
872
873
  * return value for this string.
873
874
  * @param iter a {@link Gtk.TreeIter}-struct
874
875
  * @returns a newly-allocated string. Must be freed with `g_free()`.
876
+ * @since 2.2
875
877
  */
876
878
  get_string_from_iter(iter: Gtk.TreeIter): string;
877
879
 
@@ -962,6 +964,7 @@ export namespace GcrUi {
962
964
  * set to be invalid.
963
965
  * @param iter the {@link Gtk.TreeIter}-struct
964
966
  * @returns `true` if `iter` has been changed to the previous node
967
+ * @since 3.0
965
968
  */
966
969
  iter_previous(iter: Gtk.TreeIter): boolean;
967
970
 
@@ -1031,6 +1034,7 @@ export namespace GcrUi {
1031
1034
  * @param path a {@link Gtk.TreePath}-struct pointing to the tree node whose children have been reordered
1032
1035
  * @param iter a valid {@link Gtk.TreeIter}-struct pointing to the node whose children have been reordered, or `null` if the depth of `path` is 0
1033
1036
  * @param new_order an array of integers mapping the current position of each child to its old position before the re-ordering, i.e. `new_order``[newpos] = oldpos`
1037
+ * @since 3.10
1034
1038
  */
1035
1039
  rows_reordered(path: Gtk.TreePath, iter: Gtk.TreeIter | null, new_order: number[]): void;
1036
1040
 
@@ -1174,6 +1178,7 @@ export namespace GcrUi {
1174
1178
  * If there is no previous `iter`, `false` is returned and `iter` is
1175
1179
  * set to be invalid.
1176
1180
  * @param iter the {@link Gtk.TreeIter}-struct
1181
+ * @since 3.0
1177
1182
  * @virtual
1178
1183
  */
1179
1184
  vfunc_iter_previous(iter: Gtk.TreeIter): boolean;
@@ -1600,12 +1605,14 @@ export namespace GcrUi {
1600
1605
  * @param cell a {@link Gtk.CellRenderer}
1601
1606
  * @param attribute an attribute on the renderer
1602
1607
  * @param column the column position on the model to get the attribute from
1608
+ * @since 2.4
1603
1609
  */
1604
1610
  add_attribute(cell: Gtk.CellRenderer, attribute: string, column: number): void;
1605
1611
 
1606
1612
  /**
1607
1613
  * Unsets all the mappings on all renderers on `cell_layout` and
1608
1614
  * removes all renderers from `cell_layout`.
1615
+ * @since 2.4
1609
1616
  */
1610
1617
  clear(): void;
1611
1618
 
@@ -1613,6 +1620,7 @@ export namespace GcrUi {
1613
1620
  * Clears all existing attributes previously set with
1614
1621
  * `gtk_cell_layout_set_attributes()`.
1615
1622
  * @param cell a {@link Gtk.CellRenderer} to clear the attribute mapping on
1623
+ * @since 2.4
1616
1624
  */
1617
1625
  clear_attributes(cell: Gtk.CellRenderer): void;
1618
1626
 
@@ -1621,12 +1629,14 @@ export namespace GcrUi {
1621
1629
  * if called on a {@link Gtk.CellArea} or might be `null` if no {@link Gtk.CellArea}
1622
1630
  * is used by `cell_layout`.
1623
1631
  * @returns the cell area used by `cell_layout`, or `null` in case no cell area is used.
1632
+ * @since 3.0
1624
1633
  */
1625
1634
  get_area(): Gtk.CellArea | null;
1626
1635
 
1627
1636
  /**
1628
1637
  * Returns the cell renderers which have been added to `cell_layout`.
1629
1638
  * @returns a list of cell renderers. The list, but not the renderers has been newly allocated and should be freed with `g_list_free()` when no longer needed.
1639
+ * @since 2.12
1630
1640
  */
1631
1641
  get_cells(): Gtk.CellRenderer[];
1632
1642
 
@@ -1638,6 +1648,7 @@ export namespace GcrUi {
1638
1648
  * Note that reusing the same cell renderer is not supported.
1639
1649
  * @param cell a {@link Gtk.CellRenderer}
1640
1650
  * @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
1651
+ * @since 2.4
1641
1652
  */
1642
1653
  pack_end(cell: Gtk.CellRenderer, expand: boolean): void;
1643
1654
 
@@ -1649,6 +1660,7 @@ export namespace GcrUi {
1649
1660
  * Note that reusing the same cell renderer is not supported.
1650
1661
  * @param cell a {@link Gtk.CellRenderer}
1651
1662
  * @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
1663
+ * @since 2.4
1652
1664
  */
1653
1665
  pack_start(cell: Gtk.CellRenderer, expand: boolean): void;
1654
1666
 
@@ -1659,6 +1671,7 @@ export namespace GcrUi {
1659
1671
  * for this to function properly.
1660
1672
  * @param cell a {@link Gtk.CellRenderer} to reorder
1661
1673
  * @param position new position to insert `cell` at
1674
+ * @since 2.4
1662
1675
  */
1663
1676
  reorder(cell: Gtk.CellRenderer, position: number): void;
1664
1677
 
@@ -1672,6 +1685,7 @@ export namespace GcrUi {
1672
1685
  * `func` may be `null` to remove a previously set function.
1673
1686
  * @param cell a {@link Gtk.CellRenderer}
1674
1687
  * @param func the {@link Gtk.CellLayoutDataFunc} to use, or `null`
1688
+ * @since 2.4
1675
1689
  */
1676
1690
  set_cell_data_func(cell: Gtk.CellRenderer, func: Gtk.CellLayoutDataFunc | null): void;
1677
1691
 
@@ -1685,6 +1699,7 @@ export namespace GcrUi {
1685
1699
  * @param cell a {@link Gtk.CellRenderer}
1686
1700
  * @param attribute an attribute on the renderer
1687
1701
  * @param column the column position on the model to get the attribute from
1702
+ * @since 2.4
1688
1703
  * @virtual
1689
1704
  */
1690
1705
  vfunc_add_attribute(cell: Gtk.CellRenderer, attribute: string, column: number): void;
@@ -1692,6 +1707,7 @@ export namespace GcrUi {
1692
1707
  /**
1693
1708
  * Unsets all the mappings on all renderers on `cell_layout` and
1694
1709
  * removes all renderers from `cell_layout`.
1710
+ * @since 2.4
1695
1711
  * @virtual
1696
1712
  */
1697
1713
  vfunc_clear(): void;
@@ -1700,6 +1716,7 @@ export namespace GcrUi {
1700
1716
  * Clears all existing attributes previously set with
1701
1717
  * `gtk_cell_layout_set_attributes()`.
1702
1718
  * @param cell a {@link Gtk.CellRenderer} to clear the attribute mapping on
1719
+ * @since 2.4
1703
1720
  * @virtual
1704
1721
  */
1705
1722
  vfunc_clear_attributes(cell: Gtk.CellRenderer): void;
@@ -1708,12 +1725,14 @@ export namespace GcrUi {
1708
1725
  * Returns the underlying {@link Gtk.CellArea} which might be `cell_layout`
1709
1726
  * if called on a {@link Gtk.CellArea} or might be `null` if no {@link Gtk.CellArea}
1710
1727
  * is used by `cell_layout`.
1728
+ * @since 3.0
1711
1729
  * @virtual
1712
1730
  */
1713
1731
  vfunc_get_area(): Gtk.CellArea | null;
1714
1732
 
1715
1733
  /**
1716
1734
  * Returns the cell renderers which have been added to `cell_layout`.
1735
+ * @since 2.12
1717
1736
  * @virtual
1718
1737
  */
1719
1738
  vfunc_get_cells(): Gtk.CellRenderer[];
@@ -1726,6 +1745,7 @@ export namespace GcrUi {
1726
1745
  * Note that reusing the same cell renderer is not supported.
1727
1746
  * @param cell a {@link Gtk.CellRenderer}
1728
1747
  * @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
1748
+ * @since 2.4
1729
1749
  * @virtual
1730
1750
  */
1731
1751
  vfunc_pack_end(cell: Gtk.CellRenderer, expand: boolean): void;
@@ -1738,6 +1758,7 @@ export namespace GcrUi {
1738
1758
  * Note that reusing the same cell renderer is not supported.
1739
1759
  * @param cell a {@link Gtk.CellRenderer}
1740
1760
  * @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
1761
+ * @since 2.4
1741
1762
  * @virtual
1742
1763
  */
1743
1764
  vfunc_pack_start(cell: Gtk.CellRenderer, expand: boolean): void;
@@ -1749,6 +1770,7 @@ export namespace GcrUi {
1749
1770
  * for this to function properly.
1750
1771
  * @param cell a {@link Gtk.CellRenderer} to reorder
1751
1772
  * @param position new position to insert `cell` at
1773
+ * @since 2.4
1752
1774
  * @virtual
1753
1775
  */
1754
1776
  vfunc_reorder(cell: Gtk.CellRenderer, position: number): void;
@@ -1763,6 +1785,7 @@ export namespace GcrUi {
1763
1785
  * `func` may be `null` to remove a previously set function.
1764
1786
  * @param cell a {@link Gtk.CellRenderer}
1765
1787
  * @param func the {@link Gtk.CellLayoutDataFunc} to use, or `null`
1788
+ * @since 2.4
1766
1789
  * @virtual
1767
1790
  */
1768
1791
  vfunc_set_cell_data_func(cell: Gtk.CellRenderer, func: Gtk.CellLayoutDataFunc | null): void;
@@ -1789,6 +1812,7 @@ export namespace GcrUi {
1789
1812
  * Returns whether the widget should grab focus when it is clicked with the mouse.
1790
1813
  * See `gtk_widget_set_focus_on_click()`.
1791
1814
  * @returns `true` if the widget should grab focus when it is clicked with the mouse.
1815
+ * @since 3.20
1792
1816
  */
1793
1817
  get_focus_on_click(): boolean;
1794
1818
 
@@ -1798,6 +1822,7 @@ export namespace GcrUi {
1798
1822
  * you don’t want the keyboard focus removed from the main area of the
1799
1823
  * application.
1800
1824
  * @param focus_on_click whether the widget should grab focus when clicked with the mouse
1825
+ * @since 3.20
1801
1826
  */
1802
1827
  set_focus_on_click(focus_on_click: boolean): void;
1803
1828
  }
@@ -2158,6 +2183,7 @@ export namespace GcrUi {
2158
2183
  *
2159
2184
  * See `gtk_actionable_set_action_name()` for more information.
2160
2185
  * @returns the action name, or `null` if none is set
2186
+ * @since 3.4
2161
2187
  */
2162
2188
  get_action_name(): string | null;
2163
2189
 
@@ -2166,6 +2192,7 @@ export namespace GcrUi {
2166
2192
  *
2167
2193
  * See `gtk_actionable_set_action_target_value()` for more information.
2168
2194
  * @returns the current target value
2195
+ * @since 3.4
2169
2196
  */
2170
2197
  get_action_target_value(): GLib.Variant;
2171
2198
 
@@ -2182,6 +2209,7 @@ export namespace GcrUi {
2182
2209
  * respectively. This is the same form used for actions in the {@link Gio.Menu}
2183
2210
  * associated with the window.
2184
2211
  * @param action_name an action name, or `null`
2212
+ * @since 3.4
2185
2213
  */
2186
2214
  set_action_name(action_name: string | null): void;
2187
2215
 
@@ -2206,6 +2234,7 @@ export namespace GcrUi {
2206
2234
  * be rendered as active (and the other buttons, with different targets,
2207
2235
  * rendered inactive).
2208
2236
  * @param target_value a {@link GLib.Variant} to set as the target value, or `null`
2237
+ * @since 3.4
2209
2238
  */
2210
2239
  set_action_target_value(target_value: GLib.Variant | null): void;
2211
2240
 
@@ -2222,6 +2251,7 @@ export namespace GcrUi {
2222
2251
  * `action` is the action name and `target` is the string to use
2223
2252
  * as the target.)
2224
2253
  * @param detailed_action_name the detailed action name
2254
+ * @since 3.4
2225
2255
  */
2226
2256
  set_detailed_action_name(detailed_action_name: string): void;
2227
2257
 
@@ -2229,6 +2259,7 @@ export namespace GcrUi {
2229
2259
  * Gets the action name for `actionable`.
2230
2260
  *
2231
2261
  * See `gtk_actionable_set_action_name()` for more information.
2262
+ * @since 3.4
2232
2263
  * @virtual
2233
2264
  */
2234
2265
  vfunc_get_action_name(): string | null;
@@ -2237,6 +2268,7 @@ export namespace GcrUi {
2237
2268
  * Gets the current target value of `actionable`.
2238
2269
  *
2239
2270
  * See `gtk_actionable_set_action_target_value()` for more information.
2271
+ * @since 3.4
2240
2272
  * @virtual
2241
2273
  */
2242
2274
  vfunc_get_action_target_value(): GLib.Variant;
@@ -2254,6 +2286,7 @@ export namespace GcrUi {
2254
2286
  * respectively. This is the same form used for actions in the {@link Gio.Menu}
2255
2287
  * associated with the window.
2256
2288
  * @param action_name an action name, or `null`
2289
+ * @since 3.4
2257
2290
  * @virtual
2258
2291
  */
2259
2292
  vfunc_set_action_name(action_name: string | null): void;
@@ -2279,6 +2312,7 @@ export namespace GcrUi {
2279
2312
  * be rendered as active (and the other buttons, with different targets,
2280
2313
  * rendered inactive).
2281
2314
  * @param target_value a {@link GLib.Variant} to set as the target value, or `null`
2315
+ * @since 3.4
2282
2316
  * @virtual
2283
2317
  */
2284
2318
  vfunc_set_action_target_value(target_value: GLib.Variant | null): void;
@@ -2300,12 +2334,16 @@ export namespace GcrUi {
2300
2334
  * > `gtk_activatable_get_related_action()` to retrieve the
2301
2335
  * > previous action.
2302
2336
  * @param action the {@link Gtk.Action} to set
2337
+ * @since 2.16
2338
+ * @deprecated since 3.10
2303
2339
  */
2304
2340
  do_set_related_action(action: Gtk.Action): void;
2305
2341
 
2306
2342
  /**
2307
2343
  * Gets the related {@link Gtk.Action} for `activatable`.
2308
2344
  * @returns the related {@link Gtk.Action} if one is set.
2345
+ * @since 2.16
2346
+ * @deprecated since 3.10
2309
2347
  */
2310
2348
  get_related_action(): Gtk.Action;
2311
2349
 
@@ -2314,6 +2352,8 @@ export namespace GcrUi {
2314
2352
  * and appearance when setting the related action or when
2315
2353
  * the action changes appearance.
2316
2354
  * @returns whether `activatable` uses its actions appearance.
2355
+ * @since 2.16
2356
+ * @deprecated since 3.10
2317
2357
  */
2318
2358
  get_use_action_appearance(): boolean;
2319
2359
 
@@ -2323,6 +2363,8 @@ export namespace GcrUi {
2323
2363
  * > {@link Gtk.Activatable} implementors need to handle the {@link Gtk.Activatable.related_action}
2324
2364
  * > property and call `gtk_activatable_do_set_related_action()` when it changes.
2325
2365
  * @param action the {@link Gtk.Action} to set
2366
+ * @since 2.16
2367
+ * @deprecated since 3.10
2326
2368
  */
2327
2369
  set_related_action(action: Gtk.Action): void;
2328
2370
 
@@ -2335,6 +2377,8 @@ export namespace GcrUi {
2335
2377
  * > `gtk_activatable_sync_action_properties()` to update `activatable`
2336
2378
  * > if needed.
2337
2379
  * @param use_appearance whether to use the actions appearance
2380
+ * @since 2.16
2381
+ * @deprecated since 3.10
2338
2382
  */
2339
2383
  set_use_action_appearance(use_appearance: boolean): void;
2340
2384
 
@@ -2344,6 +2388,8 @@ export namespace GcrUi {
2344
2388
  * or unset and by the implementing class when
2345
2389
  * {@link Gtk.Activatable.use_action_appearance} changes.
2346
2390
  * @param action the related {@link Gtk.Action} or `null`
2391
+ * @since 2.16
2392
+ * @deprecated since 3.10
2347
2393
  */
2348
2394
  sync_action_properties(action: Gtk.Action | null): void;
2349
2395
 
@@ -2353,6 +2399,8 @@ export namespace GcrUi {
2353
2399
  * or unset and by the implementing class when
2354
2400
  * {@link Gtk.Activatable.use_action_appearance} changes.
2355
2401
  * @param action the related {@link Gtk.Action} or `null`
2402
+ * @since 2.16
2403
+ * @deprecated since 3.10
2356
2404
  * @virtual
2357
2405
  */
2358
2406
  vfunc_sync_action_properties(action: Gtk.Action | null): void;
@@ -2389,6 +2437,7 @@ export namespace GcrUi {
2389
2437
  * Returns whether the widget should grab focus when it is clicked with the mouse.
2390
2438
  * See `gtk_widget_set_focus_on_click()`.
2391
2439
  * @returns `true` if the widget should grab focus when it is clicked with the mouse.
2440
+ * @since 3.20
2392
2441
  */
2393
2442
  get_focus_on_click(): boolean;
2394
2443
 
@@ -2398,6 +2447,7 @@ export namespace GcrUi {
2398
2447
  * you don’t want the keyboard focus removed from the main area of the
2399
2448
  * application.
2400
2449
  * @param focus_on_click whether the widget should grab focus when clicked with the mouse
2450
+ * @since 3.20
2401
2451
  */
2402
2452
  set_focus_on_click(focus_on_click: boolean): void;
2403
2453
  }
@@ -2856,36 +2906,42 @@ export namespace GcrUi {
2856
2906
  * display overlayed graphics, like the overshoot indication,
2857
2907
  * at the right position.
2858
2908
  * @returns `true` if `border` has been set
2909
+ * @since 3.16
2859
2910
  */
2860
2911
  get_border(): [boolean, Gtk.Border];
2861
2912
 
2862
2913
  /**
2863
2914
  * Retrieves the {@link Gtk.Adjustment} used for horizontal scrolling.
2864
2915
  * @returns horizontal {@link Gtk.Adjustment}.
2916
+ * @since 3.0
2865
2917
  */
2866
2918
  get_hadjustment(): Gtk.Adjustment;
2867
2919
 
2868
2920
  /**
2869
2921
  * Gets the horizontal {@link Gtk.ScrollablePolicy}.
2870
2922
  * @returns The horizontal {@link Gtk.ScrollablePolicy}.
2923
+ * @since 3.0
2871
2924
  */
2872
2925
  get_hscroll_policy(): Gtk.ScrollablePolicy;
2873
2926
 
2874
2927
  /**
2875
2928
  * Retrieves the {@link Gtk.Adjustment} used for vertical scrolling.
2876
2929
  * @returns vertical {@link Gtk.Adjustment}.
2930
+ * @since 3.0
2877
2931
  */
2878
2932
  get_vadjustment(): Gtk.Adjustment;
2879
2933
 
2880
2934
  /**
2881
2935
  * Gets the vertical {@link Gtk.ScrollablePolicy}.
2882
2936
  * @returns The vertical {@link Gtk.ScrollablePolicy}.
2937
+ * @since 3.0
2883
2938
  */
2884
2939
  get_vscroll_policy(): Gtk.ScrollablePolicy;
2885
2940
 
2886
2941
  /**
2887
2942
  * Sets the horizontal adjustment of the {@link Gtk.Scrollable}.
2888
2943
  * @param hadjustment a {@link Gtk.Adjustment}
2944
+ * @since 3.0
2889
2945
  */
2890
2946
  set_hadjustment(hadjustment: Gtk.Adjustment | null): void;
2891
2947
 
@@ -2894,12 +2950,14 @@ export namespace GcrUi {
2894
2950
  * horizontal scrolling should start below the minimum width or
2895
2951
  * below the natural width.
2896
2952
  * @param policy the horizontal {@link Gtk.ScrollablePolicy}
2953
+ * @since 3.0
2897
2954
  */
2898
2955
  set_hscroll_policy(policy: Gtk.ScrollablePolicy): void;
2899
2956
 
2900
2957
  /**
2901
2958
  * Sets the vertical adjustment of the {@link Gtk.Scrollable}.
2902
2959
  * @param vadjustment a {@link Gtk.Adjustment}
2960
+ * @since 3.0
2903
2961
  */
2904
2962
  set_vadjustment(vadjustment: Gtk.Adjustment | null): void;
2905
2963
 
@@ -2908,6 +2966,7 @@ export namespace GcrUi {
2908
2966
  * vertical scrolling should start below the minimum height or
2909
2967
  * below the natural height.
2910
2968
  * @param policy the vertical {@link Gtk.ScrollablePolicy}
2969
+ * @since 3.0
2911
2970
  */
2912
2971
  set_vscroll_policy(policy: Gtk.ScrollablePolicy): void;
2913
2972
 
@@ -2917,6 +2976,7 @@ export namespace GcrUi {
2917
2976
  * be treeview headers. GTK+ can use this information to
2918
2977
  * display overlayed graphics, like the overshoot indication,
2919
2978
  * at the right position.
2979
+ * @since 3.16
2920
2980
  * @virtual
2921
2981
  */
2922
2982
  vfunc_get_border(): [boolean, Gtk.Border];
@@ -4037,36 +4097,42 @@ export namespace GcrUi {
4037
4097
  * display overlayed graphics, like the overshoot indication,
4038
4098
  * at the right position.
4039
4099
  * @returns `true` if `border` has been set
4100
+ * @since 3.16
4040
4101
  */
4041
4102
  get_border(): [boolean, Gtk.Border];
4042
4103
 
4043
4104
  /**
4044
4105
  * Retrieves the {@link Gtk.Adjustment} used for horizontal scrolling.
4045
4106
  * @returns horizontal {@link Gtk.Adjustment}.
4107
+ * @since 3.0
4046
4108
  */
4047
4109
  get_hadjustment(): Gtk.Adjustment;
4048
4110
 
4049
4111
  /**
4050
4112
  * Gets the horizontal {@link Gtk.ScrollablePolicy}.
4051
4113
  * @returns The horizontal {@link Gtk.ScrollablePolicy}.
4114
+ * @since 3.0
4052
4115
  */
4053
4116
  get_hscroll_policy(): Gtk.ScrollablePolicy;
4054
4117
 
4055
4118
  /**
4056
4119
  * Retrieves the {@link Gtk.Adjustment} used for vertical scrolling.
4057
4120
  * @returns vertical {@link Gtk.Adjustment}.
4121
+ * @since 3.0
4058
4122
  */
4059
4123
  get_vadjustment(): Gtk.Adjustment;
4060
4124
 
4061
4125
  /**
4062
4126
  * Gets the vertical {@link Gtk.ScrollablePolicy}.
4063
4127
  * @returns The vertical {@link Gtk.ScrollablePolicy}.
4128
+ * @since 3.0
4064
4129
  */
4065
4130
  get_vscroll_policy(): Gtk.ScrollablePolicy;
4066
4131
 
4067
4132
  /**
4068
4133
  * Sets the horizontal adjustment of the {@link Gtk.Scrollable}.
4069
4134
  * @param hadjustment a {@link Gtk.Adjustment}
4135
+ * @since 3.0
4070
4136
  */
4071
4137
  set_hadjustment(hadjustment: Gtk.Adjustment | null): void;
4072
4138
 
@@ -4075,12 +4141,14 @@ export namespace GcrUi {
4075
4141
  * horizontal scrolling should start below the minimum width or
4076
4142
  * below the natural width.
4077
4143
  * @param policy the horizontal {@link Gtk.ScrollablePolicy}
4144
+ * @since 3.0
4078
4145
  */
4079
4146
  set_hscroll_policy(policy: Gtk.ScrollablePolicy): void;
4080
4147
 
4081
4148
  /**
4082
4149
  * Sets the vertical adjustment of the {@link Gtk.Scrollable}.
4083
4150
  * @param vadjustment a {@link Gtk.Adjustment}
4151
+ * @since 3.0
4084
4152
  */
4085
4153
  set_vadjustment(vadjustment: Gtk.Adjustment | null): void;
4086
4154
 
@@ -4089,6 +4157,7 @@ export namespace GcrUi {
4089
4157
  * vertical scrolling should start below the minimum height or
4090
4158
  * below the natural height.
4091
4159
  * @param policy the vertical {@link Gtk.ScrollablePolicy}
4160
+ * @since 3.0
4092
4161
  */
4093
4162
  set_vscroll_policy(policy: Gtk.ScrollablePolicy): void;
4094
4163
 
@@ -4098,6 +4167,7 @@ export namespace GcrUi {
4098
4167
  * be treeview headers. GTK+ can use this information to
4099
4168
  * display overlayed graphics, like the overshoot indication,
4100
4169
  * at the right position.
4170
+ * @since 3.16
4101
4171
  * @virtual
4102
4172
  */
4103
4173
  vfunc_get_border(): [boolean, Gtk.Border];
@@ -4511,12 +4581,14 @@ export namespace GcrUi {
4511
4581
  /**
4512
4582
  * Retrieves the orientation of the `orientable`.
4513
4583
  * @returns the orientation of the `orientable`.
4584
+ * @since 2.16
4514
4585
  */
4515
4586
  get_orientation(): Gtk.Orientation;
4516
4587
 
4517
4588
  /**
4518
4589
  * Sets the orientation of the `orientable`.
4519
4590
  * @param orientation the orientable’s new orientation.
4591
+ * @since 2.16
4520
4592
  */
4521
4593
  set_orientation(orientation: Gtk.Orientation): void;
4522
4594
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gcrui-3",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "GJS TypeScript type definitions for GcrUi-3",
5
5
  "type": "module",
6
6
  "module": "gcrui-3.js",
@@ -36,22 +36,22 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^4.3.0",
40
- "@girs/gtk-3.0": "^4.3.0",
41
- "@girs/xlib-2.0": "^4.3.0",
42
- "@girs/gdk-3.0": "^4.3.0",
43
- "@girs/cairo-1.0": "^4.3.0",
44
- "@girs/gobject-2.0": "^4.3.0",
45
- "@girs/glib-2.0": "^4.3.0",
46
- "@girs/pango-1.0": "^4.3.0",
47
- "@girs/harfbuzz-0.0": "^4.3.0",
48
- "@girs/freetype2-2.0": "^4.3.0",
49
- "@girs/gio-2.0": "^4.3.0",
50
- "@girs/gmodule-2.0": "^4.3.0",
51
- "@girs/gdkpixbuf-2.0": "^4.3.0",
52
- "@girs/atk-1.0": "^4.3.0",
53
- "@girs/gcr-3": "^4.3.0",
54
- "@girs/gck-1": "^4.3.0" },
39
+ "@girs/gjs": "^4.4.0",
40
+ "@girs/gtk-3.0": "^4.4.0",
41
+ "@girs/xlib-2.0": "^4.4.0",
42
+ "@girs/gdk-3.0": "^4.4.0",
43
+ "@girs/cairo-1.0": "^4.4.0",
44
+ "@girs/gobject-2.0": "^4.4.0",
45
+ "@girs/glib-2.0": "^4.4.0",
46
+ "@girs/pango-1.0": "^4.4.0",
47
+ "@girs/harfbuzz-0.0": "^4.4.0",
48
+ "@girs/freetype2-2.0": "^4.4.0",
49
+ "@girs/gio-2.0": "^4.4.0",
50
+ "@girs/gmodule-2.0": "^4.4.0",
51
+ "@girs/gdkpixbuf-2.0": "^4.4.0",
52
+ "@girs/atk-1.0": "^4.4.0",
53
+ "@girs/gcr-3": "^4.4.0",
54
+ "@girs/gck-1": "^4.4.0" },
55
55
  "devDependencies": {
56
56
  "typescript": "*"
57
57
  },