X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Fmenubar-x.c;h=36c1344b9d1795a0e87f3ac81ce7d1a2e5fc2c55;hp=f9c5349924b1a8052a4a27220ffaf0ac691850a9;hb=cb9f6f4eadc44f1becb32cbbd1db26449e347755;hpb=7e7e32d8c43ebad1d3e115269d251075abbfdf91 diff --git a/src/menubar-x.c b/src/menubar-x.c index f9c5349..36c1344 100644 --- a/src/menubar-x.c +++ b/src/menubar-x.c @@ -122,6 +122,11 @@ menu_item_descriptor_to_widget_value_1 (Lisp_Object desc, { wv->name = string_chars; wv->enabled = 1; + /* dverna Dec. 98: command_builder_operate_menu_accelerator will + manipulate the accel as a Lisp_Object if the widget has a name. + Since simple labels have a name, but no accel, we *must* set it + to nil */ + wv->accel = LISP_TO_VOID (Qnil); } } else if (VECTORP (desc))