diff options
Diffstat (limited to 'example/simple-client-vala.vala')
-rw-r--r-- | example/simple-client-vala.vala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/example/simple-client-vala.vala b/example/simple-client-vala.vala index 61e0c2f..c0adf5b 100644 --- a/example/simple-client-vala.vala +++ b/example/simple-client-vala.vala @@ -92,6 +92,13 @@ class SimpleClient { print(@"Got scroll event! delta: $delta, direction: $direction\n"); }); + ci.secondary_activate.connect((x, y) => { + print(@"Got secondary activate event at $(x)x$(y)\n"); + + if (ci.get_status() == IndicatorStatus.ATTENTION) + ci.set_status(IndicatorStatus.ACTIVE); + }); + Timeout.add_seconds(1, () => { percentage = (percentage + 1) % 100; if (can_haz_label) { |