summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-07 19:56:59 +0100
committermathieui <mathieui@mathieui.net>2011-11-07 19:56:59 +0100
commit7e78353621f530cdfa0c5280386512aa40a36048 (patch)
treed81320058359fd23acb5b1cd168ae5d21beb7aea /src/core.py
parent153137e5d2e610afa4a7ca0ce2e3855ff1dec253 (diff)
downloadpoezio-7e78353621f530cdfa0c5280386512aa40a36048.tar.gz
poezio-7e78353621f530cdfa0c5280386512aa40a36048.tar.bz2
poezio-7e78353621f530cdfa0c5280386512aa40a36048.tar.xz
poezio-7e78353621f530cdfa0c5280386512aa40a36048.zip
Add a warning in case of theme not found, and now unsetting 'theme',
setting it to 'default' or a number of spaces has the same effect
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index 9a36b370..481fb1c2 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1172,7 +1172,9 @@ class Core(object):
self.xmpp.plugin['xep_0030'].get_items(jid=server, block=False, callback=list_tab.on_muc_list_item_received)
def command_theme(self, arg):
- theming.reload_theme()
+ warning = theming.reload_theme()
+ if warning:
+ self.information(warning, 'Warning')
self.refresh_window()
def command_win(self, arg):