diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-04 16:14:57 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-04 19:40:33 +0300 |
commit | 2bef8ca1b8e0e51f1e09216d2a42f7fc0b7d723a (patch) | |
tree | 0ab791a7f2d371c9f203a82d78538ce16203e90f /source/blender/editors/space_buttons | |
parent | 5a1aa5b935f036a0493badae8cb835d13265a5e1 (diff) |
Cleanup: pass window to listeners, instead of screen + workspace.
Diffstat (limited to 'source/blender/editors/space_buttons')
-rw-r--r-- | source/blender/editors/space_buttons/space_buttons.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |