aboutsummaryrefslogtreecommitdiff
path: root/bindings/mono/examples/IndicatorExample.cs
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2009-12-12 12:20:52 -0600
committerCody Russell <crussell@canonical.com>2009-12-12 12:20:52 -0600
commit59526b689303cde25721d0a1fdcafdb371fdddba (patch)
treeee7a1bde4ce2e89942fa8bc2b3e3515143a264eb /bindings/mono/examples/IndicatorExample.cs
parented4810839b0bd16af47201bae84524088b9ef178 (diff)
downloadayatana-indicator-application-59526b689303cde25721d0a1fdcafdb371fdddba.tar.gz
ayatana-indicator-application-59526b689303cde25721d0a1fdcafdb371fdddba.tar.bz2
ayatana-indicator-application-59526b689303cde25721d0a1fdcafdb371fdddba.zip
Initial stab at setting up test/example fu
Diffstat (limited to 'bindings/mono/examples/IndicatorExample.cs')
-rw-r--r--bindings/mono/examples/IndicatorExample.cs36
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