[dots] Set focus into the text view when editing a new document



commit aab2dca9a6e1c85f7bb7e4dc165a64cdfd6f13c7
Author: Fernando Herrera <fherrera onirica com>
Date:   Thu Dec 2 01:00:31 2010 +0100

    Set focus into the text view when editing a new document

 dots/app_window.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/dots/app_window.py b/dots/app_window.py
index a11d127..7966736 100644
--- a/dots/app_window.py
+++ b/dots/app_window.py
@@ -279,6 +279,7 @@ class AppWindow(object):
 	self.statusbar = self.main_xml.get_object('statusbar1')
 	context_id = self.statusbar.get_context_id("text file")
 	self.statusbar.push(context_id, _("Text editable"))
+	view.grab_focus()
 
     def _onTranslate(self, action):
 	# We are translating the text buffer, so set it to the document



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]