Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/space_file.c
| Show First 20 Lines • Show All 286 Lines • ▼ Show 20 Lines | if (sa && BKE_area_find_region_type(sa, RGN_TYPE_TOOLS) == NULL) { | ||||
| /* Create TOOLS/TOOL_PROPS regions. */ | /* Create TOOLS/TOOL_PROPS regions. */ | ||||
| file_tools_region(sa); | file_tools_region(sa); | ||||
| ED_area_initialize(wm, CTX_wm_window(C), sa); | ED_area_initialize(wm, CTX_wm_window(C), sa); | ||||
| ED_area_tag_redraw(sa); | ED_area_tag_redraw(sa); | ||||
| } | } | ||||
| } | } | ||||
| static void file_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *wmn, const Scene *UNUSED(scene)) | static void file_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *wmn, const Scene *UNUSED(scene), | ||||
| const WorkSpace *UNUSED(workspace)) | |||||
| { | { | ||||
| SpaceFile *sfile = (SpaceFile *)sa->spacedata.first; | SpaceFile *sfile = (SpaceFile *)sa->spacedata.first; | ||||
| /* context changes */ | /* context changes */ | ||||
| switch (wmn->category) { | switch (wmn->category) { | ||||
| case NC_SPACE: | case NC_SPACE: | ||||
| switch (wmn->data) { | switch (wmn->data) { | ||||
| case ND_SPACE_FILE_LIST: | case ND_SPACE_FILE_LIST: | ||||
| ▲ Show 20 Lines • Show All 514 Lines • Show Last 20 Lines | |||||