[evolution-patches] [calendar-weekview]
- From: "Chakravarthi P" <pchakravarthi novell com>
- To: <evolution-patches gnome org>
- Subject: [evolution-patches] [calendar-weekview]
- Date: Tue, 17 Jan 2006 04:12:38 -0700
hi
double click on an event on any calendar
event in week and month view doesnot open
it in event editor. (unlike day view where
it works)
added this code in e-week-view.c
regards
P. S. Chakravarthi
Software Engineer
pchakravarthi novell com
Phone: 25731856 Extn: 3198
Novell Inc.
Software for the Open Enterprise
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2945
diff -u -p -r1.2945 ChangeLog
--- ChangeLog 16 Jan 2006 16:22:33 -0000 1.2945
+++ ChangeLog 17 Jan 2006 11:06:26 -0000
@@ -1,3 +1,8 @@
+2006-01-17 P S Chakravarthi <pchakravarthi novell com>
+
+ * gui/e-week-view.c : added some code in e_week_view_on_button_press ()
+ to handle double click on an event in week and month view.
+
2006-01-16 Johnny Jacob <johnnyjacob gmail com>
* gui/dialogs/event-page.c (edit_button_cb): Added.
Index: gui/e-week-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-week-view.c,v
retrieving revision 1.254
diff -u -p -r1.254 e-week-view.c
--- gui/e-week-view.c 16 Jan 2006 12:59:44 -0000 1.254
+++ gui/e-week-view.c 17 Jan 2006 11:06:36 -0000
@@ -2084,15 +2084,32 @@ e_week_view_on_button_press (GtkWidget *
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;
- /* If an event is pressed just return. */
- if (week_view->pressed_event_num != -1)
- return FALSE;
+ 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));
- if (event->button == 1 && event->type == GDK_2BUTTON_PRESS) {
- e_calendar_view_new_appointment_full (E_CALENDAR_VIEW (week_view), TRUE, FALSE);
+ 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) {
/* Start the selection drag. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]