diff options
author | Ton Roosendaal <ton@blender.org> | 2009-01-04 22:17:34 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-01-04 22:17:34 +0300 |
commit | df6caaed1ebe6076893853a2573a747a28028f22 (patch) | |
tree | 9265ca8805a03e9d27e6afe1dc4a8df23e2f6632 /source/blender/blenkernel/BKE_screen.h | |
parent | 49631b6e409d458d7023b8d8ceff5de58a7597e8 (diff) |
2.5
Small cleanup in region-based cursor handling.
- callback was in spacetype, now in regiontype
- made screen listener catch ND_MODE notifier and
call the active region cursor callback, if it's there.
Diffstat (limited to 'source/blender/blenkernel/BKE_screen.h')
-rw-r--r-- | source/blender/blenkernel/BKE_screen.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/BKE_screen.h b/source/blender/blenkernel/BKE_screen.h index ab91612defe..04b27f7bf3c 100644 --- a/source/blender/blenkernel/BKE_screen.h +++ b/source/blender/blenkernel/BKE_screen.h @@ -75,8 +75,6 @@ typedef struct SpaceType { void (*operatortypes)(void); /* add default items to WM keymap */ void (*keymap)(struct wmWindowManager *); - /* sets default cursor per region */ - void (*cursor)(struct wmWindow *win, struct ARegion *ar); /* return context data */ int (*context)(const struct bContext *, const void *, struct bContextDataResult *); @@ -111,7 +109,9 @@ typedef struct ARegionType { void (*operatortypes)(void); /* add own items to keymap */ void (*keymap)(struct wmWindowManager *); - + /* allows default cursor per region */ + void (*cursor)(struct wmWindow *, struct ScrArea *, struct ARegion *ar); + /* return context data */ int (*context)(const struct bContext *, const void *, struct bContextDataResult *); |