Could GTK4 TreeViewColumn remove its final flag?

I want to make a subclass of GtkTreeViewColumn with extra args and actions, but the final flag makes it can’t be done.

Could GTK4 TreeViewColumn remove its final flag for us?

No.

There’s really no reason whatsoever to subclass TreeViewColumn, even in GTK3. There’s way too much internal state that cannot be overridden safely, and allowing people to derive from a class comes at the cost of that state being available.

In general, it’s recommended you use the new list view widgets in GTK4, as they are all widgets displaying widgets, and you can decide how to present your columns the way you want.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.