docs: The program name is also set by g_application_run

https://bugzilla.gnome.org/show_bug.cgi?id=783524
This commit is contained in:
Debarshi Ray 2017-06-07 20:57:24 +02:00
parent 6863080c32
commit debbdb7ce7

View File

@ -1003,9 +1003,11 @@ static gchar *g_prgname = NULL;
* Gets the name of the program. This name should not be localized,
* in contrast to g_get_application_name().
*
* If you are using GDK or GTK+ the program name is set in gdk_init(),
* which is called by gtk_init(). The program name is found by taking
* the last component of @argv[0].
* If you are using #GApplication the program name is set in
* g_application_run(). In case of GDK or GTK+ it is set in
* gdk_init(), which is called by gtk_init() and the
* #GtkApplication::startup handler. The program name is found by
* taking the last component of @argv[0].
*
* Returns: the name of the program. The returned string belongs
* to GLib and must not be modified or freed.
@ -1052,6 +1054,12 @@ g_get_prgname (void)
* Sets the name of the program. This name should not be localized,
* in contrast to g_set_application_name().
*
* If you are using #GApplication the program name is set in
* g_application_run(). In case of GDK or GTK+ it is set in
* gdk_init(), which is called by gtk_init() and the
* #GtkApplication::startup handler. The program name is found by
* taking the last component of @argv[0].
*
* Note that for thread-safety reasons this function can only be called once.
*/
void