aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index 02af8d3..8e7c455 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -32,7 +32,6 @@
32#include "FbTk/Transparent.hh" 32#include "FbTk/Transparent.hh"
33#include "CompareWindow.hh" 33#include "CompareWindow.hh"
34#include "FbWinFrameTheme.hh" 34#include "FbWinFrameTheme.hh"
35#include "fluxbox.hh"
36 35
37#include "Container.hh" 36#include "Container.hh"
38 37
@@ -332,7 +331,8 @@ void FbWinFrame::removeAllButtons() {
332 } 331 }
333} 332}
334 333
335FbWinFrame::ButtonId FbWinFrame::createTab(const std::string &title, FbTk::Command *command) { 334FbWinFrame::ButtonId FbWinFrame::createTab(const std::string &title, FbTk::Command *command,
335 int tabs_padding) {
336 FbTk::TextButton *button = new FbTk::TextButton(m_tab_container, 336 FbTk::TextButton *button = new FbTk::TextButton(m_tab_container,
337 theme().font(), 337 theme().font(),
338 title); 338 title);
@@ -346,7 +346,7 @@ FbWinFrame::ButtonId FbWinFrame::createTab(const std::string &title, FbTk::Comma
346 FbTk::RefCount<FbTk::Command> refcmd(command); 346 FbTk::RefCount<FbTk::Command> refcmd(command);
347 button->setOnClick(refcmd); 347 button->setOnClick(refcmd);
348 348
349 button->setTextPadding(Fluxbox::instance()->getTabsPadding()); 349 button->setTextPadding(tabs_padding);
350 button->setJustify(theme().justify()); 350 button->setJustify(theme().justify());
351 351
352 m_tab_container.insertItem(button); 352 m_tab_container.insertItem(button);