GNOME Bugzilla – Bug 137890
Text tool halted when using Redo
Last modified: 2004-12-22 21:47:04 UTC
The next text tool undo works quite nicely but there's an issue that is rather annoying. When invoking a Redo the image is dirtied and the text tool is halted. This is not obvious and it disturbs the workflow. The obvious solution is to set tool_control->preserve to TRUE for the text tool. There is a case however when the text tool should disconnect from the current text layer and that's when the layer is modified by other means than a text operation. This can be achieved by connecting to notifications of the "modified" property of the text layer. I will attach a patch that implements this behaviour. Please review and test.
Created attachment 25865 [details] [review] suggested fix
2004-03-22 Sven Neumann <sven@gimp.org> * app/tools/gimptexttool.[ch]: preserve the text tool on image changes. Instead connect to the text layer's "notify::modified" signal and disconnect from the layer when it is modified. Fixes bug #137890.