diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-06-15 08:48:54 +0200 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-06-15 08:48:54 +0200 |
commit | 1677228ec606dd8d2e7eadccfff77a1703fdb727 (patch) | |
tree | 09e435494c9fd603bf502f3f88e26d25a667cbd3 /src/player-item.vala | |
parent | bf2c6d9d1f7ac8897c76b8917f4feaeff54816d6 (diff) | |
parent | d72fb000fdf8c8a65abb214d1e6e67c7d31b4dbb (diff) | |
download | ayatana-indicator-sound-1677228ec606dd8d2e7eadccfff77a1703fdb727.tar.gz ayatana-indicator-sound-1677228ec606dd8d2e7eadccfff77a1703fdb727.tar.bz2 ayatana-indicator-sound-1677228ec606dd8d2e7eadccfff77a1703fdb727.zip |
merge metadata widget and title widget
Diffstat (limited to 'src/player-item.vala')
-rw-r--r-- | src/player-item.vala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/player-item.vala b/src/player-item.vala index f71b166..2af3f36 100644 --- a/src/player-item.vala +++ b/src/player-item.vala @@ -24,7 +24,7 @@ public class PlayerItem : Dbusmenu.Menuitem { public PlayerController owner {get; construct;} public string item_type { get; construct; } - private const int EMPTY = -1; + public const int EMPTY = -1; public PlayerItem(string type) { @@ -37,7 +37,6 @@ public class PlayerItem : Dbusmenu.Menuitem public void reset(HashSet<string> attrs){ foreach(string s in attrs){ - //debug("attempting to set prop %s to EMPTY", s); this.property_set_int(s, EMPTY); } } @@ -87,15 +86,14 @@ public class PlayerItem : Dbusmenu.Menuitem this.property_set_bool(property, v.get_boolean()); } } + // TODO- is this only relevant for the metadata, if so please call for just that case this.property_set_bool(MENUITEM_PROP_VISIBLE, populated(attributes)); } public bool populated(HashSet<string> attrs) { foreach(string prop in attrs){ - //debug("populated ? - prop: %s", prop); if(property_get_int(prop) != EMPTY){ - //debug("populated - prop %s and value %i", prop, property_get_int(prop)); return true; } } |