diff options
author | Matteo Galiazzo <matteo@maltesenarrazioni.it> | 2008-05-05 12:05:52 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-05-05 12:05:52 (GMT) |
commit | 4a3be045b28edac4953be9f195640654f8b5a1a1 (patch) | |
tree | 4b2e6466b54a5fb4bb6406ff9cf38c420be032df /src/FbTk/TextButton.hh | |
parent | ba604ac821b7c1c89d10b0e8c9f85fde948856ef (diff) | |
download | fluxbox-4a3be045b28edac4953be9f195640654f8b5a1a1.zip fluxbox-4a3be045b28edac4953be9f195640654f8b5a1a1.tar.bz2 |
add tooltips for iconbar buttons when title is too long to fit
Diffstat (limited to 'src/FbTk/TextButton.hh')
-rw-r--r-- | src/FbTk/TextButton.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/FbTk/TextButton.hh b/src/FbTk/TextButton.hh index eb48e61..22cda82 100644 --- a/src/FbTk/TextButton.hh +++ b/src/FbTk/TextButton.hh | |||
@@ -80,6 +80,8 @@ public: | |||
80 | 80 | ||
81 | protected: | 81 | protected: |
82 | virtual void drawText(int x_offset, int y_offset, FbDrawable *drawable_override); | 82 | virtual void drawText(int x_offset, int y_offset, FbDrawable *drawable_override); |
83 | // return true if the text will be truncated | ||
84 | bool textExceeds(int x_offset); | ||
83 | 85 | ||
84 | private: | 86 | private: |
85 | FbTk::Font *m_font; | 87 | FbTk::Font *m_font; |