diff options
author | Ted Gould <ted@gould.cx> | 2009-12-14 09:42:57 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2009-12-14 09:42:57 -0600 |
commit | aebb91e11ed149e1f48e9f05e3d4680304f42620 (patch) | |
tree | 27ca1a00c4bb7cc491393b13902430b94c578daa /bindings/mono/examples/IndicatorExample.cs | |
parent | d3038937c5f5621da42952a026c61e1f5f74e83a (diff) | |
parent | 5e6e5ba6c2ad9b2919aa87da80cbbe8f4655d1c1 (diff) | |
download | ayatana-indicator-application-aebb91e11ed149e1f48e9f05e3d4680304f42620.tar.gz ayatana-indicator-application-aebb91e11ed149e1f48e9f05e3d4680304f42620.tar.bz2 ayatana-indicator-application-aebb91e11ed149e1f48e9f05e3d4680304f42620.zip |
Merging in Jason's fix of Cody's branch. Yeah, seriously.
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 |