Community
Participate
Working Groups
GTK Text widget sends unexpected modifyText event. In the following test codes; Text text = new Text(parent, 0); text.addModifyListener(listener); text.setText("a"); text.setText("b"); the listener catches 3 modify events, as follows; 1, modifyText "a" 2, modifyText "" <<< unexpected!!! 3, modifyText "b" Thus, when setting a text, the Text widget removes contents first, then set new text. This is unacceptable behavior. Many UIs use the modifyText event as a trigger of actions/commands. It causes wrong UI behavior, and is significant problem. Win2K Text widget works just fine.
Environment : Red Hat 8.0 + GTK 2.2
This a bug in GTK, I will talk to SN if SWT should try to work around this or not. *** This bug has been marked as a duplicate of 38090 ***
According to the 38090 remark, only Text widget would be fixed, but please consider to fix Combo widget also.