aboutsummaryrefslogtreecommitdiff
path: root/src/accounts-service-user.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-02-21 12:11:02 -0600
committerTed Gould <ted@gould.cx>2014-02-21 12:11:02 -0600
commit6974a81bd969f97fb685ea021af4d1406fa13679 (patch)
tree5830c37e1e382895c5862c7c66396cac654f5ef3 /src/accounts-service-user.vala
parent10757562302a8b757d10d3106513e440914a0a84 (diff)
downloadayatana-indicator-sound-6974a81bd969f97fb685ea021af4d1406fa13679.tar.gz
ayatana-indicator-sound-6974a81bd969f97fb685ea021af4d1406fa13679.tar.bz2
ayatana-indicator-sound-6974a81bd969f97fb685ea021af4d1406fa13679.zip
Make sure to timestamp our updates
Diffstat (limited to 'src/accounts-service-user.vala')
-rw-r--r--src/accounts-service-user.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/accounts-service-user.vala b/src/accounts-service-user.vala
index 19ca774..2062dc8 100644
--- a/src/accounts-service-user.vala
+++ b/src/accounts-service-user.vala
@@ -20,6 +20,7 @@
[DBus (name = "com.canonical.indicator.sound.AccountsService")]
public interface AccountsServiceSoundSettings : Object {
// properties
+ public abstract uint64 timestamp {owned get; set;}
public abstract string player_name {owned get; set;}
public abstract Variant player_icon {owned get; set;}
public abstract bool running {owned get; set;}
@@ -47,7 +48,9 @@ public class AccountsServiceUser : Object {
if (this._player == null) {
/* Clear it */
this.proxy.player_name = "";
+ this.proxy.timestamp = 0;
} else {
+ this.proxy.timestamp = GLib.get_monotonic_time();
this.proxy.player_name = this._player.name;
if (this._player.icon == null) {
var icon = new ThemedIcon.with_default_fallbacks ("application-default-icon");