[evolution-patches] possible work around for 58817



This doesn't fix the real problem in 58817 but is does make it less
severe.  I don't see a good way to dynamically rework the dates short
implementing some sort of custom e-clipped-date-range widget which is
probably out of range for 2.0.  Should we just go with this or can
someone think of something better?

--Larry
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2447
diff -u -p -r1.2447 ChangeLog
--- ChangeLog	16 Jul 2004 02:28:21 -0000	1.2447
+++ ChangeLog	17 Jul 2004 06:27:27 -0000
@@ -1,3 +1,8 @@
+2004-07-16  Larry Ewing  <lewing ximian com>
+
+	* gui/calendar-component.c (set_info): use short month forms to
+	limit the maximum width of the label.
+
 2004-07-14  JP Rosevear  <jpr novell com>
  
  	Fixes #61572
@@ -8676,4 +8681,4 @@
 	to double-check the event can be deleted.
 	(purging_query_done_cb, purging_eval_error_cb): needed callbacks to
 	finish the query.
-	(gnome_calendar_destroy): free new memb
\ No newline at end of file
+	(gnome_calendar_destroy): free new memb
Index: gui/calendar-component.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/calendar-component.c,v
retrieving revision 1.177
diff -u -p -r1.177 calendar-component.c
--- gui/calendar-component.c	14 Jul 2004 02:20:55 -0000	1.177
+++ gui/calendar-component.c	17 Jul 2004 06:27:27 -0000
@@ -513,7 +513,7 @@ set_info (CalendarComponentView *compone
 		    && start_tm.tm_mon == end_tm.tm_mon
 		    && start_tm.tm_mday == end_tm.tm_mday) {
 			e_utf8_strftime (buffer, sizeof (buffer),
-				  _("%A %d %B %Y"), &start_tm);
+				  _("%A %d %b %Y"), &start_tm);
 		} else if (start_tm.tm_year == end_tm.tm_year) {
 			e_utf8_strftime (buffer, sizeof (buffer),
 				  _("%a %d %b"), &start_tm);
@@ -537,22 +537,22 @@ set_info (CalendarComponentView *compone
 				e_utf8_strftime (buffer, sizeof (buffer),
 					  "%d", &start_tm);
 				e_utf8_strftime (end_buffer, sizeof (end_buffer),
-					  _("%d %B %Y"), &end_tm);
+					  _("%d %b %Y"), &end_tm);
 				strcat (buffer, " - ");
 				strcat (buffer, end_buffer);
 			} else {
 				e_utf8_strftime (buffer, sizeof (buffer),
-					  _("%d %B"), &start_tm);
+					  _("%d %b"), &start_tm);
 				e_utf8_strftime (end_buffer, sizeof (end_buffer),
-					  _("%d %B %Y"), &end_tm);
+					  _("%d %b %Y"), &end_tm);
 				strcat (buffer, " - ");
 				strcat (buffer, end_buffer);
 			}
 		} else {
 			e_utf8_strftime (buffer, sizeof (buffer),
-				  _("%d %B %Y"), &start_tm);
+				  _("%d %b %Y"), &start_tm);
 			e_utf8_strftime (end_buffer, sizeof (end_buffer),
-				  _("%d %B %Y"), &end_tm);
+				  _("%d %b %Y"), &end_tm);
 			strcat (buffer, " - ");
 			strcat (buffer, end_buffer);
 		}


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