diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-02-17 23:36:41 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-02-17 23:36:41 +0000 |
commit | bfff941cb7fdb428de57971831e39e3cf660112b (patch) | |
tree | e74ff5edb16e7c296f89e9d895a927de80916188 /src/trg-client.c | |
parent | 973aaa9d9a020e1644ce2fe45fd3613422f6ada9 (diff) |
tracker manipulation almost complete, addition needs some work. configurable update interval.
Diffstat (limited to 'src/trg-client.c')
-rw-r--r-- | src/trg-client.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/trg-client.c b/src/trg-client.c index bb8dd68..8e7c46a 100644 --- a/src/trg-client.c +++ b/src/trg-client.c @@ -24,6 +24,11 @@ #include "trg-client.h" #include "trg-preferences.h" +gboolean trg_client_supports_tracker_edit(trg_client *tc) +{ + return tc->session != NULL && tc->version >= 2.10; +} + trg_client *trg_init_client() { trg_client *client; @@ -78,6 +83,11 @@ int trg_client_populate_with_settings(trg_client * tc, GConfClient * gconf) tc->ssl ? "https" : "http", host, port); g_free(host); + tc->interval = gconf_client_get_int(gconf, TRG_GCONF_KEY_UPDATE_INTERVAL, &error); + check_for_error(error); + if (tc->interval < 1) + tc->interval = 3; + tc->username = gconf_client_get_string(gconf, TRG_GCONF_KEY_USERNAME, &error); check_for_error(error); |