diff -r 62205699cd0e -r 97bafeca1c7c ui/motif/container.c --- a/ui/motif/container.c Tue Jul 22 19:15:44 2014 +0200 +++ b/ui/motif/container.c Sun Aug 24 13:31:07 2014 +0200 @@ -160,14 +160,15 @@ XmString label = XmStringCreateLocalized("tab"); XtSetArg(args[0], XmNlabelString, label); - XtSetArg(args[1], XmNshadowThickness, 1); + XtSetArg(args[1], XmNshadowThickness, 0); XtSetArg(args[2], XmNtraversalOn, FALSE); XtSetArg(args[3], XmNtopAttachment, XmATTACH_FORM); XtSetArg(args[4], XmNbottomAttachment, XmATTACH_FORM); XtSetArg(args[5], XmNhighlightThickness, 0); XtSetArg(args[6], XmNindicatorOn, XmINDICATOR_NONE); + XtSetArg(args[7], XmNfillOnSelect, TRUE); - Widget button = XmCreateToggleButton(v->tabbar, "tab_button", args, 7); + Widget button = XmCreateToggleButton(v->tabbar, "tab_button", args, 8); tab->tabbedpane = v; tab->content = content; tab->tab_button = button; @@ -189,6 +190,8 @@ XmATTACH_POSITION, XmNrightPosition, pos + part, + XmNset, + FALSE, NULL); is_first = FALSE; } else if(i < count - 1) { @@ -202,6 +205,8 @@ XmATTACH_POSITION, XmNrightPosition, pos + part, + XmNset, + FALSE, NULL); } else { XtVaSetValues( @@ -212,14 +217,16 @@ pos, XmNrightAttachment, XmATTACH_FORM, + XmNset, + FALSE, NULL); } pos += part; i++; } - XtManageChild(button); + XtVaSetValues(button, XmNset, TRUE, NULL); XtAddCallback( button, XmNvalueChangedCallback,