GNOME Bugzilla – Bug 342182
Gnucash register field suggestions no longer works
Last modified: 2018-06-29 21:04:36 UTC
Using gtk2-2.9.1, the field suggestions no longer work like they did. Now, if I have the word "Cash" in a previous field, and type "C", the word "Cash" is suggested, but the remainder of the word is not highlighted. So if I then type "a" I get: "Caash". If I continue typing the whole word, I end up with "Cashash". I'm using Fedora Development. I initially though it was due a recent guile update, but someone using FC5 with the same verion of guile and gnucash did not have this problem. I'm not familiar with gnucash's code, but could this problem be due to gtk2-2.9.[01]? The dependencies of gnucash have made it difficult to revert software updates. What gnucash is dependent upon is also used by other unrelated code too. I would like confirmation of this if this is the case so I can file a bug report. If it isn't gtk2, please let me know what other library is doing it if it isn't gnucash. Thanks. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=191591
I'd believe that this is due to gtk-2.9.* ... specifically, the following in src/register/register-gnome/gnucash-sheet.c: #define GTK_ALLOWED_SELECTION_WITHIN_INSERT_SIGNAL (GTK_MINOR_VERSION > 8) Which is probably still not true in gtk 2.9. We might want to invert this and assume that it'll never be true until proven to be, later...
Sorry, that wasn't very clear: "I believe this is due to gnucash, because of use of gtk-2.9."
r14162, 1.9.7. We now check for the condition where {gtk_minor_version < 4}, not {> 8}, which should allow autocomplete-selection with gtk-2.9 to work.
Yeah, this fixes it in a quick check for me.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=342182. Please update any external references or bookmarks.