aboutsummaryrefslogtreecommitdiff
path: root/src/player-item.vala
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-06-16 17:21:27 -0400
committerBazaar Package Importer <james.westby@ubuntu.com>2011-06-16 17:21:27 -0400
commita16822cf5cf1435e10e34850affcac24687da130 (patch)
tree1aa03a50675abd7110676e6aee3d3dac69f44254 /src/player-item.vala
parent7a20a205c496bed5d7c779ff60a5730b55b60060 (diff)
parent2ada6ebcaa4d92f1e1374c8ad7564c720e5930b2 (diff)
downloadayatana-indicator-sound-a16822cf5cf1435e10e34850affcac24687da130.tar.gz
ayatana-indicator-sound-a16822cf5cf1435e10e34850affcac24687da130.tar.bz2
ayatana-indicator-sound-a16822cf5cf1435e10e34850affcac24687da130.zip
* New upstream release.
- "Sound Preferences..." should be "Sound Settings" (LP: #785571) - Not obvious what track info menu item does (LP: #699899) * debian/patches/lp_750823.patch - Dropped patch, merged upstream * debian/control - Updated standards version to 3.9.2 - Cleaned up description to quiet lintian
Diffstat (limited to 'src/player-item.vala')
-rw-r--r--src/player-item.vala6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/player-item.vala b/src/player-item.vala
index f71b166..162dbea 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,12 @@ public class PlayerItem : Dbusmenu.Menuitem
this.property_set_bool(property, v.get_boolean());
}
}
- 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;
}
}