unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Menu bar items structure
@ 2022-11-16 17:30 Manuel Giraud
  2022-11-17  7:49 ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Manuel Giraud @ 2022-11-16 17:30 UTC (permalink / raw)
  To: emacs-devel

Hi,

I'm still trying to improve the X11 no toolkit menus and for this I end
up having to add an entry for each menu bar items.  It currently has 4:
a key, a name, an item_property_def(?) and a starting char position.

AFAIU, those items are stored as a flat array.  So there are many usage
of this magical "4" number in keyboard.c and *term.c to walk this array.

So I guess my question is: could (should?) it not be done with a proper
struct?  Maybe it is historical or maybe I'm missing something?

Best regards,
-- 
Manuel Giraud



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-11-18  7:48 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 17:30 Menu bar items structure Manuel Giraud
2022-11-17  7:49 ` Eli Zaretskii
2022-11-17  8:42   ` Po Lu
2022-11-17  9:57     ` Manuel Giraud
2022-11-17 10:06       ` Po Lu
2022-11-17 10:09         ` Manuel Giraud
2022-11-17 11:15           ` Po Lu
2022-11-17 11:17             ` Po Lu
2022-11-17 11:16       ` Eli Zaretskii
2022-11-17 15:06         ` Manuel Giraud
2022-11-17 17:01           ` Eli Zaretskii
2022-11-18  7:48             ` Manuel Giraud
2022-11-17  9:23   ` Manuel Giraud

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).