[evolution-patches] fix for the bug #244981 [calendar]



Hi,
   Have attached the fix for the bug. Added the end date while printing
events in week view.

thanks, Chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2808
diff -u -p -r1.2808 ChangeLog
--- ChangeLog	29 Sep 2005 13:02:55 -0000	1.2808
+++ ChangeLog	30 Sep 2005 06:44:56 -0000
@@ -1,3 +1,9 @@
+2005-09-30  Chenthill Palanisamy  <pchenthill novell com>
+
+	Fixes #244981
+	* gui/print.c: (print_week_day_event): Add the end date
+	while printing in the week view.
+
 2005-08-29  Chenthill Palanisamy  <pchenthill novell com>
 
 	* gui/e-calendar-table.c (e_calendar_table_open_task): Set the 
Index: gui/print.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/print.c,v
retrieving revision 1.74
diff -u -p -r1.74 print.c
--- gui/print.c	17 Jun 2005 15:20:28 -0000	1.74
+++ gui/print.c	30 Sep 2005 06:44:59 -0000
@@ -1361,7 +1361,7 @@ print_week_day_event (GnomePrintContext 
 		      char *text, double red, double green, double blue)
 {
 	struct tm date_tm;
-	char buffer[32];
+	char buffer[32], buffer1 [32];
 
 	date_tm.tm_year = 2001;
 	date_tm.tm_mon = 0;
@@ -1373,10 +1373,18 @@ print_week_day_event (GnomePrintContext 
 
 	e_time_format_time (&date_tm, psi->use_24_hour_format, FALSE,
 			    buffer, sizeof (buffer));
+	
+	date_tm.tm_hour = event->end_minute / 60;
+	date_tm.tm_min = event->end_minute % 60;
+
+	e_time_format_time (&date_tm, psi->use_24_hour_format, FALSE,
+			    buffer1, sizeof (buffer1));
 
 	print_rectangle (pc, x1, x2, y1, y2, red, green, blue);
 	print_text_size (pc, buffer, ALIGN_LEFT, x1, x2, y1, y2);
 	x1 += gnome_font_get_width_utf8 (font, buffer) + 4;
+	print_text_size (pc, buffer1, ALIGN_LEFT, x1, x2, y1, y2);
+	x1 += gnome_font_get_width_utf8 (font, buffer1) + 4;
 	print_text_size (pc, text, ALIGN_LEFT, x1, x2, y1, y2);
 }
 


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