emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix placement of toggle and radio button in Lucid menu.


From: Po Lu
Subject: Re: [PATCH] Fix placement of toggle and radio button in Lucid menu.
Date: Fri, 25 Feb 2022 21:46:58 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> They are available in gui_produce_glyphs (look for "pcm").

Unfortunately, that's not available inside the Lucid menu widget.  What
is actually needed is the entire `font_extents' field of the menu
widget.  In gdb, that would be

  (gdb) p mw->menu.font_extents

Inside `draw_toggle' or some other similar function.

> So is this just an aesthetic issue?  If so, perhaps adding a variable
> exposed to Lisp could be enough: then users who, like you, dislike the
> default display, can control the offset.

It would be better as an X resource, IMHO.  Lisp doesn't affect at
present the behavior of the Lucid menu widget, and it would be cleaner
to keep it that way.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]