mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
Speed up immediate search results by setting search start position
This commit is contained in:
parent
6f371b8b3a
commit
cb6d082f19
1 changed files with 2 additions and 2 deletions
|
@ -198,9 +198,9 @@ class FindBarFeature (FeatureBase):
|
||||||
self.logger.debug ("search string set to '', aborting search")
|
self.logger.debug ("search string set to '', aborting search")
|
||||||
self.sentinel.abort ()
|
self.sentinel.abort ()
|
||||||
self.clear_results ()
|
self.clear_results ()
|
||||||
# FIXME: Set start position
|
|
||||||
self.logger.debug ("starting search for %r", search_string)
|
self.logger.debug ("starting search for %r", search_string)
|
||||||
self.operation = SearchOperation (model, search_string)
|
start_path = self.log_view.get_visible_range ()[0]
|
||||||
|
self.operation = SearchOperation (model, search_string, start_position = start_path[0])
|
||||||
self.sentinel.run_for (self.operation)
|
self.sentinel.run_for (self.operation)
|
||||||
|
|
||||||
def handle_match_found (self, model, tree_iter):
|
def handle_match_found (self, model, tree_iter):
|
||||||
|
|
Loading…
Reference in a new issue