Advertisement
Guest User

listbox.set_filter_func

a guest
Apr 9th, 2015
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.18 KB | None | 0 0
  1. var filter_text = entry.get_text();
  2. listbox.set_filter_func((row) =>
  3. {
  4.     var text = row.get_child().get_text()
  5.     return filter_text == "" || filter_text.down() in text.down();
  6. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement