diff options
author | Lajos Koszti <ajnasz@ajnasz.hu> | 2017-08-16 09:42:37 (GMT) |
---|---|---|
committer | Lajos Koszti <ajnasz@ajnasz.hu> | 2017-11-19 19:15:10 (GMT) |
commit | 6e8bf37cc84642815113dcc88fea9fe8c1b8aebc (patch) | |
tree | 455181145cafdca752edb3b495d0b142eae8e328 /src/ButtonTool.hh | |
parent | 7cb7bfaa448003466315ccc21d08b71f5c77df70 (diff) | |
download | fluxbox-6e8bf37cc84642815113dcc88fea9fe8c1b8aebc.zip fluxbox-6e8bf37cc84642815113dcc88fea9fe8c1b8aebc.tar.bz2 |
Rotate toolbar button on rotated toolbar
In 393ba45f91480bb10f510248837c6051b7ff6a03 added the possibility to
add custom buttons to the toolbar. However, if the toolbar is rotated
the buttons stays horizontal.
Update the button to rotate the text and update the width/height of the
button if rotated
Diffstat (limited to 'src/ButtonTool.hh')
-rw-r--r-- | src/ButtonTool.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ButtonTool.hh b/src/ButtonTool.hh index ec74618..e5e5026 100644 --- a/src/ButtonTool.hh +++ b/src/ButtonTool.hh | |||
@@ -39,6 +39,7 @@ public: | |||
39 | FbTk::ThemeProxy<ButtonTheme> &theme, | 39 | FbTk::ThemeProxy<ButtonTheme> &theme, |
40 | FbTk::ImageControl &img_ctrl); | 40 | FbTk::ImageControl &img_ctrl); |
41 | virtual ~ButtonTool(); | 41 | virtual ~ButtonTool(); |
42 | void setOrientation(FbTk::Orientation orient); | ||
42 | 43 | ||
43 | protected: | 44 | protected: |
44 | void renderTheme(int alpha); | 45 | void renderTheme(int alpha); |