diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-05-03 21:48:24 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2011-05-10 11:00:45 (GMT) |
commit | 129bac1e0f0979c80902edc8e092596b81fe14f6 (patch) | |
tree | 0624ee5da85ec2d1f758612cddae2e95a50249f9 /src/CurrentWindowCmd.cc | |
parent | 0775350fee345e37fb59835dda4d85664346b606 (diff) | |
download | fluxbox_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.cc | 8 |
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 | ||
637 | namespace { | 637 | namespace { |
638 | class SetTitleDialog: public TextDialog, public FbTk::Observer { | 638 | class SetTitleDialog: public TextDialog, private FbTk::SignalTracker { |
639 | public: | 639 | public: |
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 | ||
646 | private: | ||
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 | ||
649 | private: | ||
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 | } |