aboutsummaryrefslogtreecommitdiff
path: root/bindings/mono/examples
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2010-12-03 16:38:48 -0500
committerKen VanDine <ken.vandine@canonical.com>2010-12-03 16:38:48 -0500
commite7e460435824dc513b2206ee67a437345de964db (patch)
tree30d32085bf9009f9c7675ccd12f8927d03fbbd6f /bindings/mono/examples
parent9c008cd03484b38b968618f1877c64215ba2c2fb (diff)
downloadlibayatana-appindicator-e7e460435824dc513b2206ee67a437345de964db.tar.gz
libayatana-appindicator-e7e460435824dc513b2206ee67a437345de964db.tar.bz2
libayatana-appindicator-e7e460435824dc513b2206ee67a437345de964db.zip
* Explicitly call ShowAll on the menu, otherwise it isn't shown
* Specify a panel icon that exists for the example
Diffstat (limited to 'bindings/mono/examples')
-rw-r--r--bindings/mono/examples/IndicatorExample.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/bindings/mono/examples/IndicatorExample.cs b/bindings/mono/examples/IndicatorExample.cs
index c34e020..c18a665 100644
--- a/bindings/mono/examples/IndicatorExample.cs
+++ b/bindings/mono/examples/IndicatorExample.cs
@@ -34,8 +34,8 @@ public class IndicatorExample
win.Add (label);
- ApplicationIndicator indicator = new ApplicationIndicator ("my-id",
- "my-name",
+ ApplicationIndicator indicator = new ApplicationIndicator ("Example",
+ "applications-microblogging-panel",
Category.ApplicationStatus);
indicator.Status = Status.Attention;
@@ -45,6 +45,7 @@ public class IndicatorExample
menu.Append (new MenuItem ("Bar"));
indicator.Menu = menu;
+ indicator.Menu.ShowAll ();
win.ShowAll ();