def METHOD_NAME (self, entry):
    self.text = entry.get_text()
    self.update_model()
    empty = (self.text == '')
    entry.set_icon_activatable(Gtk.EntryIconPosition.SECONDARY, (not empty))
    if (empty):
        entry.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, 'document-edit-symbolic')
    else:
        entry.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, 'edit-clear-symbolic')
    return