aboutsummaryrefslogtreecommitdiff
path: root/bindings/vala
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-18 18:11:33 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-18 18:11:33 +0200
commitd24b2f255e7135ceacd1ab7388e514f5f2b5edcf (patch)
tree1be8dc148cea0977399f9be04b11ff1ea8902e26 /bindings/vala
parent4574948f9633981df5629a99679683972ab2adae (diff)
downloadlibayatana-appindicator-d24b2f255e7135ceacd1ab7388e514f5f2b5edcf.tar.gz
libayatana-appindicator-d24b2f255e7135ceacd1ab7388e514f5f2b5edcf.tar.bz2
libayatana-appindicator-d24b2f255e7135ceacd1ab7388e514f5f2b5edcf.zip
Vala bindings example: added secondary_activate
Diffstat (limited to 'bindings/vala')
-rw-r--r--bindings/vala/examples/indicator-example.vala8
1 files changed, 8 insertions, 0 deletions
diff --git a/bindings/vala/examples/indicator-example.vala b/bindings/vala/examples/indicator-example.vala
index 621c962..b98498a 100644
--- a/bindings/vala/examples/indicator-example.vala
+++ b/bindings/vala/examples/indicator-example.vala
@@ -56,6 +56,14 @@ public class IndicatorExample {
indicator.set_menu(menu);
+ indicator.secondary_activate.connect(() => {
+ print("Got secondary_activate event\n");
+ if (indicator.get_status() != IndicatorStatus.ACTIVE)
+ indicator.set_status(IndicatorStatus.ACTIVE);
+ else
+ indicator.set_status(IndicatorStatus.ATTENTION);
+ });
+
win.show_all();
Gtk.main();