Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_text/space_text.c
| Show First 20 Lines • Show All 528 Lines • ▼ Show 20 Lines | |||||
| static void text_properties_area_draw(const bContext *C, ARegion *ar) | static void text_properties_area_draw(const bContext *C, ARegion *ar) | ||||
| { | { | ||||
| SpaceText *st = CTX_wm_space_text(C); | SpaceText *st = CTX_wm_space_text(C); | ||||
| ED_region_panels(C, ar, 1, NULL, -1); | ED_region_panels(C, ar, 1, NULL, -1); | ||||
| /* this flag trick is make sure buttons have been added already */ | /* this flag trick is make sure buttons have been added already */ | ||||
| if (st->flags & ST_FIND_ACTIVATE) { | if (st->flags & ST_FIND_ACTIVATE) { | ||||
| if (UI_textbutton_activate_event(C, ar, st, "find_text")) { | if (UI_textbutton_activate_rna(C, ar, st, "find_text")) { | ||||
| /* if the panel was already open we need to do another redraw */ | /* if the panel was already open we need to do another redraw */ | ||||
| ScrArea *sa = CTX_wm_area(C); | ScrArea *sa = CTX_wm_area(C); | ||||
| WM_event_add_notifier(C, NC_SPACE | ND_SPACE_TEXT, sa); | WM_event_add_notifier(C, NC_SPACE | ND_SPACE_TEXT, sa); | ||||
| } | } | ||||
| st->flags &= ~ST_FIND_ACTIVATE; | st->flags &= ~ST_FIND_ACTIVATE; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines | |||||