mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-15 05:46:15 +01:00
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:
parent
cfdd4cabe7
commit
a81568273c
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user