diff --git a/cmd/xfe/XfeWidgets/Xfe/Tab.c b/cmd/xfe/XfeWidgets/Xfe/Tab.c index ecdac7ea0ba6..d86c9382b2c2 100644 --- a/cmd/xfe/XfeWidgets/Xfe/Tab.c +++ b/cmd/xfe/XfeWidgets/Xfe/Tab.c @@ -880,9 +880,33 @@ FillTabHorizontal(Widget w,Pixmap pixmap,Dimension width,Dimension height) /* XfeTab Public Methods */ /* */ /*----------------------------------------------------------------------*/ -Widget -XfeCreateTab(Widget parent,char *name,Arg *args,Cardinal count) +/* extern */ Widget +XfeCreateTab(Widget pw,char * name,Arg * av,Cardinal ac) { - return (XtCreateWidget(name,xfeTabWidgetClass,parent,args,count)); + return XtCreateWidget(name,xfeTabWidgetClass,pw,av,ac); +} +/*----------------------------------------------------------------------*/ +/* extern */ void +XfeTabDrawRaised(Widget w,Boolean raised) +{ + Boolean pointer_inside_save; + + assert( _XfeIsAlive(w) ); + assert( XfeIsTab(w) ); + + /* Make sure the widget is realized before drawing anything */ + if (!_XfeIsRealized(w)) + { + return; + } + + /* Pretend the pointer is in/out according to 'raised' and expose */ + pointer_inside_save = _XfePointerInside(w); + + _XfePointerInside(w) = raised; + + XfeExpose(w,NULL,NULL); + + _XfePointerInside(w) = pointer_inside_save; } /*----------------------------------------------------------------------*/ diff --git a/cmd/xfe/XfeWidgets/Xfe/Tab.h b/cmd/xfe/XfeWidgets/Xfe/Tab.h index bcb07917eca5..836d14501137 100644 --- a/cmd/xfe/XfeWidgets/Xfe/Tab.h +++ b/cmd/xfe/XfeWidgets/Xfe/Tab.h @@ -56,10 +56,14 @@ typedef struct _XfeTabRec * XfeTabWidget; /* */ /*----------------------------------------------------------------------*/ extern Widget -XfeCreateTab (Widget parent, +XfeCreateTab (Widget pw, String name, - Arg * args, - Cardinal num_args); + Arg * av, + Cardinal ac); +/*----------------------------------------------------------------------*/ +extern void +XfeTabDrawRaised (Widget w, + Boolean raised); /*----------------------------------------------------------------------*/ #ifdef __cplusplus /* end C++ */