[evolution-patches] Fix for the bug #274409 [calendar]



Hi,
   Have attached the fix for the bug.

thanks, chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2680.2.20
diff -u -p -r1.2680.2.20 ChangeLog
--- ChangeLog	8 Apr 2005 16:09:53 -0000	1.2680.2.20
+++ ChangeLog	12 Apr 2005 12:46:57 -0000
@@ -1,3 +1,10 @@
+2005-04-12  Chenthill Palanisamy  <pchenthill novell com>
+
+	Fixes #274409
+	* gui/e-tasks.c: (update_view_cb):
+	* gui/gnome-cal.c: (update_todo_view_cb): Do an update
+	in a thread, instead of main loop.
+
 2005-04-08  Rodrigo Moya <rodrigo novell com>
 
 	Fixes #70035
Index: gui/gnome-cal.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/gnome-cal.c,v
retrieving revision 1.368.2.4
diff -u -p -r1.368.2.4 gnome-cal.c
--- gui/gnome-cal.c	7 Apr 2005 18:12:09 -0000	1.368.2.4
+++ gui/gnome-cal.c	12 Apr 2005 12:46:57 -0000
@@ -1084,8 +1084,15 @@ update_todo_view (GnomeCalendar *gcal)
 static gboolean
 update_todo_view_cb (GnomeCalendar *gcal)
 {	
-	update_todo_view(gcal);
+	GThread *thread;
+	GError *error = NULL;
 
+	thread = g_thread_create ((GThreadFunc) update_todo_view, gcal, FALSE, error);
+	if (!thread) {
+		g_warning (G_STRLOC ": %s", error->message);
+		g_error_free (error);
+	}
+	
 	return TRUE;
 }
 
Index: gui/e-tasks.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-tasks.c,v
retrieving revision 1.112.2.1
diff -u -p -r1.112.2.1 e-tasks.c
--- gui/e-tasks.c	4 Apr 2005 19:47:14 -0000	1.112.2.1
+++ gui/e-tasks.c	12 Apr 2005 12:46:58 -0000
@@ -291,8 +291,15 @@ update_view (ETasks *tasks)
 static gboolean
 update_view_cb (ETasks *tasks)
 {	
-	update_view (tasks);
+	GThread *thread;
+	GError *error = NULL;
 
+	thread = g_thread_create ((GThreadFunc) update_view_cb, tasks, FALSE, error);
+	if (!thread) {
+		g_warning (G_STRLOC ": %s", error->message);
+		g_error_free (error);
+	}
+	
 	return TRUE;
 }
 


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