From 462286b46cac80a945fe988605ece05bd037c883 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 26 Aug 2003 23:20:07 +0000 Subject: listen to workspace name sig --- src/WorkspaceNameTool.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/WorkspaceNameTool.cc b/src/WorkspaceNameTool.cc index 09067ea..fe1fa6f 100644 --- a/src/WorkspaceNameTool.cc +++ b/src/WorkspaceNameTool.cc @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: WorkspaceNameTool.cc,v 1.4 2003/08/13 10:19:38 fluxgen Exp $ +// $Id: WorkspaceNameTool.cc,v 1.5 2003/08/26 23:20:07 fluxgen Exp $ #include "WorkspaceNameTool.hh" @@ -42,6 +42,7 @@ WorkspaceNameTool::WorkspaceNameTool(const FbTk::FbWindow &parent, m_button.setText(m_screen.currentWorkspace()->name()); // setup signals + screen.workspaceNamesSig().attach(this); screen.currentWorkspaceSig().attach(this); theme.reconfigSig().attach(this); @@ -69,6 +70,8 @@ void WorkspaceNameTool::moveResize(int x, int y, void WorkspaceNameTool::update(FbTk::Subject *subj) { m_button.setText(m_screen.currentWorkspace()->name()); + if (m_button.width() != width()) + resize(width(), height()); renderTheme(); } -- cgit v0.11.2