diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-06-15 14:03:50 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-06-15 14:03:50 +0100 |
commit | 0585eccbaa90e2d4eae447a5a69e1101c528d2c0 (patch) | |
tree | c7fe045151353d3c8beccdb89132f4becffd1476 /src/metadata-menu-item.vala | |
parent | ed0f4a53abcce977b74ca2647fddbb08b4284982 (diff) | |
parent | a1f24dc28b91bd52ef7175813762d23dd0fd3b38 (diff) | |
download | ayatana-indicator-sound-0585eccbaa90e2d4eae447a5a69e1101c528d2c0.tar.gz ayatana-indicator-sound-0585eccbaa90e2d4eae447a5a69e1101c528d2c0.tar.bz2 ayatana-indicator-sound-0585eccbaa90e2d4eae447a5a69e1101c528d2c0.zip |
merge with the custom controls branch
Diffstat (limited to 'src/metadata-menu-item.vala')
-rw-r--r-- | src/metadata-menu-item.vala | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/metadata-menu-item.vala b/src/metadata-menu-item.vala new file mode 100644 index 0000000..ef72143 --- /dev/null +++ b/src/metadata-menu-item.vala @@ -0,0 +1,29 @@ +using Dbusmenu; +using Gee; + +public class MetadataMenuitem : Dbusmenu.Menuitem +{ + /* Not ideal duplicate definition of const - see common-defs/h */ + const string DBUSMENU_METADATA_MENUITEM_TYPE = "x-canonical-metadata-menu-item"; + const string DBUSMENU_METADATA_MENUITEM_TEXT_ARTIST = "x-canonical-metadata-text-artist"; + const string DBUSMENU_METADATA_MENUITEM_TEXT_PIECE = "x-canonical-metadata-text-piece"; + const string DBUSMENU_METADATA_MENUITEM_TEXT_CONTAINER = "x-canonical-metadata-text-container"; + const string DBUSMENU_METADATA_MENUITEM_IMAGE_PATH = "x-canonical-metadata-image"; + + public MetadataMenuitem() + { + this.property_set(MENUITEM_PROP_TYPE, DBUSMENU_METADATA_MENUITEM_TYPE); + this.property_set(DBUSMENU_METADATA_MENUITEM_TEXT_ARTIST, "Sonnamble"); + this.property_set(DBUSMENU_METADATA_MENUITEM_TEXT_PIECE, "Nocturne"); + this.property_set(DBUSMENU_METADATA_MENUITEM_TEXT_CONTAINER, "Seven Months in E minor"); + this.property_set(DBUSMENU_METADATA_MENUITEM_IMAGE_PATH, "/home/ronoc/Desktop/Sonnamble/Sonnamble_CD.jpg"); + + debug("image_path property set %s:", this.property_get(DBUSMENU_METADATA_MENUITEM_IMAGE_PATH)); + + } + + public override void handle_event(string name, GLib.Value input_value, uint timestamp) + { + debug("MetadataItem -> handle event caught!"); + } +}
\ No newline at end of file |