예제 #1
0
파일: listbox.c 프로젝트: d33tah/whitix
int w_listbox_clear (w_object_t *object)
{
    w_listbox_t *lb;
    w_listbox_item_t *li;
    lb = object->data[OBJECT_LISTBOX];
    while ((li = w_listbox_item_active_get(object)) != NULL) {
        w_listbox_item_del(object, li);
    }
    lb->height = 0;
    lb->yoffset = 0;
    lb->active = 0;
    lb->pactive = -1;
    return 0;
}
예제 #2
0
파일: widgetx.c 프로젝트: jetlive/xynth
void frame_three_button_del_pressed (w_object_t *object, int button)
{
	w_listbox_item_del(frame_three_listbox->object, w_listbox_item_active_get(frame_three_listbox->object));
}