Skip to content

Commit

Permalink
Scroll text_view to end of text after loading file
Browse files Browse the repository at this point in the history
  • Loading branch information
innir committed Dec 25, 2016
1 parent 207adc4 commit f9d9cb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/gtranscribe
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,9 @@ class gTranscribeWindow:
self.text_buffer.set_text(text)
self.text_buffer.set_modified(False)
self.text_view.set_sensitive(True)
self.text_view.grab_focus()
GObject.idle_add(self.text_view.scroll_mark_onscreen,
self.text_buffer.get_insert())
except:
# error loading file, show message to user
self.filename = None
Expand Down

0 comments on commit f9d9cb9

Please sign in to comment.