diff options
author | Henrik Kinnunen <fluxgen@fluxbox.org> | 2008-09-21 14:12:36 (GMT) |
---|---|---|
committer | Henrik Kinnunen <fluxgen@fluxbox.org> | 2008-09-21 14:12:36 (GMT) |
commit | d05804e6661d4976ba52ef8727ec8387e2e3bba1 (patch) | |
tree | 096d71dcbd646d57f62bf314e5fb68cc2ac7cdb9 /src/Slit.cc | |
parent | 71674739ec6de376273cb3c5b938da132e7035c5 (diff) | |
download | fluxbox-d05804e6661d4976ba52ef8727ec8387e2e3bba1.zip fluxbox-d05804e6661d4976ba52ef8727ec8387e2e3bba1.tar.bz2 |
Changed background changed signal in BScreen to use the new signal system
Diffstat (limited to 'src/Slit.cc')
-rw-r--r-- | src/Slit.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Slit.cc b/src/Slit.cc index 56e591e..6824bde 100644 --- a/src/Slit.cc +++ b/src/Slit.cc | |||
@@ -41,6 +41,8 @@ | |||
41 | #include "FbTk/Theme.hh" | 41 | #include "FbTk/Theme.hh" |
42 | #include "FbTk/Transparent.hh" | 42 | #include "FbTk/Transparent.hh" |
43 | #include "FbTk/MacroCommand.hh" | 43 | #include "FbTk/MacroCommand.hh" |
44 | #include "FbTk/MemFun.hh" | ||
45 | |||
44 | #include "FbCommands.hh" | 46 | #include "FbCommands.hh" |
45 | #include "Layer.hh" | 47 | #include "Layer.hh" |
46 | #include "LayerMenu.hh" | 48 | #include "LayerMenu.hh" |
@@ -264,7 +266,10 @@ Slit::Slit(BScreen &scr, FbTk::XLayer &layer, const char *filename) | |||
264 | // attach to theme and root window change signal | 266 | // attach to theme and root window change signal |
265 | theme().reconfigSig().attach(this); | 267 | theme().reconfigSig().attach(this); |
266 | scr.resizeSig().attach(this); | 268 | scr.resizeSig().attach(this); |
267 | scr.bgChangeSig().attach(this); | 269 | |
270 | join(scr.bgChangeSig(), | ||
271 | FbTk::MemFun(*this, &Slit::updateForScreen)); | ||
272 | |||
268 | scr.reconfigureSig().attach(this); // if alpha changed (we disablethis signal when we get theme change sig) | 273 | scr.reconfigureSig().attach(this); // if alpha changed (we disablethis signal when we get theme change sig) |
269 | 274 | ||
270 | scr.addConfigMenu(_FB_XTEXT(Slit, Slit, "Slit", "The Slit"), m_slitmenu); | 275 | scr.addConfigMenu(_FB_XTEXT(Slit, Slit, "Slit", "The Slit"), m_slitmenu); |
@@ -1048,6 +1053,10 @@ void Slit::exposeEvent(XExposeEvent &ev) { | |||
1048 | frame.window.clearArea(ev.x, ev.y, ev.width, ev.height); | 1053 | frame.window.clearArea(ev.x, ev.y, ev.width, ev.height); |
1049 | } | 1054 | } |
1050 | 1055 | ||
1056 | void Slit::updateForScreen(BScreen &screen) { | ||
1057 | reconfigure(); | ||
1058 | } | ||
1059 | |||
1051 | void Slit::update(FbTk::Subject *subj) { | 1060 | void Slit::update(FbTk::Subject *subj) { |
1052 | reconfigure(); | 1061 | reconfigure(); |
1053 | #ifdef XINERAMA | 1062 | #ifdef XINERAMA |