mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-25 16:46:52 +02:00
gutils: make documentation of g_set_prgname() clearer
This commit is contained in:
parent
913a1bfd85
commit
ead02072a4
@ -1154,12 +1154,15 @@ g_get_prgname (void)
|
|||||||
* If you are using #GApplication the program name is set in
|
* If you are using #GApplication the program name is set in
|
||||||
* g_application_run(). In case of GDK or GTK it 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
|
* gdk_init(), which is called by gtk_init() and the
|
||||||
* #GtkApplication::startup handler. The program name is found by
|
* #GtkApplication::startup handler. By default, the program name is
|
||||||
* taking the last component of @argv[0].
|
* found by taking the last component of @argv[0].
|
||||||
*
|
*
|
||||||
* Since GLib 2.72, this function can be called multiple times
|
* Since GLib 2.72, this function can be called multiple times
|
||||||
* and is fully thread safe. Prior to GLib 2.72, this function
|
* and is fully thread safe. Prior to GLib 2.72, this function
|
||||||
* could only be called once per process.
|
* could only be called once per process.
|
||||||
|
*
|
||||||
|
* See the [GTK documentation](https://docs.gtk.org/gtk4/migrating-3to4.html#set-a-proper-application-id)
|
||||||
|
* for requirements on integrating g_set_prgname() with GTK applications.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
g_set_prgname (const gchar *prgname)
|
g_set_prgname (const gchar *prgname)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user