void selector_toggle(struct selector_t *sel) { if (!sel->toggled) { sel->toggle_back = scroll_current(&sel->crates); scroll_first(&sel->crates); sel->toggled = true; } else { scroll_to(&sel->crates, sel->toggle_back); sel->toggled = false; } crate_has_changed(sel); }
void selector_top(struct selector_t *sel) { scroll_first(&sel->records); }
void selector_top(struct selector *sel) { scroll_first(&sel->records); set_target(sel); }