diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-02-15 19:08:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-02-15 19:08:41 +0300 |
commit | 11c926b57501d37dd7ac5fe1a313d598912962ca (patch) | |
tree | c048fe4d0b8f79e4811514ad3ffbee1aa92a711e /source/blender/src/interface.c | |
parent | 5e9457b5e2450a6d45393b88454ac51710d12cf5 (diff) |
Python api addition PupTreeMenu() - for apricot
Diffstat (limited to 'source/blender/src/interface.c')
-rw-r--r-- | source/blender/src/interface.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index a17e488ef13..daff1a29011 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -637,7 +637,7 @@ void uiBoundsBlock(uiBlock *block, int addval) if(bt->x1 < block->minx) block->minx= bt->x1; if(bt->y1 < block->miny) block->miny= bt->y1; - if(bt->x2 > block->maxx) block->maxx= bt->x2; + if(bt->x2 > block->maxx) block->maxx= bt->x2; if(bt->y2 > block->maxy) block->maxy= bt->y2; bt= bt->next; @@ -2693,6 +2693,8 @@ static int ui_do_but_BUTM(uiBut *but) UIafterfunc_arg1= but->butm_func_arg; UIafterval= but->a2; + uibut_do_func(but); + return but->retval; } @@ -6277,7 +6279,7 @@ int uiButGetRetVal(uiBut *but) return but->retval; } - +/* Call this function BEFORE adding buttons to the block */ void uiBlockSetButmFunc(uiBlock *block, void (*menufunc)(void *arg, int event), void *arg) { block->butm_func= menufunc; |