X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Fmenubar.c;h=0460f26330465790dfbea6b992e56af135fc6ddc;hp=c92232f1809de61eca8cb39ee3170b51a31613de;hb=716cfba952c1dc0d2cf5c968971f3780ba728a89;hpb=d74da9234cc42e8018b1500105c3892a5c46d5e3 diff --git a/src/menubar.c b/src/menubar.c index c92232f..0460f26 100644 --- a/src/menubar.c +++ b/src/menubar.c @@ -104,7 +104,7 @@ current_frame_menubar (CONST struct frame* f) Lisp_Object menu_parse_submenu_keywords (Lisp_Object desc, Lisp_Object gui_item) { - struct Lisp_Gui_Item* pgui_item = XGUI_ITEM (gui_item); + Lisp_Gui_Item* pgui_item = XGUI_ITEM (gui_item); /* Menu descriptor should be a list */ CHECK_CONS (desc); @@ -155,7 +155,7 @@ See also 'find-menu-item'. Lisp_Object path_entry, submenu_desc, submenu; struct gcpro gcpro1; Lisp_Object gui_item = allocate_gui_item (); - struct Lisp_Gui_Item* pgui_item = XGUI_ITEM (gui_item); + Lisp_Gui_Item* pgui_item = XGUI_ITEM (gui_item); GCPRO1 (gui_item); @@ -296,7 +296,7 @@ Menu item names should be converted to normal form before being compared. (name, buffer)) { struct buffer *buf = decode_buffer (buffer, 0); - struct Lisp_String *n; + Lisp_String *n; Charcount end; int i; Bufbyte *name_data; @@ -355,31 +355,21 @@ syms_of_menubar (void) void vars_of_menubar (void) { - { - /* put in Vblank_menubar a menubar value which has no visible - * items. This is a bit tricky due to various quirks. We - * could use '(["" nil nil]), but this is apparently equivalent - * to '(nil), and a new frame created with this menubar will - * get a vertically-squished menubar. If we use " " as the - * button title instead of "", we get an etched button border. - * So we use - * '(("No active menubar" ["" nil nil])) - * which creates a menu whose title is "No active menubar", - * and this works fine. - */ - - Lisp_Object menu_item[3]; - static CONST char *blank_msg = "No active menubar"; - - menu_item[0] = build_string (""); - menu_item[1] = Qnil; - menu_item[2] = Qnil; - Vblank_menubar = Fcons (Fcons (build_string (blank_msg), - Fcons (Fvector (3, &menu_item[0]), - Qnil)), - Qnil); - staticpro (&Vblank_menubar); - } + /* put in Vblank_menubar a menubar value which has no visible + * items. This is a bit tricky due to various quirks. We + * could use '(["" nil nil]), but this is apparently equivalent + * to '(nil), and a new frame created with this menubar will + * get a vertically-squished menubar. If we use " " as the + * button title instead of "", we get an etched button border. + * So we use + * '(("No active menubar" ["" nil nil])) + * which creates a menu whose title is "No active menubar", + * and this works fine. + */ + + Vblank_menubar = list1 (list2 (build_string ("No active menubar"), + vector3 (build_string (""), Qnil, Qnil))); + staticpro (&Vblank_menubar); DEFVAR_BOOL ("popup-menu-titles", &popup_menu_titles /* If true, popup menus will have title bars at the top. @@ -503,7 +493,7 @@ The possible keywords are this: side-effects. :key-sequence keys Used in FSF Emacs as an hint to an equivalent keybinding. - Ignored by XEnacs for easymenu.el compatability. + Ignored by XEnacs for easymenu.el compatibility. :label
(unimplemented!) Like :suffix, but replaces label completely.