Re: [Xournal-devel] MRU

2014-12-09 Thread D M German
Denis> Hi Daniel, [..] Denis> (By the way, one could modify the MRU logic so that the filename also gets inserted into the MRU only when the file is discarded, rather than when it is opened Denis> or assigned a name -- so, at the same time that we update the page number in the MRU. This wo

Re: [Xournal-devel] MRU

2014-12-09 Thread Michael Walter
Hi all, the discussion on MRU reminded me of another problem, namely that if one is running multiple instances of Xournal then the MRU file tends to be overwritten instead of extended. I do not know of the top of my head if this is still the case. If yes then perhaps the MRU list should be re-read

Re: [Xournal-devel] MRU

2014-12-09 Thread Denis Auroux
Hi Daniel, Yes, the top of the MRU does always have the current document as soon as there is a .xoj file name available (i.e., either we opened an existing .xoj file, or it was created from scratch and saved to disk). So, all that should be needed in order to save the last page viewed is for

Re: [Xournal-devel] MRU

2014-12-09 Thread dmg
On Tue, Dec 9, 2014 at 2:06 PM, D M German wrote: > > 2. When should the MRU be updated with the page number? The current > document does not have an entry. I gets it when it is saved. so my gut > feeling tells me when the xournal is saved. What do you think? Oh, but then it will not be very usa

[Xournal-devel] MRU

2014-12-09 Thread D M German
Hi Denis, I have created code to add a page number to the MRU. So far so good. i have two questions though: 1. Should we make the size of the MRU a parameter in the config file? 2. When should the MRU be updated with the page number? The current document does not have an entry. I gets it when