def METHOD_NAME(self, entry):
    """Called when the entry changes."""
    search_text = self.get_active_text()
    if self.journal.config.read("instantSearch"):
        self.search(search_text)
    elif not search_text:
        self.search("")
    replace_box = self.main_window.replace_box
    if search_text and self.main_window.search_tree_view.has_results():
        replace_box.old_data = search_text
        replace_box.show()
    else:
        replace_box.hide()
        replace_box.clear()