aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-06 00:11:55 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-06 00:11:55 (GMT)
commit2df84f6687dfd16aec55206cc672ac0715c7cd68 (patch)
tree4bda9f9a393f4a3e609b6ce8ad7d5a3571c64aff /util
parent22aa93c56de131b80dfb161615650c4fb6cf6832 (diff)
downloadfluxbox_paul-2df84f6687dfd16aec55206cc672ac0715c7cd68.zip
fluxbox_paul-2df84f6687dfd16aec55206cc672ac0715c7cd68.tar.bz2
use the same options in Slit and Toolbar placement menus
Diffstat (limited to 'util')
-rw-r--r--util/fluxbox-update_configs.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/util/fluxbox-update_configs.cc b/util/fluxbox-update_configs.cc
index 365136b..0105c18 100644
--- a/util/fluxbox-update_configs.cc
+++ b/util/fluxbox-update_configs.cc
@@ -301,6 +301,28 @@ int run_updates(int old_version, FbTk::ResourceManager &rm) {
301 new_version = 8; 301 new_version = 8;
302 } 302 }
303 303
304 if (old_version < 9) { // change format of slit placement menu
305 FbTk::Resource<string> *placement =
306 new FbTk::Resource<string>(rm, "BottomRight",
307 "session.screen0.slit.placement",
308 "Session.Screen0.Slit.Placement");
309 FbTk::Resource<string> *direction =
310 new FbTk::Resource<string>(rm, "Vertical",
311 "session.screen0.slit.direction",
312 "Session.Screen0.Slit.Direction");
313 if (strcasecmp((**direction).c_str(), "vertical") == 0) {
314 if (strcasecmp((**placement).c_str(), "BottomRight") == 0)
315 *placement = "RightBottom";
316 else if (strcasecmp((**placement).c_str(), "BottomLeft") == 0)
317 *placement = "LeftBottom";
318 else if (strcasecmp((**placement).c_str(), "TopRight") == 0)
319 *placement = "RightTop";
320 else if (strcasecmp((**placement).c_str(), "TopLeft") == 0)
321 *placement = "LeftTop";
322 }
323 new_version = 9;
324 }
325
304 return new_version; 326 return new_version;
305} 327}
306 328