diff options
-rw-r--r-- | calendar/ChangeLog | 2 | ||||
-rw-r--r-- | calendar/gui/calendar-commands.c | 52 |
2 files changed, 2 insertions, 52 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index e7fefbe44b..faf404c6f6 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -4,6 +4,8 @@ (calendar_control_sensitize_calendar_commands, sensitize_taskpad_commands): removed the 'New...' menu items from the UI, it's now implemented in the shell. + (file_new_appointment_cb, file_new_event_cb, file_new_meeting_cb, + file_new_task_cb): removed. 2003-11-18 Rodrigo Moya <rodrigo@ximian.com> diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index b0fe09456d..e5a66df378 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -81,58 +81,6 @@ file_new_calendar_cb (BonoboUIComponent *uic, gpointer data, const char *path) new_calendar_dialog (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (gcal)))); } -static void -file_new_appointment_cb (BonoboUIComponent *uic, gpointer data, const char *path) -{ - GnomeCalendar *gcal; - time_t dtstart, dtend; - ECalendarView *cal_view; - - gcal = GNOME_CALENDAR (data); - - cal_view = (ECalendarView *) gnome_calendar_get_current_view_widget (gcal); - e_calendar_view_get_selected_time_range (cal_view, &dtstart, &dtend); - e_calendar_view_new_appointment_for (cal_view, dtstart, dtend, FALSE, FALSE); -} - -static void -file_new_event_cb (BonoboUIComponent *uic, gpointer data, const char *path) -{ - GnomeCalendar *gcal; - time_t dtstart, dtend; - ECalendarView *cal_view; - - gcal = GNOME_CALENDAR (data); - - cal_view = (ECalendarView *) gnome_calendar_get_current_view_widget (gcal); - e_calendar_view_get_selected_time_range (cal_view, &dtstart, &dtend); - e_calendar_view_new_appointment_for (cal_view, dtstart, dtend, TRUE, FALSE); -} - -static void -file_new_meeting_cb (BonoboUIComponent *uic, gpointer data, const char *path) -{ - GnomeCalendar *gcal; - time_t dtstart, dtend; - ECalendarView *cal_view; - - gcal = GNOME_CALENDAR (data); - - cal_view = (ECalendarView *) gnome_calendar_get_current_view_widget (gcal); - e_calendar_view_get_selected_time_range (cal_view, &dtstart, &dtend); - e_calendar_view_new_appointment_for (cal_view, dtstart, dtend, FALSE, TRUE); -} - -static void -file_new_task_cb (BonoboUIComponent *uic, gpointer data, const char *path) -{ - GnomeCalendar *gcal; - - gcal = GNOME_CALENDAR (data); - - gnome_calendar_new_task (gcal); -} - /* Prints the calendar at its current view and time range */ static void print (GnomeCalendar *gcal, gboolean preview) |