aboutsummaryrefslogtreecommitdiff
path: root/libindicate
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-27 10:42:39 -0500
committerTed Gould <ted@canonical.com>2009-04-27 10:42:39 -0500
commitd2d0c7aac15b44ca5bc876be3a402e63284512b6 (patch)
tree06294e6bfe4a1e4c2f69653302599aea70e83e3f /libindicate
parentc292100a3d95aac71c7cb943cbd3df9a204c0a70 (diff)
parent5899a3f246b8eeac2c820013a27cde0301ad69ee (diff)
downloadlibayatana-indicator-d2d0c7aac15b44ca5bc876be3a402e63284512b6.tar.gz
libayatana-indicator-d2d0c7aac15b44ca5bc876be3a402e63284512b6.tar.bz2
libayatana-indicator-d2d0c7aac15b44ca5bc876be3a402e63284512b6.zip
Merging in the testing branch to get some tests for this guy
Diffstat (limited to 'libindicate')
-rw-r--r--libindicate/listener.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libindicate/listener.c b/libindicate/listener.c
index fddeb71..bd3639d 100644
--- a/libindicate/listener.c
+++ b/libindicate/listener.c
@@ -1003,6 +1003,10 @@ interest_cb (DBusGProxy *proxy, GError *error, gpointer userdata)
void
indicate_listener_server_show_interest (IndicateListener * listener, IndicateListenerServer * server, IndicateInterests interest)
{
+ if (!(interest > INDICATE_INTEREST_NONE && interest < INDICATE_INTEREST_LAST)) {
+ return;
+ }
+
if (!server->interests[interest]) {
org_freedesktop_indicator_show_interest_async (server->proxy, interest_to_string(interest), interest_cb, server);
server->interests[interest] = TRUE;