[evolution-patches] fix for the bug #259505 [UIHACKFEST] [calendar]



Hi,
  Have attached the fix for the bug. Check the previous veiw type before
setting the view.

thanks, Chenthill
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2928
diff -u -p -u -p -r1.2928 ChangeLog
--- ChangeLog	12 Jan 2006 15:08:39 -0000	1.2928
+++ ChangeLog	12 Jan 2006 17:02:57 -0000
@@ -1,3 +1,10 @@
+2006-01-14  Chenthill Palanisamy  <pchenthill novell com>
+
+	Fixes #259505
+	* gui/gnome-cal.c:
+	(gnome_calendar_on_date_navigator_selection_changed): Check 
+	the previous selection before setting the view.
+
 2006-01-12  Srinivasa Ragavan  <sragavan novell com>
 
 	* gui/GNOME_Evolution_Calendar.server.in.in:
Index: gui/gnome-cal.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/gnome-cal.c,v
retrieving revision 1.393
diff -u -p -u -p -r1.393 gnome-cal.c
--- gui/gnome-cal.c	26 Nov 2005 02:31:49 -0000	1.393
+++ gui/gnome-cal.c	12 Jan 2006 17:02:59 -0000
@@ -3115,9 +3115,12 @@ gnome_calendar_on_date_navigator_selecti
 		/* FIXME Gross hack so that the view times are updated properly */
 		priv->range_selected = TRUE;
 
-		e_week_view_set_weeks_shown (E_WEEK_VIEW (priv->month_view),
+		if (priv->current_view_type == GNOME_CAL_MONTH_VIEW) {
+			e_week_view_set_weeks_shown (E_WEEK_VIEW (priv->month_view),
 					     (new_days_shown + 6) / 7);
-		view_type = GNOME_CAL_MONTH_VIEW;
+			view_type = GNOME_CAL_MONTH_VIEW;
+		} else
+			view_type = GNOME_CAL_LIST_VIEW;
 	} else if (new_days_shown == 7 && starts_on_week_start_day) {
 		view_type = GNOME_CAL_WEEK_VIEW;
 	} else {		


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