Method

GObjectValueset_static_string

Declaration [src]

void
g_value_set_static_string (
  GValue* value,
  const gchar* v_string
)

Description [src]

Set the contents of a G_TYPE_STRING GValue to v_string. The string is assumed to be static, and is thus not duplicated when setting the GValue.

If the the string is a canonical string, using g_value_set_interned_string() is more appropriate.

Parameters

v_string

Type: const gchar*

Static string to be set.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.