diff options
| author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2013-04-05 14:43:22 +0000 |
|---|---|---|
| committer | Tarmac <Unknown> | 2013-04-05 14:43:22 +0000 |
| commit | d774ac38dd84f52394bfcbb557b0e3475f999f34 (patch) | |
| tree | ecfa17ebc292904664ce58e5ecb5905744518bbb /src/player-controller.vala | |
| parent | a83c4b7d257344bff272c169e36736a2205fda31 (diff) | |
| parent | 0762482ba33dc83ce4675481895bf0cd6568e53d (diff) | |
| download | ayatana-indicator-sound-d774ac38dd84f52394bfcbb557b0e3475f999f34.tar.gz ayatana-indicator-sound-d774ac38dd84f52394bfcbb557b0e3475f999f34.tar.bz2 ayatana-indicator-sound-d774ac38dd84f52394bfcbb557b0e3475f999f34.zip | |
PlayerActivator: Use BAMF to find the windows to activate with timestamp
Improved the"old" GtkApplicationPlayer, using BAMF as a fallback method to
activate an application's windows. Basically we try to get the windows of the
selected application and when found we focus them using the activation
timestamp. Fixes: https://bugs.launchpad.net/bugs/627195.
Approved by PS Jenkins bot, Lars Uebernickel.
Diffstat (limited to 'src/player-controller.vala')
| -rw-r--r-- | src/player-controller.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala index dbe7c3c..8c3339e 100644 --- a/src/player-controller.vala +++ b/src/player-controller.vala @@ -45,7 +45,7 @@ public class PlayerController : GLib.Object public string dbus_name { get; set;} public ArrayList<PlayerItem> custom_items; public Mpris2Controller mpris_bridge; - public GtkApplicationPlayer gtk_app_player; + public PlayerActivator player_activator; public AppInfo? app_info { get; set;} public int menu_offset { get; set;} public string icon_name { get; set; } @@ -150,7 +150,7 @@ public class PlayerController : GLib.Object debug ( " establish mpris connection - use playlists value = %s ", this.use_playlists.to_string() ); this.mpris_bridge = new Mpris2Controller (this); - this.gtk_app_player = new GtkApplicationPlayer (this); + this.player_activator = new PlayerActivator (this); this.determine_state (); } |
