aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-commands.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-03-15 03:08:20 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-03-15 03:08:20 +0800
commitf3a444674878385818f5fb13f5e65bae9a50eca3 (patch)
tree7024fcd4242427caf0e98f9db26d100dc3e0c879 /calendar/gui/calendar-commands.c
parentb7fc0ec31acaead06c9d9889ef65af0c35ed7693 (diff)
downloadgsoc2013-evolution-f3a444674878385818f5fb13f5e65bae9a50eca3.tar
gsoc2013-evolution-f3a444674878385818f5fb13f5e65bae9a50eca3.tar.gz
gsoc2013-evolution-f3a444674878385818f5fb13f5e65bae9a50eca3.tar.bz2
gsoc2013-evolution-f3a444674878385818f5fb13f5e65bae9a50eca3.tar.lz
gsoc2013-evolution-f3a444674878385818f5fb13f5e65bae9a50eca3.tar.xz
gsoc2013-evolution-f3a444674878385818f5fb13f5e65bae9a50eca3.tar.zst
gsoc2013-evolution-f3a444674878385818f5fb13f5e65bae9a50eca3.zip
add all day event editor mode
2002-03-14 JP Rosevear <jpr@ximian.com> * idl/evolution-calendar.idl: add all day event editor mode * gui/component-factory.c: clean up exception handling (sc_user_create_new_item_cb): support the all day event id (create_object): add a user creatable all day appointment item * gui/comp-editor-factory.c (get_default_event): get a default event either all day or starting at the top of the hour (get_default_task): get a default task (edit_new): support the all day event mode * gui/calendar-commands.c: remove unused functions/verbs svn path=/trunk/; revision=16157
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r--calendar/gui/calendar-commands.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index b72f6b4cdb..4aa9eb7248 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -67,47 +67,6 @@ typedef struct {
guint taskpad_focused : 1;
} FocusData;
-/* Callback for the new appointment command */
-static void
-new_appointment_cb (BonoboUIComponent *uic, gpointer data, const char *path)
-{
- GnomeCalendar *gcal;
-
- gcal = GNOME_CALENDAR (data);
- gnome_calendar_new_appointment (gcal);
-}
-
-static void
-new_meeting_cb (BonoboUIComponent *uic, gpointer data, const char *path)
-{
- GnomeCalendar *gcal;
- time_t dtstart, dtend;
-
- gcal = GNOME_CALENDAR (data);
- gnome_calendar_get_current_time_range (gcal, &dtstart, &dtend);
- gnome_calendar_new_appointment_for (gcal, dtstart, dtend, FALSE, TRUE);
-}
-
-static void
-new_event_cb (BonoboUIComponent *uic, gpointer data, const char *path)
-{
- GnomeCalendar *gcal;
- time_t dtstart, dtend;
-
- gcal = GNOME_CALENDAR (data);
- gnome_calendar_get_current_time_range (gcal, &dtstart, &dtend);
- gnome_calendar_new_appointment_for (gcal, dtstart, dtend, TRUE, FALSE);
-}
-
-static void
-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)
@@ -667,11 +626,6 @@ static BonoboUIVerb verbs [] = {
BONOBO_UI_VERB ("CalendarPrint", file_print_cb),
BONOBO_UI_VERB ("CalendarPrintPreview", file_print_preview_cb),
- BONOBO_UI_VERB ("CalendarNewAppointment", new_appointment_cb),
- BONOBO_UI_VERB ("CalendarNewMeeting", new_meeting_cb),
- BONOBO_UI_VERB ("CalendarNewEvent", new_event_cb),
- BONOBO_UI_VERB ("CalendarNewTask", new_task_cb),
-
BONOBO_UI_VERB ("Cut", cut_cmd),
BONOBO_UI_VERB ("Copy", copy_cmd),
BONOBO_UI_VERB ("Paste", paste_cmd),
@@ -703,11 +657,6 @@ static EPixmap pixmaps [] =
E_PIXMAP ("/menu/EditPlaceholder/Edit/Delete", "evolution-trash-mini.png"),
E_PIXMAP ("/menu/File/Print/Print", "print.xpm"),
E_PIXMAP ("/menu/File/Print/PrintPreview", "print-preview.xpm"),
- E_PIXMAP ("/menu/ComponentActionsPlaceholder/Actions/NewAppointment", "new_appointment.xpm"),
- E_PIXMAP ("/menu/ComponentActionsPlaceholder/Actions/NewEvent", "new_all_day_event.png"),
- E_PIXMAP ("/menu/ComponentActionsPlaceholder/Actions/NewMeeting", "meeting.xpm"),
- E_PIXMAP ("/menu/ComponentActionsPlaceholder/Actions/NewTask", "new_task-16.png"),
- E_PIXMAP ("/menu/Tools/ComponentPlaceholder/CalendarSettings", "configure_16_calendar.xpm"),
E_PIXMAP ("/menu/View/ViewBegin/Goto", "goto-16.png"),
E_PIXMAP ("/Toolbar/New", "buttons/new_appointment.png"),