@girs/gspell-1 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/gspell-1)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gspell-1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.3.0.
8
+ GJS TypeScript type definitions for Gspell-1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
9
9
 
10
10
  ## Install
11
11
 
@@ -117,6 +117,23 @@ export interface Widgets {
117
117
  /** Every GType this namespace can create. A consumer derives its own tag map. */
118
118
  export type WidgetGType = keyof Widgets;
119
119
 
120
+ // ---------------------------------------------------------------------------
121
+ // Child holders — the same shape, for objects that CARRY a widget without being one.
122
+ //
123
+ // `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
124
+ // `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
125
+ // them exactly like a container, so they belong in the vocabulary; a check asking "is
126
+ // this a widget" must still be able to say no. Hence a sibling table rather than four
127
+ // more rows in `Widgets`: concatenate them when you mean both.
128
+ // ---------------------------------------------------------------------------
129
+
130
+ export interface ChildHolders {
131
+
132
+ }
133
+
134
+ /** Every GType this namespace holds a child in without it being a widget. */
135
+ export type ChildHolderGType = keyof ChildHolders;
136
+
120
137
  /** The writable, optional, GObject-keyed property surface of one GType. */
121
138
  export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
122
139
 
@@ -152,6 +169,9 @@ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
152
169
  /** Widget GType -> every declaration its members come from, self first. */
153
170
  export const DECLS: Readonly<Record<string, readonly string[]>>;
154
171
 
172
+ /** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
173
+ export const CHILD_HOLDERS: readonly string[];
174
+
155
175
  /** Enum GType -> the nicks this surface offers. */
156
176
  export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
157
177
 
@@ -21,6 +21,12 @@ export const DECLS = {
21
21
  GspellLanguageChooserDialog: ['GspellLanguageChooserDialog', 'GtkDialog', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GspellLanguageChooser', 'GtkBuildable'],
22
22
  };
23
23
 
24
+ // The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
25
+ // and descend from `GObject.Object`. A renderer places them like a container; a check
26
+ // asking "is this a widget" must not count them. Derived from the accessor pair, never
27
+ // from a list — the count is in the provenance line above.
28
+ export const CHILD_HOLDERS = [];
29
+
24
30
  export const ENUM_NICKS = {};
25
31
 
26
32
  export const SLOT_CANDIDATES = {};
package/gspell-1.d.ts CHANGED
@@ -469,6 +469,7 @@ export namespace Gspell {
469
469
  * Returns the {@link Gspell.Entry} of `gtk_entry`. The returned object is guaranteed
470
470
  * to be the same for the lifetime of `gtk_entry`.
471
471
  * @param gtk_entry a {@link Gtk.Entry}.
472
+ * @since 1.4
472
473
  */
473
474
  static get_from_gtk_entry(gtk_entry: Gtk.Entry): Entry;
474
475
 
@@ -509,22 +510,26 @@ export namespace Gspell {
509
510
  * gspell_entry_set_inline_spell_checking (gspell_entry, TRUE);
510
511
  * ```
511
512
  *
513
+ * @since 1.4
512
514
  */
513
515
  basic_setup(): void;
514
516
 
515
517
  /**
516
518
  * @returns the {@link Gtk.Entry} of `gspell_entry`.
519
+ * @since 1.4
517
520
  */
518
521
  get_entry(): Gtk.Entry;
519
522
 
520
523
  /**
521
524
  * @returns the value of the {@link Gspell.Entry.inline_spell_checking} property.
525
+ * @since 1.4
522
526
  */
523
527
  get_inline_spell_checking(): boolean;
524
528
 
525
529
  /**
526
530
  * Sets the {@link Gspell.Entry.inline_spell_checking} property.
527
531
  * @param enable the new state.
532
+ * @since 1.4
528
533
  */
529
534
  set_inline_spell_checking(enable: boolean): void;
530
535
  }
@@ -605,17 +610,20 @@ export namespace Gspell {
605
610
  * Returns the {@link Gspell.EntryBuffer} of `gtk_buffer`. The returned object is
606
611
  * guaranteed to be the same for the lifetime of `gtk_buffer`.
607
612
  * @param gtk_buffer a {@link Gtk.EntryBuffer}.
613
+ * @since 1.4
608
614
  */
609
615
  static get_from_gtk_entry_buffer(gtk_buffer: Gtk.EntryBuffer): EntryBuffer;
610
616
 
611
617
  // Methods
612
618
  /**
613
619
  * @returns the {@link Gtk.EntryBuffer} of `gspell_buffer`.
620
+ * @since 1.4
614
621
  */
615
622
  get_buffer(): Gtk.EntryBuffer;
616
623
 
617
624
  /**
618
625
  * @returns the {@link Gspell.Checker} if one has been set, or `null`.
626
+ * @since 1.4
619
627
  */
620
628
  get_spell_checker(): Checker | null;
621
629
 
@@ -624,6 +632,7 @@ export namespace Gspell {
624
632
  * reference to `spell_checker`, so you can release your reference to
625
633
  * `spell_checker` if you no longer need it.
626
634
  * @param spell_checker a {@link Gspell.Checker}, or `null` to unset the spell checker.
635
+ * @since 1.4
627
636
  */
628
637
  set_spell_checker(spell_checker: Checker | null): void;
629
638
  }
@@ -883,6 +892,7 @@ export namespace Gspell {
883
892
  *
884
893
  * See `gtk_actionable_set_action_name()` for more information.
885
894
  * @returns the action name, or `null` if none is set
895
+ * @since 3.4
886
896
  */
887
897
  get_action_name(): string | null;
888
898
 
@@ -891,6 +901,7 @@ export namespace Gspell {
891
901
  *
892
902
  * See `gtk_actionable_set_action_target_value()` for more information.
893
903
  * @returns the current target value
904
+ * @since 3.4
894
905
  */
895
906
  get_action_target_value(): GLib.Variant;
896
907
 
@@ -907,6 +918,7 @@ export namespace Gspell {
907
918
  * respectively. This is the same form used for actions in the {@link Gio.Menu}
908
919
  * associated with the window.
909
920
  * @param action_name an action name, or `null`
921
+ * @since 3.4
910
922
  */
911
923
  set_action_name(action_name: string | null): void;
912
924
 
@@ -931,6 +943,7 @@ export namespace Gspell {
931
943
  * be rendered as active (and the other buttons, with different targets,
932
944
  * rendered inactive).
933
945
  * @param target_value a {@link GLib.Variant} to set as the target value, or `null`
946
+ * @since 3.4
934
947
  */
935
948
  set_action_target_value(target_value: GLib.Variant | null): void;
936
949
 
@@ -947,6 +960,7 @@ export namespace Gspell {
947
960
  * `action` is the action name and `target` is the string to use
948
961
  * as the target.)
949
962
  * @param detailed_action_name the detailed action name
963
+ * @since 3.4
950
964
  */
951
965
  set_detailed_action_name(detailed_action_name: string): void;
952
966
 
@@ -954,6 +968,7 @@ export namespace Gspell {
954
968
  * Gets the action name for `actionable`.
955
969
  *
956
970
  * See `gtk_actionable_set_action_name()` for more information.
971
+ * @since 3.4
957
972
  * @virtual
958
973
  */
959
974
  vfunc_get_action_name(): string | null;
@@ -962,6 +977,7 @@ export namespace Gspell {
962
977
  * Gets the current target value of `actionable`.
963
978
  *
964
979
  * See `gtk_actionable_set_action_target_value()` for more information.
980
+ * @since 3.4
965
981
  * @virtual
966
982
  */
967
983
  vfunc_get_action_target_value(): GLib.Variant;
@@ -979,6 +995,7 @@ export namespace Gspell {
979
995
  * respectively. This is the same form used for actions in the {@link Gio.Menu}
980
996
  * associated with the window.
981
997
  * @param action_name an action name, or `null`
998
+ * @since 3.4
982
999
  * @virtual
983
1000
  */
984
1001
  vfunc_set_action_name(action_name: string | null): void;
@@ -1004,6 +1021,7 @@ export namespace Gspell {
1004
1021
  * be rendered as active (and the other buttons, with different targets,
1005
1022
  * rendered inactive).
1006
1023
  * @param target_value a {@link GLib.Variant} to set as the target value, or `null`
1024
+ * @since 3.4
1007
1025
  * @virtual
1008
1026
  */
1009
1027
  vfunc_set_action_target_value(target_value: GLib.Variant | null): void;
@@ -1025,12 +1043,16 @@ export namespace Gspell {
1025
1043
  * > `gtk_activatable_get_related_action()` to retrieve the
1026
1044
  * > previous action.
1027
1045
  * @param action the {@link Gtk.Action} to set
1046
+ * @since 2.16
1047
+ * @deprecated since 3.10
1028
1048
  */
1029
1049
  do_set_related_action(action: Gtk.Action): void;
1030
1050
 
1031
1051
  /**
1032
1052
  * Gets the related {@link Gtk.Action} for `activatable`.
1033
1053
  * @returns the related {@link Gtk.Action} if one is set.
1054
+ * @since 2.16
1055
+ * @deprecated since 3.10
1034
1056
  */
1035
1057
  get_related_action(): Gtk.Action;
1036
1058
 
@@ -1039,6 +1061,8 @@ export namespace Gspell {
1039
1061
  * and appearance when setting the related action or when
1040
1062
  * the action changes appearance.
1041
1063
  * @returns whether `activatable` uses its actions appearance.
1064
+ * @since 2.16
1065
+ * @deprecated since 3.10
1042
1066
  */
1043
1067
  get_use_action_appearance(): boolean;
1044
1068
 
@@ -1048,6 +1072,8 @@ export namespace Gspell {
1048
1072
  * > {@link Gtk.Activatable} implementors need to handle the {@link Gtk.Activatable.related_action}
1049
1073
  * > property and call `gtk_activatable_do_set_related_action()` when it changes.
1050
1074
  * @param action the {@link Gtk.Action} to set
1075
+ * @since 2.16
1076
+ * @deprecated since 3.10
1051
1077
  */
1052
1078
  set_related_action(action: Gtk.Action): void;
1053
1079
 
@@ -1060,6 +1086,8 @@ export namespace Gspell {
1060
1086
  * > `gtk_activatable_sync_action_properties()` to update `activatable`
1061
1087
  * > if needed.
1062
1088
  * @param use_appearance whether to use the actions appearance
1089
+ * @since 2.16
1090
+ * @deprecated since 3.10
1063
1091
  */
1064
1092
  set_use_action_appearance(use_appearance: boolean): void;
1065
1093
 
@@ -1069,6 +1097,8 @@ export namespace Gspell {
1069
1097
  * or unset and by the implementing class when
1070
1098
  * {@link Gtk.Activatable.use_action_appearance} changes.
1071
1099
  * @param action the related {@link Gtk.Action} or `null`
1100
+ * @since 2.16
1101
+ * @deprecated since 3.10
1072
1102
  */
1073
1103
  sync_action_properties(action: Gtk.Action | null): void;
1074
1104
 
@@ -1078,6 +1108,8 @@ export namespace Gspell {
1078
1108
  * or unset and by the implementing class when
1079
1109
  * {@link Gtk.Activatable.use_action_appearance} changes.
1080
1110
  * @param action the related {@link Gtk.Action} or `null`
1111
+ * @since 2.16
1112
+ * @deprecated since 3.10
1081
1113
  * @virtual
1082
1114
  */
1083
1115
  vfunc_sync_action_properties(action: Gtk.Action | null): void;
@@ -1114,6 +1146,7 @@ export namespace Gspell {
1114
1146
  * Returns whether the widget should grab focus when it is clicked with the mouse.
1115
1147
  * See `gtk_widget_set_focus_on_click()`.
1116
1148
  * @returns `true` if the widget should grab focus when it is clicked with the mouse.
1149
+ * @since 3.20
1117
1150
  */
1118
1151
  get_focus_on_click(): boolean;
1119
1152
 
@@ -1123,6 +1156,7 @@ export namespace Gspell {
1123
1156
  * you don’t want the keyboard focus removed from the main area of the
1124
1157
  * application.
1125
1158
  * @param focus_on_click whether the widget should grab focus when clicked with the mouse
1159
+ * @since 3.20
1126
1160
  */
1127
1161
  set_focus_on_click(focus_on_click: boolean): void;
1128
1162
  }
@@ -1676,11 +1710,13 @@ export namespace Gspell {
1676
1710
  * gspell_text_view_set_enable_language_menu (gspell_view, TRUE);
1677
1711
  * ```
1678
1712
  *
1713
+ * @since 1.2
1679
1714
  */
1680
1715
  basic_setup(): void;
1681
1716
 
1682
1717
  /**
1683
1718
  * @returns whether the language context menu is enabled.
1719
+ * @since 1.2
1684
1720
  */
1685
1721
  get_enable_language_menu(): boolean;
1686
1722
 
@@ -1701,6 +1737,7 @@ export namespace Gspell {
1701
1737
  * {@link Gspell.Checker.language} property of the {@link Gspell.TextBuffer.spell_checker} of
1702
1738
  * the {@link Gtk.TextView.buffer} of the {@link Gspell.TextView.view}.
1703
1739
  * @param enable_language_menu whether to enable the language context menu.
1740
+ * @since 1.2
1704
1741
  */
1705
1742
  set_enable_language_menu(enable_language_menu: boolean): void;
1706
1743
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gspell-1",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "GJS TypeScript type definitions for Gspell-1",
5
5
  "type": "module",
6
6
  "module": "gspell-1.js",
@@ -36,20 +36,20 @@
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" },
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
53
  "devDependencies": {
54
54
  "typescript": "*"
55
55
  },