On Mon, 27 May 2013 22:12:35 +0200 Pallai Roland pallair@magex.hu wrote:
2013/5/27 Dimitar Zhekov dimitar.zhekov@gmail.com:
Do you agree that the problem exists and should be solved?
No. [...]
[...]
Long story short, why don't you write a plugin that connects to "document-close", and focuses your favorite widget when the last document is closed? That'll certainly be easier and faster than adding a function to the plugin API and convincing all plugin developers to call it, for a reason which may not sound entirely convincing to them.
Being a plugin, you can extend it as you see fit - for example by keeping history of the focused widgets and going back to the last one that still exists, going back on each document close etc.
Finally, a plugin that does something sensible, causes no crashes and avoids dirty hacks, may well be accepted in geany-plugins.