From 7a0e4d23990c3f42df8710ae8c0082d28757d785 Mon Sep 17 00:00:00 2001 From: Nat Friedman Date: Wed, 24 Mar 1999 01:49:01 +0000 Subject: Set the recur->interval to the value of the recur_rr_month_period spin 1999-03-23 Nat Friedman * eventedit.c (ee_store_recur_rule_to_ical): Set the recur->interval to the value of the recur_rr_month_period spin button if the event is being set "by day." This closes bug #675 as reported by bagfors@hpc2n.umu.se. Thanks for the report! svn path=/trunk/; revision=777 --- calendar/ChangeLog | 7 +++++++ calendar/eventedit.c | 3 +++ calendar/gui/eventedit.c | 3 +++ 3 files changed, 13 insertions(+) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 4453610820..81fc21e15a 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +1999-03-23 Nat Friedman + + * eventedit.c (ee_store_recur_rule_to_ical): Set the + recur->interval to the value of the recur_rr_month_period spin + button if the event is being set "by day." This closes bug #675 + as reported by bagfors@hpc2n.umu.se. Thanks for the report! + 1999-03-10 Clifford R. Conover * gncal-todo.c (simple_todo_editor): Add support for Due Date when diff --git a/calendar/eventedit.c b/calendar/eventedit.c index 72d48617d0..4ae35d5fe7 100644 --- a/calendar/eventedit.c +++ b/calendar/eventedit.c @@ -570,6 +570,9 @@ ee_store_recur_rule_to_ical (EventEditor *ee) ical->recur->u.month_day = gtk_spin_button_get_value_as_int ( GTK_SPIN_BUTTON (ee->recur_rr_month_date)); + ical->recur->interval = + gtk_spin_button_get_value_as_int ( + GTK_SPIN_BUTTON (ee->recur_rr_month_period)); } else { /* by position */ diff --git a/calendar/gui/eventedit.c b/calendar/gui/eventedit.c index 72d48617d0..4ae35d5fe7 100644 --- a/calendar/gui/eventedit.c +++ b/calendar/gui/eventedit.c @@ -570,6 +570,9 @@ ee_store_recur_rule_to_ical (EventEditor *ee) ical->recur->u.month_day = gtk_spin_button_get_value_as_int ( GTK_SPIN_BUTTON (ee->recur_rr_month_date)); + ical->recur->interval = + gtk_spin_button_get_value_as_int ( + GTK_SPIN_BUTTON (ee->recur_rr_month_period)); } else { /* by position */ -- cgit v1.2.3