Changes the value of history_size in dconf

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()