aboutsummaryrefslogtreecommitdiff
path: root/src/player-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-09-01 17:51:30 +0100
committerConor Curran <conor.curran@canonical.com>2010-09-01 17:51:30 +0100
commitbb73e65c4fd9f698050ff1d2ddb71fc35bac6803 (patch)
tree91441c76f5795be8640d760068a015efb844cd29 /src/player-item.vala
parent9ab9b175e1f77457157211f5f93c54e8ae87e3dc (diff)
downloadayatana-indicator-sound-bb73e65c4fd9f698050ff1d2ddb71fc35bac6803.tar.gz
ayatana-indicator-sound-bb73e65c4fd9f698050ff1d2ddb71fc35bac6803.tar.bz2
ayatana-indicator-sound-bb73e65c4fd9f698050ff1d2ddb71fc35bac6803.zip
last fm art work should load correctly now
Diffstat (limited to 'src/player-item.vala')
-rw-r--r--src/player-item.vala9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/player-item.vala b/src/player-item.vala
index 7de6840..1e16742 100644
--- a/src/player-item.vala
+++ b/src/player-item.vala
@@ -20,6 +20,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
using Dbusmenu;
using Gee;
using Gdk;
+using DbusmenuPlayer;
public class PlayerItem : Dbusmenu.Menuitem
{
@@ -128,18 +129,16 @@ public class PlayerItem : Dbusmenu.Menuitem
private void on_fetcher_completed(ByteArray update, string property)
{
- string temp_path = "/home/ronoc/Desktop/tempy";
- //"/tmp/indicator-sound-remote-image";
try{
PixbufLoader loader = new PixbufLoader ();
loader.write (update.data, update.len);
loader.close ();
Pixbuf icon = loader.get_pixbuf ();
- icon.save (temp_path, loader.get_format().get_name());
- this.property_set(property, temp_path);
+ icon.save (ITEM_REMOTE_FILEPATH, loader.get_format().get_name());
+ this.property_set(property, ITEM_REMOTE_FILEPATH);
}
catch(GLib.Error e){
- warning("Problem taking file from the interweb - error: %s",
+ warning("Problem fetching file from the interweb - error: %s",
e.message);
}
}