if (top > sel)
top = sel;
- retry_cols:
- // did_scroll = 0;
- retry_scroll:
/* lay things out from 'top' */
i = top; col = 0; row = 0;
while (col < cols) {
}
e->need_draw = 1;
}
-
+
list->han->get_size(e, &w, &h);
cols = list->width / w;
if (cols == 0)
cols = 1;
- col_retry:
+col_retry:
dist = 0;
i = sel;
e = list->han->getitem(list->list, i);
if (sel < 0 || list->han->getitem(list->list, sel) == NULL)
sel = 0;
-
retry:
//printf("try with top=%d cols=%d\n", top, cols);
pos = top; col=0; row=0; last= -1;
//printf("top=%d last=%d cols=%d\n", top, last, cols);
}
-
void configure(GtkWidget *draw, void *event, struct sellist *list)
{
GtkAllocation alloc;
return rv;
}
-
#ifdef MAIN
struct list_entry_text *entries;
else
return NULL;
}
+
int size(struct list_entry *i, int *width, int*height)
{
PangoRectangle ink, log;