diff options
author | Ton Roosendaal <ton@blender.org> | 2009-01-10 17:03:00 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-01-10 17:03:00 +0300 |
commit | a7932f745243e5cb0192ec6bbef58dcea34faf0f (patch) | |
tree | 73d976a3fe6dbdc4c5ce1cbd37306f7f969e289c /source/blender/editors/interface/interface_regions.c | |
parent | 9f0afbe804b4c10089e176f0a102d925b0f32407 (diff) |
2.5
Popup menus were tagged with wrong direction, so arrow keys or
scrollwheel didn't work.
Diffstat (limited to 'source/blender/editors/interface/interface_regions.c')
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index 7361e17079a..16641973b02 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -672,7 +672,6 @@ uiMenuBlockHandle *ui_menu_block_create(bContext *C, ARegion *butregion, uiBut * saferct= MEM_callocN(sizeof(uiSafetyRct), "uiSafetyRct"); saferct->safety= block->safety; BLI_addhead(&block->saferct, saferct); - block->direction= UI_TOP; } /* the block and buttons were positioned in window space as in 2.4x, now @@ -1340,6 +1339,7 @@ uiBlock *ui_block_func_PUPMENU(bContext *C, uiMenuBlockHandle *handle, void *arg block= uiBeginBlock(C, handle->region, "menu", UI_EMBOSSP, UI_HELV); uiBlockSetFlag(block, UI_BLOCK_LOOP|UI_BLOCK_REDRAW|UI_BLOCK_RET_1|UI_BLOCK_NUMSELECT); block->themecol= TH_MENU_ITEM; + block->direction= UI_DOWN; md= decompose_menu_string(info->instr); @@ -1503,6 +1503,7 @@ uiBlock *ui_block_func_PUPMENUCOL(bContext *C, uiMenuBlockHandle *handle, void * block= uiBeginBlock(C, handle->region, "menu", UI_EMBOSSP, UI_HELV); uiBlockSetFlag(block, UI_BLOCK_LOOP|UI_BLOCK_REDRAW|UI_BLOCK_RET_1|UI_BLOCK_NUMSELECT); block->themecol= TH_MENU_ITEM; + block->direction= UI_DOWN; md= decompose_menu_string(info->instr); |