Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/filesel.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| for (int i = 0; i < ATTRIBUTE_COLUMN_MAX; i++) { | for (int i = 0; i < ATTRIBUTE_COLUMN_MAX; i++) { | ||||
| layout->attribute_columns[i].width = 0; | layout->attribute_columns[i].width = 0; | ||||
| } | } | ||||
| /* Biggest possible reasonable values... */ | /* Biggest possible reasonable values... */ | ||||
| columns[COLUMN_DATETIME].width = file_string_width(small_size ? "23/08/89" : | columns[COLUMN_DATETIME].width = file_string_width(small_size ? "23/08/89" : | ||||
| "23 Dec 6789, 23:59") + | "23 Dec 6789, 23:59") + | ||||
| pad; | pad; | ||||
| columns[COLUMN_SIZE].width = file_string_width(small_size ? "98.7 M" : "098.7 MB") + pad; | columns[COLUMN_SIZE].width = file_string_width(small_size ? "98.7 M" : "098.7 MiB") + pad; | ||||
| if (params->display == FILE_IMGDISPLAY) { | if (params->display == FILE_IMGDISPLAY) { | ||||
| columns[COLUMN_NAME].width = ((float)params->thumbnail_size / 8.0f) * UI_UNIT_X; | columns[COLUMN_NAME].width = ((float)params->thumbnail_size / 8.0f) * UI_UNIT_X; | ||||
| } | } | ||||
| /* Name column uses remaining width */ | /* Name column uses remaining width */ | ||||
| else { | else { | ||||
| int remwidth = layout->tile_w; | int remwidth = layout->tile_w; | ||||
| for (FileAttributeColumnType column_type = ATTRIBUTE_COLUMN_MAX - 1; column_type >= 0; | for (FileAttributeColumnType column_type = ATTRIBUTE_COLUMN_MAX - 1; column_type >= 0; | ||||
| column_type--) { | column_type--) { | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||