Cleanup: remove unused context arg to menu
This commit is contained in:
parent
a42fd3de5d
commit
bdc1108e8c
|
@ -1045,7 +1045,7 @@ void uiItemsFullEnumO_items(
|
|||
|
||||
void uiItemL(uiLayout *layout, const char *name, int icon); /* label */
|
||||
void uiItemLDrag(uiLayout *layout, struct PointerRNA *ptr, const char *name, int icon); /* label icon for dragging */
|
||||
void uiItemM(uiLayout *layout, struct bContext *C, const char *menuname, const char *name, int icon); /* menu */
|
||||
void uiItemM(uiLayout *layout, const char *menuname, const char *name, int icon); /* menu */
|
||||
void uiItemV(uiLayout *layout, const char *name, int icon, int argval); /* value */
|
||||
void uiItemS(uiLayout *layout); /* separator */
|
||||
|
||||
|
|
|
@ -1922,7 +1922,7 @@ static uiBut *ui_item_menu(
|
|||
return but;
|
||||
}
|
||||
|
||||
void uiItemM(uiLayout *layout, bContext *UNUSED(C), const char *menuname, const char *name, int icon)
|
||||
void uiItemM(uiLayout *layout, const char *menuname, const char *name, int icon)
|
||||
{
|
||||
MenuType *mt;
|
||||
|
||||
|
|
|
@ -3526,7 +3526,7 @@ void uiTemplateOperatorPropertyButs(
|
|||
uiLayoutGetBlock(layout)->ui_operator = op;
|
||||
|
||||
row = uiLayoutRow(layout, true);
|
||||
uiItemM(row, (bContext *)C, "WM_MT_operator_presets", NULL, ICON_NONE);
|
||||
uiItemM(row, "WM_MT_operator_presets", NULL, ICON_NONE);
|
||||
|
||||
wmOperatorType *ot = WM_operatortype_find("WM_OT_operator_preset_add", false);
|
||||
uiItemFullO_ptr(row, ot, "", ICON_ZOOMIN, NULL, WM_OP_INVOKE_DEFAULT, 0, &op_ptr);
|
||||
|
|
|
@ -262,7 +262,7 @@ static void rna_uiItemL(
|
|||
}
|
||||
|
||||
static void rna_uiItemM(
|
||||
uiLayout *layout, bContext *C, const char *menuname, const char *name, const char *text_ctxt,
|
||||
uiLayout *layout, const char *menuname, const char *name, const char *text_ctxt,
|
||||
int translate, int icon, int icon_value)
|
||||
{
|
||||
/* Get translated name (label). */
|
||||
|
@ -272,7 +272,7 @@ static void rna_uiItemM(
|
|||
icon = icon_value;
|
||||
}
|
||||
|
||||
uiItemM(layout, C, menuname, name, icon);
|
||||
uiItemM(layout, menuname, name, icon);
|
||||
}
|
||||
|
||||
static void rna_uiTemplateAnyID(
|
||||
|
@ -673,7 +673,6 @@ void RNA_api_ui_layout(StructRNA *srna)
|
|||
RNA_def_property_ui_text(parm, "Icon Value", "Override automatic icon of the item");
|
||||
|
||||
func = RNA_def_function(srna, "menu", "rna_uiItemM");
|
||||
RNA_def_function_flag(func, FUNC_USE_CONTEXT);
|
||||
parm = RNA_def_string(func, "menu", NULL, 0, "", "Identifier of the menu");
|
||||
api_ui_item_common(func);
|
||||
RNA_def_parameter_flags(parm, 0, PARM_REQUIRED);
|
||||
|
|
|
@ -1899,8 +1899,7 @@ static uiBlock *wm_block_create_splash(bContext *C, ARegion *ar, void *UNUSED(ar
|
|||
if (mt) {
|
||||
UI_menutype_draw(C, mt, layout);
|
||||
|
||||
// wmWindowManager *wm = CTX_wm_manager(C);
|
||||
// uiItemM(layout, C, "USERPREF_MT_keyconfigs", U.keyconfigstr, ICON_NONE);
|
||||
// uiItemM(layout, "USERPREF_MT_keyconfigs", U.keyconfigstr, ICON_NONE);
|
||||
}
|
||||
|
||||
UI_block_emboss_set(block, UI_EMBOSS_PULLDOWN);
|
||||
|
|
|
@ -591,7 +591,7 @@ void uiItemIntO(uiLayout *layout, const char *name, int icon, const char *opname
|
|||
void uiItemFloatO(uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, float value) RET_NONE
|
||||
void uiItemStringO(uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, const char *value) RET_NONE
|
||||
void uiItemL(struct uiLayout *layout, const char *name, int icon) RET_NONE
|
||||
void uiItemM(uiLayout *layout, struct bContext *C, const char *menuname, const char *name, int icon) RET_NONE
|
||||
void uiItemM(uiLayout *layout, const char *menuname, const char *name, int icon) RET_NONE
|
||||
void uiItemS(struct uiLayout *layout) RET_NONE
|
||||
void uiItemFullR(uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, int value, int flag, const char *name, int icon) RET_NONE
|
||||
void uiLayoutSetContextPointer(uiLayout *layout, const char *name, struct PointerRNA *ptr) RET_NONE
|
||||
|
|
Loading…
Reference in New Issue