diff options
author | Ted Gould <ted@gould.cx> | 2014-03-04 15:40:28 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-03-04 15:40:28 -0600 |
commit | e6fab6c96fe0e9414f214d47c8b762c8a435cc51 (patch) | |
tree | 25569bade0f178b7ce44205acb2e5c7ec82c8994 /src/media-player-user.vala | |
parent | f06b9ff784c15e9e1c0ad0840299ed70b5616a74 (diff) | |
parent | e9f0b68ab8b9afec9466011b8a8bae3b202b4bf9 (diff) | |
download | ayatana-indicator-sound-e6fab6c96fe0e9414f214d47c8b762c8a435cc51.tar.gz ayatana-indicator-sound-e6fab6c96fe0e9414f214d47c8b762c8a435cc51.tar.bz2 ayatana-indicator-sound-e6fab6c96fe0e9414f214d47c8b762c8a435cc51.zip |
Update to the latest player
Diffstat (limited to 'src/media-player-user.vala')
-rw-r--r-- | src/media-player-user.vala | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/media-player-user.vala b/src/media-player-user.vala index c48c39b..11678d5 100644 --- a/src/media-player-user.vala +++ b/src/media-player-user.vala @@ -69,9 +69,12 @@ public class MediaPlayerUser : MediaPlayer { properties_timeout = 0; properties_queued.@foreach((key, value) => { + debug("Notifying '%s' changed", key); this.notify_property(key); }); + properties_queued.remove_all(); + /* Remove source */ return false; } @@ -88,6 +91,7 @@ public class MediaPlayerUser : MediaPlayer { properties_queued.insert("icon", true); properties_queued.insert("state", true); properties_queued.insert("current-track", true); + properties_queued.insert("is-running", true); break; case "PlayerName": properties_queued.insert("name", true); @@ -126,8 +130,8 @@ public class MediaPlayerUser : MediaPlayer { } }); - /* Update all of them -- we've got a proxy! */ - queue_property_notification("Timestamp"); + debug("Notifying player is ready for user: %s", this.username); + this.notify_property("is-running"); } catch (Error e) { this.proxy = null; warning("Unable to get proxy to user '%s' sound settings: %s", username, e.message); @@ -195,7 +199,7 @@ public class MediaPlayerUser : MediaPlayer { /* If it's shown externally it's running */ public override bool is_running { get { return proxy_is_valid(); } } /* A bit weird. Not sure how we should handle this. */ - public override bool can_raise { get { return false; } } + public override bool can_raise { get { return true; } } /* Fill out the track based on the values in the proxy */ MediaPlayer.Track track_cache; |