Gio.PropertyAction.new

function new(name: String, object: void, property_name: String): Gio.PropertyAction {
    // Gjs wrapper for g_property_action_new()
}
  

Creates a Gio.Action 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.

Since 2.38

name

the name of the action to create

object

the object that has the property to wrap

property_name

the name of the property

Returns

a new Gio.PropertyAction