mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 02:51:31 -08:00
(xm_set_menu_resources_from_menu_face): Remove
#ifndef LESSTIF_VERSION.
This commit is contained in:
parent
b7a084f6f0
commit
823ba8d8b3
1 changed files with 1 additions and 4 deletions
|
|
@ -4429,15 +4429,11 @@ xm_set_menu_resources_from_menu_face (f, widget)
|
|||
|| !UNSPECIFIEDP (LFACE_SLANT (lface))
|
||||
|| !UNSPECIFIEDP (LFACE_HEIGHT (lface))))
|
||||
{
|
||||
#ifndef LESSTIF_VERSION
|
||||
/* Setting the font leads to an infinite loop somewhere
|
||||
in LessTif during geometry computation. */
|
||||
XmFontListEntry fe;
|
||||
fe = XmFontListEntryCreate ("menu_font", XmFONT_IS_FONT, face->font);
|
||||
fl = XmFontListAppendEntry (NULL, fe);
|
||||
XtSetArg (av[ac], XmNfontList, fl);
|
||||
++ac;
|
||||
#endif
|
||||
}
|
||||
|
||||
xassert (ac <= sizeof av / sizeof *av);
|
||||
|
|
@ -4449,6 +4445,7 @@ xm_set_menu_resources_from_menu_face (f, widget)
|
|||
XtSetValues (widget, av, ac);
|
||||
res.av = av, res.ac = ac;
|
||||
XtApplyToWidgets (widget, xm_apply_resources, &res);
|
||||
|
||||
if (fl)
|
||||
XmFontListFree (fl);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue