Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2780
diff -u -p -r1.2780 ChangeLog
--- ChangeLog	25 Jul 2005 11:50:54 -0000	1.2780
+++ ChangeLog	26 Jul 2005 13:00:10 -0000
@@ -1,3 +1,12 @@
+2005-07-26  Shakti Sen <shprasad@novell.com>
+
+	* gui/tasks-control.c (tasks_control_sensitize_commands): Added support
+	for the Target selection for 'Tasks'.
+	* gui/e-calendar-table.c (e_calendar_table_open_selected): Resolved
+	one undefined symbol.
+
+	Fixes bug #231968.
+
 2005-07-25  Chenthill Palanisamy  <pchenthill@novell.com>
 
 	* gui/e-cal-popup.c: 
Index: gui/e-calendar-table.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-calendar-table.c,v
retrieving revision 1.136
diff -u -p -r1.136 e-calendar-table.c
--- gui/e-calendar-table.c	25 Jul 2005 07:53:18 -0000	1.136
+++ gui/e-calendar-table.c	26 Jul 2005 13:00:12 -0000
@@ -589,7 +589,7 @@ e_calendar_table_open_selected (ECalenda
 	ECalModelComponent *comp_data;
 	icalproperty *prop;
 
-	comp_data = get_selected_comp (cal_table);
+	comp_data = e_calendar_table_get_selected_comp (cal_table);
 	prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_ATTENDEE_PROPERTY);
 	if (comp_data != NULL)
 		e_calendar_table_open_task (cal_table, comp_data, prop ? TRUE : FALSE);
Index: gui/tasks-control.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/tasks-control.c,v
retrieving revision 1.81
diff -u -p -r1.81 tasks-control.c
--- gui/tasks-control.c	25 Jul 2005 07:53:18 -0000	1.81
+++ gui/tasks-control.c	26 Jul 2005 13:00:12 -0000
@@ -54,6 +54,9 @@
 #include "tasks-control.h"
 #include "evolution-shell-component-utils.h"
 #include "e-util/e-menu.h"
+#include "e-cal-menu.h"
+#include "e-calendar-view.h"
+#include "e-util/e-menu.h"
 #include "itip-utils.h"
 
 #define FIXED_MARGIN                            .05
@@ -150,6 +153,12 @@ tasks_control_sensitize_commands (Bonobo
 	gboolean read_only = TRUE;
 	ECal *ecal;
 	ECalModel *model;
+	ECalMenu *menu;
+	ECalMenuTargetSelect *t;
+	GPtrArray *events;
+	GList *selected, *l;
+	GtkWidget *view;
+
 	ECalendarTable *cal_table;
 	ECalModelComponent *comp_data;
 	icalproperty *prop;
@@ -161,6 +170,17 @@ tasks_control_sensitize_commands (Bonobo
 	if (bonobo_ui_component_get_container (uic) == CORBA_OBJECT_NIL)
 		return;
 
+	menu = gnome_tasks_get_tasks_menu (tasks);
+	model = e_calendar_table_get_model (e_tasks_get_calendar_table (tasks));
+	events = g_ptr_array_new ();
+	selected = e_calendar_table_get_selected (e_tasks_get_calendar_table (tasks));
+	for (l = selected;l;l = g_list_next (l)) {
+		g_ptr_array_add (events, e_cal_model_copy_component_data ((ECalModelComponent *)l->data));
+	}
+	g_list_free (selected);
+
+	t = e_cal_menu_target_new_select (menu, model, events);
+
 	cal_table = e_tasks_get_calendar_table (tasks);
 	model = e_calendar_table_get_model (cal_table);
 
@@ -203,6 +223,7 @@ tasks_control_sensitize_commands (Bonobo
 	bonobo_ui_component_set_prop (uic, "/commands/TasksForward", "sensitive",
 				      n_selected != 1 ? "0" : "1", 
 				      NULL);
+	e_menu_update_target ((EMenu *)menu, (EMenuTarget *)t);
 }
 
 /* Callback used when the selection in the table changes */
