X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lwlib%2Fxlwtabs.c;h=e58d6fabfe5abd9fdc5609819531060855f6a848;hb=4fd8920ef927db361877bb718163ecd16ecdb224;hp=559fc9124e45802cfbf3cb36dd4d0e90bd648e0a;hpb=b73e352f264e9da0a00159dc29f318305cbe8636;p=chise%2Fxemacs-chise.git.1 diff --git a/lwlib/xlwtabs.c b/lwlib/xlwtabs.c index 559fc91..e58d6fa 100644 --- a/lwlib/xlwtabs.c +++ b/lwlib/xlwtabs.c @@ -644,7 +644,7 @@ TabsSetValues(Widget current, Widget request, Widget new, * Window system will handle the redraws. */ - if( tw->tabs.topWidget != curtw->tabs.topWidget ) { + if( tw->tabs.topWidget != curtw->tabs.topWidget ) if( XtIsRealized(tw->tabs.topWidget) ) { Widget w = tw->tabs.topWidget ; @@ -661,7 +661,6 @@ TabsSetValues(Widget current, Widget request, Widget new, needRedraw = True ; } - } else tw->tabs.needs_layout = True ; @@ -819,8 +818,8 @@ TabsGeometryManager(Widget w, XtWidgetGeometry *req, XtWidgetGeometry *reply) Dimension th ; /* space used by tabs */ Dimension wid,hgt ; /* Tabs widget size */ - rw = cw = tab->tabs.wid ; - rh = ch = tab->tabs.hgt ; + rw = tab->tabs.wid ; + rh = tab->tabs.hgt ; /* find out what the resulting preferred size would be */ @@ -1058,9 +1057,10 @@ static void TabsPage(Widget w, XEvent *event, String *params, Cardinal *num_params) { TabsWidget tw = (TabsWidget) w ; - Widget newtop = NULL; + Widget newtop ; Widget *childP ; int idx ; + int i ; int nc = tw->composite.num_children ; if( nc <= 0 ) @@ -1121,9 +1121,10 @@ static void TabsHighlight(Widget w, XEvent *event, String *params, Cardinal *num_params) { TabsWidget tw = (TabsWidget) w ; - Widget newhl = NULL; + Widget newhl ; Widget *childP ; int idx ; + int i ; int nc = tw->composite.num_children ; if( nc <= 0 ) @@ -1270,6 +1271,8 @@ void XawTabsSetHighlight(Widget t, Widget w) { TabsWidget tw = (TabsWidget)t ; + TabsConstraints tab ; + Widget oldtop = tw->tabs.topWidget ; if( !XtIsSubclass(t, tabsWidgetClass) ) return ;