At 03:44 PM 8/20/99 +0200, Stef Epardaud wrote:
i forgot to mention that i set my default face background to black,
and when xemacs starts, it paints everything to grey default,
then it initializes the gutter tabs by calling TabsInit(Widget req,
Widget new, ArgList, Cardinal *nargs) in xlwtabs.c ,
by looking a bit at what happens in there i see a primising variable in
the new widget passed as argument, called newTw->core.background_pixel
wchich is set to 52857 (me thinks the default grey)
I think the tab gets initialized too early to pick up you face changes.
This is a bug and I'll try and fix it if I can.
when i create another frame , you create another gutter tab widget.
and this time in the function TabsInit(Widget req, Widget new, ArgList,
Cardinal *nargs) in xlwtabs.c, the variable newTw->core.background_pixel
is set to 0 (which i assume is my black), and then from there on, the
tabs widget will assume his background is black, and since the font in
the gutter default to black (my default font is white however, so it
does not care about it), i see NOTHING! and it will never change.
This also sounds like a bug.
by setting the variable newTw->core.background_pixel when TabsInit
initializes the new tabs widget in the debugger to the value it got in
the first frame (52857), then the widget will always be painted with the
excpected value: what i want.
Thanks for your diagnosis.
andy
--------------------------------------------------------------
Dr Andy Piper
Senior Consultant Architect, BEA Systems Ltd