From 7bc8fe632f29a875659f223ad1e9aa035c56f46c Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Wed, 30 Nov 2011 18:54:29 +0000 Subject: add some comments at the top of some files, also add a timeout of 20 seconds for curl requests --- src/trg-prefs.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/trg-prefs.c') 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) \ -- cgit v1.2.3