Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/chat.py
diff options
context:
space:
mode:
authorMorgan Collett <morgan.collett@gmail.com>2007-10-24 11:17:49 (GMT)
committer Morgan Collett <morgan.collett@gmail.com>2007-10-24 11:17:49 (GMT)
commit5cebe135ac06c890590953e0fbe15ca8a876b79e (patch)
treedef9f76abb3d0b2e79e8fd810e3d581094a75e9a /chat.py
parentaa8430c9bbc69d2602a2e211027cacdac4c421ac (diff)
#4320: Show URLs with bold and underline, not blue text
Diffstat (limited to 'chat.py')
-rw-r--r--chat.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/chat.py b/chat.py
index e40d0fc..451e1bf 100644
--- a/chat.py
+++ b/chat.py
@@ -238,7 +238,14 @@ class Chat(Activity):
xalign=hippo.ALIGNMENT_START)
rb.append(message)
url = text[match.start():match.end()]
- message = hippo.CanvasLink(text=url)
+ message = hippo.CanvasLink(
+ text=url,
+ color=text_color,
+ font_desc=FONT_BOLD.get_pango_desc(),
+ )
+ attrs = pango.AttrList()
+ attrs.insert(pango.AttrUnderline(pango.UNDERLINE_SINGLE, 0, 32767))
+ message.set_property("attributes", attrs)
message.connect('activated', self._link_activated_cb)
rb.append(message)
text = text[match.end():]