aboutsummaryrefslogtreecommitdiff
path: root/src/metadata-menu-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-06-24 18:16:23 +0100
committerConor Curran <conor.curran@canonical.com>2010-06-24 18:16:23 +0100
commit0336970086fb3bbd00b3a906e9879f4a50ae015c (patch)
tree5a567be23e2f1dcf6bfdbda4d8b461fd8314e41c /src/metadata-menu-item.vala
parent49db751d456ee144f7c7910278b35613dc90db8a (diff)
parent1d721c275ba6962d60f47b184849db7bd2a5290a (diff)
downloadayatana-indicator-sound-0336970086fb3bbd00b3a906e9879f4a50ae015c.tar.gz
ayatana-indicator-sound-0336970086fb3bbd00b3a906e9879f4a50ae015c.tar.bz2
ayatana-indicator-sound-0336970086fb3bbd00b3a906e9879f4a50ae015c.zip
merge the familiar players db work
Diffstat (limited to 'src/metadata-menu-item.vala')
-rw-r--r--src/metadata-menu-item.vala11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/metadata-menu-item.vala b/src/metadata-menu-item.vala
index f62cd46..541fbf4 100644
--- a/src/metadata-menu-item.vala
+++ b/src/metadata-menu-item.vala
@@ -37,5 +37,16 @@ public class MetadataMenuitem : PlayerItem
attrs.add(MENUITEM_ARTURL);
return attrs;
}
+
+ public override void check_layout(){
+ this.property_set_bool(MENUITEM_PROP_VISIBLE, this.populated());
+ debug("check layout for the metadata = %s", this.populated().to_string());
+ }
+
+ public bool populated()
+ {
+ return (this.property_get(MENUITEM_TEXT_TITLE) != null &&
+ this.property_get(MENUITEM_TEXT_TITLE) != "");
+ }
} \ No newline at end of file