summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-07-01 23:28:55 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-07-01 23:28:55 +0800
commitbbb8dff42d4e22809c7a2eeb15dff1e016b4a602 (patch)
tree1f699fb3c289a60cf14bdbca8fbe6033f8620db4
parente8339cbb37356712dacc60310e335b29560675aa (diff)
downloadibus-bbb8dff42d4e22809c7a2eeb15dff1e016b4a602.tar.gz
ibus-bbb8dff42d4e22809c7a2eeb15dff1e016b4a602.tar.xz
ibus-bbb8dff42d4e22809c7a2eeb15dff1e016b4a602.zip
Fix problem when page size == 10.
-rw-r--r--panel/candidatepanel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/panel/candidatepanel.py b/panel/candidatepanel.py
index a11eab0..b96e36b 100644
--- a/panel/candidatepanel.py
+++ b/panel/candidatepanel.py
@@ -51,8 +51,8 @@ class CandidateArea (gtk.HBox):
self.pack_start (VSeparator(), False, False, 0)
self.pack_start (self._vbox2, True, True, 4)
- for i in xrange (1, 10):
- label1 = gtk.Label ("%d." % i)
+ for i in xrange (1, 11):
+ label1 = gtk.Label ("%d." % (i % 10))
label1.set_alignment (0.0, 0.5)
label1.set_no_show_all (True)