diff options
author | Ted Gould <ted@canonical.com> | 2009-04-27 10:50:40 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-04-27 10:50:40 -0500 |
commit | 73e576b120f91aa42d8040af16a2310fb60d62c1 (patch) | |
tree | 20062dd5d0ff2f06f0b73e8540b57367ed439bbf /libindicate | |
parent | 183d218f7c7d22da792b90c0014d44b088d91008 (diff) | |
parent | 0f174a8a4904e33f912fae70a6345a861306b474 (diff) | |
download | libayatana-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.c | 4 |
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; |