aboutsummaryrefslogtreecommitdiff
path: root/bindings/mono/examples/IndicatorExample.cs
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-14 11:16:00 -0600
committerTed Gould <ted@gould.cx>2009-12-14 11:16:00 -0600
commit0d59bd4f60ff7d545eee407dba34f744ab6b6831 (patch)
treeb17286acc11be141c3dc3d9959d17224ef7915b4 /bindings/mono/examples/IndicatorExample.cs
parenta5dfa7615a4fc8ff6fa647f3324f4349a0ad7e19 (diff)
parent985c449e8efe4e258d286857f6a71a7726b43561 (diff)
downloadlibayatana-appindicator-0d59bd4f60ff7d545eee407dba34f744ab6b6831.tar.gz
libayatana-appindicator-0d59bd4f60ff7d545eee407dba34f744ab6b6831.tar.bz2
libayatana-appindicator-0d59bd4f60ff7d545eee407dba34f744ab6b6831.zip
* Upstream work
* Mono bindings
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