2
#ifndef GREETER_CONFIGURATION_H
3
#define GREETER_CONFIGURATION_H
8
#define CONFIG_GROUP_DEFAULT "greeter"
9
#define CONFIG_KEY_INDICATORS "indicators"
10
#define CONFIG_KEY_DEBUGGING "allow-debugging"
11
#define CONFIG_KEY_SCREENSAVER_TIMEOUT "screensaver-timeout"
12
#define CONFIG_KEY_THEME "theme-name"
13
#define CONFIG_KEY_ICON_THEME "icon-theme-name"
14
#define CONFIG_KEY_CURSOR_THEME "cursor-theme-name"
15
#define CONFIG_KEY_CURSOR_THEME_SIZE "cursor-theme-size"
16
#define CONFIG_KEY_FONT "font-name"
17
#define CONFIG_KEY_DPI "xft-dpi"
18
#define CONFIG_KEY_ANTIALIAS "xft-antialias"
19
#define CONFIG_KEY_HINT_STYLE "xft-hintstyle"
20
#define CONFIG_KEY_RGBA "xft-rgba"
21
#define CONFIG_KEY_HIDE_USER_IMAGE "hide-user-image"
22
#define CONFIG_KEY_DEFAULT_USER_IMAGE "default-user-image"
23
#define CONFIG_KEY_KEYBOARD "keyboard"
24
#define CONFIG_KEY_READER "reader"
25
#define CONFIG_KEY_CLOCK_FORMAT "clock-format"
26
#define CONFIG_KEY_ACTIVE_MONITOR "active-monitor"
27
#define CONFIG_KEY_POSITION "position"
28
#define CONFIG_KEY_PANEL_POSITION "panel-position"
29
#define CONFIG_KEY_KEYBOARD_POSITION "keyboard-position"
30
#define CONFIG_KEY_A11Y_STATES "a11y-states"
32
#define CONFIG_GROUP_MONITOR "monitor:"
33
#define CONFIG_KEY_BACKGROUND "background"
34
#define CONFIG_KEY_USER_BACKGROUND "user-background"
35
#define CONFIG_KEY_LAPTOP "laptop"
36
#define CONFIG_KEY_T_TYPE "transition-type"
37
#define CONFIG_KEY_T_DURATION "transition-duration"
39
#define STATE_SECTION_GREETER "/greeter"
40
#define STATE_SECTION_A11Y "/a11y-states"
41
#define STATE_KEY_LAST_USER "last-user"
42
#define STATE_KEY_LAST_SESSION "last-session"
45
void config_init (void);
47
gchar** config_get_groups (const gchar* prefix);
48
gboolean config_has_key (const gchar* group, const gchar* key);
50
gchar* config_get_string (const gchar* group, const gchar* key, const gchar* fallback);
51
void config_set_string (const gchar* group, const gchar* key, const gchar* value);
52
gchar** config_get_string_list (const gchar* group, const gchar* key, gchar** fallback);
53
gint config_get_int (const gchar* group, const gchar* key, gint fallback);
54
void config_set_int (const gchar* group, const gchar* key, gint value);
55
gboolean config_get_bool (const gchar* group, const gchar* key, gboolean fallback);
56
void config_set_bool (const gchar* group, const gchar* key, gboolean value);
57
gint config_get_enum (const gchar* group, const gchar* key, gint fallback, const gchar* first_name, ...) G_GNUC_NULL_TERMINATED;
59
#endif //GREETER_CONFIGURATION_H