diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-29 03:37:55 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-29 03:37:55 +0400 |
commit | 46b91bf16286104488c98b04208e8715a04f48b7 (patch) | |
tree | 0c8df8218285fcbd3dd7aac758b20cd2c7ad6f65 /source/blender/editors/screen | |
parent | a591a47c4337b62304a1d69b0e7de009bf3742bd (diff) |
UI:
* Added some properties of uiLayout that can be set. I've added
some API code for more than the two I've implementeds, so
ignore those for now.
* layout.active = False will gray out buttons inside a layout.
* layout.enabled = False will gray out and completely disable
the buttons inside a layout.
* Also some function renames.
Diffstat (limited to 'source/blender/editors/screen')
-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"); |