2008-01-15 Douglas S. Blank <dblank@cs.brynmawr.edu>

* src/plugins/DefaultGramplets.py (TopSurnamesGramplet.main): make
	clicking on data easier by clicking on entire line (bug #1594)



svn: r9822
This commit is contained in:
Doug Blank 2008-01-15 18:04:13 +00:00
parent 2670ca2637
commit a453da4b6c
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2008-01-15 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/plugins/DefaultGramplets.py (TopSurnamesGramplet.main): make
clicking on data easier by clicking on entire line (bug #1594)
2008-01-15 Raphael Ackermann <raphael.ackermann@gmail.com> 2008-01-15 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/const.py.in: added constants for help pages * src/const.py.in: added constants for help pages
* src/ViewManager.py: support for help pages called from menu * src/ViewManager.py: support for help pages called from menu

View File

@ -242,10 +242,9 @@ class TopSurnamesGramplet(Gramplet):
### All done! ### All done!
self.set_text("") self.set_text("")
for (count, surname) in surname_sort: for (count, surname) in surname_sort:
text = "%s, %d%% (%d)\n" % (surname, int((float(count)/total) * 100), count)
self.append_text(" %d. " % (line + 1)) self.append_text(" %d. " % (line + 1))
self.link(surname, 'Surname', representative_handle[surname]) self.link(text, 'Surname', representative_handle[surname])
self.append_text(", %d%% (%d)\n" %
(int((float(count)/total) * 100), count))
line += 1 line += 1
if line >= self.top_size: if line >= self.top_size:
break break