aboutsummaryrefslogtreecommitdiff
path: root/bindings/vala/examples
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-08-11 12:02:16 -0500
committerTed Gould <ted@gould.cx>2011-08-11 12:02:16 -0500
commit8c352cdc40eced52767ddca7036fa7b76bf42a6b (patch)
tree4a628c94c7913385dfcf098c85b63188eedc6200 /bindings/vala/examples
parentfc03ef7c10bf76edc87af4cc54194fe1bf6e28c2 (diff)
parent1bfe91a779b5d71cf3e6bf066182af38995fa4bf (diff)
downloadlibayatana-appindicator-8c352cdc40eced52767ddca7036fa7b76bf42a6b.tar.gz
libayatana-appindicator-8c352cdc40eced52767ddca7036fa7b76bf42a6b.tar.bz2
libayatana-appindicator-8c352cdc40eced52767ddca7036fa7b76bf42a6b.zip
Import upstream version 0.3.91
Diffstat (limited to 'bindings/vala/examples')
-rw-r--r--bindings/vala/examples/indicator-example.vala5
1 files changed, 3 insertions, 2 deletions
diff --git a/bindings/vala/examples/indicator-example.vala b/bindings/vala/examples/indicator-example.vala
index 621c962..7bb1d7d 100644
--- a/bindings/vala/examples/indicator-example.vala
+++ b/bindings/vala/examples/indicator-example.vala
@@ -47,14 +47,15 @@ public class IndicatorExample {
item.show();
menu.append(item);
- item = new MenuItem.with_label("Bar");
+ var bar = item = new MenuItem.with_label("Bar");
item.show();
item.activate.connect(() => {
- indicator.set_status(IndicatorStatus.ATTENTION);
+ indicator.set_status(IndicatorStatus.ACTIVE);
});
menu.append(item);
indicator.set_menu(menu);
+ indicator.set_secondary_activate_target(bar);
win.show_all();