From 57fbfaa43469a1fbe60b63e12f013c859c7f7748 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya <rodrigo@ximian.com> Date: Tue, 18 Nov 2003 17:09:57 +0000 Subject: removed the 'New...' menu items from the UI, it's now implemented in the 2003-11-18 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-commands.c (calendar_control_sensitize_calendar_commands, sensitize_taskpad_commands): removed the 'New...' menu items from the UI, it's now implemented in the shell. svn path=/trunk/; revision=23422 --- calendar/ChangeLog | 2 ++ calendar/gui/calendar-commands.c | 52 ---------------------------------------- 2 files changed, 2 insertions(+), 52 deletions(-) (limited to 'calendar') 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) -- cgit v1.2.3