Hrvoje Niksic <hniksic(a)iskon.hr> writes:
wmperry(a)aventail.com (William M. Perry) writes:
> So... there are spiffy little things in GtkStyle for drawing things like
> shadows, vertical & horizontal dividers, etc, etc.
>
> My question is, should XEmacs use those? Or continue to draw its
> own?
The former. It uses the native ones under MS Windows, right?
I just sent mail to the gtk-app-devel-list asking a few questions about
this. The problem is that the redisplay code wants to know the
height/width of the dividers beforehand, and there is no easy way to get
that from the GtkStyle class. You can get basic 'xthickness' and
'ythickness', but WHAT the style does with those is of course up to the
style. *sigh*
I'll probably have some redisplay questions over the weekend if anybody is
going to be around. :) Basically if I unmap/map the frame, everything gets
drawn (this call change_frame_visibility()). But if I then obscure the
window, and then expose it, I get an expose event and call
gtk_redraw_exposed_area() with the correct rectangle, but nothing shows
up. I end up with the background of the face filling the area where text
should be, but no text is visible.
I can send screenshots if that would help anyone. Is there some bit I need
to twiddle? "Redisplay is fun!" repeat until you start to believe it. :)
-Bill P.