From c7d325733c6a3bd384df6523350d9312df5ccc92 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 31 May 2017 11:08:55 +0100 Subject: [PATCH] docs: Mention GtkApplication in the GResource documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since GtkApplication auto-loads some well-known resource paths. Add a cross-reference to its documentation. (The cross-reference won’t be linked if the GTK+ documentation isn’t available at build time, but this is probably good enough. It is likely to be available.) Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=782336 --- gio/gresource.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gio/gresource.c b/gio/gresource.c index 117fe8cc4..9e1d481b0 100644 --- a/gio/gresource.c +++ b/gio/gresource.c @@ -133,6 +133,10 @@ G_DEFINE_BOXED_TYPE (GResource, g_resource, g_resource_ref, g_resource_unref) * to the data. You can also use URIs like "resource:///org/gtk/Example/data/splashscreen.png" with #GFile to access * the resource data. * + * Some higher-level APIs, such as #GtkApplication, will automatically load + * resources from certain well-known paths in the resource namespace as a + * convenience. See the documentation for those APIs for details. + * * There are two forms of the generated source, the default version uses the compiler support for constructor * and destructor functions (where available) to automatically create and register the #GResource on startup * or library load time. If you pass `--manual-register`, two functions to register/unregister the resource are created