[evolution-patches] patch for #58824 (calendar)



-- 
Rodrigo Moya <rodrigo novell com>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2488
diff -u -p -r1.2488 ChangeLog
--- ChangeLog	16 Aug 2004 09:50:21 -0000	1.2488
+++ ChangeLog	17 Aug 2004 09:04:02 -0000
@@ -1,3 +1,10 @@
+2004-08-17  Rodrigo Moya <rodrigo novell com>
+
+	Fixes #58824
+
+	* gui/gnome-cal.c (open_ecal): if the client is loaded after calling
+	e_cal_open_async, clean up the status bar.
+
 2004-08-16  Sivaiah Nallagatla <snallagatla novell com>
 	
 	* gui/alarm-notify/alarm-notify.h : change the prototype of 
Index: gui/gnome-cal.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/gnome-cal.c,v
retrieving revision 1.349
diff -u -p -r1.349 gnome-cal.c
--- gui/gnome-cal.c	5 Aug 2004 13:28:03 -0000	1.349
+++ gui/gnome-cal.c	17 Aug 2004 09:04:04 -0000
@@ -2167,6 +2167,17 @@ open_ecal (GnomeCalendar *gcal, ECal *ca
 	g_signal_connect (G_OBJECT (cal), "cal_opened", G_CALLBACK (of), gcal);
 	e_cal_open_async (cal, only_if_exists);
 
+	if (e_cal_get_load_state (cal) == E_CAL_LOAD_LOADED) {
+		switch (e_cal_get_source_type (cal)) {
+		case E_CAL_SOURCE_TYPE_EVENT :
+			e_calendar_view_set_status_message (priv->views[priv->current_view_type], NULL);
+			break;
+		case E_CAL_SOURCE_TYPE_TODO :
+			e_calendar_table_set_status_message (E_CALENDAR_TABLE (priv->todo), NULL);
+			break;
+		}
+	}
+
 	return TRUE;
 }
 


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