rem: tPtr->tabWidth += 30; if ((tPtr->tabWidth + 2) * tPtr->itemCount > twidth - 2*NORMAL_SIDE_OFFSET) { tPtr->flags.dontFitAll = 1; tPtr->firstVisible = 0; tPtr->visibleTabs = (twidth - 2*BUTTONED_SIDE_OFFSET) / (tPtr->tabWidth-10); } else { tPtr->flags.dontFitAll = 0; tPtr->firstVisible = 0; tPtr->visibleTabs = tPtr->itemCount; }
context: recalcTabWidth(TabView *tPtr){    int i;    int twidth = W_VIEW(tPtr)->size.width;    int width;    tPtr->tabWidth = 0;    for (i = 0; i < tPtr->itemCount; i++) {	char *str = WMGetTabViewItemLabel(tPtr->items[i]);	if (str) {	    width = WMWidthOfString(tPtr->font, str, strlen(str));	    if (width > tPtr->tabWidth)		tPtr->tabWidth = width;	}    }    tPtr->tabWidth += 30;    if ((tPtr->tabWidth + 2) * tPtr->itemCount > twidth - 2*NORMAL_SIDE_OFFSET) {	tPtr->flags.dontFitAll = 1;	tPtr->firstVisible = 0;	tPtr->visibleTabs = (twidth - 2*BUTTONED_SIDE_OFFSET) / (tPtr->tabWidth-10);    } else {	tPtr->flags.dontFitAll = 0;	tPtr->firstVisible = 0;	tPtr->visibleTabs = tPtr->itemCount;    }}