From 75f7d710801388b2f62deb98968ff8d4d1f0d350 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 16 Nov 2011 09:46:09 +0100 Subject: Use os.path.expanduser to interpret '~' for _dir config options --- src/theming.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/theming.py') diff --git a/src/theming.py b/src/theming.py index 0fe45d59..71aa8b72 100644 --- a/src/theming.py +++ b/src/theming.py @@ -246,6 +246,7 @@ def reload_theme(): os.path.join(os.environ.get('XDG_DATA_HOME') or\ os.path.join(os.environ.get('HOME'), '.local', 'share'), 'poezio', 'themes') + themes_dir = os.path.expanduser(themes_dir) try: os.makedirs(themes_dir) except OSError: -- cgit v1.2.3 From 24ba3b6ed9f2c6aac07056d5a8a481a7286772b8 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 16 Nov 2011 11:25:20 +0100 Subject: Add CHAR_CHATSTATE_* to the available theme options --- src/theming.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/theming.py') diff --git a/src/theming.py b/src/theming.py index 71aa8b72..7b653d66 100644 --- a/src/theming.py +++ b/src/theming.py @@ -94,6 +94,12 @@ class Theme(object): # in the user list CHAR_STATUS = '|' + # The characters used for the chatstates in the user list + # in a MUC + CHAR_CHATSTATE_ACTIVE = 'A' + CHAR_CHATSTATE_COMPOSING = 'X' + CHAR_CHATSTATE_PAUSED = 'p' + # Separators COLOR_VERTICAL_SEPARATOR = (4, -1) COLOR_NEW_TEXT_SEPARATOR = (2, -1) -- cgit v1.2.3