From 1943b4e56087469d89d03cc27881d113e0e51faa Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 27 Jul 2003 03:50:57 +0000 Subject: [PATCH] * src/ListModel.py: set the cell renderers to a fixed size to improve performance * src/PlaceView.py: set the cell renderers to a fixed size to improve performance * src/SourceView.py: set the cell renderers to a fixed size to improve performance * src/Sources.py: set the cell renderers to a fixed size to improve performance * src/Utils.py: set the cell renderers to a fixed size to improve performance * src/gramps_main.py: prevent double loading of place_view svn: r1931 --- gramps2/src/ListModel.py | 1 + gramps2/src/PlaceView.py | 1 + gramps2/src/SourceView.py | 1 + gramps2/src/Sources.py | 1 + gramps2/src/Utils.py | 1 + gramps2/src/gramps_main.py | 7 +++---- 6 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gramps2/src/ListModel.py b/gramps2/src/ListModel.py index d4b41a093..cee83aa5b 100644 --- a/gramps2/src/ListModel.py +++ b/gramps2/src/ListModel.py @@ -45,6 +45,7 @@ class ListModel: cnum = 0 for name in dlist: renderer = gtk.CellRendererText() + renderer.set_fixed_height_from_font(1) column = gtk.TreeViewColumn(name[0],renderer,text=cnum) column.set_min_width(name[2]) if name[0] == '': diff --git a/gramps2/src/PlaceView.py b/gramps2/src/PlaceView.py index 1d1f55f24..bbdfcbfa8 100644 --- a/gramps2/src/PlaceView.py +++ b/gramps2/src/PlaceView.py @@ -70,6 +70,7 @@ class PlaceView: colno = 0 for title in self.column_headers: renderer = gtk.CellRendererText () + renderer.set_fixed_height_from_font(1) column = gtk.TreeViewColumn (title[0], renderer, text=colno) colno = colno + 1 column.set_clickable (gtk.TRUE) diff --git a/gramps2/src/SourceView.py b/gramps2/src/SourceView.py index 6ae15830c..68e98c72d 100644 --- a/gramps2/src/SourceView.py +++ b/gramps2/src/SourceView.py @@ -70,6 +70,7 @@ class SourceView: for title in self.column_headers: renderer = gtk.CellRendererText () + renderer.set_fixed_height_from_font(1) column = gtk.TreeViewColumn (title[0], renderer, text=colno) colno = colno + 1 column.set_clickable (gtk.TRUE) diff --git a/gramps2/src/Sources.py b/gramps2/src/Sources.py index e88fdf73c..bee3947af 100644 --- a/gramps2/src/Sources.py +++ b/gramps2/src/Sources.py @@ -76,6 +76,7 @@ class SourceSelector: colno = 0 for title in [ (_('ID'),0,100), (_('Title'),1,150)]: renderer = gtk.CellRendererText () + renderer.set_fixed_height_from_font(1) column = gtk.TreeViewColumn (title[0], renderer, text=colno) colno = colno + 1 column.set_clickable (gtk.TRUE) diff --git a/gramps2/src/Utils.py b/gramps2/src/Utils.py index 1c2783b40..356e82fdc 100644 --- a/gramps2/src/Utils.py +++ b/gramps2/src/Utils.py @@ -464,6 +464,7 @@ def build_columns(tree,list): cnum = 0 for name in list: renderer = gtk.CellRendererText() + renderer.set_fixed_height_from_font(1) column = gtk.TreeViewColumn(name[0],renderer,text=cnum) column.set_min_width(name[1]) if name[2] >= 0: diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index e679b71c7..3584672a0 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/src/gramps_main.py @@ -273,6 +273,7 @@ class Gramps: """Initializes the GLADE interface, and gets references to the widgets that it will need. """ + self.gtop = gtk.glade.XML(const.gladeFile, "gramps") self.topWindow = self.gtop.get_widget("gramps") @@ -1254,6 +1255,7 @@ class Gramps: self.topWindow.set_title("%s - GRAMPS" % name) self.status_text("") self.statusbar.set_progress_percentage(0.0) + self.statusbar.set_pulse_step(0.02) if os.path.exists(autosave): try: os.remove(autosave) @@ -1570,11 +1572,8 @@ class Gramps: self.status_text(_('Updating display - this may take a few seconds...')) else: self.status_text(_('Updating display...')) - if self.place_loaded == 0: - self.place_view.load_places() - self.place_loaded = 1 - self.modify_statusbar() self.views.set_current_page(4) + self.modify_statusbar() def on_media_activate(self,obj): """Switches to the media view"""