aboutsummaryrefslogtreecommitdiff
path: root/src/music-player-bridge.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-12-14 16:41:10 +0000
committerConor Curran <conor.curran@canonical.com>2010-12-14 16:41:10 +0000
commit8396e05ce716296377f2e4550e0c929dca30518e (patch)
tree0d718fe2e9c09c068a8b6f10559ad8f4956eec84 /src/music-player-bridge.vala
parent2a35f9b78b75cd95090142b891c401a46eec9bf3 (diff)
downloadayatana-indicator-sound-8396e05ce716296377f2e4550e0c929dca30518e.tar.gz
ayatana-indicator-sound-8396e05ce716296377f2e4550e0c929dca30518e.tar.bz2
ayatana-indicator-sound-8396e05ce716296377f2e4550e0c929dca30518e.zip
gsettings all the way
Diffstat (limited to 'src/music-player-bridge.vala')
-rw-r--r--src/music-player-bridge.vala10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/music-player-bridge.vala b/src/music-player-bridge.vala
index 0d1b0e4..51ecc4c 100644
--- a/src/music-player-bridge.vala
+++ b/src/music-player-bridge.vala
@@ -27,12 +27,18 @@ public class MusicPlayerBridge : GLib.Object
private HashMap<string, PlayerController> registered_clients;
private Mpris2Watcher watcher;
private const string DESKTOP_PREFIX = "/usr/share/applications/";
-
+ private Settings settings;
+
public MusicPlayerBridge()
{
- registered_clients = new HashMap<string, PlayerController> ();
}
+ construct{
+ this.registered_clients = new HashMap<string, PlayerController> ();
+ this.settings = new Settings("com.canonical.indicators.sound");
+ }
+
+
/*private void try_to_add_inactive_familiar_clients(){
foreach(string app in this.playersDB.records()){
if(app == null){