aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2012-01-17 10:15:06 +0000
committerConor Curran <conor.curran@canonical.com>2012-01-17 10:15:06 +0000
commitae4f73ab037fa9fd4ffce9d88acba4d739ba007f (patch)
tree37fd8dc65b00e6dcd6ea848eb30600193048bbf8 /src
parentb59c4a873d3955cb7efbf3d93ede9446ac4cea9e (diff)
parent5f5d88054374dc00a0c28f9c91c849d70113e6ee (diff)
downloadayatana-indicator-sound-ae4f73ab037fa9fd4ffce9d88acba4d739ba007f.tar.gz
ayatana-indicator-sound-ae4f73ab037fa9fd4ffce9d88acba4d739ba007f.tar.bz2
ayatana-indicator-sound-ae4f73ab037fa9fd4ffce9d88acba4d739ba007f.zip
fixes minor warning
Diffstat (limited to 'src')
-rw-r--r--src/metadata-menu-item.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/metadata-menu-item.vala b/src/metadata-menu-item.vala
index 623aaf5..42f9667 100644
--- a/src/metadata-menu-item.vala
+++ b/src/metadata-menu-item.vala
@@ -62,8 +62,8 @@ public class MetadataMenuitem : PlayerItem
private static string? create_album_art_temp_dir()
{
string path = GLib.Path.build_filename(Environment.get_user_cache_dir(), ALBUM_ART_DIR_SUFFIX);
- if(DirUtils.create(path, 0700) == -1){
- warning("could not create a temp dir for remote album art, it must have been created already");
+ if(DirUtils.create_with_parents(path, 0700) == -1){
+ warning("could not create temp dir %s for remote album art, it must have been created already", path);
}
return path;
}
@@ -78,12 +78,12 @@ public class MetadataMenuitem : PlayerItem
while (true)
{
var file = e.next_file (null);
-
- debug("file name = %s", file.get_name());
if (file == null)
break;
+ debug("file name = %s", file.get_name());
+
var child = dir.get_child (file.get_name ());
try {