'Configure self._clear_timer according to the config.'

@config.change_filter('ui', 'message-timeout')
def _set_clear_timer_interval(self):

    interval = config.get('ui', 'message-timeout')
    if (interval > 0):
        interval *= min(5, len(self._messages))
        self._clear_timer.setInterval(interval)
