[evolution-patches] fix for bug #72979 [calendar]



Hi,
    Have attached the patch for the bug.

thanks, chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2685
diff -u -p -r1.2685 ChangeLog
--- ChangeLog	11 Mar 2005 12:02:47 -0000	1.2685
+++ ChangeLog	12 Mar 2005 09:11:52 -0000
@@ -1,3 +1,10 @@
+2005-03-12  Chenthill Palanisamy  <pchenthill novell com>
+
+	Fixes #72979
+	* gui/e-cal-list-view.c (find_meeting),
+	(e_cal_list_view_on_table_double_click): Check whether its a
+	meeting and send appropriate boolean variable.
+
 2005-03-11  Sushma Rai  <rsushma novell com>
 
 	* gui/dialogs/event-page.c (event_page_show_options): Removed the check
Index: gui/e-cal-list-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-cal-list-view.c,v
retrieving revision 1.14
diff -u -p -r1.14 e-cal-list-view.c
--- gui/e-cal-list-view.c	27 Oct 2004 16:14:21 -0000	1.14
+++ gui/e-cal-list-view.c	12 Mar 2005 09:11:52 -0000
@@ -379,16 +379,27 @@ e_cal_list_view_popup_menu (GtkWidget *w
 	return TRUE;
 }
 
+static gboolean 
+find_meeting (icalcomponent *icalcomp) 
+{
+	icalproperty *prop = NULL;
+
+	prop = icalcomponent_get_first_property (icalcomp, ICAL_ATTENDEE_PROPERTY);
+	
+	return prop ? TRUE: FALSE;
+}
+		
+
 static gboolean
 e_cal_list_view_on_table_double_click (GtkWidget *table, gint row, gint col, GdkEvent *event,
 				      gpointer data)
 {
 	ECalListView *cal_list_view = E_CAL_LIST_VIEW (data);
 	ECalModelComponent *comp_data;
-	
+
 	comp_data = e_cal_model_get_component_at (e_calendar_view_get_model (E_CALENDAR_VIEW (cal_list_view)), row);
 	e_calendar_view_edit_appointment (E_CALENDAR_VIEW (cal_list_view), comp_data->client,
-					  comp_data->icalcomp, FALSE);	
+					  comp_data->icalcomp, find_meeting (comp_data->icalcomp));	
 
 	return TRUE;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]