On Monday 23 December 2002 9:36 am, Jean-Marc Lasgouttes wrote: > >>>>> "Michael" == Michael Schmitt <[EMAIL PROTECTED]> writes: > > Michael> - xforms does not underline shortcuts correctly in a choice > Michael> box. Instead a square is printed after the character that is > Michael> to be underlined (even if this is a font problem, xforms > Michael> should handle it because it appears on a regular SuSE Linux > Michael> system) > > Angus, besides fixing the xforms bug, it seems that it would be nice > to remove the title of these choice items. It can be done with a > fl_set_choice_notitle(obj,1) call, or something like that. This call > did not exist in 0.88.1, but I bet that it existed in 0.89.5... > > Can this be done with your nice sed machinery? > > JMarc
Of course. See attached. It'll take a while for me to compile and test, but I assume that you'd like me to apply this? Happy New Year to you all. Angus
Index: src/frontends/xforms/ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/ChangeLog,v retrieving revision 1.647 diff -u -p -r1.647 ChangeLog --- src/frontends/xforms/ChangeLog 5 Jan 2003 22:38:42 -0000 1.647 +++ src/frontends/xforms/ChangeLog 6 Jan 2003 11:06:04 -0000 @@ -1,3 +1,8 @@ +2003-01-06 Angus Leeming <[EMAIL PROTECTED]> + + * forms/fdfixc.sed: Turn off choice titles as they can contain + meta-chars that just look nasty. + 2003-01-05 John Levon <[EMAIL PROTECTED]> * XLyXKeySym.h: Index: src/frontends/xforms/forms/fdfixc.sed =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/forms/fdfixc.sed,v retrieving revision 1.12 diff -u -p -r1.12 fdfixc.sed --- src/frontends/xforms/forms/fdfixc.sed 29 Nov 2002 09:26:53 -0000 1.12 +++ src/frontends/xforms/forms/fdfixc.sed 6 Jan 2003 11:06:04 -0000 @@ -74,6 +74,13 @@ s/\( fdui->form\)\(.*bgn_form.*\)/\1\2\ /bmtable/ s/fl_add_button/fl_add_bmtable/ +# For all lines containing fl_add_choice, +# add a line that turns off the title. (These titles can contain meta-chars +# that just look nasty ;-) +/fl_add_choice/a\ + fl_set_choice_notitle(obj, 1); + + # For all lines containing "fl_" and a string _not_ containing |, # replace the string with _(string) /fl_/ s/".[^|]*"/_(&)/