Skip to content

VAutoHider: keep a list of children#930

Draft
danirabbit wants to merge 4 commits into
masterfrom
danirabbit/vautohider-children
Draft

VAutoHider: keep a list of children#930
danirabbit wants to merge 4 commits into
masterfrom
danirabbit/vautohider-children

Conversation

@danirabbit
Copy link
Copy Markdown
Member

There's no get_children in GTK4, so keep our own list of children because observe_children is supposedly expensive

@danirabbit danirabbit requested a review from a team February 18, 2026 03:05
@danirabbit danirabbit moved this to Needs Review in GTK4 Porting Feb 18, 2026
Comment thread src/Grid/VAutoHider.vala
Comment on lines +10 to +15
private List<unowned Gtk.Widget> children;
private Gtk.Label more_label;
private Gtk.Box main_box;

construct {
children = new List<unowned Gtk.Widget> ();
Copy link
Copy Markdown
Member

@lenemter lenemter Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private List<unowned Gtk.Widget> children;
private Gtk.Label more_label;
private Gtk.Box main_box;
construct {
children = new List<unowned Gtk.Widget> ();
private List<unowned Gtk.Widget> children = new List<unowned Gtk.Widget> ();
private Gtk.Label more_label;
private Gtk.Box main_box;
construct {

@danirabbit danirabbit marked this pull request as draft April 9, 2026 19:17
@danirabbit danirabbit moved this from Needs Review to In Progress in GTK4 Porting Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants