Re: [evolution-patches] UI-HACKFEST:Assign task and Forward as iCalendar not available in the menu bar.




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]