Mercurial > mplayer.hg
diff gui/app/gui.h @ 36861:bade5683ca70
Fix bug with btnModify().
Don't change a button's pressed state with this function.
Only change an item's value.
Additionally, update documentation and change variable name.
author | ib |
---|---|
date | Fri, 28 Feb 2014 14:38:45 +0000 |
parents | bb067298265a |
children | 6104326789e6 |
line wrap: on
line diff
--- a/gui/app/gui.h Fri Feb 28 14:30:20 2014 +0000 +++ b/gui/app/gui.h Fri Feb 28 14:38:45 2014 +0000 @@ -54,4 +54,7 @@ /// Check whether #guiItem @a item has a button (and thus a pressed state). #define hasButton(item) (item.type == itButton || item.type == itHPotmeter || item.type == itVPotmeter) +/// Check whether #guiItem @a item utilizes member 'value' +#define hasValue(item) (item.type == itHPotmeter || item.type == itVPotmeter || item.type == itPotmeter) + #endif /* MPLAYER_GUI_GUI_H */