aboutsummaryrefslogtreecommitdiff
path: root/src/media-player-user.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-02-28 13:55:27 -0600
committerTed Gould <ted@gould.cx>2014-02-28 13:55:27 -0600
commitcb111a1f8489c1d2cec3069988c5e499030f8b50 (patch)
tree83035098505bf0760bcf136d206183109e7c4191 /src/media-player-user.vala
parent636de261d04d47de8305597c27c9eed921c20b71 (diff)
downloadayatana-indicator-sound-cb111a1f8489c1d2cec3069988c5e499030f8b50.tar.gz
ayatana-indicator-sound-cb111a1f8489c1d2cec3069988c5e499030f8b50.tar.bz2
ayatana-indicator-sound-cb111a1f8489c1d2cec3069988c5e499030f8b50.zip
Putting in some debug output
Diffstat (limited to 'src/media-player-user.vala')
-rw-r--r--src/media-player-user.vala14
1 files changed, 14 insertions, 0 deletions
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");
}
}