summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-12-30 23:55:31 +0100
committermathieui <mathieui@mathieui.net>2014-12-30 23:55:31 +0100
commitcf04e65983a133d8d9164ebda80ea0a5e89f4378 (patch)
tree8bcac28ef3b6034ecafd30e38e195650899e5bf7 /src
parent71f38487061cf6ad3e71b3cc1d0e80cb0f607111 (diff)
downloadpoezio-cf04e65983a133d8d9164ebda80ea0a5e89f4378.tar.gz
poezio-cf04e65983a133d8d9164ebda80ea0a5e89f4378.tar.bz2
poezio-cf04e65983a133d8d9164ebda80ea0a5e89f4378.tar.xz
poezio-cf04e65983a133d8d9164ebda80ea0a5e89f4378.zip
Add a callback on enable_vertical_tab_list change
Diffstat (limited to 'src')
-rw-r--r--src/core/core.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/core.py b/src/core/core.py
index a750cfa3..c3c0c05e 100644
--- a/src/core/core.py
+++ b/src/core/core.py
@@ -313,6 +313,8 @@ class Core(object):
self.on_theme_config_change)
self.add_configuration_handler("password",
self.on_password_change)
+ self.add_configuration_handler("enable_vertical_tab_list",
+ self.on_vertical_tab_list_config_change)
self.add_configuration_handler("", self.on_any_config_change)
@@ -375,6 +377,12 @@ class Core(object):
path = os.path.expanduser(value)
self.plugin_manager.on_plugins_dir_change(path)
+ def on_vertical_tab_list_config_change(self, option, value):
+ """
+ Called when the enable_vertical_tab_list option is changed
+ """
+ self.call_for_resize()
+
def on_plugins_conf_dir_config_change(self, option, value):
"""
Called when the plugins_conf_dir option is changed