From cb111a1f8489c1d2cec3069988c5e499030f8b50 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 28 Feb 2014 13:55:27 -0600 Subject: Putting in some debug output --- src/media-player-user.vala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/media-player-user.vala b/src/media-player-user.vala index 6545cef..7e5bc53 100644 --- a/src/media-player-user.vala +++ b/src/media-player-user.vala @@ -157,6 +157,7 @@ public class MediaPlayerUser : MediaPlayer { get { if (proxy_is_valid()) { name_cache = this.proxy.player_name; + debug("Player Name: %s", name_cache); return name_cache; } else { return ""; @@ -168,6 +169,7 @@ public class MediaPlayerUser : MediaPlayer { get { if (proxy_is_valid()) { state_cache = this.proxy.state; + debug("State: %s", state_cache); return state_cache; } else { return ""; @@ -228,18 +230,30 @@ public class MediaPlayerUser : MediaPlayer { /* TODO: */ } public override void play_pause () { + debug("Play Pause for user: %s", this.username); + if (this.greeter != null) { this.greeter.SoundPlayPause(this.username); + } else { + warning("No unity-greeter-session-broadcast to send play-pause"); } } public override void next () { + debug("Next for user: %s", this.username); + if (this.greeter != null) { this.greeter.SoundNext(this.username); + } else { + warning("No unity-greeter-session-broadcast to send next"); } } public override void previous () { + debug("Previous for user: %s", this.username); + if (this.greeter != null) { this.greeter.SoundPrev(this.username); + } else { + warning("No unity-greeter-session-broadcast to send previous"); } } -- cgit v1.2.3