* src/gramps.glade: remove lock border

* src/GrampsDb/_ReadGedcom.py: optimize UI updates


svn: r5769
This commit is contained in:
Don Allingham 2006-01-17 03:25:39 +00:00
parent c09e8ba99d
commit 0096bbfa5f
3 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2006-01-16 Don Allingham <don@gramps-project.org>
* src/gramps.glade: remove lock border
* src/GrampsDb/_ReadGedcom.py: optimize UI updates
2006-01-16 Alex Roitman <shura@gramps-project.org>
* src/ViewManager: Remov unused code.
* src/GrampsDb/_GrampsBSDDB.py: Do small txn during batch

View File

@ -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 == "":

View File

@ -2423,7 +2423,7 @@
<widget class="GtkToggleButton" id="togglebutton1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="relief">GTK_RELIEF_NONE</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>