diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 4 | ||||
-rw-r--r-- | calendar/gui/prop.c | 5 | ||||
-rw-r--r-- | calendar/prop.c | 5 |
3 files changed, 12 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index f77733a32d..51f901ea8b 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,7 @@ +1998-05-04 Miguel de Icaza <miguel@nuclecu.unam.mx> + + * prop.c (prop_apply): Only run the apply code once. + 1998-05-03 Miguel de Icaza <miguel@nuclecu.unam.mx> * gncal-day-panel.c (update): Draw the day at startup. diff --git a/calendar/gui/prop.c b/calendar/gui/prop.c index 9021947a75..eab5d00be0 100644 --- a/calendar/gui/prop.c +++ b/calendar/gui/prop.c @@ -62,8 +62,11 @@ prop_cancel (void) } static void -prop_apply (void) +prop_apply (GtkWidget *w, int page) { + if (page != -1) + return; + day_begin = GTK_ADJUSTMENT (sa)->value; day_end = GTK_ADJUSTMENT (ea)->value; gnome_config_set_int ("/calendar/Calendar/Day start", day_begin); diff --git a/calendar/prop.c b/calendar/prop.c index 9021947a75..eab5d00be0 100644 --- a/calendar/prop.c +++ b/calendar/prop.c @@ -62,8 +62,11 @@ prop_cancel (void) } static void -prop_apply (void) +prop_apply (GtkWidget *w, int page) { + if (page != -1) + return; + day_begin = GTK_ADJUSTMENT (sa)->value; day_end = GTK_ADJUSTMENT (ea)->value; gnome_config_set_int ("/calendar/Calendar/Day start", day_begin); |