def _search_update(self): list_store = Gtk.ListStore(str, str) for place in places.get_store().search(self.props.text): list_store.append([place.uri, place.title]) self._search_view.set_model(list_store) return len(list_store) > 0
def _search_update(self): list_store = gtk.ListStore(str, str) for place in places.get_store().search(self.props.text): list_store.append([place.uri, place.title]) self._search_view.set_model(list_store) return len(list_store) > 0
def _search_update(self): list_store = Gtk.ListStore(str, str) search_text = self.props.text.decode('utf-8') for place in places.get_store().search(search_text): title = '<span weight="bold" >%s</span>' % (place.title) list_store.append([title + '\n' + place.uri, place.uri]) self._search_view.set_model(list_store) return len(list_store) > 0
def __init__(self): self._store = places.get_store()