diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-26 10:10:55 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-26 10:10:55 +0800 |
commit | 95b6ff339e69befec13b7a5f3831d1b74db0d87e (patch) | |
tree | 9aeac80b9aac8580c4363de772d8d539c017211c /calendar | |
parent | 6b3f6b3bf0a40bdd33da63ca89416d9af1f29f79 (diff) | |
download | gsoc2013-evolution-95b6ff339e69befec13b7a5f3831d1b74db0d87e.tar.gz gsoc2013-evolution-95b6ff339e69befec13b7a5f3831d1b74db0d87e.tar.zst gsoc2013-evolution-95b6ff339e69befec13b7a5f3831d1b74db0d87e.zip |
Remove debug code -mig
svn path=/trunk/; revision=196
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/calendar.c | 2 | ||||
-rw-r--r-- | calendar/gnome-cal.c | 4 | ||||
-rw-r--r-- | calendar/gui/calendar.c | 2 | ||||
-rw-r--r-- | calendar/gui/gnome-cal.c | 4 |
4 files changed, 4 insertions, 8 deletions
diff --git a/calendar/calendar.c b/calendar/calendar.c index 2a5b532a04..5bfb5ea21c 100644 --- a/calendar/calendar.c +++ b/calendar/calendar.c @@ -97,8 +97,10 @@ calendar_add_object (Calendar *cal, iCalObject *obj) case ICAL_EVENT: cal->events = g_list_prepend (cal->events, obj); ical_object_try_alarms (obj); +#ifdef DEBUGGING_MAIL_ALARM obj->malarm.trigger = 0; calendar_notify (0, obj); +#endif break; case ICAL_TODO: diff --git a/calendar/gnome-cal.c b/calendar/gnome-cal.c index 534db8bb4c..d44c5e89f3 100644 --- a/calendar/gnome-cal.c +++ b/calendar/gnome-cal.c @@ -294,10 +294,6 @@ calendar_notify (time_t time, void *data) if (pid == 0){ const int top = max_open_files (); int dev_null, i; - - for (i = 0; i < top; i++) - if (i != p [1]) - close (i); dev_null = open ("/dev/null", O_RDWR); dup2 (p [1], 0); dup2 (dev_null, 1); diff --git a/calendar/gui/calendar.c b/calendar/gui/calendar.c index 2a5b532a04..5bfb5ea21c 100644 --- a/calendar/gui/calendar.c +++ b/calendar/gui/calendar.c @@ -97,8 +97,10 @@ calendar_add_object (Calendar *cal, iCalObject *obj) case ICAL_EVENT: cal->events = g_list_prepend (cal->events, obj); ical_object_try_alarms (obj); +#ifdef DEBUGGING_MAIL_ALARM obj->malarm.trigger = 0; calendar_notify (0, obj); +#endif break; case ICAL_TODO: diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 534db8bb4c..d44c5e89f3 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -294,10 +294,6 @@ calendar_notify (time_t time, void *data) if (pid == 0){ const int top = max_open_files (); int dev_null, i; - - for (i = 0; i < top; i++) - if (i != p [1]) - close (i); dev_null = open ("/dev/null", O_RDWR); dup2 (p [1], 0); dup2 (dev_null, 1); |