Ticket #2608 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Cursor moves to beginning while trying to edit activity instance name

Reported by: m_anish Owned by:
Priority: Unspecified by Maintainer Milestone: Unspecified by Release Team
Component: sugar-toolkit Version: Unspecified
Severity: Unspecified Keywords: 11.2.0
Cc: alsroot, dirakx Distribution/OS: Unspecified
Bug Status: New

Description

When we try to edit the activity instance name to save a meaningful journal entry, the cursor moves to the beginning of the line after every 3-4 keystrokes.

Seen on Dextrose-2 XO-1 and XO-1.5

Attachments

org.laptop.AbiWordActivity-1.log Download (2.0 KB) - added by m_anish 2 years ago.
Write Activity: log 1
org.laptop.AbiWordActivity-2.log Download (2.1 KB) - added by m_anish 2 years ago.
Write Activity: log 2
shell.log Download (11.8 KB) - added by m_anish 2 years ago.
shell.log
org.laptop.Terminal-1.log Download (1.5 KB) - added by m_anish 2 years ago.
Terminal activity log
com.garycmartin.Moon-1.log Download (1.7 KB) - added by m_anish 2 years ago.
Moon activity log
0001-Cursor-moves-to-beginning-while-trying-to-edit-activ.patch Download (1.1 KB) - added by alsroot 2 years ago.

Change History

follow-up: ↓ 2   Changed 2 years ago by sascha_silbe

Probably a dupe of #1948.

in reply to: ↑ 1   Changed 2 years ago by alsroot

Replying to sascha_silbe:

Probably a dupe of #1948.

And we already have this fix in dx-2

  Changed 2 years ago by alsroot

  • owner changed from bernie, smparrish to alsroot
  • status changed from new to assigned

  Changed 2 years ago by alsroot

In Write's title widget it works fine on dx2 on XO-1/1.5.
m_anish: are there any errors in shell.log and activity log while you can reproduce the issue?

follow-up: ↓ 6   Changed 2 years ago by alsroot

  • status_field changed from New to Needinfo

Changed 2 years ago by m_anish

Write Activity: log 1

Changed 2 years ago by m_anish

Write Activity: log 2

Changed 2 years ago by m_anish

shell.log

Changed 2 years ago by m_anish

Terminal activity log

Changed 2 years ago by m_anish

Moon activity log

in reply to: ↑ 5   Changed 2 years ago by m_anish

  • component changed from Dextrose to Write
  • status_field changed from Needinfo to New

Replying to alsroot:

This issue seems limited to Write activity. See all the logfiles attached. Reproduced on XO-1; dx-2

  Changed 2 years ago by alsroot

  • keywords r? added; dx2 removed
  • priority changed from Urgent to Unspecified by Maintainer
  • component changed from Write to sugar-toolkit
  • severity changed from Critical to Unspecified
  • summary changed from [dx2] Cursor moves to beginning while trying to edit activity instance name to Cursor moves to beginning while trying to edit activity instance name

Patch was sent to sugar-devel@.
Removing any dx related metadata since patch is applied to dx-2 repo.

  Changed 2 years ago by alsroot

  • owner alsroot deleted

  Changed 2 years ago by erikos

  • keywords 11.2.0 added

  Changed 2 years ago 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.

  Changed 2 years ago by erikos

#2914 is a follow up issue about a minor glitch.

  Changed 2 years ago by erikos

Can be tested in build os871.

  Changed 2 years ago by erikos

  • keywords r? removed
Note: See TracTickets for help on using tickets.