Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2012-10-07 21:23:58 (GMT)
committer Gary Martin <gary@garycmartin.com>2012-10-07 21:23:58 (GMT)
commitf664ebc5c5028ec321857f5af2788fe9e85d7241 (patch)
tree0fa541f32c9b7a8c74d82188c7c896519a24c262
parent871d043500ecd5f853254ba7140783cd2dd547e8 (diff)
Make sure long answers and answer history correctly wrap and don't trigger alignment glitch SL#2126.
-rw-r--r--calculate.py2
-rw-r--r--layout.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/calculate.py b/calculate.py
index 377ef8a..e1ad2b3 100644
--- a/calculate.py
+++ b/calculate.py
@@ -210,7 +210,7 @@ class Equation:
return self.result.get_image()
w = gtk.TextView()
- w.set_wrap_mode(gtk.WRAP_WORD)
+ w.set_wrap_mode(gtk.WRAP_WORD_CHAR)
w.connect('realize', _textview_realize_cb)
buf = w.get_buffer()
diff --git a/layout.py b/layout.py
index ba21114..12c3ea3 100644
--- a/layout.py
+++ b/layout.py
@@ -231,7 +231,7 @@ class CalcLayout:
# Right part: last equation
self.last_eq = gtk.TextView()
self.last_eq.set_editable(False)
- self.last_eq.set_wrap_mode(gtk.WRAP_WORD)
+ self.last_eq.set_wrap_mode(gtk.WRAP_WORD_CHAR)
self.last_eq.connect('realize', self._textview_realize_cb)
self.last_eq.set_border_width(2)
self.last_eq.modify_bg(gtk.STATE_NORMAL, self.col_gray1)