Bo Peng wrote:
HI, Abdel,

I did what you said (see attached patch) to add a context menu to the
listings inset,

Good :-)

but I do not know how to trigger inset-dialog from the
context menu. 'dialog-show listings' is wrong because dialog-show does
not know this dialog, and the inset needs to be associated.

This is a general problem with our core-dialog architecture, namely that a dialog is attached to an inset (see initializeParam()). The dialog should instead look up for the relevant inset at the cursor position. In principle right-clicking will set the cursor before launching the context menu so, the information is there. I think we should be able to "attach" nevertheless the inset by modifying a bit the "dialog-show" LFUN; this is done this way for the label and reference dialog for example. Please have a look at LFUN_LABEL_GOTO or something like that.

Abdel.

Reply via email to