Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2008-12-27 19:09:56 +0300
committerTon Roosendaal <ton@blender.org>2008-12-27 19:09:56 +0300
commitf0f451fc16880315c8c094aaabd0fbf8a06ffede (patch)
treebfd93ce72af37a8c08898b745e09af08c36e4314 /source/blender/editors/screen/area.c
parent0714d28236e66b258de90bcbb8a1a821ee424a71 (diff)
2.5
Notifier system upgrade, based on Brecht's doc. Implementation notes: http://wiki.blender.org/index.php/BlenderDev/Blender2.5/DataNotifiers#Implementation In short: let's try to strictly communicate in a notifier what happened. The listeners then can act themselves. It also means that a frame-changed notifier doesn't send out redraws, the editors themselves can decide.
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r--source/blender/editors/screen/area.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 3c5c72cda5f..b63777cccf0 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -107,13 +107,12 @@ void ED_region_pixelspace(ARegion *ar)
void ED_region_do_listen(ARegion *ar, wmNotifier *note)
{
/* generic notes first */
- switch(note->type) {
- case WM_NOTE_WINDOW_REDRAW:
- case WM_NOTE_SCREEN_CHANGED:
+ switch(note->category) {
+ case NC_WINDOW:
ED_region_tag_redraw(ar);
break;
- case WM_NOTE_GESTURE_REDRAW:
- if(note->swinid==ar->swinid)
+ case NC_SCREEN:
+ if(note->action==NA_EDITED)
ED_region_tag_redraw(ar);
break;
default: