Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-07 04:18:42 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-05-07 04:18:42 (GMT)
commitc89bc07e0bc57b73fbb099e7e458b41ecb739cc9 (patch)
tree130a3ef0a01de299d3aa2608cb7d3b82c77c0e19 /shell
parent110fa5f35471665990fa3485f926c9116e39709c (diff)
Fix nickname encoding and length issues
Diffstat (limited to 'shell')
-rw-r--r--shell/intro/intro.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/intro/intro.py b/shell/intro/intro.py
index 38c0a7b..2ae097d 100644
--- a/shell/intro/intro.py
+++ b/shell/intro/intro.py
@@ -185,6 +185,7 @@ class EntryBox(hippo.CanvasBox, hippo.CanvasItem):
self.append(self._label)
self._entry = gtk.Entry()
+ self._entry.set_max_length(45)
entry_item = hippo.CanvasWidget(widget=self._entry)
self.append(entry_item)
@@ -297,7 +298,8 @@ class IntroWindow(gtk.Window):
section = 'Buddy'
if not cp.has_section(section):
cp.add_section(section)
- cp.set(section, 'NickName', name)
+ # encode nickname to ascii-safe characters
+ cp.set(section, 'NickName', name.encode("utf-8"))
cp.set(section, 'Color', color.to_string())
section = 'Server'