aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-10-14 16:57:41 +0200
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-10-14 16:57:41 +0200
commitdaa4d9fd99c03fbaa5f9ae17dbd32095cd6d3d95 (patch)
tree665b7655ccbfb9753245b7ed3430e0e781d2fa06 /src
parent65a1ff2b95d70dbc46c983c8dbf06122a0804ca2 (diff)
downloadayatana-indicator-sound-daa4d9fd99c03fbaa5f9ae17dbd32095cd6d3d95.tar.gz
ayatana-indicator-sound-daa4d9fd99c03fbaa5f9ae17dbd32095cd6d3d95.tar.bz2
ayatana-indicator-sound-daa4d9fd99c03fbaa5f9ae17dbd32095cd6d3d95.zip
Updating MPRIS control in the menu not only when next and previous are updated
Diffstat (limited to 'src')
-rw-r--r--src/media-player-mpris.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/media-player-mpris.vala b/src/media-player-mpris.vala
index b9961f5..408cdda 100644
--- a/src/media-player-mpris.vala
+++ b/src/media-player-mpris.vala
@@ -290,7 +290,8 @@ public class MediaPlayerMpris: MediaPlayer {
if (changed_properties.lookup ("PlaybackStatus", "s", null)) {
this.state = this.proxy.PlaybackStatus != null ? this.proxy.PlaybackStatus : "Unknown";
}
- if (changed_properties.lookup ("CanGoNext", "b", null) || changed_properties.lookup ("CanGoPrevious", "b", null)) {
+ if (changed_properties.lookup ("CanGoNext", "b", null) || changed_properties.lookup ("CanGoPrevious", "b", null) ||
+ changed_properties.lookup ("CanPlay", "b", null) || changed_properties.lookup ("CanPause", "b", null)) {
this.playbackstatus_changed ();
}