On Thu, 2005-08-04 at 10:31 +0200, Jean-Marc Lasgouttes wrote: > >>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > | Patches attached. I won't apply this GRef until someone loves the > | addition to ControlRef enough to commit it (I only have write access > | to frontends/gtk, I think). > > Lars> Is it not possible to do this without changes to ControlRef? > > I am not sure I understand the feature and why it is desirable. Could > you describe when the 0 bookmark is set and when it is not?
In lyx-qt (behaviour A): Select a label, click goto, buffer goes to label. Select another label, buffer reverts to original position In lyx-gtk (behaviour B): Select a label, click goto, goes to label. Select another label, buffer remains at first label until user clicks goto or back. The point is basically that for selecting another label in the list to jump back to the original position is an unexpected and pointless behaviour. The reason for behaviour A is that the original position would be lost if one was allowed to jump between labels without going to the original position first. Behaviour B needs gotoAnotherRef to jump between labels without overwriting the bookmark storing the original position. An alternative approach (behaviour C) would be to do: controller().gotoBookmark(); controller().gotoRef(labelentry_->get_text()); instead of controller().gotoAnotherRef(), but that would cause the buffer to pop back to the original position in between labels (haven't tested that, don't know how flicker-ish it is). I booted into the un-LyX ubuntu installation this morning by accident, so I'm going to have to reboot to play with it... John