From 6a52781539b7ff689620fdb07043664ed457a10b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 20 Jul 2011 03:16:53 +0200 Subject: mono bindings: updated API and example --- bindings/mono/examples/IndicatorExample.cs | 11 +++++++---- bindings/mono/libappindicator-api.metadata | 2 -- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'bindings') 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 (); diff --git a/bindings/mono/libappindicator-api.metadata b/bindings/mono/libappindicator-api.metadata index c3c81cd..e610c88 100644 --- a/bindings/mono/libappindicator-api.metadata +++ b/bindings/mono/libappindicator-api.metadata @@ -11,8 +11,6 @@ new-accessible-desc ConnectionChanged connection-changed - SecondaryActivate - secondary-activate ScrollEvent scroll-event NewIcon -- cgit v1.2.3