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 [[email protected]_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




2022 vala-language.org