aboutsummaryrefslogtreecommitdiff
path: root/src/metadata-menu-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-06-13 12:04:15 +0200
committerConor Curran <conor.curran@canonical.com>2011-06-13 12:04:15 +0200
commitec14b8310dd5b02ed749c2cfade5c1a45ef00bac (patch)
treebf9c38d689580d1a7911b0c6b7042d33e99b379d /src/metadata-menu-item.vala
parentedd58e6f87bd80a4e37eac90b42b03528aba44ee (diff)
downloadayatana-indicator-sound-ec14b8310dd5b02ed749c2cfade5c1a45ef00bac.tar.gz
ayatana-indicator-sound-ec14b8310dd5b02ed749c2cfade5c1a45ef00bac.tar.bz2
ayatana-indicator-sound-ec14b8310dd5b02ed749c2cfade5c1a45ef00bac.zip
number of bugs fixed, more to come
Diffstat (limited to 'src/metadata-menu-item.vala')
-rw-r--r--src/metadata-menu-item.vala24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/metadata-menu-item.vala b/src/metadata-menu-item.vala
index 5f3ef8b..8d7b55d 100644
--- a/src/metadata-menu-item.vala
+++ b/src/metadata-menu-item.vala
@@ -183,19 +183,9 @@ public class MetadataMenuitem : PlayerItem
this.property_set_bool (MENUITEM_PLAYER_RUNNING, update);
}
- public void collapse()
+ public void should_collapse(bool collapse)
{
- this.property_set_bool (MENUITEM_HIDE_TRACK_DETAILS, true);
- }
-
- public void expand()
- {
- this.property_set_bool (MENUITEM_HIDE_TRACK_DETAILS, false);
- }
-
- public void populated()
- {
- //this.property_get (MENUITEM_TITLE
+ this.property_set_bool (MENUITEM_HIDE_TRACK_DETAILS, collapse);
}
public static HashSet<string> attributes_format()
@@ -210,4 +200,14 @@ public class MetadataMenuitem : PlayerItem
attrs.add(MENUITEM_PLAYER_RUNNING);
return attrs;
}
+
+ public static HashSet<string> relevant_attributes_for_ui()
+ {
+ HashSet<string> attrs = new HashSet<string>();
+ attrs.add(MENUITEM_TITLE);
+ attrs.add(MENUITEM_ARTIST);
+ attrs.add(MENUITEM_ALBUM);
+ attrs.add(MENUITEM_ARTURL);
+ return attrs;
+ }
}