[grisbi-cvs] grisbi/src gsb_automem.c, 1.21, 1.22 gsb_calendar.c, 1.3, 1.4
Martin Stromberger
fabiolla at users.sourceforge.net
Sat Jan 10 19:50:24 CET 2009
Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26540/src
Modified Files:
gsb_automem.c gsb_calendar.c
Log Message:
set page_size to zero (gtk-warning when page size is not zeor, added limit for years (endless-loop when scheduled transaction is in next year)
Index: gsb_automem.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_automem.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- gsb_automem.c 8 Jan 2009 18:47:56 -0000 1.21
+++ gsb_automem.c 10 Jan 2009 18:50:21 -0000 1.22
@@ -651,7 +651,7 @@
upper = G_MAXDOUBLE;
step_increment = 1.0;
page_increment = 5.0;
- page_size = 5.0;
+ page_size = 0.0;
climb_rate = 2.0;
return gsb_automem_spin_button_new_full ( value,
Index: gsb_calendar.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_calendar.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- gsb_calendar.c 7 Jan 2009 21:18:55 -0000 1.3
+++ gsb_calendar.c 10 Jan 2009 18:50:21 -0000 1.4
@@ -101,6 +101,7 @@
time_t temps;
GSList *tmp_list;
gint calendar_month;
+ gint calendar_year;
gtk_calendar_clear_marks ( GTK_CALENDAR ( scheduled_calendar ));
@@ -117,6 +118,7 @@
FALSE );
calendar_month = GTK_CALENDAR ( scheduled_calendar ) -> month + 1;
+ calendar_year = GTK_CALENDAR ( scheduled_calendar ) -> year + 25;
/* check the scheduled transactions and bold them in the calendar */
tmp_list = gsb_data_scheduled_get_scheduled_list ();
@@ -130,7 +132,7 @@
tmp_date = gsb_date_copy (gsb_data_scheduled_get_date (scheduled_number));
- while (tmp_date && g_date_get_month (tmp_date) == calendar_month)
+ while (tmp_date && g_date_get_month (tmp_date) == calendar_month && g_date_get_year (tmp_date) < calendar_year)
{
GDate *new_date;
More information about the cvs
mailing list