aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-23 15:49:11 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-23 15:49:11 +0000
commit339fd128f951f69df281f3f0339f115d7ff450af (patch)
treeeb0a9cf509154960f7a2c484446f18621e7e2b65
parent32ce2336b99e5b482a2d20758e03ce2a52368a5f (diff)
downloadayatana-indicator-sound-339fd128f951f69df281f3f0339f115d7ff450af.tar.gz
ayatana-indicator-sound-339fd128f951f69df281f3f0339f115d7ff450af.tar.bz2
ayatana-indicator-sound-339fd128f951f69df281f3f0339f115d7ff450af.zip
make sure on playlist update it doesn't use the custom icon
-rw-r--r--src/playlists-menu-item.vala12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/playlists-menu-item.vala b/src/playlists-menu-item.vala
index 704f61c..58c3875 100644
--- a/src/playlists-menu-item.vala
+++ b/src/playlists-menu-item.vala
@@ -83,23 +83,11 @@ public class PlaylistsMenuitem : PlayerItem
}
}
- private string? parse_icon_path (string path)
- {
- if (path == "")return null;
- var icon_file = File.new_for_path (path);
- if (icon_file.get_path() == null)return null;
- return icon_file.get_basename().split(".")[0];
- }
-
public void update_individual_playlist (PlaylistDetails new_detail)
{
foreach ( Dbusmenu.Menuitem item in this.current_playlists.values ){
if (new_detail.path == item.property_get (MENUITEM_PATH)){
item.property_set (MENUITEM_PROP_LABEL, new_detail.name);
- var result = this.parse_icon_path (new_detail.icon_path);
- if (result != null) {
- item.property_set (MENUITEM_PROP_ICON_NAME, result);
- }
}
}
// If its active make sure the name is updated on the root item.