diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-11-02 17:10:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-11-02 17:10:03 +0300 |
commit | 25f2abf314d02df0896e7678a31434d7b895b3d9 (patch) | |
tree | b10de6626684148af215d1fa748e727e79f15c9a /source/blender | |
parent | 9ece0ee5fe27ab83faacec7ec56824884088bbc2 (diff) |
Cleanup: minor comment correction
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 7 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 1482937d6a0..b0842c3acb8 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -155,7 +155,7 @@ enum { /* but->flag - general state flags. */ enum { - /* warning, the first 5 flags are internal */ + /* warning, the first 6 flags are internal */ UI_BUT_ICON_SUBMENU = (1 << 6), UI_BUT_ICON_PREVIEW = (1 << 7), @@ -201,12 +201,15 @@ enum { UI_BUT_TEXT_RIGHT = (1 << 3), /* Prevent the button to show any tooltip. */ UI_BUT_NO_TOOLTIP = (1 << 4), - /* button align flag, for drawing groups together (also used in uiBlock->flag!) */ + + /* Button align flag, for drawing groups together. + * Used in 'uiBlock.flag', take care! */ UI_BUT_ALIGN_TOP = (1 << 14), UI_BUT_ALIGN_LEFT = (1 << 15), UI_BUT_ALIGN_RIGHT = (1 << 16), UI_BUT_ALIGN_DOWN = (1 << 17), UI_BUT_ALIGN = (UI_BUT_ALIGN_TOP | UI_BUT_ALIGN_LEFT | UI_BUT_ALIGN_RIGHT | UI_BUT_ALIGN_DOWN), + /* end bits shared with 'uiBlock.flag' */ /* Warning - HACK! Needed for buttons which are not TOP/LEFT aligned, but have some top/left corner stitched to some * other TOP/LEFT-aligned button, because of 'corrective' hack in widget_roundbox_set()... */ diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 78090c67770..692d5811831 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -69,11 +69,11 @@ #define UI_BUT_FLAGS_PUBLIC \ (UI_SELECT | UI_SCROLLED | UI_ACTIVE | UI_HAS_ICON | UI_HIDDEN | UI_SELECT_DRAW) -/* Don't overlap w/ UI_BUT_FLAGS_PUBLIC buts. */ +/* Don't overlap w/ UI_BUT_FLAGS_PUBLIC bits. */ enum { /* Show that holding the button opens a menu. */ UI_STATE_HOLD_ACTION = (1 << 6), - UI_STATE_TEXT_INPUT = (1 << 7), + UI_STATE_TEXT_INPUT = (1 << 7), }; |