diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2012-03-02 06:26:41 -0500 |
---|---|---|
committer | Package Import Robot <package-import@ubuntu.com> | 2012-03-02 06:26:41 -0500 |
commit | dc70d2a99fe514cd0eaa63b8a8142718f0a42a82 (patch) | |
tree | 1720b75b642bb345d8b9a77dd1ab5c6a21484911 /src/settings-manager.vala | |
parent | 78ef933f9aaa610506943638483a6ba2f936a960 (diff) | |
parent | 068f00cdfe7512aab9054af728e361226dcc9511 (diff) | |
download | ayatana-indicator-sound-dc70d2a99fe514cd0eaa63b8a8142718f0a42a82.tar.gz ayatana-indicator-sound-dc70d2a99fe514cd0eaa63b8a8142718f0a42a82.tar.bz2 ayatana-indicator-sound-dc70d2a99fe514cd0eaa63b8a8142718f0a42a82.zip |
Import upstream version 0.8.3.0
Diffstat (limited to 'src/settings-manager.vala')
-rw-r--r-- | src/settings-manager.vala | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/settings-manager.vala b/src/settings-manager.vala index a2be080..034cd03 100644 --- a/src/settings-manager.vala +++ b/src/settings-manager.vala @@ -46,7 +46,7 @@ public class SettingsManager : GLib.Object } if (s in list) continue; if (s in blacklisted) continue; - list.add(s); + list.add(s); } return list; } @@ -56,6 +56,20 @@ public class SettingsManager : GLib.Object this.settings.reset("interested-media-players"); } + public void remove_interested (string app_desktop_name) + { + var already_interested = this.settings.get_strv ("interested-media-players"); + var list = new ArrayList<string>(); + + foreach (var s in already_interested){ + if (s == app_desktop_name) continue; + list.add (s); + } + this.settings.set_strv("interested-media-players", + list.to_array()); + this.settings.apply(); + } + public void add_interested (string app_desktop_name) { var already_interested = this.settings.get_strv ("interested-media-players"); |