mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
Simplify function
This commit is contained in:
parent
8747ab3a6e
commit
a511073ea2
1 changed files with 1 additions and 3 deletions
|
@ -434,9 +434,7 @@ class TimelineFeature (FeatureBase):
|
||||||
data = self.timeline.sentinel.data
|
data = self.timeline.sentinel.data
|
||||||
if not data:
|
if not data:
|
||||||
return True
|
return True
|
||||||
count = 0
|
count = sum (data[:pos + 1])
|
||||||
for i in range (pos):
|
|
||||||
count += data[i]
|
|
||||||
|
|
||||||
row = self.log_model[count]
|
row = self.log_model[count]
|
||||||
self.log_view.scroll_to_cell ((count,), use_align = True, row_align = .5)
|
self.log_view.scroll_to_cell ((count,), use_align = True, row_align = .5)
|
||||||
|
|
Loading…
Reference in a new issue