summaryrefslogtreecommitdiff
path: root/src/trg-prefs.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-11-30 18:54:29 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-11-30 18:54:29 +0000
commit7bc8fe632f29a875659f223ad1e9aa035c56f46c (patch)
tree8a13af1000337feade93762295b213283b03d089 /src/trg-prefs.c
parent6df6b7c2a2383d01a6fc20e597f48b0168ccfeb5 (diff)
add some comments at the top of some files, also add a timeout of 20 seconds for curl requests
Diffstat (limited to 'src/trg-prefs.c')
-rw-r--r--src/trg-prefs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/trg-prefs.c b/src/trg-prefs.c
index ae3996f..33d8f39 100644
--- a/src/trg-prefs.c
+++ b/src/trg-prefs.c
@@ -28,6 +28,14 @@
#include "trg-client.h"
#include "trg-prefs.h"
+/* I replaced GConf with this custom configuration backend for a few reasons.
+ * 1) Better windows support. No dependency on DBus.
+ * 2) We're including a JSON parser/writer anyway.
+ * 3) The GConf API is pretty verbose sometimes, working with lists is awkward.
+ * 4) Easily switch between profiles, and scope config to either profiles or global.
+ * 5) Transparently use configurables from the current connection, not current profile.
+ */
+
G_DEFINE_TYPE (TrgPrefs, trg_prefs, G_TYPE_OBJECT)
#define GET_PRIVATE(o) \