Skip to content

Gtk: Fix untitled GroupBox sizing and preserve title styles - #3126

Open
Descolada wants to merge 1 commit into
picoe:developfrom
keysharp-org:upstream/gtk-groupbox-label
Open

Descolada wants to merge 1 commit into
picoe:developfrom
keysharp-org:upstream/gtk-groupbox-label

Conversation

@Descolada

@Descolada Descolada commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Accessing ClientSize or TextColor on a GTK GroupBox before it has a title dereferences a missing label. Handle the absent label when sizing, use the frame's default foreground, and retain explicitly assigned colors until a label exists.

GTK replaces the label on each title assignment. Reapply assigned font and color so renaming a title or clearing and restoring it preserves styling, including an explicitly transparent color.

Handle missing label widgets when accessing ClientSize and TextColor.
Cache explicit text colors and reapply assigned font and color whenever
GTK creates a label after a title change.

Keep one GTK regression test for deferred styles and title replacement.
@Descolada
Descolada marked this pull request as ready for review October 27, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant