From a453da4b6c369753dd2eb489b2df30d514ae08dc Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 15 Jan 2008 18:04:13 +0000 Subject: [PATCH] 2008-01-15 Douglas S. Blank * src/plugins/DefaultGramplets.py (TopSurnamesGramplet.main): make clicking on data easier by clicking on entire line (bug #1594) svn: r9822 --- ChangeLog | 4 ++++ src/plugins/DefaultGramplets.py | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d89ca6a25..cab94f143 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-01-15 Douglas S. Blank + * src/plugins/DefaultGramplets.py (TopSurnamesGramplet.main): make + clicking on data easier by clicking on entire line (bug #1594) + 2008-01-15 Raphael Ackermann * src/const.py.in: added constants for help pages * src/ViewManager.py: support for help pages called from menu diff --git a/src/plugins/DefaultGramplets.py b/src/plugins/DefaultGramplets.py index c722b5648..5a8463b80 100644 --- a/src/plugins/DefaultGramplets.py +++ b/src/plugins/DefaultGramplets.py @@ -242,10 +242,9 @@ class TopSurnamesGramplet(Gramplet): ### All done! self.set_text("") for (count, surname) in surname_sort: - self.append_text(" %d. " % (line + 1)) - self.link(surname, 'Surname', representative_handle[surname]) - self.append_text(", %d%% (%d)\n" % - (int((float(count)/total) * 100), count)) + text = "%s, %d%% (%d)\n" % (surname, int((float(count)/total) * 100), count) + self.append_text(" %d. " % (line + 1)) + self.link(text, 'Surname', representative_handle[surname]) line += 1 if line >= self.top_size: break