summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-08-10 00:24:27 +0200
committermathieui <mathieui@mathieui.net>2013-08-10 00:24:27 +0200
commit64c1a09023298e75eed0b2a0e736d1422f7f46b7 (patch)
tree618030ef3fc30754aef7e054e2eb400e4c3c3780 /src/core.py
parenta50b32896d6d6f9ee9786575da65f2ea32b047de (diff)
downloadpoezio-64c1a09023298e75eed0b2a0e736d1422f7f46b7.tar.gz
poezio-64c1a09023298e75eed0b2a0e736d1422f7f46b7.tar.bz2
poezio-64c1a09023298e75eed0b2a0e736d1422f7f46b7.tar.xz
poezio-64c1a09023298e75eed0b2a0e736d1422f7f46b7.zip
Fix #2337 (search the themes the same way than plugins)
- Load the themes from: 1 - The sources found in the directory ../data/themes/ (if it exists) 2 - The user-defined dir (or ~/.local/blah) 3 - The poezio_themes package if found - Also fix some potential issues with the plugins importer
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index 4c1dd032..20e09b39 100644
--- a/src/core.py
+++ b/src/core.py
@@ -301,6 +301,7 @@ class Core(object):
self.add_configuration_handler("plugins_conf_dir", self.on_plugins_conf_dir_config_change)
self.add_configuration_handler("connection_timeout_delay", self.xmpp.set_keepalive_values)
self.add_configuration_handler("connection_check_interval", self.xmpp.set_keepalive_values)
+ self.add_configuration_handler("themes_dir", theming.update_themes_dir)
self.add_configuration_handler("", self.on_any_config_change)
def on_any_config_change(self, option, value):