@@ -706,8 +706,8 @@ declare module 'gi://Gio?version=2.0' {
706
706
MULTIDISK,
707
707
/**
708
708
* The start/stop methods will
709
- * unlock/lock the disk (for example using the ATA <quote> SECURITY
710
- * UNLOCK DEVICE</quote> command)
709
+ * unlock/lock the disk (for example using the ATA ` SECURITY UNLOCK
710
+ * DEVICE` command)
711
711
*/
712
712
PASSWORD,
713
713
}
@@ -5388,6 +5388,21 @@ declare module 'gi://Gio?version=2.0' {
5388
5388
* @returns a #GList of the UNIX mountpoints.
5389
5389
*/
5390
5390
function unix_mount_points_get(): [UnixMountPoint[], number];
5391
+ /**
5392
+ * Gets an array of [struct`Gio`.UnixMountPoint]s containing the Unix mount
5393
+ * points listed in `table_path`.
5394
+ *
5395
+ * This is a generalized version of g_unix_mount_points_get(), mainly intended
5396
+ * for internal testing use. Note that g_unix_mount_points_get() may parse
5397
+ * multiple hierarchical table files, so this function is not a direct superset
5398
+ * of its functionality.
5399
+ *
5400
+ * If there is an error reading or parsing the file, `NULL` will be returned
5401
+ * and both out parameters will be set to `0`.
5402
+ * @param table_path path to the mount points table file (for example `/etc/fstab`)
5403
+ * @returns mount points, or `NULL` if there was an error loading them
5404
+ */
5405
+ function unix_mount_points_get_from_file(table_path: string): [UnixMountPoint[] | null, number];
5391
5406
/**
5392
5407
* Checks if the unix mounts have changed since a given unix time.
5393
5408
* @param time guint64 to contain a timestamp.
@@ -5402,6 +5417,21 @@ declare module 'gi://Gio?version=2.0' {
5402
5417
* @returns a #GList of the UNIX mounts.
5403
5418
*/
5404
5419
function unix_mounts_get(): [UnixMountEntry[], number];
5420
+ /**
5421
+ * Gets an array of [struct`Gio`.UnixMountEntry]s containing the Unix mounts
5422
+ * listed in `table_path`.
5423
+ *
5424
+ * This is a generalized version of g_unix_mounts_get(), mainly intended for
5425
+ * internal testing use. Note that g_unix_mounts_get() may parse multiple
5426
+ * hierarchical table files, so this function is not a direct superset of its
5427
+ * functionality.
5428
+ *
5429
+ * If there is an error reading or parsing the file, `NULL` will be returned
5430
+ * and both out parameters will be set to `0`.
5431
+ * @param table_path path to the mounts table file (for example `/proc/self/mountinfo`)
5432
+ * @returns mount entries, or `NULL` if there was an error loading them
5433
+ */
5434
+ function unix_mounts_get_from_file(table_path: string): [UnixMountEntry[] | null, number];
5405
5435
interface AsyncReadyCallback<A = GObject.Object> {
5406
5436
(source_object: A | null, res: AsyncResult, data?: any | null): void;
5407
5437
}
@@ -7036,10 +7066,12 @@ declare module 'gi://Gio?version=2.0' {
7036
7066
* [freedesktop.org Startup Notification Protocol](http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt).
7037
7067
*
7038
7068
* Support for the XDG Activation Protocol was added in GLib 2.76.
7069
+ * Since GLib 2.82 `info` and `files` can be `NULL`. If that’s not supported by the backend,
7070
+ * the returned token will be `NULL`.
7039
7071
* @param info the app info
7040
- * @param files list of [
[email protected] ] objects
7072
+ * @param files
a list of [
[email protected] ] objects
7041
7073
*/
7042
- vfunc_get_startup_notify_id(info: AppInfo, files: File[]): string | null;
7074
+ vfunc_get_startup_notify_id(info? : AppInfo | null , files? : File[] | null ): string | null;
7043
7075
/**
7044
7076
* Called when an application has failed to launch, so that it can cancel
7045
7077
* the application startup notification started in
@@ -7083,11 +7115,13 @@ declare module 'gi://Gio?version=2.0' {
7083
7115
* [freedesktop.org Startup Notification Protocol](http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt).
7084
7116
*
7085
7117
* Support for the XDG Activation Protocol was added in GLib 2.76.
7118
+ * Since GLib 2.82 `info` and `files` can be `NULL`. If that’s not supported by the backend,
7119
+ * the returned token will be `NULL`.
7086
7120
* @param info the app info
7087
- * @param files list of [
[email protected] ] objects
7121
+ * @param files
a list of [
[email protected] ] objects
7088
7122
* @returns a startup notification ID for the application, or `NULL` if not supported.
7089
7123
*/
7090
- get_startup_notify_id(info: AppInfo, files: File[]): string | null;
7124
+ get_startup_notify_id(info? : AppInfo | null , files? : File[] | null ): string | null;
7091
7125
/**
7092
7126
* Called when an application has failed to launch, so that it can cancel
7093
7127
* the application startup notification started in
@@ -37372,6 +37406,8 @@ declare module 'gi://Gio?version=2.0' {
37372
37406
*
37373
37407
* 
37374
37408
*
37409
+ * While this kind of deeply nested menu is no longer considered good UI
37410
+ * practice, it serves as a good example of the concepts in `GMenuModel`.
37375
37411
* There are 8 ‘menus’ visible in the screenshot: one menubar, two
37376
37412
* submenus and 5 sections:
37377
37413
*
@@ -46744,7 +46780,7 @@ declare module 'gi://Gio?version=2.0' {
46744
46780
* Looks into the system proxy configuration to determine what proxy,
46745
46781
* if any, to use to connect to `uri`. The returned proxy URIs are of
46746
46782
* the form `<protocol>://[user[:password]`]`host[:port]` or
46747
- * `direct://`, where <protocol> could be http, rtsp, socks
46783
+ * `direct://`, where ` <protocol>` could be http, rtsp, socks
46748
46784
* or other proxying protocol.
46749
46785
*
46750
46786
* If you don't know what network protocol is being used on the
@@ -46791,7 +46827,7 @@ declare module 'gi://Gio?version=2.0' {
46791
46827
* Looks into the system proxy configuration to determine what proxy,
46792
46828
* if any, to use to connect to `uri`. The returned proxy URIs are of
46793
46829
* the form `<protocol>://[user[:password]`]`host[:port]` or
46794
- * `direct://`, where <protocol> could be http, rtsp, socks
46830
+ * `direct://`, where ` <protocol>` could be http, rtsp, socks
46795
46831
* or other proxying protocol.
46796
46832
*
46797
46833
* If you don't know what network protocol is being used on the
@@ -47718,7 +47754,7 @@ declare module 'gi://Gio?version=2.0' {
47718
47754
* getsockopt(). (If you need to fetch a non-integer-valued option,
47719
47755
* you will need to call getsockopt() directly.)
47720
47756
*
47721
- * The [<gio/gnetworking.h>][gio-gnetworking.h]
47757
+ * The [` <gio/gnetworking.h>`](networking.html)
47722
47758
* header pulls in system headers that will define most of the
47723
47759
* standard/portable socket options. For unusual socket protocols or
47724
47760
* platform-dependent options, you may need to include additional
@@ -48328,7 +48364,7 @@ declare module 'gi://Gio?version=2.0' {
48328
48364
* setsockopt(). (If you need to set a non-integer-valued option,
48329
48365
* you will need to call setsockopt() directly.)
48330
48366
*
48331
- * The [<gio/gnetworking.h>][gio-gnetworking.h]
48367
+ * The [` <gio/gnetworking.h>`](networking.html)
48332
48368
* header pulls in system headers that will define most of the
48333
48369
* standard/portable socket options. For unusual socket protocols or
48334
48370
* platform-dependent options, you may need to include additional
@@ -64157,7 +64193,7 @@ declare module 'gi://Gio?version=2.0' {
64157
64193
}
64158
64194
64159
64195
/**
64160
- * Defines a Unix mount entry (e.g. <filename> /media/cdrom</filename> ).
64196
+ * Defines a Unix mount entry (e.g. ` /media/cdrom` ).
64161
64197
* This corresponds roughly to a mtab entry.
64162
64198
*/
64163
64199
abstract class UnixMountEntry {
@@ -64170,7 +64206,7 @@ declare module 'gi://Gio?version=2.0' {
64170
64206
64171
64207
type UnixMountMonitorClass = typeof UnixMountMonitor;
64172
64208
/**
64173
- * Defines a Unix mount point (e.g. <filename> /dev</filename> ).
64209
+ * Defines a Unix mount point (e.g. ` /dev` ).
64174
64210
* This corresponds roughly to a fstab entry.
64175
64211
*/
64176
64212
abstract class UnixMountPoint {
@@ -73808,7 +73844,7 @@ declare module 'gi://Gio?version=2.0' {
73808
73844
* Looks into the system proxy configuration to determine what proxy,
73809
73845
* if any, to use to connect to `uri`. The returned proxy URIs are of
73810
73846
* the form `<protocol>://[user[:password]`]`host[:port]` or
73811
- * `direct://`, where <protocol> could be http, rtsp, socks
73847
+ * `direct://`, where ` <protocol>` could be http, rtsp, socks
73812
73848
* or other proxying protocol.
73813
73849
*
73814
73850
* If you don't know what network protocol is being used on the
@@ -73858,7 +73894,7 @@ declare module 'gi://Gio?version=2.0' {
73858
73894
* Looks into the system proxy configuration to determine what proxy,
73859
73895
* if any, to use to connect to `uri`. The returned proxy URIs are of
73860
73896
* the form `<protocol>://[user[:password]`]`host[:port]` or
73861
- * `direct://`, where <protocol> could be http, rtsp, socks
73897
+ * `direct://`, where ` <protocol>` could be http, rtsp, socks
73862
73898
* or other proxying protocol.
73863
73899
*
73864
73900
* If you don't know what network protocol is being used on the
0 commit comments