Skip to content

No runtime window-title API (set the title after the window is created) #7

Description

@nicolas-maman

Problem

The window title can only be set at creation (window(title, w, h) / aether_ui_app_create). There's no window_set_title(title) to change it while running. A file browser wants the title to track the current directory (fyles sets "Fyles : <dir>" on every navigation); a document app wants the open file's name; any app reflecting state in its title is stuck.

setTitle: is called in exactly one place (window creation) in aether_ui_macos.m; the same is true on the GTK4/Win32 backends.

Proposal

Add window_set_title(title: string) (targets the primary window) — [primary_window setTitle:] / gtk_window_set_title / SetWindowTextW. A handle-taking form for the multi-window (window_create) path too.

Impact

Lets apps reflect state in the title bar. Found building aether-lang-org/aefyles, where the window title is stuck at "aefyles" no matter where you navigate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions