diff options
| author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2013-04-05 14:29:10 +0000 |
|---|---|---|
| committer | Tarmac <Unknown> | 2013-04-05 14:29:10 +0000 |
| commit | a83c4b7d257344bff272c169e36736a2205fda31 (patch) | |
| tree | 25c0ad66b22998c528c05aabcd6d4e9edaf30b1e /src/player-controller.vala | |
| parent | 63616b0b258f640aa84150913f3d01cd79bb6c65 (diff) | |
| parent | e6779eca9277231ee59c6441bf6982599a0d611e (diff) | |
| download | ayatana-indicator-sound-a83c4b7d257344bff272c169e36736a2205fda31.tar.gz ayatana-indicator-sound-a83c4b7d257344bff272c169e36736a2205fda31.tar.bz2 ayatana-indicator-sound-a83c4b7d257344bff272c169e36736a2205fda31.zip | |
PlayerController use GtkApplicationPlayer and activate it when we need to raise
GtkApplicationPlayer: add a class to handle the GtkApplication players
It allows to check if the given player implements the "org.gtk.Application" interface
and if it's the case, it Activate the application with the proper timestamp when
requested. 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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala index 764efa5..dbe7c3c 100644 --- a/src/player-controller.vala +++ b/src/player-controller.vala @@ -45,6 +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 AppInfo? app_info { get; set;} public int menu_offset { get; set;} public string icon_name { get; set; } @@ -149,6 +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.determine_state (); } |
