summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-11 23:39:58 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-11 23:39:58 +0000
commitf26e4b0c4fb9e3c13dfa831c840031a0b2e2a605 (patch)
treeaa3c8d9691d6d52caf7508cf078e6771fcc292ae /src
parent2a12629a2e9e21e8917036ecb15b539a0ed31063 (diff)
add missing gconf schema entries for filter preferences
Diffstat (limited to 'src')
-rw-r--r--src/transmission-remote-gtk.schemas26
-rw-r--r--src/trg-state-selector.c4
2 files changed, 28 insertions, 2 deletions
diff --git a/src/transmission-remote-gtk.schemas b/src/transmission-remote-gtk.schemas
index 6e8f784..6fa2cc8 100644
--- a/src/transmission-remote-gtk.schemas
+++ b/src/transmission-remote-gtk.schemas
@@ -28,6 +28,32 @@
</schema>
<schema>
+ <key>/schemas/apps/transmission-remote-gtk/filter-dirs</key>
+ <applyto>/apps/transmission-remote-gtk/filter-dirs</applyto>
+ <owner>transmission-remote-gtk</owner>
+ <type>bool</type>
+ <default>0</default>
+
+ <locale name="C">
+ <short>Filter dirs</short>
+ <long>Filter dirs</long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/transmission-remote-gtk/filter-trackers</key>
+ <applyto>/apps/transmission-remote-gtk/filter-trackers</applyto>
+ <owner>transmission-remote-gtk</owner>
+ <type>bool</type>
+ <default>1</default>
+
+ <locale name="C">
+ <short>Filter trackers</short>
+ <long>Filter trackers</long>
+ </locale>
+ </schema>
+
+ <schema>
<key>/schemas/apps/transmission-remote-gtk/ssl</key>
<applyto>/apps/transmission-remote-gtk/ssl</applyto>
<owner>transmission-remote-gtk</owner>
diff --git a/src/trg-state-selector.c b/src/trg-state-selector.c
index b6447ee..1cde8a2 100644
--- a/src/trg-state-selector.c
+++ b/src/trg-state-selector.c
@@ -437,8 +437,8 @@ TrgStateSelector *trg_state_selector_new(trg_client * client)
priv->client = client;
priv->showDirs =
- gconf_client_get_bool_or_true(client->gconf,
- TRG_GCONF_KEY_FILTER_DIRS);
+ gconf_client_get_bool(client->gconf,
+ TRG_GCONF_KEY_FILTER_DIRS, NULL);
priv->showTrackers =
gconf_client_get_bool_or_true(client->gconf,
TRG_GCONF_KEY_FILTER_TRACKERS);