Skip to content

Commit

Permalink
Move cursor to beginning of pragraph when moving the audio file
Browse files Browse the repository at this point in the history
  • Loading branch information
innir committed Dec 28, 2016
1 parent 2380ca1 commit fb81c24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/gtranscribe
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ class gTranscribeWindow:
self.player.position = time_to_ns(
datetime.datetime.strptime(pos, "%M:%S.%f"))
GObject.idle_add(self.play_loop, True)
self.text_buffer.place_cursor(
self.text_buffer.get_iter_at_offset(line_start))
logger.debug('Set position')

def on_scale_speed_format_value(self, widget, value, data=None):
Expand Down

0 comments on commit fb81c24

Please # to comment.