diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-07-15 13:23:52 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-07-15 13:23:52 +0100 |
commit | 6bab9d75b22aa21ed27e4961e6dbf4bbcdd2e94c (patch) | |
tree | 480a4f12b9434a404bbcf8afc8a72b32ae6f856e /src/player-item.vala | |
parent | 4823b3c35b8e8c1334ad947286abf0d88b6de701 (diff) | |
download | ayatana-indicator-sound-6bab9d75b22aa21ed27e4961e6dbf4bbcdd2e94c.tar.gz ayatana-indicator-sound-6bab9d75b22aa21ed27e4961e6dbf4bbcdd2e94c.tar.bz2 ayatana-indicator-sound-6bab9d75b22aa21ed27e4961e6dbf4bbcdd2e94c.zip |
label text updating according to position and duration and scrub bar positioning now working
Diffstat (limited to 'src/player-item.vala')
-rw-r--r-- | src/player-item.vala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/player-item.vala b/src/player-item.vala index e7f7c67..4bdb60d 100644 --- a/src/player-item.vala +++ b/src/player-item.vala @@ -38,6 +38,7 @@ public class PlayerItem : Dbusmenu.Menuitem foreach(string s in attrs){ debug("attempting to set prop %s to null", s); this.property_set(s, null); + this.property_set_int(s, 0); } } @@ -73,6 +74,10 @@ public class PlayerItem : Dbusmenu.Menuitem debug("with value : %i", v.get_int()); this.property_set_int(property, v.get_int()); } + else if (v.holds (typeof (uint))){ + debug("with value : %i", (int)v.get_uint()); + this.property_set_int(property, (int)v.get_uint()); + } else if(v.holds (typeof (bool))){ this.property_set_bool(property, v.get_boolean()); } |