@@ -706,8 +706,8 @@ declare module 'gi://Gio?version=2.0' {
706706 MULTIDISK,
707707 /**
708708 * 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)
711711 */
712712 PASSWORD,
713713 }
@@ -5388,6 +5388,21 @@ declare module 'gi://Gio?version=2.0' {
53885388 * @returns a #GList of the UNIX mountpoints.
53895389 */
53905390 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];
53915406 /**
53925407 * Checks if the unix mounts have changed since a given unix time.
53935408 * @param time guint64 to contain a timestamp.
@@ -5402,6 +5417,21 @@ declare module 'gi://Gio?version=2.0' {
54025417 * @returns a #GList of the UNIX mounts.
54035418 */
54045419 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];
54055435 interface AsyncReadyCallback<A = GObject.Object> {
54065436 (source_object: A | null, res: AsyncResult, data?: any | null): void;
54075437 }
@@ -7036,10 +7066,12 @@ declare module 'gi://Gio?version=2.0' {
70367066 * [freedesktop.org Startup Notification Protocol](http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt).
70377067 *
70387068 * 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`.
70397071 * @param info the app info
7040- * @param files list of [iface@Gio.File] objects
7072+ * @param files a list of [iface@Gio.File] objects
70417073 */
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;
70437075 /**
70447076 * Called when an application has failed to launch, so that it can cancel
70457077 * the application startup notification started in
@@ -7083,11 +7115,13 @@ declare module 'gi://Gio?version=2.0' {
70837115 * [freedesktop.org Startup Notification Protocol](http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt).
70847116 *
70857117 * 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`.
70867120 * @param info the app info
7087- * @param files list of [iface@Gio.File] objects
7121+ * @param files a list of [iface@Gio.File] objects
70887122 * @returns a startup notification ID for the application, or `NULL` if not supported.
70897123 */
7090- get_startup_notify_id(info: AppInfo, files: File[]): string | null;
7124+ get_startup_notify_id(info? : AppInfo | null , files? : File[] | null ): string | null;
70917125 /**
70927126 * Called when an application has failed to launch, so that it can cancel
70937127 * the application startup notification started in
@@ -37372,6 +37406,8 @@ declare module 'gi://Gio?version=2.0' {
3737237406 *
3737337407 * 
3737437408 *
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`.
3737537411 * There are 8 ‘menus’ visible in the screenshot: one menubar, two
3737637412 * submenus and 5 sections:
3737737413 *
@@ -46744,7 +46780,7 @@ declare module 'gi://Gio?version=2.0' {
4674446780 * Looks into the system proxy configuration to determine what proxy,
4674546781 * if any, to use to connect to `uri`. The returned proxy URIs are of
4674646782 * 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
4674846784 * or other proxying protocol.
4674946785 *
4675046786 * If you don't know what network protocol is being used on the
@@ -46791,7 +46827,7 @@ declare module 'gi://Gio?version=2.0' {
4679146827 * Looks into the system proxy configuration to determine what proxy,
4679246828 * if any, to use to connect to `uri`. The returned proxy URIs are of
4679346829 * 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
4679546831 * or other proxying protocol.
4679646832 *
4679746833 * If you don't know what network protocol is being used on the
@@ -47718,7 +47754,7 @@ declare module 'gi://Gio?version=2.0' {
4771847754 * getsockopt(). (If you need to fetch a non-integer-valued option,
4771947755 * you will need to call getsockopt() directly.)
4772047756 *
47721- * The [<gio/gnetworking.h>][gio-gnetworking.h]
47757+ * The [` <gio/gnetworking.h>`](networking.html)
4772247758 * header pulls in system headers that will define most of the
4772347759 * standard/portable socket options. For unusual socket protocols or
4772447760 * platform-dependent options, you may need to include additional
@@ -48328,7 +48364,7 @@ declare module 'gi://Gio?version=2.0' {
4832848364 * setsockopt(). (If you need to set a non-integer-valued option,
4832948365 * you will need to call setsockopt() directly.)
4833048366 *
48331- * The [<gio/gnetworking.h>][gio-gnetworking.h]
48367+ * The [` <gio/gnetworking.h>`](networking.html)
4833248368 * header pulls in system headers that will define most of the
4833348369 * standard/portable socket options. For unusual socket protocols or
4833448370 * platform-dependent options, you may need to include additional
@@ -64157,7 +64193,7 @@ declare module 'gi://Gio?version=2.0' {
6415764193 }
6415864194
6415964195 /**
64160- * Defines a Unix mount entry (e.g. <filename> /media/cdrom</filename> ).
64196+ * Defines a Unix mount entry (e.g. ` /media/cdrom` ).
6416164197 * This corresponds roughly to a mtab entry.
6416264198 */
6416364199 abstract class UnixMountEntry {
@@ -64170,7 +64206,7 @@ declare module 'gi://Gio?version=2.0' {
6417064206
6417164207 type UnixMountMonitorClass = typeof UnixMountMonitor;
6417264208 /**
64173- * Defines a Unix mount point (e.g. <filename> /dev</filename> ).
64209+ * Defines a Unix mount point (e.g. ` /dev` ).
6417464210 * This corresponds roughly to a fstab entry.
6417564211 */
6417664212 abstract class UnixMountPoint {
@@ -73808,7 +73844,7 @@ declare module 'gi://Gio?version=2.0' {
7380873844 * Looks into the system proxy configuration to determine what proxy,
7380973845 * if any, to use to connect to `uri`. The returned proxy URIs are of
7381073846 * 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
7381273848 * or other proxying protocol.
7381373849 *
7381473850 * If you don't know what network protocol is being used on the
@@ -73858,7 +73894,7 @@ declare module 'gi://Gio?version=2.0' {
7385873894 * Looks into the system proxy configuration to determine what proxy,
7385973895 * if any, to use to connect to `uri`. The returned proxy URIs are of
7386073896 * 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
7386273898 * or other proxying protocol.
7386373899 *
7386473900 * If you don't know what network protocol is being used on the
0 commit comments