@girs/gpaste-2 2.0.0-4.0.0-beta.21 → 2.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 +1 -1
- package/gpaste-2.d.ts +140 -21
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GPaste-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.
|
|
8
|
+
GJS TypeScript type definitions for GPaste-2, generated from library version 2.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/gpaste-2.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';
|
|
@@ -1586,7 +1588,7 @@ export namespace GPaste {
|
|
|
1586
1588
|
* If the object is not initialized, or initialization returns with an
|
|
1587
1589
|
* error, then all operations on the object except g_object_ref() and
|
|
1588
1590
|
* g_object_unref() are considered to be invalid, and have undefined
|
|
1589
|
-
* behaviour. See the [
|
|
1591
|
+
* behaviour. See the [description][iface`Gio`.Initable#description] for more details.
|
|
1590
1592
|
*
|
|
1591
1593
|
* Callers should not assume that a class which implements #GInitable can be
|
|
1592
1594
|
* initialized multiple times, unless the class explicitly documents itself as
|
|
@@ -1629,7 +1631,7 @@ export namespace GPaste {
|
|
|
1629
1631
|
* If the object is not initialized, or initialization returns with an
|
|
1630
1632
|
* error, then all operations on the object except g_object_ref() and
|
|
1631
1633
|
* g_object_unref() are considered to be invalid, and have undefined
|
|
1632
|
-
* behaviour. See the [
|
|
1634
|
+
* behaviour. See the [description][iface`Gio`.Initable#description] for more details.
|
|
1633
1635
|
*
|
|
1634
1636
|
* Callers should not assume that a class which implements #GInitable can be
|
|
1635
1637
|
* initialized multiple times, unless the class explicitly documents itself as
|
|
@@ -1769,7 +1771,21 @@ export namespace GPaste {
|
|
|
1769
1771
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1770
1772
|
*/
|
|
1771
1773
|
get_data(key: string): any | null;
|
|
1772
|
-
|
|
1774
|
+
/**
|
|
1775
|
+
* Gets a property of an object.
|
|
1776
|
+
*
|
|
1777
|
+
* The value can be:
|
|
1778
|
+
* - 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)
|
|
1779
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
1780
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
1781
|
+
*
|
|
1782
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
1783
|
+
*
|
|
1784
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
1785
|
+
* @param property_name The name of the property to get
|
|
1786
|
+
* @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
|
|
1787
|
+
*/
|
|
1788
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
1773
1789
|
/**
|
|
1774
1790
|
* This function gets back user data pointers stored via
|
|
1775
1791
|
* g_object_set_qdata().
|
|
@@ -1897,7 +1913,12 @@ export namespace GPaste {
|
|
|
1897
1913
|
* @param data data to associate with that key
|
|
1898
1914
|
*/
|
|
1899
1915
|
set_data(key: string, data?: any | null): void;
|
|
1900
|
-
|
|
1916
|
+
/**
|
|
1917
|
+
* Sets a property on an object.
|
|
1918
|
+
* @param property_name The name of the property to set
|
|
1919
|
+
* @param value The value to set the property to
|
|
1920
|
+
*/
|
|
1921
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
1901
1922
|
/**
|
|
1902
1923
|
* Remove a specified datum from the object's data associations,
|
|
1903
1924
|
* without invoking the association's destroy handler.
|
|
@@ -2047,11 +2068,31 @@ export namespace GPaste {
|
|
|
2047
2068
|
* @param pspec
|
|
2048
2069
|
*/
|
|
2049
2070
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
2071
|
+
/**
|
|
2072
|
+
* 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.
|
|
2073
|
+
* @param id Handler ID of the handler to be disconnected
|
|
2074
|
+
*/
|
|
2050
2075
|
disconnect(id: number): void;
|
|
2076
|
+
/**
|
|
2077
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
2078
|
+
* @param properties Object containing the properties to set
|
|
2079
|
+
*/
|
|
2051
2080
|
set(properties: { [key: string]: any }): void;
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2081
|
+
/**
|
|
2082
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
2083
|
+
* @param id Handler ID of the handler to be blocked
|
|
2084
|
+
*/
|
|
2085
|
+
block_signal_handler(id: number): void;
|
|
2086
|
+
/**
|
|
2087
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
2088
|
+
* @param id Handler ID of the handler to be unblocked
|
|
2089
|
+
*/
|
|
2090
|
+
unblock_signal_handler(id: number): void;
|
|
2091
|
+
/**
|
|
2092
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
2093
|
+
* @param detailedName Name of the signal to stop emission of
|
|
2094
|
+
*/
|
|
2095
|
+
stop_emission_by_name(detailedName: string): void;
|
|
2055
2096
|
}
|
|
2056
2097
|
|
|
2057
2098
|
namespace ClientItem {
|
|
@@ -2488,7 +2529,7 @@ export namespace GPaste {
|
|
|
2488
2529
|
* If the object is not initialized, or initialization returns with an
|
|
2489
2530
|
* error, then all operations on the object except g_object_ref() and
|
|
2490
2531
|
* g_object_unref() are considered to be invalid, and have undefined
|
|
2491
|
-
* behaviour. See the [
|
|
2532
|
+
* behaviour. See the [description][iface`Gio`.Initable#description] for more details.
|
|
2492
2533
|
*
|
|
2493
2534
|
* Callers should not assume that a class which implements #GInitable can be
|
|
2494
2535
|
* initialized multiple times, unless the class explicitly documents itself as
|
|
@@ -2531,7 +2572,7 @@ export namespace GPaste {
|
|
|
2531
2572
|
* If the object is not initialized, or initialization returns with an
|
|
2532
2573
|
* error, then all operations on the object except g_object_ref() and
|
|
2533
2574
|
* g_object_unref() are considered to be invalid, and have undefined
|
|
2534
|
-
* behaviour. See the [
|
|
2575
|
+
* behaviour. See the [description][iface`Gio`.Initable#description] for more details.
|
|
2535
2576
|
*
|
|
2536
2577
|
* Callers should not assume that a class which implements #GInitable can be
|
|
2537
2578
|
* initialized multiple times, unless the class explicitly documents itself as
|
|
@@ -2671,7 +2712,21 @@ export namespace GPaste {
|
|
|
2671
2712
|
* @returns the data if found, or %NULL if no such data exists.
|
|
2672
2713
|
*/
|
|
2673
2714
|
get_data(key: string): any | null;
|
|
2674
|
-
|
|
2715
|
+
/**
|
|
2716
|
+
* Gets a property of an object.
|
|
2717
|
+
*
|
|
2718
|
+
* The value can be:
|
|
2719
|
+
* - 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)
|
|
2720
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
2721
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
2722
|
+
*
|
|
2723
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
2724
|
+
*
|
|
2725
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
2726
|
+
* @param property_name The name of the property to get
|
|
2727
|
+
* @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
|
|
2728
|
+
*/
|
|
2729
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
2675
2730
|
/**
|
|
2676
2731
|
* This function gets back user data pointers stored via
|
|
2677
2732
|
* g_object_set_qdata().
|
|
@@ -2799,7 +2854,12 @@ export namespace GPaste {
|
|
|
2799
2854
|
* @param data data to associate with that key
|
|
2800
2855
|
*/
|
|
2801
2856
|
set_data(key: string, data?: any | null): void;
|
|
2802
|
-
|
|
2857
|
+
/**
|
|
2858
|
+
* Sets a property on an object.
|
|
2859
|
+
* @param property_name The name of the property to set
|
|
2860
|
+
* @param value The value to set the property to
|
|
2861
|
+
*/
|
|
2862
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
2803
2863
|
/**
|
|
2804
2864
|
* Remove a specified datum from the object's data associations,
|
|
2805
2865
|
* without invoking the association's destroy handler.
|
|
@@ -2949,11 +3009,31 @@ export namespace GPaste {
|
|
|
2949
3009
|
* @param pspec
|
|
2950
3010
|
*/
|
|
2951
3011
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
3012
|
+
/**
|
|
3013
|
+
* 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.
|
|
3014
|
+
* @param id Handler ID of the handler to be disconnected
|
|
3015
|
+
*/
|
|
2952
3016
|
disconnect(id: number): void;
|
|
3017
|
+
/**
|
|
3018
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
3019
|
+
* @param properties Object containing the properties to set
|
|
3020
|
+
*/
|
|
2953
3021
|
set(properties: { [key: string]: any }): void;
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
3022
|
+
/**
|
|
3023
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
3024
|
+
* @param id Handler ID of the handler to be blocked
|
|
3025
|
+
*/
|
|
3026
|
+
block_signal_handler(id: number): void;
|
|
3027
|
+
/**
|
|
3028
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
3029
|
+
* @param id Handler ID of the handler to be unblocked
|
|
3030
|
+
*/
|
|
3031
|
+
unblock_signal_handler(id: number): void;
|
|
3032
|
+
/**
|
|
3033
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
3034
|
+
* @param detailedName Name of the signal to stop emission of
|
|
3035
|
+
*/
|
|
3036
|
+
stop_emission_by_name(detailedName: string): void;
|
|
2957
3037
|
}
|
|
2958
3038
|
|
|
2959
3039
|
namespace ScreensaverClient {
|
|
@@ -3265,7 +3345,7 @@ export namespace GPaste {
|
|
|
3265
3345
|
* If the object is not initialized, or initialization returns with an
|
|
3266
3346
|
* error, then all operations on the object except g_object_ref() and
|
|
3267
3347
|
* g_object_unref() are considered to be invalid, and have undefined
|
|
3268
|
-
* behaviour. See the [
|
|
3348
|
+
* behaviour. See the [description][iface`Gio`.Initable#description] for more details.
|
|
3269
3349
|
*
|
|
3270
3350
|
* Callers should not assume that a class which implements #GInitable can be
|
|
3271
3351
|
* initialized multiple times, unless the class explicitly documents itself as
|
|
@@ -3308,7 +3388,7 @@ export namespace GPaste {
|
|
|
3308
3388
|
* If the object is not initialized, or initialization returns with an
|
|
3309
3389
|
* error, then all operations on the object except g_object_ref() and
|
|
3310
3390
|
* g_object_unref() are considered to be invalid, and have undefined
|
|
3311
|
-
* behaviour. See the [
|
|
3391
|
+
* behaviour. See the [description][iface`Gio`.Initable#description] for more details.
|
|
3312
3392
|
*
|
|
3313
3393
|
* Callers should not assume that a class which implements #GInitable can be
|
|
3314
3394
|
* initialized multiple times, unless the class explicitly documents itself as
|
|
@@ -3448,7 +3528,21 @@ export namespace GPaste {
|
|
|
3448
3528
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3449
3529
|
*/
|
|
3450
3530
|
get_data(key: string): any | null;
|
|
3451
|
-
|
|
3531
|
+
/**
|
|
3532
|
+
* Gets a property of an object.
|
|
3533
|
+
*
|
|
3534
|
+
* The value can be:
|
|
3535
|
+
* - 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)
|
|
3536
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
3537
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
3538
|
+
*
|
|
3539
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
3540
|
+
*
|
|
3541
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
3542
|
+
* @param property_name The name of the property to get
|
|
3543
|
+
* @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
|
|
3544
|
+
*/
|
|
3545
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
3452
3546
|
/**
|
|
3453
3547
|
* This function gets back user data pointers stored via
|
|
3454
3548
|
* g_object_set_qdata().
|
|
@@ -3576,7 +3670,12 @@ export namespace GPaste {
|
|
|
3576
3670
|
* @param data data to associate with that key
|
|
3577
3671
|
*/
|
|
3578
3672
|
set_data(key: string, data?: any | null): void;
|
|
3579
|
-
|
|
3673
|
+
/**
|
|
3674
|
+
* Sets a property on an object.
|
|
3675
|
+
* @param property_name The name of the property to set
|
|
3676
|
+
* @param value The value to set the property to
|
|
3677
|
+
*/
|
|
3678
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
3580
3679
|
/**
|
|
3581
3680
|
* Remove a specified datum from the object's data associations,
|
|
3582
3681
|
* without invoking the association's destroy handler.
|
|
@@ -3726,11 +3825,31 @@ export namespace GPaste {
|
|
|
3726
3825
|
* @param pspec
|
|
3727
3826
|
*/
|
|
3728
3827
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
3828
|
+
/**
|
|
3829
|
+
* 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.
|
|
3830
|
+
* @param id Handler ID of the handler to be disconnected
|
|
3831
|
+
*/
|
|
3729
3832
|
disconnect(id: number): void;
|
|
3833
|
+
/**
|
|
3834
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
3835
|
+
* @param properties Object containing the properties to set
|
|
3836
|
+
*/
|
|
3730
3837
|
set(properties: { [key: string]: any }): void;
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3838
|
+
/**
|
|
3839
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
3840
|
+
* @param id Handler ID of the handler to be blocked
|
|
3841
|
+
*/
|
|
3842
|
+
block_signal_handler(id: number): void;
|
|
3843
|
+
/**
|
|
3844
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
3845
|
+
* @param id Handler ID of the handler to be unblocked
|
|
3846
|
+
*/
|
|
3847
|
+
unblock_signal_handler(id: number): void;
|
|
3848
|
+
/**
|
|
3849
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
3850
|
+
* @param detailedName Name of the signal to stop emission of
|
|
3851
|
+
*/
|
|
3852
|
+
stop_emission_by_name(detailedName: string): void;
|
|
3734
3853
|
}
|
|
3735
3854
|
|
|
3736
3855
|
namespace Settings {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gpaste-2",
|
|
3
|
-
"version": "2.0.0-4.0.0-beta.
|
|
3
|
+
"version": "2.0.0-4.0.0-beta.23",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GPaste-2, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gpaste-2.js",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gio-2.0": "^2.
|
|
35
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
36
|
-
"@girs/glib-2.0": "^2.
|
|
37
|
-
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.
|
|
38
|
-
"@girs/gobject-2.0": "^2.
|
|
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": "*"
|