Skip to content

VAutoHider: keep a list of children - #930

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

VAutoHider: keep a list of children#930
danirabbit wants to merge 5 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> ();

@lenemter lenemter Apr 3, 2026

Copy link
Copy Markdown
Member

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
…er-children

Conflicts:
	src/Grid/VAutoHider.vala
@ryonakano

Copy link
Copy Markdown
Member

@danirabbit I resolved conflicts here. Is there any reason this is in draft? Do we want to apply suggestion from @lenemter?

@ryonakano ryonakano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approving as LGTM.

(I personally think @lenemter's suggestion depends on preferred coding style, so I'm fine either we apply it or not)

@danirabbit

Copy link
Copy Markdown
Member Author

I guess I don't know that this really solves anything. I hadn't gotten to a solution in GTK4 that was actually working so wasn't sure if this was the right direction

@ryonakano ryonakano mentioned this pull request Aug 13, 2026
3 tasks
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.

4 participants