From df02675e21736bd79acb0e34bb410efe748a86bc Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 26 Jun 2018 17:19:25 +0200 Subject: UI: move modal operator text from headers to status bar. Python API is context.workspace.status_text_set() --- source/blender/editors/uvedit/uvedit_smart_stitch.c | 4 ++-- source/blender/editors/uvedit/uvedit_unwrap_ops.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/uvedit') diff --git a/source/blender/editors/uvedit/uvedit_smart_stitch.c b/source/blender/editors/uvedit/uvedit_smart_stitch.c index f39498b08f3..bac30830516 100644 --- a/source/blender/editors/uvedit/uvedit_smart_stitch.c +++ b/source/blender/editors/uvedit/uvedit_smart_stitch.c @@ -291,7 +291,7 @@ static void stitch_update_header(StitchState *state, bContext *C) state->limit_dist, WM_bool_as_string(state->use_limit)); - ED_area_headerprint(sa, msg); + ED_workspace_status_text(C, msg); } } @@ -2089,7 +2089,7 @@ static void stitch_exit(bContext *C, wmOperator *op, int finished) } if (sa) - ED_area_headerprint(sa, NULL); + ED_workspace_status_text(C, NULL); ED_region_draw_cb_exit(CTX_wm_region(C)->type, state->draw_handle); diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c index 5f60a5a714a..2c54cc3b456 100644 --- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c +++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c @@ -658,7 +658,7 @@ static void minimize_stretch_iteration(bContext *C, wmOperator *op, bool interac if (sa) { BLI_snprintf(str, sizeof(str), IFACE_("Minimize Stretch. Blend %.2f (Press + and -, or scroll wheel to set)"), ms->blend); - ED_area_headerprint(sa, str); + ED_workspace_status_text(C, str); } ms->lasttime = PIL_check_seconds_timer(); @@ -674,7 +674,7 @@ static void minimize_stretch_exit(bContext *C, wmOperator *op, bool cancel) ScrArea *sa = CTX_wm_area(C); if (sa) - ED_area_headerprint(sa, NULL); + ED_workspace_status_text(C, NULL); if (ms->timer) WM_event_remove_timer(CTX_wm_manager(C), CTX_wm_window(C), ms->timer); -- cgit v1.2.3