RmSettings

RmSettings — Settings wrapper (either uses default GSettings backend or keyfile backend depending on compilation)

Stability Level

Stable, unless otherwise indicated

Functions

GSettings * rm_settings_new ()
GSettings * rm_settings_new_with_path ()
GSettings * rm_settings_new_profile ()
gboolean rm_settings_backend_is_dconf ()

Description

Settings keeps track of application/user preferences and stores them in the selected backend.

Functions

rm_settings_new ()

GSettings *
rm_settings_new (gchar *scheme);

Creates new GSettings configuration (either keyfile based, or system based (default)).

Parameters

scheme

scheme name

 

Returns

newly create gsettings


rm_settings_new_with_path ()

GSettings *
rm_settings_new_with_path (gchar *scheme,
                           gchar *path);

Creates new GSettings configuration with settings path (either keyfile based, or system based (default)).

Parameters

scheme

scheme name

 

path

settings path name

 

Returns

newly create gsettings


rm_settings_new_profile ()

GSettings *
rm_settings_new_profile (gchar *scheme,
                         gchar *name,
                         gchar *profile_name);

Creates new GSettings configuration with a profile specfic settings path (either keyfile based, or system based (default)).

Parameters

scheme

scheme name

 

name

settings name

 

profile_name

profile name

 

Returns

newly create gsettings


rm_settings_backend_is_dconf ()

gboolean
rm_settings_backend_is_dconf (void);

Checks whether backend is dconf.

Returns

TRUE if dconf settings is used, otherwise FALSE