[evolution-patches] shell offline event bugs





obvious past-o's.

Index: shell/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/shell/ChangeLog,v
retrieving revision 1.1502
diff -u -p -r1.1502 ChangeLog
--- shell/ChangeLog	1 Mar 2005 06:17:20 -0000	1.1502
+++ shell/ChangeLog	17 Mar 2005 02:20:26 -0000
@@ -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
Index: shell/e-shell.c
===================================================================
RCS file: /cvs/gnome/evolution/shell/e-shell.c,v
retrieving revision 1.260
diff -u -p -r1.260 e-shell.c
--- shell/e-shell.c	1 Mar 2005 06:17:20 -0000	1.260
+++ shell/e-shell.c	17 Mar 2005 02:20:27 -0000
@@ -1095,7 +1095,7 @@ offline_procedure_finished_cb (EShellOff
 	 * 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));
 }
 
 /**
Index: shell/es-event.h
===================================================================
RCS file: /cvs/gnome/evolution/shell/es-event.h,v
retrieving revision 1.2
diff -u -p -r1.2 es-event.h
--- shell/es-event.h	1 Mar 2005 06:17:20 -0000	1.2
+++ shell/es-event.h	17 Mar 2005 02:20:27 -0000
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]