Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_console/space_console.c
| Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | static void console_header_region_init(wmWindowManager *UNUSED(wm), ARegion *region) | ||||
| ED_region_header_init(region); | ED_region_header_init(region); | ||||
| } | } | ||||
| static void console_header_region_draw(const bContext *C, ARegion *region) | static void console_header_region_draw(const bContext *C, ARegion *region) | ||||
| { | { | ||||
| ED_region_header(C, region); | ED_region_header(C, region); | ||||
| } | } | ||||
| static void console_main_region_listener(wmWindow *UNUSED(win), | static void console_main_region_listener(const wmRegionListenerParams *params) | ||||
| ScrArea *area, | |||||
| ARegion *region, | |||||
| wmNotifier *wmn, | |||||
| const Scene *UNUSED(scene)) | |||||
| { | { | ||||
| // SpaceInfo *sinfo = area->spacedata.first; | ScrArea *area = params->area; | ||||
| ARegion *region = params->region; | |||||
| wmNotifier *wmn = params->notifier; | |||||
| /* context changes */ | /* context changes */ | ||||
| switch (wmn->category) { | switch (wmn->category) { | ||||
| case NC_SPACE: { | case NC_SPACE: { | ||||
| if (wmn->data == ND_SPACE_CONSOLE) { | if (wmn->data == ND_SPACE_CONSOLE) { | ||||
| if (wmn->action == NA_EDITED) { | if (wmn->action == NA_EDITED) { | ||||
| if ((wmn->reference && area) && (wmn->reference == area->spacedata.first)) { | if ((wmn->reference && area) && (wmn->reference == area->spacedata.first)) { | ||||
| /* we've modified the geometry (font size), re-calculate rect */ | /* we've modified the geometry (font size), re-calculate rect */ | ||||
| ▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines | |||||