Constructor

Adw.ValueObject.new_string

Declaration [src]

AdwValueObject*
adw_value_object_new_string (
  const char* string
)

Description [src]

Creates a new AdwValueObject from a string.

This is a convenience method to create a AdwValueObject that stores a string.

Available since:1.0

Parameters

string const char*
 

the string to store

 The data is owned by the caller of the function
 The string is a NUL terminated UTF-8 string

Return value

Returns: AdwValueObject

the newly created AdwValueObject

The caller of the function takes ownership of the data, and is responsible for freeing it