Minor bug in Enchant patch for Gtkspell

From: Torstein Sunde (torsteinsspambox@myrealbox.com)
Date: Tue Sep 16 2003 - 00:56:50 EDT

  • Next message: Martin Sevior: "Win build broken for MINW32"

    There's a small bug in the Enchant patch for Gtkspell on the Enchant
    website (http://www.abisource.com/enchant/).

    In the submenu under Spelling Suggestions, the suggestions are missing, not appearing until the next submenu. E.g. when misspelling "error":

      + Add "eror" to Dictionary
      ---
      ---
      More... ->

    Previously, the 10 first suggestions were between the two separators, now they're in the next submenu, under "More...".

    Solution: Modify line 288 in the patch from
    + if (i % 10 == 0) {
    to e.g.
    + if (i % 10 == 0 && i != 0) {
    or, if it's OK with one less suggestion in the first menu:
    + if (i % 10 == 9) {
    or
    + if (i % 11 == 10) {

    An updated patch, with the (i % 10 == 0 && i != 0) condition, is enclosed. The leading list of missing (generated) files has been removed from the patch.





    This archive was generated by hypermail 2.1.4 : Tue Sep 16 2003 - 01:03:12 EDT