aboutsummaryrefslogtreecommitdiff
path: root/libindicate
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-27 10:50:40 -0500
committerTed Gould <ted@canonical.com>2009-04-27 10:50:40 -0500
commit73e576b120f91aa42d8040af16a2310fb60d62c1 (patch)
tree20062dd5d0ff2f06f0b73e8540b57367ed439bbf /libindicate
parent183d218f7c7d22da792b90c0014d44b088d91008 (diff)
parent0f174a8a4904e33f912fae70a6345a861306b474 (diff)
downloadlibayatana-indicator-73e576b120f91aa42d8040af16a2310fb60d62c1.tar.gz
libayatana-indicator-73e576b120f91aa42d8040af16a2310fb60d62c1.tar.bz2
libayatana-indicator-73e576b120f91aa42d8040af16a2310fb60d62c1.zip
Upstream Snapshot: Adding in a test suite.
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;