Merge branch 'master' of fluxbox@git.fluxbox.org:fluxbox
Conflicts: ChangeLog
This commit is contained in:
commit
ab8b21d18c
2 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
(Format: Year/Month/Day)
|
(Format: Year/Month/Day)
|
||||||
Changes for 1.1.2:
|
Changes for 1.1.2
|
||||||
*08/09/18:
|
*08/09/18:
|
||||||
* Changed workspace count signal in BScreen to use the new signal
|
* Changed workspace count signal in BScreen to use the new signal
|
||||||
system. (Henrik)
|
system. (Henrik)
|
||||||
|
@ -7,6 +7,9 @@ Changes for 1.1.2:
|
||||||
* Added new Signal/Slot system to FbTk (Henrik)
|
* Added new Signal/Slot system to FbTk (Henrik)
|
||||||
This is suppose to replace the obsolete Subject/Observer classes.
|
This is suppose to replace the obsolete Subject/Observer classes.
|
||||||
FbTk/Signal.hh, FbTk/Slot.hh, FbTk/MemFun.hh, tests/testSignals.cc
|
FbTk/Signal.hh, FbTk/Slot.hh, FbTk/MemFun.hh, tests/testSignals.cc
|
||||||
|
* Fix crash when using SetTitleDialog on a window that's been closed (Mark)
|
||||||
|
CurrentWindowCmd.cc
|
||||||
|
-----------------------------
|
||||||
Changes for 1.1.1
|
Changes for 1.1.1
|
||||||
*08/09/14:
|
*08/09/14:
|
||||||
* Fixed a minor pixmap resource leak (Henrik)
|
* Fixed a minor pixmap resource leak (Henrik)
|
||||||
|
|
|
@ -467,13 +467,17 @@ void SetLayerCmd::real_execute() {
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class SetTitleDialog: public TextDialog {
|
class SetTitleDialog: public TextDialog, public FbTk::Observer {
|
||||||
public:
|
public:
|
||||||
SetTitleDialog(FluxboxWindow &win, const string &title):
|
SetTitleDialog(FluxboxWindow &win, const string &title):
|
||||||
TextDialog(win.screen(), title), window(win) {
|
TextDialog(win.screen(), title), window(win) {
|
||||||
|
win.dieSig().attach(this);
|
||||||
setText(win.title());
|
setText(win.title());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// only attached signal is window destruction
|
||||||
|
void update(FbTk::Subject *subj) { delete this; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void exec(const std::string &text) {
|
void exec(const std::string &text) {
|
||||||
window.winClient().setTitle(text);
|
window.winClient().setTitle(text);
|
||||||
|
|
Loading…
Reference in a new issue