From fa1e30080c273fb82cd27fe1e5501cdf71360d75 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sat, 22 Mar 2008 15:39:33 +0000 Subject: [PATCH] 0001937: Don't know GTK color ! Changes make this warning appear less, so partially resolved svn: r10375 --- src/DataViews/PersonView.py | 1 - src/PageView.py | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/DataViews/PersonView.py b/src/DataViews/PersonView.py index 206e9a837..60afebb86 100644 --- a/src/DataViews/PersonView.py +++ b/src/DataViews/PersonView.py @@ -419,7 +419,6 @@ class PersonView(PageView.PersonNavView): is no need to store the database, since we will get the value from self.state.db """ - self.build_columns() self.setup_filter() self.db = db db.connect('person-add', self.person_added) diff --git a/src/PageView.py b/src/PageView.py index 91351d332..dc733fe7f 100644 --- a/src/PageView.py +++ b/src/PageView.py @@ -801,7 +801,7 @@ class ListView(BookMarkView): # set the search column to be the sorted column search_col = self.column_order()[data][1] self.list.set_search_column(search_col) - + def build_columns(self): for column in self.columns: self.list.remove_column(column) @@ -830,7 +830,6 @@ class ListView(BookMarkView): def build_tree(self): if self.active: - if Config.get(Config.FILTER): filter_info = (True, self.generic_filter) else: @@ -839,6 +838,7 @@ class ListView(BookMarkView): self.model = self.make_model(self.dbstate.db, self.sort_col, search=filter_info) self.list.set_model(self.model) + self.build_columns() if const.USE_TIPS and self.model.tooltip_column != None: self.tooltips = TreeTips.TreeTips( @@ -881,8 +881,6 @@ class ListView(BookMarkView): def change_db(self, db): for sig in self.signal_map: db.connect(sig, self.signal_map[sig]) - - self.build_columns() self.bookmarks.update_bookmarks(self.get_bookmarks()) if self.active: self.build_tree()