Mercurial > emacs
view src/chpdef.h @ 46815:52f36f4b0e4f
(local_heap, local_alloc, local_free): New macros.
(malloc_widget_value, free_widget_value)
(w32_free_submenu_strings): Use them.
(push_submenu_start, push_submenu_end, push_left_right_boundary)
(push_menu_pane, push_menu_item, single_keymap_panes)
(single_menu_item, Fx_popup_menu, menubar_selection_callback)
(single_submenu, set_frame_menubar)
(w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
(Fx_popup_menu): Don't show pop up menu until preceding one is
actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
Changes adapted from xmenu.c
(set_frame_menubar): First parse all submenus,
then make widget_value trees from them.
Don't allocate any widget_value objects
until we are done with the parsing.
(parse_single_submenu): New function.
(digest_single_submenu): New function.
(single_submenu): Function deleted, replaced by those two.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 05 Aug 2002 16:33:44 +0000 |
parents | 3165b2697c78 |
children | 695cf19ef79e |
line wrap: on
line source
#define CHP$_END 0 #define CHP$_ACCESS 1 #define CHP$_FLAGS 2 #define CHP$_PRIV 3 #define CHP$_ACMODE 4 #define CHP$_ACCLASS 5 #define CHP$_RIGHTS 6 #define CHP$_ADDRIGHTS 7 #define CHP$_MODE 8 #define CHP$_MODES 9 #define CHP$_MINCLASS 10 #define CHP$_MAXCLASS 11 #define CHP$_OWNER 12 #define CHP$_PROT 13 #define CHP$_ACL 14 #define CHP$_AUDITNAME 15 #define CHP$_ALARMNAME 16 #define CHP$_MATCHEDACE 17 #define CHP$_PRIVUSED 18 #define CHP$_MAX_CODE 19 #define CHP$M_SYSPRV 1 #define CHP$M_BYPASS 2 #define CHP$M_UPGRADE 4 #define CHP$M_DOWNGRADE 8 #define CHP$M_GRPPRV 16 #define CHP$M_READALL 32 #define CHP$V_SYSPRV 0 #define CHP$V_BYPASS 1 #define CHP$V_UPGRADE 2 #define CHP$V_DOWNGRADE 3 #define CHP$V_GRPPRV 4 #define CHP$V_READALL 5 #define CHP$M_READ 1 #define CHP$M_WRITE 2 #define CHP$M_USEREADALL 4 #define CHP$V_READ 0 #define CHP$V_WRITE 1 #define CHP$V_USEREADALL 2