Skip to content

gui_toolkit 0.351.0

Choose a tag to compare

@sachahjkl sachahjkl released this 24 Nov 10:00
· 368 commits to master since this release
v0.351.0
266d520

Added

  • ui.Status_Line: a status bar's message that goes by itself. status_say(&s, format, ..args, shown_ms = STATUS_SHOWN_MS), status_text(&s) ("" once its time is past; the window wakes then), status_clear, status_destroy.
  • ascii.compare_natural: names in the order a person reads them: "file 2" before "file 10", "a1" before "a01", case ignored, digit runs of any length.
  • host.restart_after_exit(&p, args): "Restart now" after an update. program_end ends the session, then starts the executable program_start read (Program_Start.executable: the new copy, not <exe>.old), then closes the log. Program_Start_Options.launch replaces the start in a test.
  • process.start, process.run, process.pipe: a child started under one lock of the process, held around the spawn only, never around the wait. run(command, Run_Options{dir, env, input}) waits for the child and gives Ran{started, ok, code, stdout, stderr}, its output and error read at once and its input written on a thread. A pipe's ends are inheritable on Windows only while their own child starts. The toolkit's own children (the desktop's tools, the thumbnailers, NixOS's patch, the file picker's portal, the plugins, the film's ffmpeg, setup.launch, the tools) start through them.

Changed

  • Natural order in the tables and the file picker: every text column of ui.Table, the file picker's path bar and the settings' path completion sort names with ascii.compare_natural: "file 2" comes before "file 10".