Beispiel #1
0
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);
}
Beispiel #2
0
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);
}