[Bugs] #2608 UNSP: Cursor moves to beginning while trying to edit activity instance name
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Tue Jun 14 11:11:13 EDT 2011
#2608: Cursor moves to beginning while trying to edit activity instance name
------------------------------------------+---------------------------------
Reporter: m_anish | Owner:
Type: defect | Status: assigned
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: sugar-toolkit | Version: Unspecified
Severity: Unspecified | Keywords: r? 11.2.0
Distribution: Unspecified | Status_field: New
------------------------------------------+---------------------------------
Comment(by dsd):
I briefly revisited old discussions on this issue and I did some thinking,
and I think the following approach is sensible:
* If the instance name textbox has the gtk.HAS_FOCUS flag, ignore all
updates from datastore (don't update title)
* Update the title widget with the new title if the datastore sends an
update and the textbox isn't focused
* Write the new title to the datastore on the focus-out event.
* If editing the title then clicking the Stop button doesn't cause a
focus-out event, and it can't be seen how to obviously make that focus-out
event occur before Stop's clicked event is triggered, make the activity
stop handler look for changes in the activity title and update the
datastore if necessary
I think this should solve all the issues that were raised before, but I
might have missed something.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/2608#comment:10>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list