aboutsummaryrefslogtreecommitdiff
path: root/src/mpris-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-07-06 18:55:05 +0100
committerConor Curran <conor.curran@canonical.com>2010-07-06 18:55:05 +0100
commit7555ea6755750dd64a6c4652b852a0bdc0d0bfeb (patch)
treef636897b4b133057a06dcc60e650e0b8f95acd2d /src/mpris-controller.vala
parentedac78eadc5ddceb17b93bffa101eeffbab4437c (diff)
downloadayatana-indicator-sound-7555ea6755750dd64a6c4652b852a0bdc0d0bfeb.tar.gz
ayatana-indicator-sound-7555ea6755750dd64a6c4652b852a0bdc0d0bfeb.tar.bz2
ayatana-indicator-sound-7555ea6755750dd64a6c4652b852a0bdc0d0bfeb.zip
whole new widget to house the customised title item
Diffstat (limited to 'src/mpris-controller.vala')
-rw-r--r--src/mpris-controller.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mpris-controller.vala b/src/mpris-controller.vala
index beaf02c..b1e66f3 100644
--- a/src/mpris-controller.vala
+++ b/src/mpris-controller.vala
@@ -76,6 +76,11 @@ public class MprisController : GLib.Object
this.mpris_player.Pause();
}
}
+
+ public bool connected()
+ {
+ return (this.mpris_player != null);
+ }
private void onStatusChange(dynamic DBus.Object mpris_client, status st)
{