aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-07-11 13:26:56 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-07-11 13:26:56 +0200
commit9507f278131fc855c03a037cdba1053f958d2987 (patch)
treeb81019f0a3b44512a6e033752b901165ff645089
parent859b8bb032ac6cb4f1118b869cd115c561d4f2f5 (diff)
downloadayatana-indicator-sound-9507f278131fc855c03a037cdba1053f958d2987.tar.gz
ayatana-indicator-sound-9507f278131fc855c03a037cdba1053f958d2987.tar.bz2
ayatana-indicator-sound-9507f278131fc855c03a037cdba1053f958d2987.zip
Use interested-media-players instead of preferred-media-players gsettings key
-rw-r--r--src/service.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/service.vala b/src/service.vala
index 6a330f2..3d14d5e 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -40,9 +40,9 @@ public class IndicatorSound.Service {
this.menu = create_menu ();
this.root_menu = create_root_menu (this.menu);
- this.players.sync (settings.get_strv ("preferred-media-players"));
- this.settings.changed["preferred-media-players"].connect ( () => {
- this.players.sync (settings.get_strv ("preferred-media-players"));
+ this.players.sync (settings.get_strv ("interested-media-players"));
+ this.settings.changed["interested-media-players"].connect ( () => {
+ this.players.sync (settings.get_strv ("interested-media-players"));
});
}
@@ -263,7 +263,7 @@ public class IndicatorSound.Service {
var builder = new VariantBuilder (VariantType.STRING_ARRAY);
foreach (var player in this.players)
builder.add ("s", player.id);
- this.settings.set_value ("preferred-media-players", builder.end ());
+ this.settings.set_value ("interested-media-players", builder.end ());
}
void update_playlists (MediaPlayer player) {