diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-16 17:24:16 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-16 17:49:04 +0300 |
commit | 145f851731655910f653763f4122288bc12c5629 (patch) | |
tree | c4950da91f1615731ed26131d35477174ebeb1d0 /source/blender/editors/interface/interface_templates.c | |
parent | 42cee6ab213406814aae62ff28845559fbd5f4f1 (diff) |
UI: click on status bar report message now opens window with Info editor
Patch by Valentin (Poulpator)
Differential Revision: https://developer.blender.org/D5468
Diffstat (limited to 'source/blender/editors/interface/interface_templates.c')
-rw-r--r-- | source/blender/editors/interface/interface_templates.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index 37eb1770f68..0cd048323f1 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -6392,22 +6392,17 @@ void uiTemplateReportsBanner(uiLayout *layout, bContext *C) block, UI_BTYPE_LABEL, 0, icon, 2, 0, UI_UNIT_X, UI_UNIT_Y, NULL, 0.0f, 0.0f, 0, 0, ""); } - UI_block_emboss_set(block, UI_EMBOSS); - - uiDefBut(block, - UI_BTYPE_LABEL, - 0, + but = uiDefButO(block, + UI_BTYPE_BUT, + "SCREEN_OT_info_log_show", + WM_OP_INVOKE_REGION_WIN, report->message, UI_UNIT_X + 5, 0, UI_UNIT_X + width, UI_UNIT_Y, - NULL, - 0.0f, - 0.0f, - 0, - 0, - ""); + "Show in Info Log"); + rgba_float_to_uchar(but->col, rti->col); } void uiTemplateInputStatus(uiLayout *layout, struct bContext *C) |