From b1f1084fc55eabb27b046533b337db376225ce85 Mon Sep 17 00:00:00 2001 From: Harish Krishnaswamy Date: Mon, 30 Jan 2006 14:36:33 +0000 Subject: Reverting Chakravarthi's commit on Jan 17 to fix miscellaneous problems 2006-01-30 Harish Krishnaswamy * gui/e-week-view.c : Reverting Chakravarthi's commit on Jan 17 to fix miscellaneous problems manifesting in the week/month views. svn path=/trunk/; revision=31376 --- calendar/gui/e-week-view.c | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) (limited to 'calendar/gui/e-week-view.c') diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index ce6b64eae1..e1ba4b14b3 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -2084,33 +2084,16 @@ e_week_view_on_button_press (GtkWidget *widget, day = e_week_view_convert_position_to_day (week_view, x, y); if (day == -1) return FALSE; - - if (event->type == GDK_2BUTTON_PRESS) { - GList *list; - ECalModelComponent *comp_data; - ECalendarViewEvent *ecalevent; - ECalComponent *comp = e_cal_component_new (); - gboolean is_meeting; - - list = e_week_view_get_selected_events (E_CALENDAR_VIEW (week_view)); - ecalevent = (ECalendarViewEvent *)list->data; - comp_data = ecalevent->comp_data; - e_cal_component_set_icalcomponent (comp, icalcomponent_new_clone (comp_data->icalcomp)); - - is_meeting = e_cal_component_has_attendees (comp); - e_calendar_view_edit_appointment (E_CALENDAR_VIEW (week_view), - comp_data->client, - comp_data->icalcomp, is_meeting); - g_object_unref (comp); - g_list_free (list); - return TRUE; - } - /* If an event is pressed just return. */ if (week_view->pressed_event_num != -1) return FALSE; + if (event->button == 1 && event->type == GDK_2BUTTON_PRESS) { + e_calendar_view_new_appointment_full (E_CALENDAR_VIEW (week_view), TRUE, FALSE); + return TRUE; + } + if (event->button == 1) { /* Start the selection drag. */ if (!GTK_WIDGET_HAS_FOCUS (week_view) && !GTK_WIDGET_HAS_FOCUS (week_view->main_canvas)) -- cgit v1.2.3