From 2bef8ca1b8e0e51f1e09216d2a42f7fc0b7d723a Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 4 Jul 2018 15:14:57 +0200 Subject: Cleanup: pass window to listeners, instead of screen + workspace. --- source/blender/editors/space_buttons/space_buttons.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/space_buttons') diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c index ba9045346c7..55ca3524a61 100644 --- a/source/blender/editors/space_buttons/space_buttons.c +++ b/source/blender/editors/space_buttons/space_buttons.c @@ -283,7 +283,7 @@ static void buttons_main_region_layout(const bContext *C, ARegion *ar) } static void buttons_main_region_listener( - bScreen *UNUSED(sc), ScrArea *UNUSED(sa), ARegion *ar, wmNotifier *wmn, + wmWindow *UNUSED(win), ScrArea *UNUSED(sa), ARegion *ar, wmNotifier *wmn, const Scene *UNUSED(scene)) { /* context changes */ @@ -361,8 +361,7 @@ static void buttons_area_redraw(ScrArea *sa, short buttons) /* reused! */ static void buttons_area_listener( - bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *wmn, Scene *UNUSED(scene), - WorkSpace *UNUSED(workspace)) + wmWindow *UNUSED(win), ScrArea *sa, wmNotifier *wmn, Scene *UNUSED(scene)) { SpaceButs *sbuts = sa->spacedata.first; -- cgit v1.2.3