aboutsummaryrefslogtreecommitdiff
path: root/src/metadata-menu-item.vala
diff options
context:
space:
mode:
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;
+ }
}