@girs/cmenu-3.0 3.0.0-4.0.0-beta.21 → 3.0.0-4.0.0-beta.23

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/cmenu-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for CMenu-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for CMenu-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.23.
9
9
 
10
10
 
11
11
  ## Install
package/cmenu-3.0.d.ts CHANGED
@@ -7,6 +7,8 @@
7
7
  * The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
8
8
  */
9
9
 
10
+ import '@girs/gjs';
11
+
10
12
  // Module dependencies
11
13
  import type Gio from '@girs/gio-2.0';
12
14
  import type GObject from '@girs/gobject-2.0';
@@ -796,7 +798,21 @@ export namespace CMenu {
796
798
  * @returns the data if found, or %NULL if no such data exists.
797
799
  */
798
800
  get_data(key: string): any | null;
799
- get_property(property_name: string): any;
801
+ /**
802
+ * Gets a property of an object.
803
+ *
804
+ * The value can be:
805
+ * - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
806
+ * - a GObject.Value initialized with the expected type of the property
807
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
808
+ *
809
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
810
+ *
811
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
812
+ * @param property_name The name of the property to get
813
+ * @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
814
+ */
815
+ get_property(property_name: string, value: GObject.Value | any): any;
800
816
  /**
801
817
  * This function gets back user data pointers stored via
802
818
  * g_object_set_qdata().
@@ -924,7 +940,12 @@ export namespace CMenu {
924
940
  * @param data data to associate with that key
925
941
  */
926
942
  set_data(key: string, data?: any | null): void;
927
- set_property(property_name: string, value: any): void;
943
+ /**
944
+ * Sets a property on an object.
945
+ * @param property_name The name of the property to set
946
+ * @param value The value to set the property to
947
+ */
948
+ set_property(property_name: string, value: GObject.Value | any): void;
928
949
  /**
929
950
  * Remove a specified datum from the object's data associations,
930
951
  * without invoking the association's destroy handler.
@@ -1074,11 +1095,31 @@ export namespace CMenu {
1074
1095
  * @param pspec
1075
1096
  */
1076
1097
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1098
+ /**
1099
+ * Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
1100
+ * @param id Handler ID of the handler to be disconnected
1101
+ */
1077
1102
  disconnect(id: number): void;
1103
+ /**
1104
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
1105
+ * @param properties Object containing the properties to set
1106
+ */
1078
1107
  set(properties: { [key: string]: any }): void;
1079
- block_signal_handler(id: number): any;
1080
- unblock_signal_handler(id: number): any;
1081
- stop_emission_by_name(detailedName: string): any;
1108
+ /**
1109
+ * Blocks a handler of an instance so it will not be called during any signal emissions
1110
+ * @param id Handler ID of the handler to be blocked
1111
+ */
1112
+ block_signal_handler(id: number): void;
1113
+ /**
1114
+ * Unblocks a handler so it will be called again during any signal emissions
1115
+ * @param id Handler ID of the handler to be unblocked
1116
+ */
1117
+ unblock_signal_handler(id: number): void;
1118
+ /**
1119
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
1120
+ * @param detailedName Name of the signal to stop emission of
1121
+ */
1122
+ stop_emission_by_name(detailedName: string): void;
1082
1123
  }
1083
1124
 
1084
1125
  namespace Tree {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/cmenu-3.0",
3
- "version": "3.0.0-4.0.0-beta.21",
3
+ "version": "3.0.0-4.0.0-beta.23",
4
4
  "description": "GJS TypeScript type definitions for CMenu-3.0, generated from library version 3.0.0",
5
5
  "type": "module",
6
6
  "module": "cmenu-3.0.js",
@@ -31,11 +31,11 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gio-2.0": "^2.83.3-4.0.0-beta.21",
35
- "@girs/gjs": "^4.0.0-beta.21",
36
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
37
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.21",
38
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21"
34
+ "@girs/gio-2.0": "^2.84.0-4.0.0-beta.23",
35
+ "@girs/gjs": "^4.0.0-beta.23",
36
+ "@girs/glib-2.0": "^2.84.0-4.0.0-beta.23",
37
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.23",
38
+ "@girs/gobject-2.0": "^2.84.0-4.0.0-beta.23"
39
39
  },
40
40
  "devDependencies": {
41
41
  "typescript": "*"