aboutsummaryrefslogtreecommitdiff
path: root/src/settings-manager.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-12-15 16:23:15 +0000
committerConor Curran <conor.curran@canonical.com>2010-12-15 16:23:15 +0000
commitbb13f9134c42480ada8128cfbd3b19ec2d68865b (patch)
treee1b6032db870c69f07af556540a43e0efdb098bb /src/settings-manager.vala
parentaaf57407f00aa59df3699794496fd42a731ad7db (diff)
downloadayatana-indicator-sound-bb13f9134c42480ada8128cfbd3b19ec2d68865b.tar.gz
ayatana-indicator-sound-bb13f9134c42480ada8128cfbd3b19ec2d68865b.tar.bz2
ayatana-indicator-sound-bb13f9134c42480ada8128cfbd3b19ec2d68865b.zip
clients properly remembered using gsettings
Diffstat (limited to 'src/settings-manager.vala')
-rw-r--r--src/settings-manager.vala12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/settings-manager.vala b/src/settings-manager.vala
index 9068c05..05db430 100644
--- a/src/settings-manager.vala
+++ b/src/settings-manager.vala
@@ -28,27 +28,27 @@ public class SettingsManager : GLib.Object
construct{
this.settings = new Settings ("com.canonical.indicators.sound");
settings.changed["blacklisted-media-players"].connect (on_blacklist_event);
- this.fetch_entries.begin();
}
public string[] fetch_blacklist()
{
- return this.blacklist_updates(this.settings.get_strv ("blacklisted-media-players"));
+ return this.settings.get_strv ("blacklisted-media-players");
}
public string[] fetch_interested()
{
- return this.interested_updates(this.settings.get_strv ("interested-media-players"));
+ return this.settings.get_strv ("interested-media-players");
}
public bool add_interested(string app_desktop_name)
{
string[] already_interested = fetch_interested();
- already_interested.append ( app_desktop_name );
- return this.settings.set_strv( already_interested );
+ already_interested += (app_desktop_name);
+ return this.settings.set_strv( "interested-media-players",
+ already_interested );
}
- private on_blacklist_event()
+ private void on_blacklist_event()
{
this.blacklist_updates(this.settings.get_strv ("blacklisted-media-players"));
}