property_set_bool


Description:

public bool property_set_bool (string property, bool value)

Takes a boolean value and sets it on property as a property on this.

If a property already exists by that name, then the value is set to the new value. If not, the property is added. If the value is changed or the property was previously unset then the signal DbusmenuMenuitem::prop-changed will be emitted by this function.

Parameters:

this

The Menuitem to set the property on.

property

Name of the property to set.

value

The value of the property.

Returns:

A boolean representing if the property value was set.