'Imports data for save/restore'

def apply_state(self, state):

    result = standard.MainWindow.apply_state(self, state)
    self.lock_layout_action.setChecked(state.get(u'lock_layout', False))
    show_status_filter = state.get(u'show_status_filter', False)
    self.statuswidget.filter_widget.setVisible(show_status_filter)
    diff_numbers = state.get(u'show_diff_line_numbers', False)
    self.diffeditor.enable_line_numbers(diff_numbers)
    toolbars = state.get(u'toolbars', [])
    ColaToolBar.apply_state(self, toolbars)
    return result
