listen to title change
fluxgen fluxgen
1 files changed,
9 insertions(+),
2 deletions(-)
jump to
M
src/IconbarTool.cc
→
src/IconbarTool.cc
@@ -20,7 +20,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ renderTheme();
} } return; + + } else if (subj == &(winsubj->win().titleSig())) { + renderWindow(winsubj->win()); + return; } else { // signal not handled return;@@ -517,11 +521,13 @@ // did we find it?
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 @@ win.focusSig().attach(this);
win.dieSig().attach(this); win.workspaceSig().attach(this); win.stateSig().attach(this); + win.titleSig().attach(this); } void IconbarTool::updateIcons() {