diff options
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/alarm-notify/alarm.h | 2 | ||||
-rw-r--r-- | calendar/gui/alarm.h | 2 | ||||
-rw-r--r-- | calendar/gui/calendar.c | 3 | ||||
-rw-r--r-- | calendar/gui/eventedit.c | 5 | ||||
-rw-r--r-- | calendar/gui/gncal-full-day.c | 1 | ||||
-rw-r--r-- | calendar/gui/gnome-cal.c | 3 | ||||
-rw-r--r-- | calendar/gui/main.c | 6 | ||||
-rw-r--r-- | calendar/gui/view-utils.c | 1 |
8 files changed, 11 insertions, 12 deletions
diff --git a/calendar/gui/alarm-notify/alarm.h b/calendar/gui/alarm-notify/alarm.h index 39f7281ce7..079eb79121 100644 --- a/calendar/gui/alarm-notify/alarm.h +++ b/calendar/gui/alarm-notify/alarm.h @@ -1,6 +1,8 @@ #ifndef ALARM_H #define ALARM_H +#include <time.h> + typedef void (*AlarmFunction)(time_t time, void *closuse); void alarm_init (void); diff --git a/calendar/gui/alarm.h b/calendar/gui/alarm.h index 39f7281ce7..079eb79121 100644 --- a/calendar/gui/alarm.h +++ b/calendar/gui/alarm.h @@ -1,6 +1,8 @@ #ifndef ALARM_H #define ALARM_H +#include <time.h> + typedef void (*AlarmFunction)(time_t time, void *closuse); void alarm_init (void); diff --git a/calendar/gui/calendar.c b/calendar/gui/calendar.c index a32efae1e0..c9cc4fe984 100644 --- a/calendar/gui/calendar.c +++ b/calendar/gui/calendar.c @@ -14,6 +14,7 @@ #include <config.h> +#include "alarm.h" #include "calendar.h" #include "timeutil.h" #include "versit/vcc.h" @@ -64,7 +65,6 @@ add_alarm (iCalObject *obj, time_t start, time_t end, void *closure) void ical_object_try_alarms (iCalObject *obj) { - GList *alarms, *p; int ao, po, od, mo; int max_o; @@ -83,7 +83,6 @@ ical_object_try_alarms (iCalObject *obj) void calendar_add_alarms (Calendar *cal) { - time_t now = time (NULL); GList *events = cal->events; for (; events; events=events->next) diff --git a/calendar/gui/eventedit.c b/calendar/gui/eventedit.c index 94096841db..d711be4055 100644 --- a/calendar/gui/eventedit.c +++ b/calendar/gui/eventedit.c @@ -1151,11 +1151,6 @@ ee_rp_init_rule (EventEditor *ee) } static void -sensitize_by_toggle (GtkToggleButton *toggle, gpointer data) -{ -} - -static void ee_rp_init_ending_date (EventEditor *ee) { GtkWidget *frame; diff --git a/calendar/gui/gncal-full-day.c b/calendar/gui/gncal-full-day.c index c18866957b..28815bbfe6 100644 --- a/calendar/gui/gncal-full-day.c +++ b/calendar/gui/gncal-full-day.c @@ -343,7 +343,6 @@ new_appointment (GtkWidget *widget, gpointer data) GncalFullDay *fullday; GtkWidget *ee; iCalObject *ico; - time_t lower, upper; fullday = GNCAL_FULL_DAY (data); diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index af7b801f94..a7b5402e0d 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -8,6 +8,7 @@ #include <gnome.h> #include <unistd.h> #include <signal.h> +#include <sys/wait.h> #include "calendar.h" #include "gnome-cal.h" #include "gncal-full-day.h" @@ -319,7 +320,7 @@ execute (char *command, int close_standard) sigaction (SIGINT, &save_intr, NULL); sigaction (SIGQUIT, &save_quit, NULL); - for (i = (close_standard ? 0 : 3); i < 4096; i++) + for (i = (close_standard ? 0 : 3); i < top; i++) close (i); /* FIXME: As an excercise to the reader, copy the diff --git a/calendar/gui/main.c b/calendar/gui/main.c index 92c68898e8..00c13edb16 100644 --- a/calendar/gui/main.c +++ b/calendar/gui/main.c @@ -12,10 +12,12 @@ #include <pwd.h> #include <sys/types.h> +#include "alarm.h" #include "calendar.h" #include "eventedit.h" #include "gnome-cal.h" #include "main.h" +#include "timeutil.h" /* The username, used to set the `owner' field of the event */ char *user_name; @@ -439,6 +441,8 @@ dump_events (void) exit (0); } +extern time_t get_date (); + static error_t parse_an_arg (int key, char *arg, struct argp_state *state) { @@ -477,8 +481,6 @@ static struct argp parser = int main(int argc, char *argv[]) { - GnomeClient *client; - argp_program_version = VERSION; bindtextdomain(PACKAGE, GNOMELOCALEDIR); diff --git a/calendar/gui/view-utils.c b/calendar/gui/view-utils.c index 0c074bd944..a6c7676885 100644 --- a/calendar/gui/view-utils.c +++ b/calendar/gui/view-utils.c @@ -37,7 +37,6 @@ view_utils_draw_events (GtkWidget *widget, GdkWindow *window, GdkGC *gc, GdkRect int font_height; int x, y, max_y; char buf [40]; - int len; struct tm tm_start, tm_end; char *str; iCalObject *ico; |