Пример #1
0
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);
}
Пример #2
0
void selector_top(struct selector_t *sel)
{
    scroll_first(&sel->records);
}
Пример #3
0
void selector_top(struct selector *sel)
{
    scroll_first(&sel->records);
    set_target(sel);
}