Re: [evolution-patches] UI-HACKFEST:Assign task and Forward as iCalendar not available in the menu bar.
- From: chenthill <pchenthill novell com>
- To: lviren <lviren novell com>
- Cc: "evolution-patches lists ximian com" <evolution-patches lists ximian com>
- Subject: Re: [evolution-patches] UI-HACKFEST:Assign task and Forward as iCalendar not available in the menu bar.
- Date: Thu, 21 Jul 2005 15:42:00 +0530
bonobo_ui_component_set_prop (uic, "/commands/TasksAssign", "sensitive",
+ read_only ? "0" : "1" ,
+ NULL);
You should hide this menu item for an assigned task.
comp_data = get_selected_comp (cal_table);
+ if (comp_data) {
+ te = task_editor_new (comp_data->client ,TRUE);
+ e_calendar_table_open_task (cal_table, comp_data, TRUE);
+ }
The task editor created is not used at all. Correct the indentations and spacings.
+static ECalModelComponent *
+get_selected_comp (ECalendarTable *cal_table)
This function is already present in e-calendar-table.c which should be exposed as e_calendar_table_get_selected_events
similar to e_calendar_view_get_selected_events.
e_calendar_table_open_task (ECalendarTable *cal_table, ECalModelComponent *comp_data, gboolean assign)
+{
+ open_task (cal_table, comp_data, assign);
+}
Just rename the function instead of calling it with same arguments.
- Chenthill.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]