[Geany-devel] [Patch] : On closing the last tab create new untitled document.

Nick Treleaven nick.treleaven at xxxxx
Thu Sep 16 15:56:03 UTC 2010


On Thu, 16 Sep 2010 08:32:05 +1000
Erik de Castro Lopo <mle+tools at mega-nerd.com> wrote:

> > > Well, the responses are all positive. But I don't think that
> > > keybindings.c is the best place for this code. What about writing it
> > > as an idle callback from document_remove_page?
> > 
> > Actually, doesn't even need a callback. Attached patch moves
> > the code I initially had in keybindings.c to the end of the
> > document_remove_page() function in document.c.
> 
> Actually attached the patch this time.

Haven't tested, but seems that this would leave a prepended new
document when loading a project session. It probably does need
the idle callback.

Regards,
Nick



More information about the Devel mailing list