diff --git a/glib/gutils.c b/glib/gutils.c index 5f98e6e3d..70b08b6e1 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -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