@girs/garcon-1.0 4.18.2-4.0.0-beta.21 → 4.18.2-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/garcon-1.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Garcon-1.0, generated from library version 4.18.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for Garcon-1.0, generated from library version 4.18.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.23.
9
9
 
10
10
 
11
11
  ## Install
package/garcon-1.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 Libxfce4util from '@girs/libxfce4util-1.0';
12
14
  import type Gio from '@girs/gio-2.0';
@@ -443,7 +445,21 @@ export namespace Garcon {
443
445
  * @returns the data if found, or %NULL if no such data exists.
444
446
  */
445
447
  get_data(key: string): any | null;
446
- get_property(property_name: string): any;
448
+ /**
449
+ * Gets a property of an object.
450
+ *
451
+ * The value can be:
452
+ * - 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)
453
+ * - a GObject.Value initialized with the expected type of the property
454
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
455
+ *
456
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
457
+ *
458
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
459
+ * @param property_name The name of the property to get
460
+ * @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
461
+ */
462
+ get_property(property_name: string, value: GObject.Value | any): any;
447
463
  /**
448
464
  * This function gets back user data pointers stored via
449
465
  * g_object_set_qdata().
@@ -571,7 +587,12 @@ export namespace Garcon {
571
587
  * @param data data to associate with that key
572
588
  */
573
589
  set_data(key: string, data?: any | null): void;
574
- set_property(property_name: string, value: any): void;
590
+ /**
591
+ * Sets a property on an object.
592
+ * @param property_name The name of the property to set
593
+ * @param value The value to set the property to
594
+ */
595
+ set_property(property_name: string, value: GObject.Value | any): void;
575
596
  /**
576
597
  * Remove a specified datum from the object's data associations,
577
598
  * without invoking the association's destroy handler.
@@ -721,11 +742,31 @@ export namespace Garcon {
721
742
  * @param pspec
722
743
  */
723
744
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
745
+ /**
746
+ * 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.
747
+ * @param id Handler ID of the handler to be disconnected
748
+ */
724
749
  disconnect(id: number): void;
750
+ /**
751
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
752
+ * @param properties Object containing the properties to set
753
+ */
725
754
  set(properties: { [key: string]: any }): void;
726
- block_signal_handler(id: number): any;
727
- unblock_signal_handler(id: number): any;
728
- stop_emission_by_name(detailedName: string): any;
755
+ /**
756
+ * Blocks a handler of an instance so it will not be called during any signal emissions
757
+ * @param id Handler ID of the handler to be blocked
758
+ */
759
+ block_signal_handler(id: number): void;
760
+ /**
761
+ * Unblocks a handler so it will be called again during any signal emissions
762
+ * @param id Handler ID of the handler to be unblocked
763
+ */
764
+ unblock_signal_handler(id: number): void;
765
+ /**
766
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
767
+ * @param detailedName Name of the signal to stop emission of
768
+ */
769
+ stop_emission_by_name(detailedName: string): void;
729
770
  }
730
771
 
