comparison src/gtkutil.h @ 56846:5817080daeba

* xmenu.c (digest_single_submenu): Set lname and lkey in widget_value instead of name and key. (update_submenu_strings): New function. (set_frame_menubar): Remove call to inhibit_garbage_collection, call update_submenu_strings. Call ENCODE_MENU_STRING for top level menu names. * gtkutil.h (_widget_value): Added lname and lkey.
author Jan Djärv <jan.h.d@swipnet.se>
date Mon, 30 Aug 2004 19:42:53 +0000
parents 1218a42792ea
children 94778fc7dc76 3219f94257bc
comparison
equal deleted inserted replaced
56845:8a28788cef84 56846:5817080daeba
94 This is an adaption from lwlib for Gtk so we can use more of the same 94 This is an adaption from lwlib for Gtk so we can use more of the same
95 code as lwlib in xmenu.c. */ 95 code as lwlib in xmenu.c. */
96 typedef struct _widget_value 96 typedef struct _widget_value
97 { 97 {
98 /* name of widget */ 98 /* name of widget */
99 Lisp_Object lname;
99 char *name; 100 char *name;
100 /* value (meaning depend on widget type) */ 101 /* value (meaning depend on widget type) */
101 char *value; 102 char *value;
102 /* keyboard equivalent. no implications for XtTranslations */ 103 /* keyboard equivalent. no implications for XtTranslations */
104 Lisp_Object lkey;
103 char *key; 105 char *key;
104 /* Help string or nil if none. 106 /* Help string or nil if none.
105 GC finds this string through the frame's menu_bar_vector 107 GC finds this string through the frame's menu_bar_vector
106 or through menu_items. */ 108 or through menu_items. */
107 Lisp_Object help; 109 Lisp_Object help;