Sets our main struct and passes it to the parent class.
Creates a new #GStrvBuilder with a reference count of 1. Use g_strv_builder_unref() on the returned value when no longer needed.
Add a string to the end of the array.
Ends the builder process and returns the constructed NULL-terminated string array. The returned value should be freed with g_strfreev() when no longer needed.
the main Gtk struct as a void*
Get the main Gtk struct
Atomically increments the reference count of @builder by one. This function is thread-safe and may be called from any thread.
Decreases the reference count on @builder.
the main Gtk struct
#GStrvBuilder is a method of easily building dynamically sized NULL-terminated string arrays.
The following example shows how to build a two element array:
|[<!-- language="C" --> g_autoptr(GStrvBuilder) builder = g_strv_builder_new (); g_strv_builder_add (builder, "hello"); g_strv_builder_add (builder, "world"); g_auto(GStrv) array = g_strv_builder_end (builder); ]|