diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-04-29 12:51:43 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-04-29 12:51:43 (GMT) |
commit | 6cb26c97a9c11bc971d19539549456096abfd025 (patch) | |
tree | 9f44260fdd1336b70193235eb8e63a640bfd2ec2 /util | |
parent | 7bc04b37e3d11930e8b6f858852352253e15e229 (diff) | |
download | fluxbox_paul-6cb26c97a9c11bc971d19539549456096abfd025.zip fluxbox_paul-6cb26c97a9c11bc971d19539549456096abfd025.tar.bz2 |
don't add program icons to tabs for previous users, for backwards compatibility, but leave it as default for new users
Diffstat (limited to 'util')
-rw-r--r-- | util/fluxbox-update_configs.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/util/fluxbox-update_configs.cc b/util/fluxbox-update_configs.cc index eb080de..be22383 100644 --- a/util/fluxbox-update_configs.cc +++ b/util/fluxbox-update_configs.cc | |||
@@ -291,6 +291,16 @@ int run_updates(int old_version, FbTk::ResourceManager &rm) { | |||
291 | new_version = 7; | 291 | new_version = 7; |
292 | } | 292 | } |
293 | 293 | ||
294 | if (old_version < 8) { // disable icons in tabs for backwards compatibility | ||
295 | FbTk::Resource<bool> *show = | ||
296 | new FbTk::Resource<bool>(rm, false, | ||
297 | "session.screen0.tabs.usePixmap", | ||
298 | "Session.Screen0.Tabs.UsePixmap"); | ||
299 | if (!*show) // only change if the setting didn't already exist | ||
300 | *show = false; | ||
301 | new_version = 8; | ||
302 | } | ||
303 | |||
294 | return new_version; | 304 | return new_version; |
295 | } | 305 | } |
296 | 306 | ||