@girs/cmenu-3.0 3.0.0-4.0.0-beta.4 → 3.0.0-4.0.0-beta.6
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 +1 -1
- package/cmenu-3.0.d.ts +46 -0
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
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.
|
|
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.6.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/cmenu-3.0.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import './cmenu-3.0-ambient.d.ts';
|
|
|
14
14
|
import type Gio from '@girs/gio-2.0';
|
|
15
15
|
import type GObject from '@girs/gobject-2.0';
|
|
16
16
|
import type GLib from '@girs/glib-2.0';
|
|
17
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
17
18
|
|
|
18
19
|
export namespace CMenu {
|
|
19
20
|
enum TreeItemType {
|
|
@@ -964,10 +965,45 @@ export namespace CMenu {
|
|
|
964
965
|
* @param closure #GClosure to watch
|
|
965
966
|
*/
|
|
966
967
|
watch_closure(closure: GObject.Closure): void;
|
|
968
|
+
/**
|
|
969
|
+
* the `constructed` function is called by g_object_new() as the
|
|
970
|
+
* final step of the object creation process. At the point of the call, all
|
|
971
|
+
* construction properties have been set on the object. The purpose of this
|
|
972
|
+
* call is to allow for object initialisation steps that can only be performed
|
|
973
|
+
* after construction properties have been set. `constructed` implementors
|
|
974
|
+
* should chain up to the `constructed` call of their parent class to allow it
|
|
975
|
+
* to complete its initialisation.
|
|
976
|
+
*/
|
|
967
977
|
vfunc_constructed(): void;
|
|
978
|
+
/**
|
|
979
|
+
* emits property change notification for a bunch
|
|
980
|
+
* of properties. Overriding `dispatch_properties_changed` should be rarely
|
|
981
|
+
* needed.
|
|
982
|
+
* @param n_pspecs
|
|
983
|
+
* @param pspecs
|
|
984
|
+
*/
|
|
968
985
|
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
986
|
+
/**
|
|
987
|
+
* the `dispose` function is supposed to drop all references to other
|
|
988
|
+
* objects, but keep the instance otherwise intact, so that client method
|
|
989
|
+
* invocations still work. It may be run multiple times (due to reference
|
|
990
|
+
* loops). Before returning, `dispose` should chain up to the `dispose` method
|
|
991
|
+
* of the parent class.
|
|
992
|
+
*/
|
|
969
993
|
vfunc_dispose(): void;
|
|
994
|
+
/**
|
|
995
|
+
* instance finalization function, should finish the finalization of
|
|
996
|
+
* the instance begun in `dispose` and chain up to the `finalize` method of the
|
|
997
|
+
* parent class.
|
|
998
|
+
*/
|
|
970
999
|
vfunc_finalize(): void;
|
|
1000
|
+
/**
|
|
1001
|
+
* the generic getter for all properties of this type. Should be
|
|
1002
|
+
* overridden for every type with properties.
|
|
1003
|
+
* @param property_id
|
|
1004
|
+
* @param value
|
|
1005
|
+
* @param pspec
|
|
1006
|
+
*/
|
|
971
1007
|
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
972
1008
|
/**
|
|
973
1009
|
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
@@ -983,6 +1019,16 @@ export namespace CMenu {
|
|
|
983
1019
|
* @param pspec
|
|
984
1020
|
*/
|
|
985
1021
|
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
1022
|
+
/**
|
|
1023
|
+
* the generic setter for all properties of this type. Should be
|
|
1024
|
+
* overridden for every type with properties. If implementations of
|
|
1025
|
+
* `set_property` don't emit property change notification explicitly, this will
|
|
1026
|
+
* be done implicitly by the type system. However, if the notify signal is
|
|
1027
|
+
* emitted explicitly, the type system will not emit it a second time.
|
|
1028
|
+
* @param property_id
|
|
1029
|
+
* @param value
|
|
1030
|
+
* @param pspec
|
|
1031
|
+
*/
|
|
986
1032
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
987
1033
|
disconnect(id: number): void;
|
|
988
1034
|
set(properties: { [key: string]: any }): void;
|
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.
|
|
3
|
+
"version": "3.0.0-4.0.0-beta.6",
|
|
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",
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
|
-
"test": "
|
|
26
|
+
"test": "tsc --project tsconfig.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@girs/gio-2.0": "^2.80.
|
|
30
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
31
|
-
"@girs/glib-2.0": "^2.80.
|
|
32
|
-
"@girs/
|
|
29
|
+
"@girs/gio-2.0": "^2.80.3-4.0.0-beta.6",
|
|
30
|
+
"@girs/gjs": "^4.0.0-beta.6",
|
|
31
|
+
"@girs/glib-2.0": "^2.80.3-4.0.0-beta.6",
|
|
32
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.6",
|
|
33
|
+
"@girs/gobject-2.0": "^2.80.3-4.0.0-beta.6"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"typescript": "*"
|