aboutsummaryrefslogtreecommitdiff
path: root/bindings/vala/examples/indicator-example.vala
diff options
context:
space:
mode:
authorMichal Hruby <michal.mhr@gmail.com>2011-09-23 17:46:27 +0200
committerMichal Hruby <michal.mhr@gmail.com>2011-09-23 17:46:27 +0200
commitc0b476c33f2d59641090d1ba741f4cd038bc320c (patch)
tree8375d62f7e900aeb212b77898ca23d39ab35885d /bindings/vala/examples/indicator-example.vala
parent1bfe91a779b5d71cf3e6bf066182af38995fa4bf (diff)
downloadlibayatana-appindicator-c0b476c33f2d59641090d1ba741f4cd038bc320c.tar.gz
libayatana-appindicator-c0b476c33f2d59641090d1ba741f4cd038bc320c.tar.bz2
libayatana-appindicator-c0b476c33f2d59641090d1ba741f4cd038bc320c.zip
Fix type_check_function for vala bindings
Diffstat (limited to 'bindings/vala/examples/indicator-example.vala')
-rw-r--r--bindings/vala/examples/indicator-example.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/bindings/vala/examples/indicator-example.vala b/bindings/vala/examples/indicator-example.vala
index 7bb1d7d..8feb4ba 100644
--- a/bindings/vala/examples/indicator-example.vala
+++ b/bindings/vala/examples/indicator-example.vala
@@ -34,6 +34,7 @@ public class IndicatorExample {
var indicator = new Indicator(win.title, "indicator-messages",
IndicatorCategory.APPLICATION_STATUS);
+ if (!(indicator is Indicator)) return -1;
indicator.set_status(IndicatorStatus.ACTIVE);
indicator.set_attention_icon("indicator-messages-new");