mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
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:
parent
6863080c32
commit
debbdb7ce7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user