diff options
Diffstat (limited to 'source/blender/editors/screen/screen_ops.c')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 1a1a8bd8f9c..be952558b6c 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -1977,7 +1977,7 @@ static void testfunc(bContext *C, void *argv, int arg) static void newlevel1(bContext *C, uiLayout *layout, void *arg) { - uiLayoutFunc(layout, testfunc, NULL); + uiLayoutSetFunc(layout, testfunc, NULL); uiItemV(layout, "First", ICON_PROP_ON, 1); uiItemV(layout, "Second", ICON_PROP_CON, 2); @@ -1990,7 +1990,7 @@ static int testing123(bContext *C, wmOperator *op, wmEvent *event) uiPopupMenu *pup= uiPupMenuBegin(C, "Hello world", 0); uiLayout *layout= uiPupMenuLayout(pup); - uiLayoutContext(layout, WM_OP_EXEC_DEFAULT); + uiLayoutSetOperatorContext(layout, WM_OP_EXEC_DEFAULT); uiItemO(layout, NULL, ICON_PROP_ON, "SCREEN_OT_region_flip"); uiItemO(layout, NULL, ICON_PROP_CON, "SCREEN_OT_screen_full_area"); uiItemO(layout, NULL, ICON_SMOOTHCURVE, "SCREEN_OT_region_foursplit"); |