Christian Surlykke
2005-05-25 13:55:34 UTC
Hi
Here's a patch that improves SwtJemacs' redrawing.
The problem is that due to an error of mine - not constructing TextChangingEvent correctly in gnu.jemacs.swt.BufferContent - the StyledText widget didn't (couldn't) redraw properly after text inserts. Not realizing that the fault was mine I just threw in a instruction to redraw the entire SwtWindow area after each handled command. This caused an unpleasant flickering of the display. Alsoother windows than the selected, attached to the same buffer, were not updated at all.
The fix is to construct TextChangingEvents properly and leave redrawing to the StyledText widget.
Formalia:
I, Christian Surlykke, hereby assign the copyright to the code-changes attached to this mail, to Per Bothner on the condition that he will make them available under the Gnu General Public License, Version 2, as published by the Free Software Foundation. Other than that no restrictions on Per Bothners use of the changes is implied.
I declare that I am the sole author of these changes and that I know of no other person having any claims on it.
br. Chr.
Here's a patch that improves SwtJemacs' redrawing.
The problem is that due to an error of mine - not constructing TextChangingEvent correctly in gnu.jemacs.swt.BufferContent - the StyledText widget didn't (couldn't) redraw properly after text inserts. Not realizing that the fault was mine I just threw in a instruction to redraw the entire SwtWindow area after each handled command. This caused an unpleasant flickering of the display. Alsoother windows than the selected, attached to the same buffer, were not updated at all.
The fix is to construct TextChangingEvents properly and leave redrawing to the StyledText widget.
Formalia:
I, Christian Surlykke, hereby assign the copyright to the code-changes attached to this mail, to Per Bothner on the condition that he will make them available under the Gnu General Public License, Version 2, as published by the Free Software Foundation. Other than that no restrictions on Per Bothners use of the changes is implied.
I declare that I am the sole author of these changes and that I know of no other person having any claims on it.
br. Chr.