aboutsummaryrefslogtreecommitdiff
path: root/src/AttentionNoticeHandler.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-06-16 19:09:37 (GMT)
committerPavel Labath <pavelo@centrum.sk>2013-02-16 23:54:31 (GMT)
commit9f2c3883b7cf08a5f9d311fd8f7fc317574b605b (patch)
tree55461e357b95ddaa582b73c840f4c5e6846b0f69 /src/AttentionNoticeHandler.cc
parent590efd07bb2ed1ce78ce6e5e6750b57311904f1f (diff)
downloadfluxbox_pavel-9f2c3883b7cf08a5f9d311fd8f7fc317574b605b.zip
fluxbox_pavel-9f2c3883b7cf08a5f9d311fd8f7fc317574b605b.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.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/AttentionNoticeHandler.cc b/src/AttentionNoticeHandler.cc
index 4243377..f783142 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