[dots] Place the cursor at the begining of the view
- From: Fernando Herrera de las Heras <fherrera src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dots] Place the cursor at the begining of the view
- Date: Wed, 1 Dec 2010 21:33:44 +0000 (UTC)
commit f33bae9c9445f819bf13b1b9d5c03e392d6aed3d
Author: Fernando Herrera <fherrera onirica com>
Date: Wed Dec 1 21:05:25 2010 +0100
Place the cursor at the begining of the view
dots/dots_project.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/dots/dots_project.py b/dots/dots_project.py
index fe40f28..4ca0814 100644
--- a/dots/dots_project.py
+++ b/dots/dots_project.py
@@ -78,6 +78,11 @@ class DotsProject(gobject.GObject):
self.braille_buffer.set_text(
''.join([ascii_braille.ascii_to_braille.get(
x, '') for x in braille_text]))
+
+ begin = self.buffer.get_iter_at_offset(0)
+ self.buffer.place_cursor(begin)
+ begin = self.braille_buffer.get_iter_at_offset(0)
+ self.braille_buffer.place_cursor(begin)
return True
gobject.type_register(DotsProject)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]