diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2011-07-18 18:11:33 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2011-07-18 18:11:33 +0200 |
commit | d24b2f255e7135ceacd1ab7388e514f5f2b5edcf (patch) | |
tree | 1be8dc148cea0977399f9be04b11ff1ea8902e26 | |
parent | 4574948f9633981df5629a99679683972ab2adae (diff) | |
download | libayatana-appindicator-d24b2f255e7135ceacd1ab7388e514f5f2b5edcf.tar.gz libayatana-appindicator-d24b2f255e7135ceacd1ab7388e514f5f2b5edcf.tar.bz2 libayatana-appindicator-d24b2f255e7135ceacd1ab7388e514f5f2b5edcf.zip |
Vala bindings example: added secondary_activate
-rw-r--r-- | bindings/vala/examples/indicator-example.vala | 8 |
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(); |