summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2007-12-17 00:40:30 +0100
committerGuillaume Seguin <guillaume@segu.in>2007-12-17 00:40:30 +0100
commit7fd45c2b1e3c39475828788f74e9b49150ed28f3 (patch)
tree768ccc97a2875a9394712f5e6c4393063e390b8b
parent35ee832bf430e26572ce4f1e48f4fbb0b52cb84a (diff)
downloadcamlui-7fd45c2b1e3c39475828788f74e9b49150ed28f3.tar.gz
camlui-7fd45c2b1e3c39475828788f74e9b49150ed28f3.tar.bz2
* Set wrap mode on the Output widget to avoid ugly scrollbars
-rw-r--r--camlui/output.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/camlui/output.py b/camlui/output.py
index 70d8551..5f5e10a 100644
--- a/camlui/output.py
+++ b/camlui/output.py
@@ -44,6 +44,8 @@ class Output:
self.widget = widget
self.buffer = widget.get_buffer ()
self.error_cb = error_cb
+ # Set wrap mode
+ self.widget.set_wrap_mode (gtk.WRAP_WORD_CHAR)
# Set font
font = pango.FontDescription (MONO_FONT)
self.widget.modify_font (font)