GNOME Bugzilla – Bug 330964
drag&dropped email link is appended to the end of the document,
Last modified: 2008-02-27 01:30:38 UTC
Please describe the problem: Any drag & dropped Email link is only appended to the end of the document, not as expected to the cursor position ! Steps to reproduce: 1. just create some note with some text 2. drag and drop an email to the beginning of the note 3. -> it will appear at the bottom Actual results: Expected results: Does this happen every time? yes 100% reproducable Other information:
Confirmed
It's actually dropping it at the last place the cursor was before losing window focus. It's still a problem though, because drag and drop indicates the cursor directly under the mouse making the user think that the email link will be inserted at the displayed cursor position.
Created attachment 83200 [details] [review] Place the cursor where the mouse was before inserting the email links
Created attachment 83201 [details] [review] Same solution for the bugzilla plugin.
Hmm, looks like both of these patches need a bit of work. If the note is larger and the window is scrolled down, the TextIter.Offset is wrong and ends up inserting the dropped link earlier in the TextBuffer.
Created attachment 83202 [details] [review] Fix for evo and bugzilla plugins. Factor in TextView.VisibleRect.
Need to add Buffer.PlaceCursor (cursor) in the bugzilla plugin as well. Also all the other drag and drop from file uri need this functionality as well.
Created attachment 83403 [details] [review] Fixes bugzilla, evolution, and NoteWindow drag and drop cursor position
Committed to SVN revision 1001.
Marking this as fixed/closed in the 0.5.9 release.
Modifying default assignee and qa contact to be tomboy-maint@gnome.bugs.