aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-08-30 01:00:36 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-08-30 01:00:36 +0800
commit5fadb311e670e53e35c8cfd637c70d57ed497fb1 (patch)
tree3d54a006d768882480123056c42803063d664e38 /calendar
parent1ed15f41e77c067d6b47414e3a649c366a030834 (diff)
downloadgsoc2013-evolution-5fadb311e670e53e35c8cfd637c70d57ed497fb1.tar.gz
gsoc2013-evolution-5fadb311e670e53e35c8cfd637c70d57ed497fb1.tar.zst
gsoc2013-evolution-5fadb311e670e53e35c8cfd637c70d57ed497fb1.zip
Use event_editor_set_event_object
2000-08-29 JP Rosevear <jpr@helixcode.com> * gui/gnome-cal.c (gnome_calendar_edit_object): Use event_editor_set_event_object * gui/event-editor.c (event_editor_set_event_object): Rename from event_editor_set_ical_object * gui/event-editor.h: Update prototype * gui/e-week-view.c (e_week_view_on_new_appointment): Call cal_component_commit_sequence after event changes. Default to these being all day events. svn path=/trunk/; revision=5097
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog14
-rw-r--r--calendar/gui/e-week-view.c6
-rw-r--r--calendar/gui/event-editor.c8
-rw-r--r--calendar/gui/event-editor.h2
-rw-r--r--calendar/gui/gnome-cal.c2
5 files changed, 24 insertions, 8 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 0f7895cd41..b61163c8b8 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,19 @@
2000-08-29 JP Rosevear <jpr@helixcode.com>
+ * gui/gnome-cal.c (gnome_calendar_edit_object): Use
+ event_editor_set_event_object
+
+ * gui/event-editor.c (event_editor_set_event_object): Rename
+ from event_editor_set_ical_object
+
+ * gui/event-editor.h: Update prototype
+
+ * gui/e-week-view.c (e_week_view_on_new_appointment):
+ Call cal_component_commit_sequence after event changes. Default
+ to these being all day events.
+
+2000-08-29 JP Rosevear <jpr@helixcode.com>
+
* gui/event-editor.c (dialog_to_comp_object): These are not UTC
times
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 4c5eb5d142..ffaaddb3e5 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -2757,13 +2757,15 @@ e_week_view_on_new_appointment (GtkWidget *widget, gpointer data)
date.tzid = NULL;
dt = week_view->day_starts[week_view->selection_start_day];
- *date.value = icaltime_from_timet (dt, FALSE, FALSE);
+ *date.value = icaltime_from_timet (dt, TRUE, FALSE);
cal_component_set_dtstart (comp, &date);
dt = week_view->day_starts[week_view->selection_end_day + 1];
- *date.value = icaltime_from_timet (dt, FALSE, FALSE);
+ *date.value = icaltime_from_timet (dt, TRUE, FALSE);
cal_component_set_dtend (comp, &date);
+ cal_component_commit_sequence (comp);
+
gnome_calendar_edit_object (week_view->calendar, comp);
gtk_object_unref (GTK_OBJECT (comp));
}
diff --git a/calendar/gui/event-editor.c b/calendar/gui/event-editor.c
index 260b76d94e..b5a0322af1 100644
--- a/calendar/gui/event-editor.c
+++ b/calendar/gui/event-editor.c
@@ -260,8 +260,8 @@ event_editor_destroy (GtkObject *object)
}
if (priv->comp) {
- /* We do not emit the "ical_object_released" signal here. If
- * the user cloased the dialog box, then it has already been
+ /* We do not emit the "released_event_object" signal here. If
+ * the user closed the dialog box, then it has already been
* released. If the application just destroyed the event
* editor, then it had better clean up after itself.
*/
@@ -1530,14 +1530,14 @@ event_editor_new (void)
}
/**
- * event_editor_set_ical_object:
+ * event_editor_set_event_object:
* @ee: An event editor.
* @comp: A calendar object.
*
* Sets the calendar object that an event editor dialog will manipulate.
**/
void
-event_editor_set_ical_object (EventEditor *ee, CalComponent *comp)
+event_editor_set_event_object (EventEditor *ee, CalComponent *comp)
{
EventEditorPrivate *priv;
char *title;
diff --git a/calendar/gui/event-editor.h b/calendar/gui/event-editor.h
index 244d8bb6e6..1a61934766 100644
--- a/calendar/gui/event-editor.h
+++ b/calendar/gui/event-editor.h
@@ -63,7 +63,7 @@ EventEditor *event_editor_construct (EventEditor *ee);
EventEditor *event_editor_new (void);
-void event_editor_set_ical_object (EventEditor *ee, CalComponent *comp);
+void event_editor_set_event_object (EventEditor *ee, CalComponent *comp);
void event_editor_focus (EventEditor *ee);
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index ee5215164a..c767ae59eb 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -1388,7 +1388,7 @@ gnome_calendar_edit_object (GnomeCalendar *gcal, CalComponent *comp)
gtk_signal_connect (GTK_OBJECT (ee), "editor_closed",
GTK_SIGNAL_FUNC (editor_closed_cb), gcal);
- event_editor_set_ical_object (EVENT_EDITOR (ee), comp);
+ event_editor_set_event_object (EVENT_EDITOR (ee), comp);
}
event_editor_focus (ee);