summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-11-08 03:02:11 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-11-08 03:02:11 +0100
commit2c99e6be9f587370abdfe9aa32979bb7d0f28840 (patch)
treee64af8522c58d13e71dd0d0f955f4c624a36fc0d
parent22f612ef8367013058ce96057cb66f38b128eff9 (diff)
parentcd0b2681e02865aa1820d0895c8eddc5036aba66 (diff)
downloadpoezio-2c99e6be9f587370abdfe9aa32979bb7d0f28840.tar.gz
poezio-2c99e6be9f587370abdfe9aa32979bb7d0f28840.tar.bz2
poezio-2c99e6be9f587370abdfe9aa32979bb7d0f28840.tar.xz
poezio-2c99e6be9f587370abdfe9aa32979bb7d0f28840.zip
Merge branch 'master' of http://git.louiz.org/poezio
-rw-r--r--src/windows.py6
-rwxr-xr-xupdate.sh9
2 files changed, 12 insertions, 3 deletions
diff --git a/src/windows.py b/src/windows.py
index 9fa3e705..c94de15e 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -634,7 +634,7 @@ class TextWin(Win):
self._win.attrset(0)
for y, line in enumerate(lines):
if not line:
- self.write_line_separator()
+ self.write_line_separator(y)
else:
self.write_text(y, (3 if line.msg.nickname else 1) + len(line.msg.str_time)+len(truncate_nick(line.msg.nickname) or ''), line.msg.txt[line.start_pos:line.end_pos])
if y != self.height-1:
@@ -642,8 +642,8 @@ class TextWin(Win):
self._win.attrset(0)
self._refresh()
- def write_line_separator(self):
- self.addnstr('- '*(self.width//2-1)+'-', self.width, to_curses_attr(get_theme().COLOR_NEW_TEXT_SEPARATOR))
+ def write_line_separator(self, y):
+ self.addnstr(y, 0, '- '*(self.width//2-1)+'-', self.width, to_curses_attr(get_theme().COLOR_NEW_TEXT_SEPARATOR))
def write_text(self, y, x, txt):
"""
diff --git a/update.sh b/update.sh
index 510bbb07..c2dba40e 100755
--- a/update.sh
+++ b/update.sh
@@ -9,6 +9,15 @@
echo 'Updating poezio'
git pull origin master
+make
+if [ $? -ne 0 ]
+then
+ echo -e "It seems that you do not have the python development"\
+ "files.\nSearch for a package named python3-dev or python3-devel"\
+ "in your repos."
+ exit -1
+fi
+
if [ -e "SleekXMPP" ]
then
echo "Updating SleekXMPP"