static void rna_uiItemM(uiLayout *layout, bContext *C, const char *menuname, const char *name, const char *text_ctxt, int translate, int icon) { /* Get translated name (label). */ name = rna_translate_ui_text(name, text_ctxt, NULL, NULL, translate); uiItemM(layout, C, menuname, name, icon); }
static void rna_uiItemM( uiLayout *layout, const char *menuname, const char *name, const char *text_ctxt, bool translate, int icon, int icon_value) { /* Get translated name (label). */ name = rna_translate_ui_text(name, text_ctxt, NULL, NULL, translate); if (icon_value && !icon) { icon = icon_value; } uiItemM(layout, menuname, name, icon); }