diff -r 6ef2c7f73a30 -r 4697592e24ba ui/motif/container.c --- a/ui/motif/container.c Mon Jan 05 14:47:19 2015 +0100 +++ b/ui/motif/container.c Mon Jan 05 18:47:07 2015 +0100 @@ -330,16 +330,11 @@ if(tabview->current) { XtUnmanageChild(tabview->current); } - if(tabview->tabs) { - // not the first tab, so unmanage the new widget - //XtUnmanageChild(widget); - } else { - tabview->current = widget; - } + tabview->current = widget; - tabview->tabs = ucx_list_append(tabview->tabs, widget); + ui_select_tab(ct->widget, 0); ui_reset_layout(ct->layout); }