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:
authorCampbell Barton <ideasman42@gmail.com>2013-03-26 01:31:24 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-26 01:31:24 +0400
commit8f8613df9022e7c331f81486d21d7d2c4199acf5 (patch)
tree0a87ec4f06ba4934b8cc0ceaaabfd31f8026a47e /source/blender/editors/space_text/space_text.c
parentc347b4878434fed66bcb9323d65d6c29212beb8f (diff)
fix for missing redraw in own commit r55554 (Ctrl+F text editor find).
since an event wasn't added to the queue no redraws we're done when the panel was already open, instead use a notifier.
Diffstat (limited to 'source/blender/editors/space_text/space_text.c')
-rw-r--r--source/blender/editors/space_text/space_text.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/space_text/space_text.c b/source/blender/editors/space_text/space_text.c
index 600cbdb326b..61cdddfc740 100644
--- a/source/blender/editors/space_text/space_text.c
+++ b/source/blender/editors/space_text/space_text.c
@@ -523,8 +523,11 @@ static void text_properties_area_draw(const bContext *C, ARegion *ar)
/* this flag trick is make sure buttons have been added already */
if (st->flags & ST_FIND_ACTIVATE) {
-
- UI_textbutton_activate_event(C, ar, st, "find_text");
+ if (UI_textbutton_activate_event(C, ar, st, "find_text")) {
+ /* if the panel was already open we need to do another redraw */
+ ScrArea *sa = CTX_wm_area(C);
+ WM_event_add_notifier(C, NC_SPACE | ND_SPACE_TEXT, sa);
+ }
st->flags &= ~ST_FIND_ACTIVATE;
}
}