aboutsummaryrefslogtreecommitdiff
path: root/bindings/vala/examples
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/vala/examples')
-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();