backout accidental checkin
svn: r6708
This commit is contained in:
parent
52c8e1752e
commit
e358e6350e
@ -71,6 +71,7 @@ class PageView:
|
|||||||
self.additional_uis = []
|
self.additional_uis = []
|
||||||
self.widget = None
|
self.widget = None
|
||||||
self.ui = '<ui></ui>'
|
self.ui = '<ui></ui>'
|
||||||
|
self.dbstate.connect('no-database',self.disable_action_group)
|
||||||
self.dbstate.connect('database-changed',self.enable_action_group)
|
self.dbstate.connect('database-changed',self.enable_action_group)
|
||||||
self.dirty = True
|
self.dirty = True
|
||||||
self.active = False
|
self.active = False
|
||||||
@ -107,14 +108,14 @@ class PageView:
|
|||||||
if self.action_group:
|
if self.action_group:
|
||||||
self.action_group.set_visible(False)
|
self.action_group.set_visible(False)
|
||||||
|
|
||||||
def disable_actions(self, obj):
|
|
||||||
self.disable_action_group()
|
|
||||||
|
|
||||||
def enable_action_group(self,obj):
|
def enable_action_group(self,obj):
|
||||||
if self.action_group:
|
if self.action_group:
|
||||||
self.action_group.set_visible(True)
|
self.action_group.set_visible(True)
|
||||||
|
|
||||||
def get_stock(self):
|
def get_stock(self):
|
||||||
|
try:
|
||||||
|
return gtk.STOCK_MEDIA_MISSING
|
||||||
|
except AttributeError:
|
||||||
return gtk.STOCK_MISSING_IMAGE
|
return gtk.STOCK_MISSING_IMAGE
|
||||||
|
|
||||||
def get_title(self):
|
def get_title(self):
|
||||||
@ -235,7 +236,7 @@ class BookMarkView(PageView):
|
|||||||
def enable_action_group(self, obj):
|
def enable_action_group(self, obj):
|
||||||
PageView.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)
|
PageView.disable_action_group(self)
|
||||||
|
|
||||||
def define_actions(self):
|
def define_actions(self):
|
||||||
@ -580,6 +581,7 @@ class ListView(BookMarkView):
|
|||||||
search=search)
|
search=search)
|
||||||
|
|
||||||
self.list.set_model(self.model)
|
self.list.set_model(self.model)
|
||||||
|
colmap = self.column_order()
|
||||||
|
|
||||||
if handle:
|
if handle:
|
||||||
path = self.model.on_get_path(handle)
|
path = self.model.on_get_path(handle)
|
||||||
|
Loading…
Reference in New Issue
Block a user