diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-03 20:50:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-03 20:55:01 +0300 |
commit | 9e5002adedf4e701a4761c4d7f2754dcdcbb4067 (patch) | |
tree | f4bb9afd1a3943629c8f0d5d3202a6b7c234f99b /source/blender/editors/include/UI_interface.h | |
parent | 16878072a499d1b328e8f2eb968e5fd4829d996b (diff) |
UI: optional ui-unit-width for popovers
Some popovers don't fit well with the default width,
allow panels to adjust as needed.
Diffstat (limited to 'source/blender/editors/include/UI_interface.h')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 1ab1c5227ea..8a758d01809 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -446,7 +446,7 @@ int UI_popover_panel_invoke( struct bContext *C, int space_id, int region_id, const char *idname, bool keep_open, struct ReportList *reports); -uiPopover *UI_popover_begin(struct bContext *C) ATTR_NONNULL(1); +uiPopover *UI_popover_begin(struct bContext *C, int menu_width) ATTR_NONNULL(1); void UI_popover_end(struct bContext *C, struct uiPopover *head, struct wmKeyMap *keymap); struct uiLayout *UI_popover_layout(uiPopover *head); void UI_popover_once_clear(uiPopover *pup); |