From f1d325460ee66b7c281184397ce90f1f033bb67b Mon Sep 17 00:00:00 2001 From: markt Date: Sat, 10 Mar 2007 18:12:23 +0000 Subject: make sure iconbar text padding gets reapplied on reconfigure --- ChangeLog | 2 ++ src/IconbarTool.cc | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fd1c184..9f66863 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ (Format: Year/Month/Day) Changes for 1.0rc3: *07/03/10: + * Fixed changing iconbar text padding requiring a toolbar refresh (Mark) + IconbarTool.cc * Fixed stealing focus from unmanaged windows (Mark) fluxbox.cc *07/03/07: diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc index 30db541..da9fb59 100644 --- a/src/IconbarTool.cc +++ b/src/IconbarTool.cc @@ -694,6 +694,7 @@ void IconbarTool::renderButton(IconButton &button, bool clear, button.setPixmap(*m_rc_use_pixmap); button.setAlpha(m_alpha); + button.setTextPadding(*m_rc_client_padding); // The last button is always the regular width bool wider_button = false; @@ -804,8 +805,6 @@ void IconbarTool::addWindow(FluxboxWindow &win) { win); - button->setTextPadding(*m_rc_client_padding); - renderButton(*button, false); // update the attributes, but don't clear it m_icon_container.insertItem(button); m_icon_list.push_back(button); -- cgit v0.11.2