ui/motif/container.c

changeset 65
4697592e24ba
parent 64
6ef2c7f73a30
child 76
3782827378ab
equal deleted inserted replaced
64:6ef2c7f73a30 65:4697592e24ba
328 UiTabViewContainer *tabview = (UiTabViewContainer*)ct; 328 UiTabViewContainer *tabview = (UiTabViewContainer*)ct;
329 329
330 if(tabview->current) { 330 if(tabview->current) {
331 XtUnmanageChild(tabview->current); 331 XtUnmanageChild(tabview->current);
332 } 332 }
333 if(tabview->tabs) { 333
334 // not the first tab, so unmanage the new widget
335 //XtUnmanageChild(widget);
336 } else {
337 tabview->current = widget;
338 }
339 tabview->current = widget; 334 tabview->current = widget;
340
341 tabview->tabs = ucx_list_append(tabview->tabs, widget); 335 tabview->tabs = ucx_list_append(tabview->tabs, widget);
342 336
337 ui_select_tab(ct->widget, 0);
343 ui_reset_layout(ct->layout); 338 ui_reset_layout(ct->layout);
344 } 339 }
345 340
346 UIWIDGET ui_box(UiObject *obj, UiBoxOrientation orientation) { 341 UIWIDGET ui_box(UiObject *obj, UiBoxOrientation orientation) {
347 UiContainer *ct = uic_get_current_container(obj); 342 UiContainer *ct = uic_get_current_container(obj);

mercurial