Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-05-24 18:19:38 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-05-24 18:44:29 (GMT)
commitfc1d2472b5cb65c92b77a9646e49e2c9aff42138 (patch)
treee3677e7a94ed6a5e95fd70b58a6ece4083f58a91
parent8af695ed1bfa7be893dfe1f44d03ac4b12bf351f (diff)
Fix open text files - SL #4512
It's only a change of the API to define a GtkTextTag property. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--textadapter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/textadapter.py b/textadapter.py
index 7b6ac90..1a81bf5 100644
--- a/textadapter.py
+++ b/textadapter.py
@@ -88,7 +88,7 @@ class TextViewer(GObject.GObject):
self._current_page = 0
self.highlight_tag = self.textview.get_buffer().create_tag()
- self.highlight_tag.set_property('underline', 'single')
+ self.highlight_tag.set_property('underline', Pango.Underline.SINGLE)
self.highlight_tag.set_property('foreground', 'black')
self.highlight_tag.set_property('background', 'yellow')