diff options
author | JP Rosevear <jpr@ximian.com> | 2004-04-21 21:50:42 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-04-21 21:50:42 +0800 |
commit | d68f2316c6cb24dfdabe29c1d640f1929832a52b (patch) | |
tree | cdb3c7ea6b6e3789f8b57f257c1712a6cbfe45f2 /calendar | |
parent | ba29b8e23b67d5d409ec5fa195e048ba4849a18e (diff) | |
download | gsoc2013-evolution-d68f2316c6cb24dfdabe29c1d640f1929832a52b.tar.gz 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')
-rw-r--r-- | calendar/ChangeLog | 8 | ||||
-rw-r--r-- | calendar/gui/calendar-component.c | 13 |
2 files changed, 19 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 8382849a7a..6c465d80b7 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +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 + 2004-04-21 Frederic Crozat <fcrozat@mandrakesoft.com> * gui/migration.c: (migrate_calendars): 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; |