add_boolean_setting


Description:

public unowned SwitchRow add_boolean_setting (string label, bool value, BooleanCallback on_value_changed, ResetCallback on_reset, Settings settings)

Add a new boolean settings to the current pane

Parameters:

this

a PreferencesGroup instance

label

the label to display

value

the deafault value

on_value_changed

the callback to call when the value changes

on_reset

the callback to call when the value is reset

settings

a Settings instance

Returns:

the SwitchRow we just added