731
772
  namespace MenuDirectory {
@@ -1232,7 +1273,21 @@ export namespace Garcon {
1232
1273
  * @returns the data if found, or %NULL if no such data exists.
1233
1274
  */
1234
1275
  get_data(key: string): any | null;
1235
- get_property(property_name: string): any;
1276
+ /**
1277
+ * Gets a property of an object.
1278
+ *
1279
+ * The value can be:
1280
+ * - 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)
1281
+ * - a GObject.Value initialized with the expected type of the property
1282
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
1283
+ *
1284
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
1285
+ *
1286
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
1287
+ * @param property_name The name of the property to get
1288
+ * @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
1289
+ */
1290
+ get_property(property_name: string, value: GObject.Value | any): any;
1236
1291
  /**
1237
1292
  * This function gets back user data pointers stored via
1238
1293
  * g_object_set_qdata().
@@ -1350,7 +1405,12 @@ export namespace Garcon {
1350
1405
  * @param data data to associate with that key
1351
1406
  */
1352
1407
  set_data(key: string, data?: any | null): void;
1353
- set_property(property_name: string, value: any): void;
1408
+ /**
1409
+ * Sets a property on an object.
1410
+ * @param property_name The name of the property to set
1411
+ * @param value The value to set the property to
1412
+ */
1413
+ set_property(property_name: string, value: GObject.Value | any): void;
1354
1414
  /**
1355
1415
  * Remove a specified datum from the object's data associations,
1356
1416
  * without invoking the association's destroy handler.
@@ -1490,11 +1550,31 @@ export namespace Garcon {
1490
1550
  * @param pspec
1491
1551
  */
1492
1552
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1553
+ /**
1554
+ * 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.
1555
+ * @param id Handler ID of the handler to be disconnected
1556
+ */
1493
1557
  disconnect(id: number): void;
1558
+ /**
1559
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
1560
+ * @param properties Object containing the properties to set
1561
+ */
1494
1562
  set(properties: { [key: string]: any }): void;
1495
- block_signal_handler(id: number): any;
1496
- unblock_signal_handler(id: number): any;
1497
- stop_emission_by_name(detailedName: string): any;
1563
+ /**
1564
+ * Blocks a handler of an instance so it will not be called during any signal emissions
1565
+ * @param id Handler ID of the handler to be blocked
1566
+ */
1567
+ block_signal_handler(id: number): void;
1568
+ /**
1569
+ * Unblocks a handler so it will be called again during any signal emissions
1570
+ * @param id Handler ID of the handler to be unblocked
1571
+ */
1572
+ unblock_signal_handler(id: number): void;
1573
+ /**
1574
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
1575
+ * @param detailedName Name of the signal to stop emission of
1576
+ */
1577
+ stop_emission_by_name(detailedName: string): void;
1498
1578
  }
1499
1579
 
1500
1580
  namespace MenuItemAction {
@@ -1762,7 +1842,21 @@ export namespace Garcon {
1762
1842
  * @returns the data if found, or %NULL if no such data exists.
1763
1843
  */
1764
1844
  get_data(key: string): any | null;
1765
- get_property(property_name: string): any;
1845
+ /**
1846
+ * Gets a property of an object.
1847
+ *
1848
+ * The value can be:
1849
+ * - 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)
1850
+ * - a GObject.Value initialized with the expected type of the property
1851
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
1852
+ *
1853
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
1854
+ *
1855
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
1856
+ * @param property_name The name of the property to get
1857
+ * @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
1858
+ */
1859
+ get_property(property_name: string, value: GObject.Value | any): any;
1766
1860
  /**
1767
1861
  * This function gets back user data pointers stored via
1768
1862
  * g_object_set_qdata().
@@ -1890,7 +1984,12 @@ export namespace Garcon {
1890
1984
  * @param data data to associate with that key
1891
1985
  */
1892
1986
  set_data(key: string, data?: any | null): void;
1893
- set_property(property_name: string, value: any): void;
1987
+ /**
1988
+ * Sets a property on an object.
1989
+ * @param property_name The name of the property to set
1990
+ * @param value The value to set the property to
1991
+ */
1992
+ set_property(property_name: string, value: GObject.Value | any): void;
1894
1993
  /**
1895
1994
  * Remove a specified datum from the object's data associations,
1896
1995
  * without invoking the association's destroy handler.
@@ -2040,11 +2139,31 @@ export namespace Garcon {
2040
2139
  * @param pspec
2041
2140
  */
2042
2141
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
2142
+ /**
2143
+ * 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.
2144
+ * @param id Handler ID of the handler to be disconnected
2145
+ */
2043
2146
  disconnect(id: number): void;
2147
+ /**
2148
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
2149
+ * @param properties Object containing the properties to set
2150
+ */
2044
2151
  set(properties: { [key: string]: any }): void;
2045
- block_signal_handler(id: number): any;
2046
- unblock_signal_handler(id: number): any;
2047
- stop_emission_by_name(detailedName: string): any;
2152
+ /**
2153
+ * Blocks a handler of an instance so it will not be called during any signal emissions
2154
+ * @param id Handler ID of the handler to be blocked
2155
+ */
2156
+ block_signal_handler(id: number): void;
2157
+ /**
2158
+ * Unblocks a handler so it will be called again during any signal emissions
2159
+ * @param id Handler ID of the handler to be unblocked
2160
+ */
2161
+ unblock_signal_handler(id: number): void;
2162
+ /**
2163
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
2164
+ * @param detailedName Name of the signal to stop emission of
2165
+ */
2166
+ stop_emission_by_name(detailedName: string): void;
2048
2167
  }
2049
2168
 
2050
2169
  namespace MenuNode {
@@ -2251,7 +2370,21 @@ export namespace Garcon {
2251
2370
  * @returns the data if found, or %NULL if no such data exists.
2252
2371
  */
2253
2372
  get_data(key: string): any | null;
2254
- get_property(property_name: string): any;
2373
+ /**
2374
+ * Gets a property of an object.
2375
+ *
2376
+ * The value can be:
2377
+ * - 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)
2378
+ * - a GObject.Value initialized with the expected type of the property
2379
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
2380
+ *
2381
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
2382
+ *
2383
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
2384
+ * @param property_name The name of the property to get
2385
+ * @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
2386
+ */
2387
+ get_property(property_name: string, value: GObject.Value | any): any;
2255
2388
  /**
2256
2389
  * This function gets back user data pointers stored via
2257
2390
  * g_object_set_qdata().
@@ -2379,7 +2512,12 @@ export namespace Garcon {
2379
2512
  * @param data data to associate with that key
2380
2513
  */
2381
2514
  set_data(key: string, data?: any | null): void;
2382
- set_property(property_name: string, value: any): void;
2515
+ /**
2516
+ * Sets a property on an object.
2517
+ * @param property_name The name of the property to set
2518
+ * @param value The value to set the property to
2519
+ */
2520
+ set_property(property_name: string, value: GObject.Value | any): void;
2383
2521
  /**
2384
2522
  * Remove a specified datum from the object's data associations,
2385
2523
  * without invoking the association's destroy handler.
@@ -2529,11 +2667,31 @@ export namespace Garcon {
2529
2667
  * @param pspec
2530
2668
  */
2531
2669
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
2670
+ /**
2671
+ * 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.
2672
+ * @param id Handler ID of the handler to be disconnected
2673
+ */
2532
2674
  disconnect(id: number): void;
2675
+ /**
2676
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
2677
+ * @param properties Object containing the properties to set
2678
+ */
2533
2679
  set(properties: { [key: string]: any }): void;
2534
- block_signal_handler(id: number): any;
2535
- unblock_signal_handler(id: number): any;
2536
- stop_emission_by_name(detailedName: string): any;
2680
+ /**
2681
+ * Blocks a handler of an instance so it will not be called during any signal emissions
2682
+ * @param id Handler ID of the handler to be blocked
2683
+ */
2684
+ block_signal_handler(id: number): void;
2685
+ /**
2686
+ * Unblocks a handler so it will be called again during any signal emissions
2687
+ * @param id Handler ID of the handler to be unblocked
2688
+ */
2689
+ unblock_signal_handler(id: number): void;
2690
+ /**
2691
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
2692
+ * @param detailedName Name of the signal to stop emission of
2693
+ */
2694
+ stop_emission_by_name(detailedName: string): void;
2537
2695
  }
2538
2696
 
2539
2697
  namespace MenuSeparator {
@@ -2685,7 +2843,21 @@ export namespace Garcon {
2685
2843
  * @returns the data if found, or %NULL if no such data exists.
2686
2844
  */
2687
2845
  get_data(key: string): any | null;
2688
- get_property(property_name: string): any;
2846
+ /**
2847
+ * Gets a property of an object.
2848
+ *
2849
+ * The value can be:
2850
+ * - 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)
2851
+ * - a GObject.Value initialized with the expected type of the property
2852
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
2853
+ *
2854
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
2855
+ *
2856
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
2857
+ * @param property_name The name of the property to get
2858
+ * @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
2859
+ */
2860
+ get_property(property_name: string, value: GObject.Value | any): any;
2689
2861
  /**
2690
2862
  * This function gets back user data pointers stored via
2691
2863
  * g_object_set_qdata().
@@ -2813,7 +2985,12 @@ export namespace Garcon {
2813
2985
  * @param data data to associate with that key
2814
2986
  */
2815
2987
  set_data(key: string, data?: any | null): void;
2816
- set_property(property_name: string, value: any): void;
2988
+ /**
2989
+ * Sets a property on an object.
2990
+ * @param property_name The name of the property to set
2991
+ * @param value The value to set the property to
2992
+ */
2993
+ set_property(property_name: string, value: GObject.Value | any): void;
2817
2994
  /**
2818
2995
  * Remove a specified datum from the object's data associations,
2819
2996
  * without invoking the association's destroy handler.
@@ -2963,11 +3140,31 @@ export namespace Garcon {
2963
3140
  * @param pspec
2964
3141
  */
2965
3142
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
3143
+ /**
3144
+ * 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.
3145
+ * @param id Handler ID of the handler to be disconnected
3146
+ */
2966
3147
  disconnect(id: number): void;
3148
+ /**
3149
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
3150
+ * @param properties Object containing the properties to set
3151
+ */
2967
3152
  set(properties: { [key: string]: any }): void;
2968
- block_signal_handler(id: number): any;
2969
- unblock_signal_handler(id: number): any;
2970
- stop_emission_by_name(detailedName: string): any;
3153
+ /**
3154
+ * Blocks a handler of an instance so it will not be called during any signal emissions
3155
+ * @param id Handler ID of the handler to be blocked
3156
+ */
3157
+ block_signal_handler(id: number): void;
3158
+ /**
3159
+ * Unblocks a handler so it will be called again during any signal emissions
3160
+ * @param id Handler ID of the handler to be unblocked
3161
+ */
3162
+ unblock_signal_handler(id: number): void;
3163
+ /**
3164
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
3165
+ * @param detailedName Name of the signal to stop emission of
3166
+ */
3167
+ stop_emission_by_name(detailedName: string): void;
2971
3168
  }
2972
3169
 
2973
3170
  type MenuClass = typeof Menu;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/garcon-1.0",
3
- "version": "4.18.2-4.0.0-beta.21",
3
+ "version": "4.18.2-4.0.0-beta.23",
4
4
  "description": "GJS TypeScript type definitions for Garcon-1.0, generated from library version 4.18.2",
5
5
  "type": "module",
6
6
  "module": "garcon-1.0.js",
@@ -31,12 +31,12 @@
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",
39
- "@girs/libxfce4util-1.0": "^1.0.0-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
+ "@girs/libxfce4util-1.0": "^1.0.0-4.0.0-beta.23"
40
40
  },
41
41
  "devDependencies": {
42
42
  "typescript": "*"