diff options
author | fluxgen <fluxgen> | 2003-12-07 17:51:02 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-12-07 17:51:02 (GMT) |
commit | 4e435cb3db6a4a59b137f49fd01cc1d394b6b68d (patch) | |
tree | b87b349d00839fe6cba5a0ed936702a4dccad440 /src/IconbarTool.cc | |
parent | e9be87766bd5e3353217d49037f971d43e548d3a (diff) | |
download | fluxbox-4e435cb3db6a4a59b137f49fd01cc1d394b6b68d.zip fluxbox-4e435cb3db6a4a59b137f49fd01cc1d394b6b68d.tar.bz2 |
listen to title change
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r-- | src/IconbarTool.cc | 11 |
1 files 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 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: IconbarTool.cc,v 1.19 2003/12/07 16:39:43 fluxgen Exp $ | 23 | // $Id: IconbarTool.cc,v 1.20 2003/12/07 17:51:02 fluxgen Exp $ |
24 | 24 | ||
25 | #include "IconbarTool.hh" | 25 | #include "IconbarTool.hh" |
26 | 26 | ||
@@ -348,6 +348,10 @@ void IconbarTool::update(FbTk::Subject *subj) { | |||
348 | } | 348 | } |
349 | } | 349 | } |
350 | return; | 350 | return; |
351 | |||
352 | } else if (subj == &(winsubj->win().titleSig())) { | ||
353 | renderWindow(winsubj->win()); | ||
354 | return; | ||
351 | } else { | 355 | } else { |
352 | // signal not handled | 356 | // signal not handled |
353 | return; | 357 | return; |
@@ -517,11 +521,13 @@ void IconbarTool::removeWindow(FluxboxWindow &win) { | |||
517 | if (it == m_icon_list.end()) | 521 | if (it == m_icon_list.end()) |
518 | return; | 522 | return; |
519 | 523 | ||
524 | // detach from all signals | ||
520 | win.focusSig().detach(this); | 525 | win.focusSig().detach(this); |
521 | win.dieSig().detach(this); | 526 | win.dieSig().detach(this); |
522 | win.workspaceSig().detach(this); | 527 | win.workspaceSig().detach(this); |
523 | win.stateSig().detach(this); | 528 | win.stateSig().detach(this); |
524 | 529 | win.titleSig().detach(this); | |
530 | |||
525 | 531 | ||
526 | // remove from list and render theme again | 532 | // remove from list and render theme again |
527 | IconButton *button = *it; | 533 | IconButton *button = *it; |
@@ -548,6 +554,7 @@ void IconbarTool::addWindow(FluxboxWindow &win) { | |||
548 | win.dieSig().attach(this); | 554 | win.dieSig().attach(this); |
549 | win.workspaceSig().attach(this); | 555 | win.workspaceSig().attach(this); |
550 | win.stateSig().attach(this); | 556 | win.stateSig().attach(this); |
557 | win.titleSig().attach(this); | ||
551 | } | 558 | } |
552 | 559 | ||
553 | void IconbarTool::updateIcons() { | 560 | void IconbarTool::updateIcons() { |