ok,
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)
then it gets painted, it all changes color to my preferred black, and
the buffer window and minibuffer and surrounding of gutter tab becomes
black.
the gutter at this point is not updated or repainted, so it does not
become unvalid and will never change its background to black.
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.
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.
so my diagnostic is that whoever created the tab widget sets its
foreground to black and its background to the default face background,
when the foreground should be that of the other widgets (like menus) and
so should be the background.
or do we want the background of the tab widget to be that of the default
face and then it should be updated when face background is changed, and
it should care about the fae foreground and use it as well.
i'd prefer the menu colors.
--
# Stef Epardaud, # There is no limit to the power of computing ...
# Java Defeater # ... except men maybe ?
# Earth # Lunatech Research,
# Solar System # soon we will quit researching and start finding...