Constructor

GioPropertyActionnew

Declaration

GPropertyAction*
g_property_action_new (
  const gchar* name,
  GObject* object,
  const gchar* property_name
)

Description

Creates a GAction corresponding to the value of property property_name on object.

The property must be existent and readable and writable (and not construct-only).

This function takes a reference on object and doesn’t release it until the action is destroyed.

Available since:2.38

Parameters

name const gchar*
 

The name of the action to create.

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

The object that has the property to wrap.

 The data is owned by the caller of the function.
property_name const gchar*
 

The name of the property.

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

Return value

Returns: GPropertyAction
 

A new GPropertyAction.

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