[Geany-devel] [Patch] : On closing the last tab create new untitled document.
Erik de Castro Lopo
mle+tools at xxxxx
Thu Sep 16 21:09:21 UTC 2010
Nick Treleaven wrote:
> 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.
Ok, I'll have a look. I actually don't use project sessions
so I'll have to have a play around.
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the Devel
mailing list