aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-24 23:48:02 -0500
committerTed Gould <ted@canonical.com>2009-08-24 23:48:02 -0500
commit57b2bd25a278c971547a4d307f59c3414dfb6f9b (patch)
tree39c137cc601ae3551d60ceab1e8868ff272f586f
parent824c6c29646db685e0c8d4416494bd5b3128ca2e (diff)
parentf820b8313eb697cc96ffd4f258d1dcc82ab4f56e (diff)
downloadayatana-indicator-session-57b2bd25a278c971547a4d307f59c3414dfb6f9b.tar.gz
ayatana-indicator-session-57b2bd25a278c971547a4d307f59c3414dfb6f9b.tar.bz2
ayatana-indicator-session-57b2bd25a278c971547a4d307f59c3414dfb6f9b.zip
Fixing status.
-rw-r--r--debian/changelog6
-rw-r--r--src/status-provider.c7
-rw-r--r--src/status-provider.h2
-rw-r--r--src/status-service.c4
4 files changed, 8 insertions, 11 deletions
diff --git a/debian/changelog b/debian/changelog
index bb4b6a4..4091c19 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+indicator-session (0.1~bzr17-0ubuntu1~ppa2~morestatus3) UNRELEASED; urgency=low
+
+ * Fixing status.
+
+ -- Ted Gould <ted@ubuntu.com> Mon, 24 Aug 2009 23:47:42 -0500
+
indicator-session (0.1~bzr17-0ubuntu1~ppa2~morestatus2) karmic; urgency=low
* More status...
diff --git a/src/status-provider.c b/src/status-provider.c
index 83d44ac..1139e54 100644
--- a/src/status-provider.c
+++ b/src/status-provider.c
@@ -99,10 +99,3 @@ status_provider_get_status (StatusProvider * sp)
return class->get_status(sp);
}
-void
-status_provider_emit_status_changed (StatusProvider * sp, StatusProviderStatus newstatus)
-{
- g_return_if_fail(IS_STATUS_PROVIDER(sp));
- g_signal_emit(sp, signals[STATUS_CHANGED], 0, newstatus, TRUE);
- return;
-}
diff --git a/src/status-provider.h b/src/status-provider.h
index 9cc9885..522e61b 100644
--- a/src/status-provider.h
+++ b/src/status-provider.h
@@ -72,8 +72,6 @@ GType status_provider_get_type (void);
void status_provider_set_status (StatusProvider * sp, StatusProviderStatus status);
StatusProviderStatus status_provider_get_status (StatusProvider * sp);
-void status_provider_emit_status_changed (StatusProvider * sp, StatusProviderStatus newstatus);
-
G_END_DECLS
#endif
diff --git a/src/status-service.c b/src/status-service.c
index 5a60fa6..14d8a34 100644
--- a/src/status-service.c
+++ b/src/status-service.c
@@ -75,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;
}
}