aboutsummaryrefslogtreecommitdiff
path: root/bindings/mono/examples
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-08-11 12:02:16 -0500
committerTed Gould <ted@gould.cx>2011-08-11 12:02:16 -0500
commit8c352cdc40eced52767ddca7036fa7b76bf42a6b (patch)
tree4a628c94c7913385dfcf098c85b63188eedc6200 /bindings/mono/examples
parentfc03ef7c10bf76edc87af4cc54194fe1bf6e28c2 (diff)
parent1bfe91a779b5d71cf3e6bf066182af38995fa4bf (diff)
downloadlibayatana-appindicator-8c352cdc40eced52767ddca7036fa7b76bf42a6b.tar.gz
libayatana-appindicator-8c352cdc40eced52767ddca7036fa7b76bf42a6b.tar.bz2
libayatana-appindicator-8c352cdc40eced52767ddca7036fa7b76bf42a6b.zip
Import upstream version 0.3.91
Diffstat (limited to 'bindings/mono/examples')
-rw-r--r--bindings/mono/examples/IndicatorExample.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/bindings/mono/examples/IndicatorExample.cs b/bindings/mono/examples/IndicatorExample.cs
index c18a665..7413c54 100644
--- a/bindings/mono/examples/IndicatorExample.cs
+++ b/bindings/mono/examples/IndicatorExample.cs
@@ -41,12 +41,19 @@ public class IndicatorExample
indicator.Status = Status.Attention;
Menu menu = new Menu ();
- menu.Append (new MenuItem ("Foo"));
+ var foo = new MenuItem ("Foo");
+ menu.Append (foo);
+ foo.Activated += delegate {
+ System.Console.WriteLine ("Foo item has been activated");
+ };
+
menu.Append (new MenuItem ("Bar"));
indicator.Menu = menu;
indicator.Menu.ShowAll ();
+ indicator.SecondaryActivateTarget = foo;
+
win.ShowAll ();
Application.Run ();