X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lwlib%2Fxlwtabs.c;h=ec1502a96658e378936e09efe68a4aa966494c1f;hb=21db8709c0c2dcedbd278c7fe571290d5ce80a71;hp=32c282c925993c0eab6f81615af231c5e4c5ce08;hpb=02f4d2761a98c5cb9d5b423d2361160a5d8c9ee4;p=chise%2Fxemacs-chise.git- diff --git a/lwlib/xlwtabs.c b/lwlib/xlwtabs.c index 32c282c..ec1502a 100644 --- a/lwlib/xlwtabs.c +++ b/lwlib/xlwtabs.c @@ -146,6 +146,8 @@ static XtResource resources[] = { XtOffsetOf(RectObjRec,rectangle.border_width), XtRImmediate, (XtPointer)0}, {XtNtopWidget, XtCTopWidget, XtRWidget, sizeof(Widget), offset(topWidget), XtRImmediate, NULL}, + {XtNhighlightWidget, XtCHighlightWidget, XtRWidget, sizeof(Widget), + offset(hilight), XtRImmediate, NULL}, {XtNcallback, XtCCallback, XtRCallback, sizeof(XtPointer), offset(callbacks), XtRCallback, NULL}, {XtNpopdownCallback, XtCCallback, XtRCallback, sizeof(XtPointer), @@ -650,6 +652,12 @@ TabsSetValues(Widget current, Widget request, Widget new, if( tw->core.sensitive != curtw->core.sensitive ) needRedraw = True ; + /* Highlit widget changed */ + if ( tw->tabs.hilight != curtw->tabs.hilight ) + { + needRedraw = True ; + } + /* If top widget changes, need to change stacking order, redraw tabs. * Window system will handle the redraws. */ @@ -670,6 +678,7 @@ TabsSetValues(Widget current, Widget request, Widget new, if( tab->tabs.row != tw->tabs.numRows-1 ) TabsShuffleRows(tw) ; + needRedraw = True ; } else