summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-07 19:56:59 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-11-08 00:47:56 +0100
commit1b06a7d48bf3cb8503eae556f0cbf4b0b5128edf (patch)
treec6f317e450a57faf120cfb1250188927764162b4 /src/core.py
parent9c688795d1c9381c71d0883285b357cdf21e2e37 (diff)
downloadpoezio-1b06a7d48bf3cb8503eae556f0cbf4b0b5128edf.tar.gz
poezio-1b06a7d48bf3cb8503eae556f0cbf4b0b5128edf.tar.bz2
poezio-1b06a7d48bf3cb8503eae556f0cbf4b0b5128edf.tar.xz
poezio-1b06a7d48bf3cb8503eae556f0cbf4b0b5128edf.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 2441aa16..baeb6693 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1221,7 +1221,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):