aboutsummaryrefslogtreecommitdiff
path: root/src/player-item.vala
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2010-11-12 10:07:09 -0500
committerKen VanDine <ken.vandine@canonical.com>2010-11-12 10:07:09 -0500
commitfb9140db72f565fa6180a55da02302844e21c05c (patch)
treefba5a9a0649c0d624151da689f7d8becafaef6f7 /src/player-item.vala
parent026c6dd7be86073ff7de59db344a506982570698 (diff)
parentbf3a1c75ef1714077d6729cdc4d550020365a3a3 (diff)
downloadayatana-indicator-sound-fb9140db72f565fa6180a55da02302844e21c05c.tar.gz
ayatana-indicator-sound-fb9140db72f565fa6180a55da02302844e21c05c.tar.bz2
ayatana-indicator-sound-fb9140db72f565fa6180a55da02302844e21c05c.zip
releasing version 0.5.0.1-0ubuntu1
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;
}
}