aboutsummaryrefslogtreecommitdiff
path: root/bindings/mono/examples/IndicatorExample.cs
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/mono/examples/IndicatorExample.cs')
-rw-r--r--bindings/mono/examples/IndicatorExample.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/bindings/mono/examples/IndicatorExample.cs b/bindings/mono/examples/IndicatorExample.cs
index 397049b..7413c54 100644
--- a/bindings/mono/examples/IndicatorExample.cs
+++ b/bindings/mono/examples/IndicatorExample.cs
@@ -41,15 +41,18 @@ 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.SecondaryActivate += delegate {
- System.Console.WriteLine ("Got secondary activate event");
- };
+ indicator.SecondaryActivateTarget = foo;
win.ShowAll ();