Cleanup: rename function for removing handlers, use typed area argument
This commit is contained in:
@@ -1377,7 +1377,7 @@ void screen_change_prepare(
|
||||
|
||||
/* remove handlers referencing areas in old screen */
|
||||
LISTBASE_FOREACH (ScrArea *, area, &screen_old->areabase) {
|
||||
WM_event_remove_area_handler(&win->modalhandlers, area);
|
||||
WM_event_remove_handlers_by_area(&win->modalhandlers, area);
|
||||
}
|
||||
|
||||
/* we put timer to sleep, so screen_exit has to think there's no timer */
|
||||
|
||||
@@ -689,7 +689,7 @@ void WM_event_remove_ui_handler(ListBase *handlers,
|
||||
wmUIHandlerRemoveFunc remove_fn,
|
||||
void *user_data,
|
||||
bool postpone);
|
||||
void WM_event_remove_area_handler(ListBase *handlers, void *area);
|
||||
void WM_event_remove_handlers_by_area(ListBase *handlers, const ScrArea *area);
|
||||
void WM_event_free_ui_handler_all(bContext *C,
|
||||
ListBase *handlers,
|
||||
wmUIHandlerFunc handle_fn,
|
||||
|
||||
@@ -5154,7 +5154,7 @@ wmEventHandler_Dropbox *WM_event_add_dropbox_handler(ListBase *handlers, ListBas
|
||||
return handler;
|
||||
}
|
||||
|
||||
void WM_event_remove_area_handler(ListBase *handlers, void *area)
|
||||
void WM_event_remove_handlers_by_area(ListBase *handlers, const ScrArea *area)
|
||||
{
|
||||
/* XXX(@ton): solution works, still better check the real cause. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user