aboutsummaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-06-12 13:17:47 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-11-01 09:55:30 (GMT)
commit7a46f95d0ce4e249812fb5c2685308cd7283b37d (patch)
tree51f1bb9b88d4499a487b42b6bf17512a56d987c7 /src/main.cc
parent7817fd254e9bd1529fa6e98cdba249b7c0b8a6f8 (diff)
downloadfluxbox_pavel-7a46f95d0ce4e249812fb5c2685308cd7283b37d.zip
fluxbox_pavel-7a46f95d0ce4e249812fb5c2685308cd7283b37d.tar.bz2
Factor out "session." from resource names
this reduces typing and it makes more sense in lua, since there the resources are implemented as hierarchical tables and the topmost table has to be handled a bit specially.
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc
index 36e258b..3d35044 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -399,8 +399,8 @@ void updateConfigFilesIfNeeded(const std::string& rc_file) {
399 399
400 const int CONFIG_VERSION = 13; // TODO: move this to 'defaults.hh' or 'config.h' 400 const int CONFIG_VERSION = 13; // TODO: move this to 'defaults.hh' or 'config.h'
401 401
402 FbTk::ResourceManager r_mgr(rc_file.c_str(), false); 402 FbTk::ResourceManager r_mgr("session", "Session", rc_file.c_str(), false);
403 FbTk::IntResource c_version(r_mgr, 0, "session.configVersion", "Session.ConfigVersion"); 403 FbTk::IntResource c_version(r_mgr, 0, "configVersion", "ConfigVersion");
404 404
405 if (!r_mgr.load(rc_file.c_str())) { 405 if (!r_mgr.load(rc_file.c_str())) {
406 _FB_USES_NLS; 406 _FB_USES_NLS;