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>2009-01-04 22:17:34 +0300
committerTon Roosendaal <ton@blender.org>2009-01-04 22:17:34 +0300
commitdf6caaed1ebe6076893853a2573a747a28028f22 (patch)
tree9265ca8805a03e9d27e6afe1dc4a8df23e2f6632 /source/blender/editors/space_text
parent49631b6e409d458d7023b8d8ceff5de58a7597e8 (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/editors/space_text')
-rw-r--r--source/blender/editors/space_text/space_text.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/editors/space_text/space_text.c b/source/blender/editors/space_text/space_text.c
index 14caafe722e..4187bd13cb1 100644
--- a/source/blender/editors/space_text/space_text.c
+++ b/source/blender/editors/space_text/space_text.c
@@ -157,12 +157,9 @@ static void text_operatortypes(void)
}
-static void text_cursor(wmWindow *win, ARegion *ar)
+static void text_cursor(wmWindow *win, ScrArea *sa, ARegion *ar)
{
- if(ar->regiontype==RGN_TYPE_WINDOW)
- WM_cursor_set(win, BC_TEXTEDITCURSOR);
- else
- WM_cursor_set(win, CURSOR_STD);
+ WM_cursor_set(win, BC_TEXTEDITCURSOR);
}
static void text_keymap(struct wmWindowManager *wm)
@@ -216,7 +213,6 @@ void ED_spacetype_text(void)
st->init= text_init;
st->duplicate= text_duplicate;
st->operatortypes= text_operatortypes;
- st->cursor= text_cursor;
st->keymap= text_keymap;
/* regions: main window */
@@ -226,6 +222,7 @@ void ED_spacetype_text(void)
art->draw= text_main_area_draw;
art->listener= text_main_area_listener;
art->keymapflag= ED_KEYMAP_VIEW2D;
+ art->cursor= text_cursor;
BLI_addhead(&st->regiontypes, art);