diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-07-24 14:40:03 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2016-08-26 05:33:44 (GMT) |
commit | 3bde5c8aee16f7f33e3ce7b9058fded916fe2369 (patch) | |
tree | 8c7791003a4c0196c7261db68a07313a9740bf1f /src/IconbarTool.hh | |
parent | 10e3f10b55fbd8f3ff6793a3993b8ee55f3192a2 (diff) | |
download | fluxbox-3bde5c8aee16f7f33e3ce7b9058fded916fe2369.zip fluxbox-3bde5c8aee16f7f33e3ce7b9058fded916fe2369.tar.bz2 |
Improve stretching (RELATIVE) toolbar items
The available space is distributed reg. the preferred width
of items (spacers and the iconbar ;-) instead of evenly.
The preferred width of the iconbar is calculated from its buttons.
This allows to align the iconbar using spacers and makes better use of
the available space
Diffstat (limited to 'src/IconbarTool.hh')
-rw-r--r-- | src/IconbarTool.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/IconbarTool.hh b/src/IconbarTool.hh index 118eacf..1680f5c 100644 --- a/src/IconbarTool.hh +++ b/src/IconbarTool.hh | |||
@@ -60,6 +60,7 @@ public: | |||
60 | void parentMoved() { m_icon_container.parentMoved(); } | 60 | void parentMoved() { m_icon_container.parentMoved(); } |
61 | 61 | ||
62 | unsigned int width() const; | 62 | unsigned int width() const; |
63 | unsigned int preferredWidth() const; | ||
63 | unsigned int height() const; | 64 | unsigned int height() const; |
64 | unsigned int borderWidth() const; | 65 | unsigned int borderWidth() const; |
65 | 66 | ||