Skip to content

gui_toolkit 0.314.0

Choose a tag to compare

@sachahjkl sachahjkl released this 18 Nov 11:54
· 564 commits to master since this release
v0.314.0
7272ccd

Added

  • plugins.start: a program starts a plugin's process before its first use, so a plugin it knows will be used soon
    is ready when the person reaches it.
  • Plugins in the palette, the menus and the tool bar, in the person's language (plugin API level 7): a manifest's
    palette declares a source under a prefix of the palette (@, #, /, or the plain search), which the plugin
    answers with palette.source(id, search, { onChoose }) as the person types, one query at a time, the newest waiting
    and an older answer dropped; a source that does not answer leaves the palette working and says "not responding". Its
    menus and toolbar put its commands in the places the program names (Host_Options.menu_places,
    plugins.menu_entries, plugins.toolbar_entries, plugins.toolbar_tool), without running it. Its l10n translates
    its manifest's words for the toolkit's language, and its code reads context.language. The log explorer demo searches
    its lines under @.
  • A program's own plugin module, from "app": a program declares its calls, events and permissions with structs in
    Host_Options.app (plugins.App_Module), with a level of its own; a plugin calls them as promises with one argument
    object, hears the events with on(name, f), and asks for app: permissions shown in the program's words. A call runs
    on the program's interface thread and may answer later (plugins.app_answer, plugins.app_fail);
    plugins.app_emit sends an event to the running plugins that listen. plugin_api.app_module_dts and
    app_module_markdown write the module's app.d.ts and reference page, and toolbox.generated_files writes or checks
    a tool's generated files. A manifest's "app": n says the level it needs; gt-runtime gives no module "app".

Fixed

  • Removing a palette source no longer crashes. A source's last query and error were kept in the allocator of the
    build that asked, and freed with the allocator of the code that removed the source; a program that removed one outside
    its builds (a plugin turned off, a reload) freed them with the wrong one.