aboutsummaryrefslogtreecommitdiff
path: root/bindings/vala/examples/indicator-example.vala
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2011-08-11 21:18:39 +0200
committerSebastien Bacher <seb128@ubuntu.com>2011-08-11 21:18:39 +0200
commit29515fea95da0c75677d945959bca0df6e114c70 (patch)
tree6f609c5e78e6dcabd88b2a1df322736d0f096107 /bindings/vala/examples/indicator-example.vala
parent90aa5afaef81004330d6fa21d094fa1178e094db (diff)
parent7a5688c166f39166a98f8a660269834c57ca8980 (diff)
downloadlibayatana-appindicator-29515fea95da0c75677d945959bca0df6e114c70.tar.gz
libayatana-appindicator-29515fea95da0c75677d945959bca0df6e114c70.tar.bz2
libayatana-appindicator-29515fea95da0c75677d945959bca0df6e114c70.zip
* New upstream release.
* Secondary activate support * Better GIR file annotations
Diffstat (limited to 'bindings/vala/examples/indicator-example.vala')
-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();