Builder.valueFromStringType

bool valueFromStringType(gobject.types.GType type, string string_, out gobject.value.Value value)

Demarshals a value from a string.

Unlike gtk.builder.Builder.valueFromString, this function takes a GType instead of gobject.param_spec.ParamSpec.

Calls gobject.value.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 glib.error.ErrorWrap from the GTK_BUILDER_ERROR domain.

Parameters

typethe GType of the value
string_the string representation of the value
valuethe gobject.value.Value to store the result in

Returns

true on success

Throws