}
new_item = curs_new_menu_item(wid, str);
- if (glyphinfo)
- new_item->glyphinfo = *glyphinfo;
+ new_item->glyphinfo = *glyphinfo;
new_item->identifier = *identifier;
new_item->accelerator = accelerator;
new_item->group_accel = group_accel;
/* Add space for accelerator (selector letter) */
curentrywidth += 4;
#if 0 /* FIXME: menu glyphs */
- if (menu_item_ptr->glyph != NO_GLYPH && iflags.use_menu_glyphs)
+ if (menu_item_ptr->glyphinfo.glyph != NO_GLYPH
+ && iflags.use_menu_glyphs)
curentrywidth += 2;
#endif
}
stroffset = 4;
}
#if 0 /* FIXME: MENU GLYPHS */
- if (accelerator && glyph != NO_GLYPH && iflags.use_menu_glyphs) {
+ if (accelerator && iflags.use_menu_glyphs
+ && glyphinfo->glyph != NO_GLYPH ) {
int symbol;
attr_t glyphclr;