[Geany-devel] [Patch] : On closing the last tab create new untitled document.
Nick Treleaven
nick.treleaven at xxxxx
Mon Sep 20 12:21:05 UTC 2010
On Sun, 19 Sep 2010 18:46:47 +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.
> > >
> > > 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.
>
> Can you give me a idea of how to recreate this problem? I've messed
> with project files but I'm not exactly sure what to look for,
When opening a project file with project sessions enabled, the first
tab is always a new document, which shouldn't be there.
Now committed a change with the idle callback.
Regards,
Nick
More information about the Devel
mailing list