aboutsummaryrefslogtreecommitdiff
path: root/src/transport-menu-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-06-08 14:26:57 +0100
committerConor Curran <conor.curran@canonical.com>2010-06-08 14:26:57 +0100
commit5a9881a144df8a9c36f9d5b96ea53e872c76949b (patch)
tree3b3ffcf7f6cc8f227540bae401f2ddc5f693923c /src/transport-menu-item.vala
parented0f4a53abcce977b74ca2647fddbb08b4284982 (diff)
downloadayatana-indicator-sound-5a9881a144df8a9c36f9d5b96ea53e872c76949b.tar.gz
ayatana-indicator-sound-5a9881a144df8a9c36f9d5b96ea53e872c76949b.tar.bz2
ayatana-indicator-sound-5a9881a144df8a9c36f9d5b96ea53e872c76949b.zip
new transport bar
Diffstat (limited to 'src/transport-menu-item.vala')
-rw-r--r--src/transport-menu-item.vala19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/transport-menu-item.vala b/src/transport-menu-item.vala
new file mode 100644
index 0000000..812ef6a
--- /dev/null
+++ b/src/transport-menu-item.vala
@@ -0,0 +1,19 @@
+using Dbusmenu;
+using Gee;
+
+public class TransportMenuItem : Dbusmenu.Menuitem
+{
+ /* Not ideal duplicate definition of const - see common-defs/h */
+ const string DBUSMENU_TRANSPORT_MENUITEM_TYPE = "x-canonical-transport-bar";
+
+ public TransportMenuItem()
+ {
+ this.property_set(MENUITEM_PROP_TYPE, DBUSMENU_TRANSPORT_MENUITEM_TYPE);
+ }
+
+ public override void handle_event(string name, GLib.Value value, uint timestamp)
+ {
+ debug("TransportItem -> handle event caught!");
+ }
+
+} \ No newline at end of file