aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1998-05-05 12:30:46 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-05-05 12:30:46 +0800
commite5ce5147f9b4e17bdef88987d714f52d7dab475a (patch)
treede1570fe3cce7e07ad5b8016e646262875f64db8
parent4eafda3a143763df58f3375c8e8517efb305a2f9 (diff)
downloadgsoc2013-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/ChangeLog4
-rw-r--r--calendar/gui/prop.c5
-rw-r--r--calendar/prop.c5
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);