Function

GLibset_prgname_once

since: 2.0

Declaration

gboolean
g_set_prgname_once (
  const gchar* prgname
)

Description

If g_get_prgname() is not set, this is the same as setting the name via g_set_prgname() and TRUE is returned. Otherwise, does nothing and returns FALSE. This is thread-safe.

Available since: 2.0

Parameters

prgname

Type: const gchar*

The name of the program.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

Whether g_prgname was initialized by the call.