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>2011-11-01 09:57:19 (GMT)
commite3feca08ce0f6753f7e71ccb9088cf9003d41fc2 (patch)
treeabf0dafc53405d67fdf5ccc285961a37603092d3 /src/AttentionNoticeHandler.cc
parent0e8a7bfb12e6d03ec288cd1fdd0a1453d5e814e1 (diff)
downloadfluxbox_paul-e3feca08ce0f6753f7e71ccb9088cf9003d41fc2.zip
fluxbox_paul-e3feca08ce0f6753f7e71ccb9088cf9003d41fc2.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 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