gimptexttool.c: hack to work around issue #9154
This fixes issue #9154
When changing the font size then immediately resizing (bug 1), or when selecting the font size box then changing the size unit through scrolling then immediately resizing (bug 2), the text tool goes idle and resizing becomes as if creating a new rectangle.
I believe that the bug most probably lies in gtk (especially because of bug 2), so this is a hack to work around it.
Examples:
I did not follow the line limit rule in the coding style because that would require using a variable or a switch statement both of which i feel unnecessary, but i may be wrong.
This is my first attempt to contribute to gimp, criticism is very much appreciated.
Edited by Idriss Fekir