about summary refs log tree commit diff stats
path: root/src/config/preferences.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/preferences.c')
-rw-r--r--src/config/preferences.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index aeff94f1..fe6d0626 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -52,6 +52,7 @@
 #include "preferences.h"
 #include "tools/autocomplete.h"
 
+// preference groups refer to the sections in .profrc, for example [ui]
 #define PREF_GROUP_LOGGING "logging"
 #define PREF_GROUP_CHATSTATES "chatstates"
 #define PREF_GROUP_UI "ui"
@@ -487,6 +488,9 @@ _get_preferences_file(void)
     return result;
 }
 
+// get the preference group for a specific preference
+// for example the PREF_BEEP setting ("beep" in .profrc, see _get_key) belongs
+// to the [ui] section.
 static const char *
 _get_group(preference_t pref)
 {
@@ -552,6 +556,8 @@ _get_group(preference_t pref)
     }
 }
 
+// get the key used in .profrc for the preference
+// for example the PREF_AUTOAWAY_MODE maps to "autoaway.mode" in .profrc
 static const char *
 _get_key(preference_t pref)
 {
@@ -658,6 +664,8 @@ _get_key(preference_t pref)
     }
 }
 
+// the default setting for a boolean type preference
+// if it is not specified in .profrc
 static gboolean
 _get_default_boolean(preference_t pref)
 {
@@ -681,6 +689,8 @@ _get_default_boolean(preference_t pref)
     }
 }
 
+// the default setting for a string type preference
+// if it is not specified in .profrc
 static char *
 _get_default_string(preference_t pref)
 {
Add for support for, and enable GTK3 as default.' href='/novaburst/xombrero/commit/Makefile?id=1132d68aa111a6ae3eb3df093811791415f2bdcc'>1132d68 ^
1b7c992 ^

1132d68 ^



4b65986
b7c8e20 ^
f2fc48a ^
5886a9a ^

24a6af8 ^
62ea09e ^
a91914c ^
68a74b3 ^
77b17b2 ^
68a74b3 ^

294d324 ^
3eaf180 ^
7d377d0 ^
71f6dcd ^
483a250 ^










71f6dcd ^
7d377d0 ^




abbca62 ^
0761681 ^
7fe5675 ^
77b17b2 ^
1132d68 ^
77b17b2 ^







0c240f7 ^
71f6dcd ^
7d377d0 ^
71f6dcd ^
62ea09e ^

c3c8375 ^
62ea09e ^




c3c8375 ^
62ea09e ^






68a74b3 ^
62ea09e ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91