diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-11-11 13:21:27 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-11-11 13:21:27 +0000 |
commit | 27586b89303462d4ac6c43aff986ab10e8c2f763 (patch) | |
tree | 2a7ae35cfb8059f96d5097fa4d993c6c97009804 /src | |
parent | f6c1abd8b39794057044f2ad9a567624ae4e9cf3 (diff) | |
parent | 5409b3ba977d2a244bec48b3202ebcd1ba048536 (diff) | |
download | ayatana-indicator-sound-27586b89303462d4ac6c43aff986ab10e8c2f763.tar.gz ayatana-indicator-sound-27586b89303462d4ac6c43aff986ab10e8c2f763.tar.bz2 ayatana-indicator-sound-27586b89303462d4ac6c43aff986ab10e8c2f763.zip |
merged blank metadata bug
Diffstat (limited to 'src')
-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 68ae6ef..2729cb7 100644 --- a/src/player-item.vala +++ b/src/player-item.vala @@ -87,9 +87,7 @@ public class PlayerItem : Dbusmenu.Menuitem this.property_set_bool(property, v.get_boolean()); } } - if(this.property_get_bool(MENUITEM_PROP_VISIBLE) == false){ - this.property_set_bool(MENUITEM_PROP_VISIBLE, true); - } + this.property_set_bool(MENUITEM_PROP_VISIBLE, populated(attributes)); } public bool populated(HashSet<string> attrs) @@ -97,8 +95,8 @@ public class PlayerItem : Dbusmenu.Menuitem foreach(string prop in attrs){ debug("populated ? - prop: %s", prop); int value_int = property_get_int(prop); - debug("populated ? - prop %s and value %i", prop, value_int); if(property_get_int(prop) != EMPTY){ + debug("populated ? - prop %s and value %i", prop, value_int); return true; } } |