Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2009-07-12 12:12:22 +0400
committerAndrea Weikert <elubie@gmx.net>2009-07-12 12:12:22 +0400
commit2940384d9a8e3601e2ceefbf0487ce781a3b10f7 (patch)
tree2c46319928fa30251dfc32ebc9f82d3f1345b897 /source/blender/editors/space_file/file_draw.c
parentba1082444efae1085bd01f240958bc9fceb826a5 (diff)
2.5 file browser
* bugfix: adding back adding the region on read of old files * tweak: buttons for increment/decrement file number now have icons and size adjusted to UI_UNIT_X/UI_UNIT_Y
Diffstat (limited to 'source/blender/editors/space_file/file_draw.c')
-rw-r--r--source/blender/editors/space_file/file_draw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index f1f20a36b59..e107bcecb3b 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -137,8 +137,8 @@ void file_draw_buttons(const bContext *C, ARegion *ar)
const short line2_y = ar->winy - IMASEL_BUTTONS_HEIGHT - 12;
const short line1_y = line2_y + IMASEL_BUTTONS_HEIGHT/2 + 4;
const short input_minw = 20;
- const short btn_h = 21;
- const short btn_fn_w = 14;
+ const short btn_h = UI_UNIT_Y;
+ const short btn_fn_w = UI_UNIT_X;
const short btn_minw = 80;
const short btn_margin = 20;
const short separator = 4;
@@ -200,13 +200,13 @@ void file_draw_buttons(const bContext *C, ARegion *ar)
/* Filename number increment / decrement buttons. */
if (fnumbuttons) {
uiBlockBeginAlign(block);
- but = uiDefButO(block, BUT, "FILE_OT_filenum", 0, "-",
+ but = uiDefIconButO(block, BUT, "FILE_OT_filenum", 0, ICON_ZOOMOUT,
min_x + line2_w + separator, line2_y,
btn_fn_w, btn_h,
"Decrement the filename number.");
RNA_int_set(uiButGetOperatorPtrRNA(but), "increment", -1);
- but = uiDefButO(block, BUT, "FILE_OT_filenum", 0, "+",
+ but = uiDefIconButO(block, BUT, "FILE_OT_filenum", 0, ICON_ZOOMIN,
min_x + line2_w + separator + btn_fn_w, line2_y,
btn_fn_w, btn_h,
"Increment the filename number.");