value_from_string_type


Description:

public bool value_from_string_type (Type type, string str, out Value value) throws Error

Demarshals a value from a string.

Unlike [method@Gtk.Builder.value_from_string], this function takes a `GType` instead of `GParamSpec`.

Calls Value on the value argument, so it need not be initialised beforehand.

Upon errors false will be returned and throws will be assigned a `GError` from the gtk_builder_error domain.

Parameters:

this

a `GtkBuilder`

type

the `GType` of the value

value

the `GValue` to store the result in

string

the string representation of the value

Returns:

true on success