diff options
author | Ted Gould <ted@canonical.com> | 2009-08-25 16:21:44 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-08-25 16:21:44 -0500 |
commit | a4b4a9271212b8a9370fb7aa461302c6f9a97111 (patch) | |
tree | 67027342bfdc8363433a16c613fa0119a5bb48a9 /src/status-service.c | |
parent | faef72466956d377bfd5d679ea173db7617a5253 (diff) | |
parent | 2ca0db49f3d75fe732885cbad2ba89c4c71beb93 (diff) | |
download | ayatana-indicator-session-a4b4a9271212b8a9370fb7aa461302c6f9a97111.tar.gz ayatana-indicator-session-a4b4a9271212b8a9370fb7aa461302c6f9a97111.tar.bz2 ayatana-indicator-session-a4b4a9271212b8a9370fb7aa461302c6f9a97111.zip |
Merging in the more status branch that implements basic status for Pidgin and Telepathy.
Diffstat (limited to 'src/status-service.c')
-rw-r--r-- | src/status-service.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/status-service.c b/src/status-service.c index 5a9d9b5..14d8a34 100644 --- a/src/status-service.c +++ b/src/status-service.c @@ -39,11 +39,13 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include "status-provider.h" #include "status-provider-pidgin.h" +#include "status-provider-telepathy.h" typedef StatusProvider * (*newfunc) (void); -#define STATUS_PROVIDER_CNT 1 +#define STATUS_PROVIDER_CNT 2 static newfunc status_provider_newfuncs[STATUS_PROVIDER_CNT] = { - status_provider_pidgin_new + status_provider_pidgin_new, + status_provider_telepathy_new }; static StatusProvider * status_providers[STATUS_PROVIDER_CNT] = { 0 }; @@ -73,12 +75,12 @@ static StatusProviderStatus global_status = STATUS_PROVIDER_STATUS_OFFLINE; static void status_update (void) { StatusProviderStatus oldglobal = global_status; - global_status = STATUS_PROVIDER_STATUS_ONLINE; + global_status = STATUS_PROVIDER_STATUS_OFFLINE; int i; for (i = 0; i < STATUS_PROVIDER_CNT; i++) { StatusProviderStatus localstatus = status_provider_get_status(status_providers[i]); - if (localstatus > global_status) { + if (localstatus < global_status) { global_status = localstatus; } } |