diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-06-16 19:09:37 (GMT) |
---|---|---|
committer | Paul Tagliamonte <paultag@fluxbox.org> | 2012-04-07 02:10:41 (GMT) |
commit | 3b1abf8f8f812a9e97cc1b7f6fe95a1bf07d3246 (patch) | |
tree | 9e498bb21445968481fc71ab6059df6aa3877f65 /src/AttentionNoticeHandler.cc | |
parent | 75ad307a404e4e259a028f2dab73e1b370642318 (diff) | |
download | fluxbox_paul-3b1abf8f8f812a9e97cc1b7f6fe95a1bf07d3246.zip fluxbox_paul-3b1abf8f8f812a9e97cc1b7f6fe95a1bf07d3246.tar.bz2 |
Replace ResourceManager with the lua version
Loading of an init file with the new manager works ok. Saving and restarting is still not
completed.
This touches many files because i removed the alternative name of resources. Unlike Xrm, lua does
not have native support for alt names. It should be fairly easy to add them, but I think that is
unnecessary and would be confusing.
Diffstat (limited to 'src/AttentionNoticeHandler.cc')
-rw-r--r-- | src/AttentionNoticeHandler.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/AttentionNoticeHandler.cc b/src/AttentionNoticeHandler.cc index 3ed9bf3..b3f1d2a 100644 --- a/src/AttentionNoticeHandler.cc +++ b/src/AttentionNoticeHandler.cc | |||
@@ -64,13 +64,12 @@ void AttentionNoticeHandler::addAttention(Focusable &client) { | |||
64 | 64 | ||
65 | using namespace FbTk; | 65 | using namespace FbTk; |
66 | 66 | ||
67 | ResourceManager &res = client.screen().resourceManager(); | 67 | ResourceManager_base &res = client.screen().resourceManager(); |
68 | std::string res_name = client.screen().name() + ".demandsAttentionTimeout"; | 68 | std::string res_name = client.screen().name() + ".demandsAttentionTimeout"; |
69 | std::string res_alt_name = client.screen().name() + ".DemandsAttentionTimeout"; | ||
70 | IntResource *timeout_res = dynamic_cast<IntResource* >(res.findResource(res_name)); | 69 | IntResource *timeout_res = dynamic_cast<IntResource* >(res.findResource(res_name)); |
71 | if (timeout_res == 0) { | 70 | if (timeout_res == 0) { |
72 | // no resource, create one and add it to managed resources | 71 | // no resource, create one and add it to managed resources |
73 | timeout_res = new FbTk::IntResource(res, 500, res_name, res_alt_name); | 72 | timeout_res = new FbTk::IntResource(res, 500, res_name); |
74 | client.screen().addManagedResource(timeout_res); | 73 | client.screen().addManagedResource(timeout_res); |
75 | } | 74 | } |
76 | // disable if timeout is zero | 75 | // disable if timeout is zero |