aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-05-03 21:48:24 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-05-10 11:00:45 (GMT)
commit129bac1e0f0979c80902edc8e092596b81fe14f6 (patch)
tree0624ee5da85ec2d1f758612cddae2e95a50249f9 /src/CurrentWindowCmd.cc
parent0775350fee345e37fb59835dda4d85664346b606 (diff)
downloadfluxbox_pavel-129bac1e0f0979c80902edc8e092596b81fe14f6.zip
fluxbox_pavel-129bac1e0f0979c80902edc8e092596b81fe14f6.tar.bz2
Convert Focusable::dieSig to FbTk::Signal
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r--src/CurrentWindowCmd.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc
index 1122e1f..8d27a3a 100644
--- a/src/CurrentWindowCmd.cc
+++ b/src/CurrentWindowCmd.cc
@@ -635,18 +635,18 @@ void ChangeLayerCmd::real_execute() {
635} 635}
636 636
637namespace { 637namespace {
638class SetTitleDialog: public TextDialog, public FbTk::Observer { 638class SetTitleDialog: public TextDialog, private FbTk::SignalTracker {
639public: 639public:
640 SetTitleDialog(FluxboxWindow &win, const string &title): 640 SetTitleDialog(FluxboxWindow &win, const string &title):
641 TextDialog(win.screen(), title), window(win) { 641 TextDialog(win.screen(), title), window(win) {
642 win.dieSig().attach(this); 642 join(win.dieSig(), FbTk::MemFunIgnoreArgs(*this, &SetTitleDialog::windowDied));
643 setText(win.title()); 643 setText(win.title());
644 } 644 }
645 645
646private:
646 // only attached signal is window destruction 647 // only attached signal is window destruction
647 void update(FbTk::Subject *subj) { delete this; } 648 void windowDied() { delete this; }
648 649
649private:
650 void exec(const std::string &text) { 650 void exec(const std::string &text) {
651 window.winClient().setTitle(text); 651 window.winClient().setTitle(text);
652 } 652 }