aboutsummaryrefslogtreecommitdiff
path: root/src/metadata-menu-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-06-24 17:23:39 +0100
committerConor Curran <conor.curran@canonical.com>2010-06-24 17:23:39 +0100
commit81d9af3fc3f1d3784e623ede592e6d91032353ad (patch)
tree5721aa695a55e8179b75c998cc75089b8d820f6a /src/metadata-menu-item.vala
parent98c55dde34ae7ed062ae22712b998ef4787b14ee (diff)
downloadayatana-indicator-sound-81d9af3fc3f1d3784e623ede592e6d91032353ad.tar.gz
ayatana-indicator-sound-81d9af3fc3f1d3784e623ede592e6d91032353ad.tar.bz2
ayatana-indicator-sound-81d9af3fc3f1d3784e623ede592e6d91032353ad.zip
moving towards offline application launching
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