Skip to content

GTK menu bar: top-level entries poorly spaced (missing space between 'View' and 'Go') #235

Description

@JDonaghy

Symptom

The GTK menu-bar top-level entries render as `File Edit ViewGo Run Terminal Help` — "View" and "Go" are concatenated without the per-entry padding visible around the others.

Likely cause

The menu-bar strip is not drawn through `ContextMenu` — that primitive only handles the dropdown popups. The top-level row is its own (probably bespoke) GTK rasteriser. Either:

  1. The padding between entries is computed from each entry's pixel width, and "View" + "Go" together happen to be a width where a divisor / modulo lands at zero.
  2. The render code uses a fixed gap for each entry except a special-case at "View" / "Go" that erroneously skips padding.
  3. A recent change to the menu-bar adapter dropped the trailing whitespace from one of those entries.

Files

  • `src/gtk/draw.rs` — search for "File Edit View" or `MENU_STRUCTURE` rendering.
  • `src/render.rs` — `menu_bar_to_quadraui` adapter (if it exists).

Surfaced by

#223 ContextMenu pilot smoke test (Session 332). Pre-existing — not affected by the rasteriser pilots.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplatformPlatform-specific (macOS, Windows, Linux)uiUI/rendering

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions