aboutsummaryrefslogtreecommitdiff
path: root/src/player-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-08-24 17:59:15 +0100
committerConor Curran <conor.curran@canonical.com>2010-08-24 17:59:15 +0100
commit5c225cc9608267ce25d599c279271eb5b7ee7a19 (patch)
tree547bd11cfb363a8b4f4ff68d986c425fd348ae40 /src/player-item.vala
parent6c2b00b21e60c5b667bb3d82639190af58d3c847 (diff)
parentfeed9f62a8779febde16e4f4461967a2b2a33e72 (diff)
downloadayatana-indicator-sound-5c225cc9608267ce25d599c279271eb5b7ee7a19.tar.gz
ayatana-indicator-sound-5c225cc9608267ce25d599c279271eb5b7ee7a19.tar.bz2
ayatana-indicator-sound-5c225cc9608267ce25d599c279271eb5b7ee7a19.zip
merged the UI polishes, more to follow ...
Diffstat (limited to 'src/player-item.vala')
-rw-r--r--src/player-item.vala11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/player-item.vala b/src/player-item.vala
index e5d8bfc..fbfacbd 100644
--- a/src/player-item.vala
+++ b/src/player-item.vala
@@ -60,7 +60,7 @@ public class PlayerItem : Dbusmenu.Menuitem
string update = v.get_string().strip();
debug("with value : %s", update);
// Special case for the arturl URI's.
- if(property.contains("arturl")){
+ if(property.contains("mpris:artUrl")){
try{
update = Filename.from_uri(update.strip());
}
@@ -74,9 +74,9 @@ 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 (int64))){
+ debug("with value : %i", (int)v.get_int64());
+ this.property_set_int(property, (int)v.get_int64());
}
else if(v.holds (typeof (bool))){
debug("with value : %s", v.get_boolean().to_string());
@@ -92,8 +92,9 @@ public class PlayerItem : Dbusmenu.Menuitem
public bool populated(HashSet<string> attrs)
{
foreach(string prop in attrs){
+ debug("populated ? - prop: %s", prop);
int value_int = property_get_int(prop);
- debug("populate - prop %s and value %i", prop, value_int);
+ debug("populated ? - prop %s and value %i", prop, value_int);
if(property_get_int(prop) != EMPTY){
return true;
}