mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 23:46:15 +01:00
gutils: Add (nullable) annotation to g_get_prgname()
It can return NULL if no program name has been set yet (i.e. g_set_prgname() has not been called from somewhere). Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
9976418262
commit
c1c26448b1
@ -1037,7 +1037,8 @@ static gchar *g_prgname = NULL;
|
||||
* #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
|
||||
* Returns: (nullable): the name of the program, or %NULL if it has not been
|
||||
* set yet. The returned string belongs
|
||||
* to GLib and must not be modified or freed.
|
||||
*/
|
||||
const gchar*
|
||||
|
Loading…
Reference in New Issue
Block a user