diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-07-30 03:12:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-07-30 03:12:30 +0400 |
commit | 239b78c6377c41ba49e36a1dbd3cede6a3347f64 (patch) | |
tree | de928373585b2e0c4bf07938413ea3cb0749b99d /source/blender/editors/space_file/file_draw.c | |
parent | 408ba429e6aa392f769aac4a442a7a06c1740326 (diff) |
- include operator commands in tooltips (needs sanitizing for transform operators, there are massive :|)
- WM_operator_pystring can now be used with an operator type and properties (rather then a wmOperator instance)
- removed menus from file selector
Diffstat (limited to 'source/blender/editors/space_file/file_draw.c')
-rw-r--r-- | source/blender/editors/space_file/file_draw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index e807bad28bf..933b9cc69ad 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -81,6 +81,7 @@ /* ui geometry */ #define IMASEL_BUTTONS_HEIGHT 40 +#define IMASEL_BUTTONS_MARGIN 6 #define TILE_BORDER_X 8 #define TILE_BORDER_Y 8 @@ -134,8 +135,8 @@ void file_draw_buttons(const bContext *C, ARegion *ar) /* Button layout. */ const short min_x = 10; const short max_x = ar->winx - 10; - const short line2_y = ar->winy - IMASEL_BUTTONS_HEIGHT - 12; - const short line1_y = line2_y + IMASEL_BUTTONS_HEIGHT/2 + 4; + const short line2_y = IMASEL_BUTTONS_HEIGHT/2 + IMASEL_BUTTONS_MARGIN*2; + const short line1_y = IMASEL_BUTTONS_MARGIN; const short input_minw = 20; const short btn_h = UI_UNIT_Y; const short btn_fn_w = UI_UNIT_X; |