示例#1
0
文件: selector.c 项目: achterin/xwax-
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
文件: selector.c 项目: achterin/xwax-
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);
}