<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_history_size_value_changed(self, spin):
 """Changes the value of history_size in dconf """

        val = int(spin.get_value())
        self.settings.general.set_int('history-size', val)
        self._update_history_widgets()