aboutsummaryrefslogtreecommitdiff
path: root/src/playlists-menu-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-04 14:30:17 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-04 14:30:17 +0000
commit16bdc89ecb9aa7e31d7efd8b34b0a632d4440f5e (patch)
tree4b76b19fb70c9b89b53ee70c3f364573a13a8db6 /src/playlists-menu-item.vala
parentbcf0cc17469edbb8b882884bdd6ae2155a809d01 (diff)
downloadayatana-indicator-sound-16bdc89ecb9aa7e31d7efd8b34b0a632d4440f5e.tar.gz
ayatana-indicator-sound-16bdc89ecb9aa7e31d7efd8b34b0a632d4440f5e.tar.bz2
ayatana-indicator-sound-16bdc89ecb9aa7e31d7efd8b34b0a632d4440f5e.zip
iconthemepath work in progress
Diffstat (limited to 'src/playlists-menu-item.vala')
-rw-r--r--src/playlists-menu-item.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/playlists-menu-item.vala b/src/playlists-menu-item.vala
index f4d7233..4ed6cf4 100644
--- a/src/playlists-menu-item.vala
+++ b/src/playlists-menu-item.vala
@@ -47,6 +47,12 @@ public class PlaylistsMenuitem : PlayerItem
Dbusmenu.Menuitem menuitem = new Menuitem();
menuitem.property_set (MENUITEM_PROP_LABEL, detail.name);
+
+ var icon_file = File.new_for_path (detail.icon_path);
+ if (icon_file.query_exists () == true) {
+ menuitem.property_set (MENUITEM_PROP_ICON_NAME,
+ icon_file.get_basename () );
+ }
menuitem.property_set (MENUITEM_PROP_ICON_NAME, detail.icon_path);
menuitem.property_set (MENUITEM_PATH, (string)detail.path);
menuitem.property_set_bool (MENUITEM_PROP_VISIBLE, true);