diff options
author | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1998-05-05 12:30:46 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-05-05 12:30:46 +0800 |
commit | e5ce5147f9b4e17bdef88987d714f52d7dab475a (patch) | |
tree | de1570fe3cce7e07ad5b8016e646262875f64db8 | |
parent | 4eafda3a143763df58f3375c8e8517efb305a2f9 (diff) | |
download | gsoc2013-evolution-e5ce5147f9b4e17bdef88987d714f52d7dab475a.tar gsoc2013-evolution-e5ce5147f9b4e17bdef88987d714f52d7dab475a.tar.gz gsoc2013-evolution-e5ce5147f9b4e17bdef88987d714f52d7dab475a.tar.bz2 gsoc2013-evolution-e5ce5147f9b4e17bdef88987d714f52d7dab475a.tar.lz gsoc2013-evolution-e5ce5147f9b4e17bdef88987d714f52d7dab475a.tar.xz gsoc2013-evolution-e5ce5147f9b4e17bdef88987d714f52d7dab475a.tar.zst gsoc2013-evolution-e5ce5147f9b4e17bdef88987d714f52d7dab475a.zip |
Only run the apply code once.
1998-05-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
* prop.c (prop_apply): Only run the apply code once.
svn path=/trunk/; revision=207
-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); |