Constructor

Adw.ValueObject.new_take_string

Declaration [src]

AdwValueObject*
adw_value_object_new_take_string (
  char* string
)

Description [src]

Creates a new AdwValueObject from a string.

This is a convenience method to create a AdwValueObject that stores a string taking ownership of it.

Parameters

string char*
 

the string to store

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string

Return value

Returns: AdwValueObject

the newly created AdwValueObject

Ownership of the data is transferred to the caller