aboutsummaryrefslogtreecommitdiff
path: root/example/simple-client-vala.vala
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-18 18:13:09 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-18 18:13:09 +0200
commit383469d022e9b0c9a08321c7ec9c186fc09c1a36 (patch)
tree3fd849e6ddca2b1b2856cac2e8f5fc8e652e9e40 /example/simple-client-vala.vala
parentd24b2f255e7135ceacd1ab7388e514f5f2b5edcf (diff)
downloadlibayatana-appindicator-383469d022e9b0c9a08321c7ec9c186fc09c1a36.tar.gz
libayatana-appindicator-383469d022e9b0c9a08321c7ec9c186fc09c1a36.tar.bz2
libayatana-appindicator-383469d022e9b0c9a08321c7ec9c186fc09c1a36.zip
examples: add secondary-activate signal usage to Vala and C
Diffstat (limited to 'example/simple-client-vala.vala')
-rw-r--r--example/simple-client-vala.vala7
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) {