'Update todo list menu'

def update_todo_menu(self):

    editorstack = self.get_current_editorstack()
    results = editorstack.get_todo_results()
    self.todo_menu.clear()
    filename = self.get_current_filename()
    for (text, line0) in results:
        icon = ima.icon('todo')
        if (not (API == 'pyside')):
            slot = (lambda _checked, _l=line0: self.load(filename, goto=_l))
        else:
            slot = (lambda _l=line0: self.load(filename, goto=_l))
        action = create_action(self, text=text, icon=icon, triggered=slot)
        self.todo_menu.addAction(action)
    self.update_todo_actions()
