Re: [Sugar-devel] [PATCH sugar-toolkit] Cursor moves to beginning while trying to edit activity instance name #2608

2011-02-18 Thread Simon Schampijer
On 02/14/2011 05:23 PM, Aleksey Lim wrote: This issue is not the same as #1948 but #1948 triggers this one. In some cases set_text doesn't change cursor position but not in all cases. --- src/sugar/activity/widgets.py |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

Re: [Sugar-devel] [PATCH sugar-toolkit] Cursor moves to beginning while trying to edit activity instance name #2608

2011-02-15 Thread Sascha Silbe
Excerpts from Aleksey Lim's message of Mon Feb 14 23:23:25 +0100 2011: def __jobject_updated_cb(self, jobject): +prev_pos = self.entry.props.cursor_position self.entry.set_text(jobject['title']) +self.entry.set_position(prev_pos) The GTK documentation doesn't

[Sugar-devel] [PATCH sugar-toolkit] Cursor moves to beginning while trying to edit activity instance name #2608

2011-02-14 Thread Aleksey Lim
This issue is not the same as #1948 but #1948 triggers this one. In some cases set_text doesn't change cursor position but not in all cases. --- src/sugar/activity/widgets.py |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/sugar/activity/widgets.py

Re: [Sugar-devel] [PATCH sugar-toolkit] Cursor moves to beginning while trying to edit activity instance name #2608

2011-02-14 Thread Anish Mangal
On Mon, Feb 14, 2011 at 19:23, Aleksey Lim alsr...@activitycentral.org wrote: This issue is not the same as #1948 but #1948 triggers this one. In some cases set_text doesn't change cursor position but not in all cases. ---  src/sugar/activity/widgets.py |    2 ++  1 files changed, 2