diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2011-02-04 12:48:16 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2011-02-04 12:48:16 +0100 |
commit | d22edfa36b360724f433885656a821bcaf7f36cd (patch) | |
tree | cf3eba8f3c0ff6258651a225f1a6806fa923aa64 /example/simple-client-vala.vala | |
parent | 675cec0561644d2da6173bd8216decbe228a4706 (diff) | |
download | libayatana-appindicator-d22edfa36b360724f433885656a821bcaf7f36cd.tar.gz libayatana-appindicator-d22edfa36b360724f433885656a821bcaf7f36cd.tar.bz2 libayatana-appindicator-d22edfa36b360724f433885656a821bcaf7f36cd.zip |
examples, added scroll-event demo.
Diffstat (limited to 'example/simple-client-vala.vala')
-rw-r--r-- | example/simple-client-vala.vala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/example/simple-client-vala.vala b/example/simple-client-vala.vala index 18ece22..61e0c2f 100644 --- a/example/simple-client-vala.vala +++ b/example/simple-client-vala.vala @@ -87,6 +87,11 @@ class SimpleClient { } public void run() { + + ci.scroll_event.connect((delta, direction) => { + print(@"Got scroll event! delta: $delta, direction: $direction\n"); + }); + Timeout.add_seconds(1, () => { percentage = (percentage + 1) % 100; if (can_haz_label) { |