SignatureDialog: Use ListStore - #1081
Conversation
jeremypw
left a comment
There was a problem hiding this comment.
I think the filter function will have to be reimplemented a different way, otherwise looking good.
| signature_list.set_filter_func ((Gtk.ListBoxFilterFunc)filter_func); | ||
| signature_list.set_placeholder (placeholder); | ||
| signature_list_box.bind_model (signature_list, (obj) => (Signature) obj); | ||
| signature_list_box.set_filter_func ((Gtk.ListBoxFilterFunc)filter_func); |
There was a problem hiding this comment.
Isn't this ignored when bound to a model? I get the terminal message GtkListBox with a model will ignore sort and filter functions
|
@jeremypw in GTK4 we can use a filter list model. Does this not work for you? |
In Gtk4 you still cannot use the |
can't use get_children in GTK4. We can technically iterate over the listbox still, but it's better to iterate over data