From e941b78fa9f2830d55d4c16d496e6b608e121ad6 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 18 May 2006 14:37:24 +0000 Subject: [PATCH] backout accidental checkin svn: r6708 --- gramps2/src/PageView.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gramps2/src/PageView.py b/gramps2/src/PageView.py index b71064397..586e3206d 100644 --- a/gramps2/src/PageView.py +++ b/gramps2/src/PageView.py @@ -71,6 +71,7 @@ class PageView: self.additional_uis = [] self.widget = None self.ui = '' + self.dbstate.connect('no-database',self.disable_action_group) self.dbstate.connect('database-changed',self.enable_action_group) self.dirty = True self.active = False @@ -107,15 +108,15 @@ class PageView: if self.action_group: self.action_group.set_visible(False) - def disable_actions(self, obj): - self.disable_action_group() - def enable_action_group(self,obj): if self.action_group: self.action_group.set_visible(True) def get_stock(self): - return gtk.STOCK_MISSING_IMAGE + try: + return gtk.STOCK_MEDIA_MISSING + except AttributeError: + return gtk.STOCK_MISSING_IMAGE def get_title(self): return self.title @@ -235,7 +236,7 @@ class BookMarkView(PageView): def enable_action_group(self, obj): PageView.enable_action_group(self, obj) - def disable_action_group(self): + def disable_action_group(self, obj): PageView.disable_action_group(self) def define_actions(self): @@ -580,6 +581,7 @@ class ListView(BookMarkView): search=search) self.list.set_model(self.model) + colmap = self.column_order() if handle: path = self.model.on_get_path(handle)