diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-12-15 14:32:27 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-12-15 14:32:27 +0000 |
commit | aaf57407f00aa59df3699794496fd42a731ad7db (patch) | |
tree | 62db182817ec8c3de63cd4cb5a4fa53322b69c80 /src/music-player-bridge.vala | |
parent | 57e6249df95fd120eee8ed4013210d359cdeee97 (diff) | |
download | ayatana-indicator-sound-aaf57407f00aa59df3699794496fd42a731ad7db.tar.gz ayatana-indicator-sound-aaf57407f00aa59df3699794496fd42a731ad7db.tar.bz2 ayatana-indicator-sound-aaf57407f00aa59df3699794496fd42a731ad7db.zip |
settings schema defined and handling code wrote
Diffstat (limited to 'src/music-player-bridge.vala')
-rw-r--r-- | src/music-player-bridge.vala | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/music-player-bridge.vala b/src/music-player-bridge.vala index 51ecc4c..6a45d0c 100644 --- a/src/music-player-bridge.vala +++ b/src/music-player-bridge.vala @@ -23,6 +23,7 @@ using GLib; public class MusicPlayerBridge : GLib.Object { + private SettingsManager settings_manager; private Dbusmenu.Menuitem root_menu; private HashMap<string, PlayerController> registered_clients; private Mpris2Watcher watcher; @@ -35,9 +36,14 @@ public class MusicPlayerBridge : GLib.Object construct{ this.registered_clients = new HashMap<string, PlayerController> (); - this.settings = new Settings("com.canonical.indicators.sound"); + this.settings_manager = new SettingsManager(); + this.settings_manager.connect.blacklist_updates (on_blacklist_update); } + private void on_black_list_updated ( string[] blacklist ) + { + debug("some blacklist update"); + } /*private void try_to_add_inactive_familiar_clients(){ foreach(string app in this.playersDB.records()){ @@ -143,7 +149,7 @@ public class MusicPlayerBridge : GLib.Object GLib.AppInfo app_info = info as GLib.AppInfo; return app_info; } - + private static string? fetch_icon_name(string desktop_path) { KeyFile desktop_keyfile = new KeyFile (); |