| 332 XtVaGetValues(widget, XmNwidth, &width, XmNheight, &height, NULL); |
332 XtVaGetValues(widget, XmNwidth, &width, XmNheight, &height, NULL); |
| 333 int numbuttons = cxListSize(tabview->tabs); |
333 int numbuttons = cxListSize(tabview->tabs); |
| 334 if(numbuttons == 0) { |
334 if(numbuttons == 0) { |
| 335 return; |
335 return; |
| 336 } |
336 } |
| |
337 width--; |
| 337 int button_width = width / numbuttons; |
338 int button_width = width / numbuttons; |
| 338 int x = 0; |
339 int x = 0; |
| 339 |
340 |
| 340 CxIterator i = cxListIterator(tabview->tabs); |
341 CxIterator i = cxListIterator(tabview->tabs); |
| 341 cx_foreach(UiTab *, tab, i) { |
342 cx_foreach(UiTab *, tab, i) { |
| 342 if(i.index + 1 == numbuttons) { |
343 if(i.index + 1 == numbuttons) { |
| 343 button_width = width - x; |
344 button_width = width - x; |
| 344 } |
345 } |