From 4e435cb3db6a4a59b137f49fd01cc1d394b6b68d Mon Sep 17 00:00:00 2001
From: fluxgen <fluxgen>
Date: Sun, 7 Dec 2003 17:51:02 +0000
Subject: listen to title change

---
 src/IconbarTool.cc | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc
index 6f5356c..5b9702e 100644
--- a/src/IconbarTool.cc
+++ b/src/IconbarTool.cc
@@ -20,7 +20,7 @@
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 // DEALINGS IN THE SOFTWARE.
 
-// $Id: IconbarTool.cc,v 1.19 2003/12/07 16:39:43 fluxgen Exp $
+// $Id: IconbarTool.cc,v 1.20 2003/12/07 17:51:02 fluxgen Exp $
 
 #include "IconbarTool.hh"
 
@@ -348,6 +348,10 @@ void IconbarTool::update(FbTk::Subject *subj) {
                 }
             }
             return;
+
+        } else if (subj == &(winsubj->win().titleSig())) {
+            renderWindow(winsubj->win());
+            return;
         } else {
             // signal not handled
             return;
@@ -517,11 +521,13 @@ void IconbarTool::removeWindow(FluxboxWindow &win) {
     if (it == m_icon_list.end())
         return;
     
+    // detach from all signals
     win.focusSig().detach(this);
     win.dieSig().detach(this);
     win.workspaceSig().detach(this);
     win.stateSig().detach(this);
- 
+    win.titleSig().detach(this);
+
 
     // remove from list and render theme again
     IconButton *button = *it;
@@ -548,6 +554,7 @@ void IconbarTool::addWindow(FluxboxWindow &win) {
     win.dieSig().attach(this);
     win.workspaceSig().attach(this);
     win.stateSig().attach(this);
+    win.titleSig().attach(this);
 }
 
 void IconbarTool::updateIcons() {
-- 
cgit v0.11.2