Skip to content

Gtk4Prep: Use ListStore in ProjectChooserButton - #1787

Draft
jeremypw wants to merge 4 commits into
masterfrom
jeremypw/chooseprojectbutton/use-liststore
Draft

Gtk4Prep: Use ListStore in ProjectChooserButton#1787
jeremypw wants to merge 4 commits into
masterfrom
jeremypw/chooseprojectbutton/use-liststore

Conversation

@jeremypw

Copy link
Copy Markdown
Collaborator
  • Avoid listbox.get_children () which goes away in Gtk4
  • Apply filter by rebuilding list for now (can use a FilterModel in Gtk4)
  • Simplify ProjectRow
  • Lose MenuButton activate handler

This just rebuilds the list whenever it needs rows added or removed. Although inefficient it is much simpler and the number of rows is expected to be small. This function is also throttled.

@jeremypw

Copy link
Copy Markdown
Collaborator Author

@danirabbit Would it be better to reinstate the original set_filter_func on the listbox in view of the fact that it still works despite the warning (as per your work on Mail)?

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