Ok, I've got this. I wish I understood X better. This patch also fixes the
problem with widgets not recognising face changes.
I will apply this to cvs.
andy
1999-09-20 Andy Piper <andy(a)xemacs.org>
* glyphs-msw.c (mswindows_update_subwindow): update faces.
1999-09-19 Andy Piper <andy(a)xemacs.org>
* glyphs.c (update_frame_subwindows): update if faces have
changed.
* glyphs-x.c (x_widget_instantiate): create the clip widget using
lwlib rather than directly.
(x_finalize_image_instance): delete the clip widget using lwlib.
(x_update_subwindow): update widget faces.
(update_widget_face): new function for updating the face
properties of a widget.
(x_widget_set_property): update widget faces.
* lwlib-Xlw.c (xlw_create_clip_window): new function. We need to
manage the clip widgets using lwlib so that we can delete them in
a safe manner.
--------------------------------------------------------------
Dr Andy Piper
Senior Consultant Architect, BEA Systems Ltd