On Fri, Mar 07, 2003 at 03:32:06PM +0000, Angus Leeming wrote: > I am happily removing stuff like: > > case LFUN_REF_INSERT: > code = Inset::REF_CODE; > break; > > Should I replace it with something like: > case LFUN_DIALOG_SHOW_NEW_INSET: > if (ev.argument == "citation") > code = Inset::CITE_CODE; > else if (ev.argument == "ref") > code = Inset::REF_CODE; > break; > > What does the function do?
It is used to grey out "impossible" options in the menus. Simply replace it [or break it if Jean-Marc is not watching ;-)] Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)