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>2011-01-17 23:10:18 +0300
committerAndrea Weikert <elubie@gmx.net>2011-01-17 23:10:18 +0300
commitf6d73fdfeebdf97bc956a4297b720e0ad7a3264e (patch)
tree573a8f25ecd4b6ba30e522366751c25755a142c7 /source/blender
parent0b1e5170526a802ba68773e6807480d8fa1650ce (diff)
== file browser ==
bring back nice shortening of filenames in thumbnail view, shortening at front and end is confusing. - adds ... at the end to indicate that the filename has been shortened - also cuts off at the end and not at both front and end now Note: maybe this can be moved into button code or so in the future, but for now should work.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_file/file_draw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index 98547dbe798..e9e036a65cb 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -302,7 +302,8 @@ static void file_draw_string(int sx, int sy, const char* string, float width, in
fs.align = align;
BLI_strncpy(fname,string, FILE_MAXFILE);
-
+ file_shorten_string(fname, width+1.0, 0);
+
/* no text clipping needed, uiStyleFontDraw does it but is a bit too strict (for buttons it works) */
rect.xmin = sx;
rect.xmax = sx + ceil(width+4.0f);