diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2018-10-31 02:41:03 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2018-10-31 02:52:07 +0300 |
commit | fe07839d01b12456523fda4a4fff6f46c6c16157 (patch) | |
tree | f650f73dec05183cb2dbbcc85235f1737cea652d /source/blender/editors/space_buttons/buttons_ops.c | |
parent | 0bc427f5c359f081ccd97a7266566c243b910919 (diff) |
UI: Right-click menu entry to flip properties Tab Bar left/right
Diffstat (limited to 'source/blender/editors/space_buttons/buttons_ops.c')
-rw-r--r-- | source/blender/editors/space_buttons/buttons_ops.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_buttons/buttons_ops.c b/source/blender/editors/space_buttons/buttons_ops.c index fb2907983c8..473deb35aac 100644 --- a/source/blender/editors/space_buttons/buttons_ops.c +++ b/source/blender/editors/space_buttons/buttons_ops.c @@ -64,9 +64,15 @@ static int context_menu_invoke(bContext *C, wmOperator *UNUSED(op), const wmEvent *UNUSED(event)) { + const ARegion *ar = CTX_wm_region(C); uiPopupMenu *pup = UI_popup_menu_begin(C, IFACE_("Context Menu"), ICON_NONE); uiLayout *layout = UI_popup_menu_layout(pup); + uiItemM(layout, "INFO_MT_area", NULL, ICON_NONE); + if (ar->regiontype == RGN_TYPE_NAV_BAR) { + ED_screens_navigation_bar_tools_menu_create(C, layout, NULL); + } + UI_popup_menu_end(C, pup); return OPERATOR_INTERFACE; |