aboutsummaryrefslogtreecommitdiff
path: root/src/music-player-bridge.vala
diff options
context:
space:
mode:
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 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 ();