aboutsummaryrefslogtreecommitdiff
path: root/bindings/mono
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-20 03:16:53 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-20 03:16:53 +0200
commit6a52781539b7ff689620fdb07043664ed457a10b (patch)
tree3dece9d2323a897f52c3c5c9f9353ad72b31df08 /bindings/mono
parent8f71358509ec3e2a6e2fe633c4dfc07c58f450ed (diff)
downloadlibayatana-appindicator-6a52781539b7ff689620fdb07043664ed457a10b.tar.gz
libayatana-appindicator-6a52781539b7ff689620fdb07043664ed457a10b.tar.bz2
libayatana-appindicator-6a52781539b7ff689620fdb07043664ed457a10b.zip
mono bindings: updated API and example
Diffstat (limited to 'bindings/mono')
-rw-r--r--bindings/mono/examples/IndicatorExample.cs11
-rw-r--r--bindings/mono/libappindicator-api.metadata2
2 files changed, 7 insertions, 6 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 ();
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 @@
<attr path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='new_accessible_desc']" name="cname">new-accessible-desc</attr>
<attr path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='connection_changed']" name="name">ConnectionChanged</attr>
<attr path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='connection_changed']" name="cname">connection-changed</attr>
- <attr path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='secondary_activate']" name="name">SecondaryActivate</attr>
- <attr path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='secondary_activate']" name="cname">secondary-activate</attr>
<attr path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='scroll_event']" name="name">ScrollEvent</attr>
<attr path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='scroll_event']" name="cname">scroll-event</attr>
<attr path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='new_icon']" name="name">NewIcon</attr>