Patch for gtk+/gtk/gtkcalendar.c



I sent this message a couple of days ago, before subscribing to
gtk-devel-list.  It doesn't show up in the archives, so I'm assuming it
was silently discarded.  Here it is again:

Oops.  If you're looking at a November calendar, and Nov. 3 (Election Day
in the U.S.) is marked, the calendar will also show Dec. 3 as being
marked.


--- gtk+/gtk/gtkcalendar.c.old	Tue Nov 17 00:04:10 1998
+++ gtk+/gtk/gtkcalendar.c	Mon Nov 16 23:45:00 1998
@@ -1877,7 +1877,8 @@
   gdk_draw_string (private_data->main_win,
 		   DAY_FONT (widget), gc,
 		   x_loc, y_baseline, buffer);
-  if (calendar->marked_date[day-1])
+  if (calendar->marked_date[day-1]
+      && calendar->day_month[row][col] == MONTH_CURRENT)
     gdk_draw_string (private_data->main_win,
 		     DAY_FONT (widget), gc,
 		     x_loc-1, y_baseline, buffer);


I don't have CVS access, so it'd be nice if someone else could commit
this.

--
Dan



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