aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-07-09 17:13:49 +0100
committerConor Curran <conor.curran@canonical.com>2010-07-09 17:13:49 +0100
commit134f9e2bd79c85ae3aee0cf3677befdf68fa9d45 (patch)
tree9b3c061ddb815765cb740e883651cd0f461bed5d
parenta7cd627d578066b3383629dee572aa6385a33281 (diff)
downloadayatana-indicator-sound-134f9e2bd79c85ae3aee0cf3677befdf68fa9d45.tar.gz
ayatana-indicator-sound-134f9e2bd79c85ae3aee0cf3677befdf68fa9d45.tar.bz2
ayatana-indicator-sound-134f9e2bd79c85ae3aee0cf3677befdf68fa9d45.zip
more arturl fixes
-rw-r--r--src/music-player-bridge.vala2
-rw-r--r--src/player-item.vala7
2 files changed, 7 insertions, 2 deletions
diff --git a/src/music-player-bridge.vala b/src/music-player-bridge.vala
index 03947d0..ec4fb25 100644
--- a/src/music-player-bridge.vala
+++ b/src/music-player-bridge.vala
@@ -77,7 +77,7 @@ public class MusicPlayerBridge : GLib.Object
return 2;
}
else{
- return (2 + (this.registered_clients.size * 3));
+ return (2 + (this.registered_clients.size * 4));
}
}
diff --git a/src/player-item.vala b/src/player-item.vala
index 4f95b0c..3e10b7b 100644
--- a/src/player-item.vala
+++ b/src/player-item.vala
@@ -58,7 +58,12 @@ public class PlayerItem : Dbusmenu.Menuitem
string update = v.get_string().strip();
debug("with value : %s", update);
if(property.contains("arturl")){
- update = Filename.from_uri(update.strip());
+ try{
+ update = Filename.from_uri(update.strip());
+ }
+ catch(ConvertError e){
+ warning("Problem converting URI %s to file path", update);
+ }
}
this.property_set(property, update);
}