ui/motif/container.c

changeset 900
6e1485d5451a
parent 888
1bb3a6641857
child 901
884d70e847a3
equal deleted inserted replaced
899:7e153ce81477 900:6e1485d5451a
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 }

mercurial