aboutsummaryrefslogtreecommitdiff
path: root/bindings/vala/examples
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-28 11:02:34 -0500
committerTed Gould <ted@gould.cx>2011-09-28 11:02:34 -0500
commite57397eda0ea76153a6d9aa9e34ba7e214bd50ad (patch)
tree0bc0d64fb1633ad1a58c0c72385c90918dc32344 /bindings/vala/examples
parent8c352cdc40eced52767ddca7036fa7b76bf42a6b (diff)
parente527e648afc0545b5d49b9c6af1f82951c93c18a (diff)
downloadlibayatana-appindicator-e57397eda0ea76153a6d9aa9e34ba7e214bd50ad.tar.gz
libayatana-appindicator-e57397eda0ea76153a6d9aa9e34ba7e214bd50ad.tar.bz2
libayatana-appindicator-e57397eda0ea76153a6d9aa9e34ba7e214bd50ad.zip
Import upstream version 0.4.0
Diffstat (limited to 'bindings/vala/examples')
-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");