GNOME Bugzilla – Bug 308303
rethink sync between edit-item and editline for autocomplete
Last modified: 2010-07-19 06:28:30 UTC
Windows XP, 1.5.2-rc1 This is a follow-up to bug 165172. 1. New workbook 2. Type "aaaaaa" in A1, press enter 3. Type "aaa" in A2, press del (works) 4. Press enter 5. select cell A2, press F2, press "a" 6. Press del to cancel autocomplete What happens: cell doesn't update and "aa" still appears selected. Pressing shift fixes this.
interesting. I'll have a look now.
I've patched this particular issue, but the larger question of how to sync the editline and the in cell editing is unresolved. A1 = 'aaaaaaaa' start editing A2 by typing 'aaa' <autocomplete> Click on edit line The cell now has the completion, the editline does not. This is ridiculous. We need to rethink this entirely for 1.7
jody, please only use "NEEDINFO" state if you have asked the *reporter* for additional information. feel free to use the "assigned" state for developers who have to think about this. ;-)
Looking at complete-sheet.c I see that the completion code is really pretty old. Since completion is clearly a GUI thing, the nicest solution would probably to use the (newer) gtk ListModel combined with GTK's own EntryCompletion. For 'in-sheet' editing this can probably also be made to work (at least using the same ListModel as for the Entry/editline). Such an approach would also solve the inconsistency.
*** This bug has been marked as a duplicate of bug 338698 ***