summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-07-22 20:04:29 +0200
committermathieui <mathieui@mathieui.net>2015-07-22 20:04:29 +0200
commitce854e1712672250b0a498954c326c8bd531e004 (patch)
tree164789970dd392bb708e3a20b45446a7f457f3c3 /src/core
parent65c6d600dfa618e572b0be17f011b6f37d260ad6 (diff)
downloadpoezio-ce854e1712672250b0a498954c326c8bd531e004.tar.gz
poezio-ce854e1712672250b0a498954c326c8bd531e004.tar.bz2
poezio-ce854e1712672250b0a498954c326c8bd531e004.tar.xz
poezio-ce854e1712672250b0a498954c326c8bd531e004.zip
Schedule a resize when hide_user_list changes
Diffstat (limited to 'src/core')
-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 1533695f..38a13416 100644
--- a/src/core/core.py
+++ b/src/core/core.py
@@ -321,6 +321,8 @@ class Core(object):
self.on_nick_determinism_changed)
self.add_configuration_handler("enable_carbons",
self.on_carbons_switch)
+ self.add_configuration_handler("hide_user_list",
+ self.on_hide_user_list_change)
self.add_configuration_handler("", self.on_any_config_change)
@@ -355,6 +357,12 @@ class Core(object):
for callback in self.configuration_change_handlers[option]:
callback(option, value)
+ def on_hide_user_list_change(self, option, value):
+ """
+ Called when the hide_user_list option changes
+ """
+ self.call_for_resize()
+
def on_bookmarks_method_config_change(self, option, value):
"""
Called when the use_bookmarks_method option changes