aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/e-shell.c2
-rw-r--r--shell/es-event.h4
3 files changed, 9 insertions, 3 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 7fcca9c5fc..02ee25ddb1 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-17 Not Zed <NotZed@Ximian.com>
+
+ * es-event.h: fix the qualifier bit assignments for the STATE target.
+
+ * e-shell.c (offline_procedure_finished_cb): fix offline state event.
+
2005-02-28 JP Rosevear <jpr@novell.com>
* e-shell-window-commands.c (command_submit_bug): update authors
diff --git a/shell/e-shell.c b/shell/e-shell.c
index d61ba3b8ed..f779e6d603 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -1095,7 +1095,7 @@ offline_procedure_finished_cb (EShellOfflineHandler *offline_handler,
* Only the online and offline states are emitted.
*/
ese = es_event_peek();
- e_event_emit((EEvent *)ese, "state.changed", (EEventTarget *)es_event_target_new_state(ese, TRUE));
+ e_event_emit((EEvent *)ese, "state.changed", (EEventTarget *)es_event_target_new_state(ese, !now_offline));
}
/**
diff --git a/shell/es-event.h b/shell/es-event.h
index db18dbce2d..e857b97c1a 100644
--- a/shell/es-event.h
+++ b/shell/es-event.h
@@ -43,8 +43,8 @@ enum _es_event_target_t {
/* Flags that qualify TARGET_STATE */
enum {
- ES_EVENT_STATE_ONLINE = 1<< 0,
- ES_EVENT_STATE_OFFLINE = 1<< 0,
+ ES_EVENT_STATE_ONLINE = 1<<0,
+ ES_EVENT_STATE_OFFLINE = 1<<1,
};
typedef struct _ESEventTargetState ESEventTargetState;