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/ToolbarItem.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/ToolbarItem.hh')
-rw-r--r-- | src/ToolbarItem.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ToolbarItem.hh b/src/ToolbarItem.hh index bd5b38f..8759b83 100644 --- a/src/ToolbarItem.hh +++ b/src/ToolbarItem.hh | |||
@@ -47,6 +47,7 @@ public: | |||
47 | virtual void show() = 0; | 47 | virtual void show() = 0; |
48 | virtual void hide() = 0; | 48 | virtual void hide() = 0; |
49 | virtual unsigned int width() const = 0; | 49 | virtual unsigned int width() const = 0; |
50 | virtual unsigned int preferredWidth() const { return width(); } | ||
50 | virtual unsigned int height() const = 0; | 51 | virtual unsigned int height() const = 0; |
51 | virtual unsigned int borderWidth() const = 0; | 52 | virtual unsigned int borderWidth() const = 0; |
52 | // some items might be there, but effectively empty, so shouldn't appear | 53 | // some items might be there, but effectively empty, so shouldn't appear |