diff options
author | Ted Gould <ted@gould.cx> | 2011-08-11 12:04:06 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-08-11 12:04:06 -0500 |
commit | 6a05f53d2ad9f0f54fea7be123c94d1e0fad450a (patch) | |
tree | de7b2d919432599ca4d1f185636dbccae6aec16a /bindings/mono/examples | |
parent | 1a483429602788950a12bfa07cb98d600b8a736f (diff) | |
parent | 8c352cdc40eced52767ddca7036fa7b76bf42a6b (diff) | |
download | libayatana-appindicator-6a05f53d2ad9f0f54fea7be123c94d1e0fad450a.tar.gz libayatana-appindicator-6a05f53d2ad9f0f54fea7be123c94d1e0fad450a.tar.bz2 libayatana-appindicator-6a05f53d2ad9f0f54fea7be123c94d1e0fad450a.zip |
* New upstream release.
* Secondary activate support
* Better GIR file annotations
Diffstat (limited to 'bindings/mono/examples')
-rw-r--r-- | bindings/mono/examples/IndicatorExample.cs | 9 |
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 (); |