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

Erik de Castro Lopo mle+tools at xxxxx
Sun Sep 19 08:46:47 UTC 2010


Erik de Castro Lopo wrote:

> 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.

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,

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/



More information about the Devel mailing list