Constructor
IdeSettingsFlagActionnew
Declaration
IdeSettingsFlagAction*
ide_settings_flag_action_new (
const char* schema_id,
const char* schema_key,
const char* path,
const char* flag_nick
)
Description
This creates a new action that can be used to toggle an individual flag in
a GSettings key which is of a flags type.
Parameters
schema_id-
Type:
const char*The settings schema.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. schema_key-
Type:
const char*The flags key with in
schema_id.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. path-
Type:
const char*The path for the schema or
NULL.The argument can be NULL.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. flag_nick-
Type:
const char*The nick within the flag to toggle.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
Return value
Type: IdeSettingsFlagAction
A new IdeSettingsFlagAction.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |