diff options
author | Ted Gould <ted@canonical.com> | 2009-04-27 10:42:39 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-04-27 10:42:39 -0500 |
commit | d2d0c7aac15b44ca5bc876be3a402e63284512b6 (patch) | |
tree | 06294e6bfe4a1e4c2f69653302599aea70e83e3f /libindicate | |
parent | c292100a3d95aac71c7cb943cbd3df9a204c0a70 (diff) | |
parent | 5899a3f246b8eeac2c820013a27cde0301ad69ee (diff) | |
download | libayatana-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.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; |