From 0096bbfa5f13f5608a86b95f5ac117212e4b256c Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 17 Jan 2006 03:25:39 +0000 Subject: [PATCH] * src/gramps.glade: remove lock border * src/GrampsDb/_ReadGedcom.py: optimize UI updates svn: r5769 --- ChangeLog | 4 ++++ src/GrampsDb/_ReadGedcom.py | 8 +++----- src/gramps.glade | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index b1d98234e..1c4507433 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-01-16 Don Allingham + * src/gramps.glade: remove lock border + * src/GrampsDb/_ReadGedcom.py: optimize UI updates + 2006-01-16 Alex Roitman * src/ViewManager: Remov unused code. * src/GrampsDb/_GrampsBSDDB.py: Do small txn during batch diff --git a/src/GrampsDb/_ReadGedcom.py b/src/GrampsDb/_ReadGedcom.py index 2ec16b390..52ffb0104 100644 --- a/src/GrampsDb/_ReadGedcom.py +++ b/src/GrampsDb/_ReadGedcom.py @@ -501,13 +501,11 @@ class GedcomParser: next_line = self.f.readline() self.current += 1.0 - newval = self.current/self.maxlines + newval = int(100*self.current/self.maxlines) if newval != self.oldval: - self.progressbar.set_fraction(min(newval,1.0)) - self.progressbar.set_text("%d%%" % int(newval*100)) + self.progressbar.set_fraction(newval/100.0) + self.progressbar.set_text("%d%%" % newval) self.oldval = newval - while gtk.events_pending(): - gtk.main_iteration() # EOF ? if next_line == "": diff --git a/src/gramps.glade b/src/gramps.glade index 5d8e41160..aef291181 100644 --- a/src/gramps.glade +++ b/src/gramps.glade @@ -2423,7 +2423,7 @@ True True - GTK_RELIEF_NORMAL + GTK_RELIEF_NONE True False False