Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
vala
vala
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 702
    • Issues 702
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 37
    • Merge Requests 37
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • GNOME
  • valavala
  • Merge Requests
  • !160

Closed
Opened Dec 07, 2020 by Reuben Thomas@rrtContributor
  • Report abuse
Report abuse

vapi: Update enchant.vapi for Enchant 2.x

  • Overview 20
  • Commits 1
  • Changes 1

Add deprecations and new methods.

[I am the upstream maintainer of Enchant!]

I have added the new 2.x top-level API set_prefix_dir.

I have added Dict.add and Dict.is_added (which are really old!) and deprecated Dict.add_to_pwl and Dict.is_in_session.

I have added Dict.free_string_list, Dict.get_extra_word_characters, and Dict.is_word_character (with associated enum WordPosition, which isn't present in enchant.h, as that just uses numbers).

I have added Dict.remove, Dict.remove_from_session and Dict.is_removed.

I have reordered some methods to make the VAPI file more closely match the C header, for ease of maintenance.

Outstanding problem: Dict.store_replacement's string length arguments should work like Dict.add etc., that is, they should default to -1; but of course this is impossible given the current argument order. It would be nice to find a fix for this.

Edited Dec 08, 2020 by Reuben Thomas
Assignee
Assign to
Reviewer
Request review from
0.52
Milestone
0.52
Assign milestone
Time tracking
Reference: GNOME/vala!160
Source branch: update-enchant-vapi