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