aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-04-21 21:50:42 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-04-21 21:50:42 +0800
commitd68f2316c6cb24dfdabe29c1d640f1929832a52b (patch)
treecdb3c7ea6b6e3789f8b57f257c1712a6cbfe45f2 /calendar/gui
parentba29b8e23b67d5d409ec5fa195e048ba4849a18e (diff)
downloadgsoc2013-evolution-d68f2316c6cb24dfdabe29c1d640f1929832a52b.tar
gsoc2013-evolution-d68f2316c6cb24dfdabe29c1d640f1929832a52b.tar.gz
gsoc2013-evolution-d68f2316c6cb24dfdabe29c1d640f1929832a52b.tar.bz2
gsoc2013-evolution-d68f2316c6cb24dfdabe29c1d640f1929832a52b.tar.lz
gsoc2013-evolution-d68f2316c6cb24dfdabe29c1d640f1929832a52b.tar.xz
gsoc2013-evolution-d68f2316c6cb24dfdabe29c1d640f1929832a52b.tar.zst
gsoc2013-evolution-d68f2316c6cb24dfdabe29c1d640f1929832a52b.zip
Fixes #55797
2004-04-21 JP Rosevear <jpr@ximian.com> Fixes #55797 * gui/calendar-component.c (create_new_event): force an all day event if we are viewing the week, month or list view, which mimics double click in the view svn path=/trunk/; revision=25561
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-component.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index e68a2f043d..930a80049e 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -1058,9 +1058,18 @@ create_new_event (CalendarComponent *calendar_component, gboolean is_allday, gbo
return;
}
- if (priv->calendar && (view = E_CALENDAR_VIEW (gnome_calendar_get_current_view_widget (priv->calendar))))
+ if (priv->calendar && (view = E_CALENDAR_VIEW (gnome_calendar_get_current_view_widget (priv->calendar)))) {
+ GnomeCalendarViewType view_type;
+
+ /* Force all for these view types because thats what's selected and it mimics a double click */
+ view_type = gnome_calendar_get_view (priv->calendar);
+ if (view_type == GNOME_CAL_WEEK_VIEW
+ || view_type == GNOME_CAL_MONTH_VIEW
+ || view_type == GNOME_CAL_LIST_VIEW)
+ is_allday = TRUE;
+
e_calendar_view_new_appointment_full (view, is_allday, is_meeting);
- else {
+ } else {
ECalComponent *comp;
EventEditor *editor;