diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2009-12-16 16:56:59 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2009-12-16 16:56:59 -0500 |
commit | cef679b677c8cd78f67bc6a9d9933f7234490759 (patch) | |
tree | ccfe659f215473b204e50212617e0c1ca201bc15 /bindings/mono/examples/IndicatorExample.cs | |
parent | 2ba572c4055412bbe6072a8e09bbc94580d50c94 (diff) | |
parent | 8a26b8c15e726e090f7cab7afd366f764f2ab73c (diff) | |
download | libayatana-appindicator-cef679b677c8cd78f67bc6a9d9933f7234490759.tar.gz libayatana-appindicator-cef679b677c8cd78f67bc6a9d9933f7234490759.tar.bz2 libayatana-appindicator-cef679b677c8cd78f67bc6a9d9933f7234490759.zip |
merged from trunk
Diffstat (limited to 'bindings/mono/examples/IndicatorExample.cs')
-rw-r--r-- | bindings/mono/examples/IndicatorExample.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/bindings/mono/examples/IndicatorExample.cs b/bindings/mono/examples/IndicatorExample.cs new file mode 100644 index 0000000..0cb72a1 --- /dev/null +++ b/bindings/mono/examples/IndicatorExample.cs @@ -0,0 +1,36 @@ +using Gtk; +using AppIndicator; + +public class IndicatorExample +{ + public static void Main () + { + Application.Init (); + + Window win = new Window ("Test"); + win.Resize (200, 200); + + Label label = new Label (); + label.Text = "Hello, world!"; + + win.Add (label); + + ApplicationIndicator indicator = new ApplicationIndicator ("my-id", + "my-name", + Category.ApplicationStatus); + + indicator.Status = Status.Attention; + + /* + Menu menu = new Menu (); + menu.Append (new MenuItem ("Foo")); + menu.Append (new MenuItem ("Bar")); + + indicator.Menu = menu; + */ + + win.ShowAll (); + + Application.Run (); + } +}
\ No newline at end of file |