aboutsummaryrefslogtreecommitdiff
path: root/src/player-item.vala
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2010-11-12 09:40:46 -0500
committerKen VanDine <ken.vandine@canonical.com>2010-11-12 09:40:46 -0500
commitbf3a1c75ef1714077d6729cdc4d550020365a3a3 (patch)
treeb65b81f676da37b1e17611867990ff6e23e07931 /src/player-item.vala
parenta8f18b2780b52eb09233c4279288f6ba0887552b (diff)
parent519b0890351e2f07497ee832f79bcc609fdb2f70 (diff)
downloadayatana-indicator-sound-bf3a1c75ef1714077d6729cdc4d550020365a3a3.tar.gz
ayatana-indicator-sound-bf3a1c75ef1714077d6729cdc4d550020365a3a3.tar.bz2
ayatana-indicator-sound-bf3a1c75ef1714077d6729cdc4d550020365a3a3.zip
Import upstream version 0.5.0.1
Diffstat (limited to 'src/player-item.vala')
-rw-r--r--src/player-item.vala6
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;
}
}