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.
This commit is contained in:
Emmanuele Bassi 2015-12-01 12:57:02 +00:00
parent cfdd4cabe7
commit a81568273c

View File

@ -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
*/