Builder.valueFromStringType

Like gtk_builder_value_from_string(), this function demarshals a value from a string, but takes a GType instead of GParamSpec. This function calls g_value_init() on the value argument, so it need not be initialised beforehand. Upon errors FALSE will be returned and error will be assigned a GError from the GTK_BUILDER_ERROR domain. Since 2.12

class Builder
int
valueFromStringType

Parameters

type GType

the GType of the value

string string

the string representation of the value

value Value

the GValue to store the result in. out

Return Value

Type: int

TRUE on success

Throws

GException on failure.

Meta