aboutsummaryrefslogtreecommitdiff
path: root/src/metadata-menu-item.vala
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-04-02 17:54:12 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-04-02 17:54:12 +0200
commitba80753bb0a79f052f007c6e614732afac88e3ad (patch)
tree712b7df53e5b4639a463da34c9687caf07bfb76b /src/metadata-menu-item.vala
parente6779eca9277231ee59c6441bf6982599a0d611e (diff)
downloadayatana-indicator-sound-ba80753bb0a79f052f007c6e614732afac88e3ad.tar.gz
ayatana-indicator-sound-ba80753bb0a79f052f007c6e614732afac88e3ad.tar.bz2
ayatana-indicator-sound-ba80753bb0a79f052f007c6e614732afac88e3ad.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.
Diffstat (limited to 'src/metadata-menu-item.vala')
-rw-r--r--src/metadata-menu-item.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/metadata-menu-item.vala b/src/metadata-menu-item.vala
index a81c143..f4a7e68 100644
--- a/src/metadata-menu-item.vala
+++ b/src/metadata-menu-item.vala
@@ -177,7 +177,7 @@ public class MetadataMenuitem : PlayerItem
this.owner.instantiate(timestamp);
}
else if (this.owner.current_state == PlayerController.state.CONNECTED) {
- this.owner.gtk_app_player.activate(timestamp);
+ this.owner.player_activator.activate(timestamp);
this.owner.mpris_bridge.expose(timestamp);
}
}