summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-12-01 12:57:02 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2015-12-01 12:57:02 +0000
commita81568273c2fedf6ac435dcd51731f8e79840694 (patch)
treee9704187f82c4bb34f6ac6159e66202c58d06082
parentcfdd4cabe793d897f6dafd61391374099cd5ea1e (diff)
downloadglib-a81568273c2fedf6ac435dcd51731f8e79840694.tar.gz
docs: Be more precise on the use of set_resource_base_path()
The current wording is a bit vague on when to call set_resource_base_path() in a GApplication implementation.
-rw-r--r--gio/gapplication.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gio/gapplication.c b/gio/gapplication.c
index 98649b1c5..551e8ceb1 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -1767,7 +1767,12 @@ g_application_get_resource_base_path (GApplication *application)
*
* Changing the resource base path once the application is running is
* not recommended. The point at which the resource path is consulted
- * for forming paths for various purposes is unspecified.
+ * for forming paths for various purposes is unspecified. When writing
+ * a sub-class of #GApplication you should either set the
+ * #GApplication:resource-base-path property at construction time, or call
+ * this function during the instance initialization. Alternatively, you
+ * can call this function in the #GApplicationClass.startup virtual function,
+ * before chaining up to the parent implementation.
*
* Since: 2.42
*/