aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-06-12 13:17:47 (GMT)
committerPavel Labath <pavelo@centrum.sk>2013-02-16 23:51:49 (GMT)
commit946bc2edb60836bb0d939d850543d1c9ab683dc9 (patch)
tree1011ab3f5e572998bd60408aef7618f9cc809e48 /src/fluxbox.cc
parent62aac4851aed94bc198c09aff4d764967542b8e4 (diff)
downloadfluxbox_pavel-946bc2edb60836bb0d939d850543d1c9ab683dc9.zip
fluxbox_pavel-946bc2edb60836bb0d939d850543d1c9ab683dc9.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/fluxbox.cc')
-rw-r--r--src/fluxbox.cc42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 4ef6a67..73d91ba 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -237,27 +237,27 @@ Fluxbox::Fluxbox(int argc, char **argv,
237 const std::string& rc_path, const std::string& rc_filename, bool xsync) 237 const std::string& rc_path, const std::string& rc_filename, bool xsync)
238 : FbTk::App(dpy_name.c_str()), 238 : FbTk::App(dpy_name.c_str()),
239 m_fbatoms(FbAtoms::instance()), 239 m_fbatoms(FbAtoms::instance()),
240 m_resourcemanager(rc_filename.c_str(), true), 240 m_resourcemanager("session", "Session", rc_filename.c_str(), true),
241 // TODO: shouldn't need a separate one for screen 241 // TODO: shouldn't need a separate one for screen
242 m_screen_rm(m_resourcemanager), 242 m_screen_rm(m_resourcemanager),
243 243
244 m_RC_PATH(rc_path), 244 m_RC_PATH(rc_path),
245 m_rc_ignoreborder(m_resourcemanager, false, "session.ignoreBorder", "Session.IgnoreBorder"), 245 m_rc_ignoreborder(m_resourcemanager, false, "ignoreBorder", "IgnoreBorder"),
246 m_rc_pseudotrans(m_resourcemanager, false, "session.forcePseudoTransparency", "Session.forcePseudoTransparency"), 246 m_rc_pseudotrans(m_resourcemanager, false, "forcePseudoTransparency", "forcePseudoTransparency"),
247 m_rc_colors_per_channel(m_resourcemanager, 4, 247 m_rc_colors_per_channel(m_resourcemanager, 4,
248 "session.colorsPerChannel", "Session.ColorsPerChannel"), 248 "colorsPerChannel", "ColorsPerChannel"),
249 m_rc_double_click_interval(m_resourcemanager, 250, "session.doubleClickInterval", "Session.DoubleClickInterval"), 249 m_rc_double_click_interval(m_resourcemanager, 250, "doubleClickInterval", "DoubleClickInterval"),
250 m_rc_tabs_padding(m_resourcemanager, 0, "session.tabPadding", "Session.TabPadding"), 250 m_rc_tabs_padding(m_resourcemanager, 0, "tabPadding", "TabPadding"),
251 m_rc_stylefile(m_resourcemanager, DEFAULTSTYLE, "session.styleFile", "Session.StyleFile"), 251 m_rc_stylefile(m_resourcemanager, DEFAULTSTYLE, "styleFile", "StyleFile"),
252 m_rc_styleoverlayfile(m_resourcemanager, m_RC_PATH + "/overlay", "session.styleOverlay", "Session.StyleOverlay"), 252 m_rc_styleoverlayfile(m_resourcemanager, m_RC_PATH + "/overlay", "styleOverlay", "StyleOverlay"),
253 m_rc_menufile(m_resourcemanager, m_RC_PATH + "/menu", "session.menuFile", "Session.MenuFile"), 253 m_rc_menufile(m_resourcemanager, m_RC_PATH + "/menu", "menuFile", "MenuFile"),
254 m_rc_keyfile(m_resourcemanager, m_RC_PATH + "/keys", "session.keyFile", "Session.KeyFile"), 254 m_rc_keyfile(m_resourcemanager, m_RC_PATH + "/keys", "keyFile", "KeyFile"),
255 m_rc_slitlistfile(m_resourcemanager, m_RC_PATH + "/slitlist", "session.slitlistFile", "Session.SlitlistFile"), 255 m_rc_slitlistfile(m_resourcemanager, m_RC_PATH + "/slitlist", "slitlistFile", "SlitlistFile"),
256 m_rc_appsfile(m_resourcemanager, m_RC_PATH + "/apps", "session.appsFile", "Session.AppsFile"), 256 m_rc_appsfile(m_resourcemanager, m_RC_PATH + "/apps", "appsFile", "AppsFile"),
257 m_rc_tabs_attach_area(m_resourcemanager, ATTACH_AREA_WINDOW, "session.tabsAttachArea", "Session.TabsAttachArea"), 257 m_rc_tabs_attach_area(m_resourcemanager, ATTACH_AREA_WINDOW, "tabsAttachArea", "TabsAttachArea"),
258 m_rc_cache_life(m_resourcemanager, 5, "session.cacheLife", "Session.CacheLife"), 258 m_rc_cache_life(m_resourcemanager, 5, "cacheLife", "CacheLife"),
259 m_rc_cache_max(m_resourcemanager, 200, "session.cacheMax", "Session.CacheMax"), 259 m_rc_cache_max(m_resourcemanager, 200, "cacheMax", "CacheMax"),
260 m_rc_auto_raise_delay(m_resourcemanager, 250, "session.autoRaiseDelay", "Session.AutoRaiseDelay"), 260 m_rc_auto_raise_delay(m_resourcemanager, 250, "autoRaiseDelay", "AutoRaiseDelay"),
261 m_masked_window(0), 261 m_masked_window(0),
262 m_mousescreen(0), 262 m_mousescreen(0),
263 m_keyscreen(0), 263 m_keyscreen(0),
@@ -400,8 +400,8 @@ Fluxbox::Fluxbox(int argc, char **argv,
400 for (size_t s = 0; s < screens.size(); s++) { 400 for (size_t s = 0; s < screens.size(); s++) {
401 std::string sc_nr = FbTk::StringUtil::number2String(screens[s]); 401 std::string sc_nr = FbTk::StringUtil::number2String(screens[s]);
402 BScreen *screen = new BScreen(m_screen_rm.lock(), 402 BScreen *screen = new BScreen(m_screen_rm.lock(),
403 std::string("session.screen") + sc_nr, 403 std::string("screen") + sc_nr,
404 std::string("session.Screen") + sc_nr, 404 std::string("Screen") + sc_nr,
405 screens[s], ::ResourceLayer::NUM_LAYERS); 405 screens[s], ::ResourceLayer::NUM_LAYERS);
406 406
407 // already handled 407 // already handled
@@ -1155,7 +1155,7 @@ void Fluxbox::save_rc() {
1155 for (; it != it_end; ++it) { 1155 for (; it != it_end; ++it) {
1156 BScreen *screen = *it; 1156 BScreen *screen = *it;
1157 1157
1158 std::string workspaces_string("session.screen"); 1158 std::string workspaces_string("screen");
1159 workspaces_string += FbTk::StringUtil::number2String(screen->screenNumber()); 1159 workspaces_string += FbTk::StringUtil::number2String(screen->screenNumber());
1160 workspaces_string += ".workspaceNames: "; 1160 workspaces_string += ".workspaceNames: ";
1161 1161
@@ -1248,10 +1248,10 @@ void Fluxbox::load_rc(BScreen &screen) {
1248 1248
1249 std::string screen_number = FbTk::StringUtil::number2String(screen.screenNumber()); 1249 std::string screen_number = FbTk::StringUtil::number2String(screen.screenNumber());
1250 1250
1251 std::string name_lookup("session.screen"); 1251 std::string name_lookup("screen");
1252 name_lookup += screen_number; 1252 name_lookup += screen_number;
1253 name_lookup += ".workspaceNames"; 1253 name_lookup += ".workspaceNames";
1254 std::string class_lookup("session.screen"); 1254 std::string class_lookup("screen");
1255 class_lookup += screen_number; 1255 class_lookup += screen_number;
1256 class_lookup += ".WorkspaceNames"; 1256 class_lookup += ".WorkspaceNames";
1257 1257