fixed clearing of combobox

svn: r6707
This commit is contained in:
Don Allingham 2006-05-18 14:30:41 +00:00
parent 53af71ae34
commit 52c8e1752e
2 changed files with 4 additions and 2 deletions

View File

@ -73,7 +73,7 @@ class PersonSidebarFilter(SidebarFilter):
self.filter_death.set_text('')
self.filter_note.set_text('')
self.filter_gender.set_active(0)
self.etype.set_text('')
self.etype.child.set_text('')
def clicked(self, obj):
self.clicked_func()

View File

@ -71,7 +71,6 @@ class PageView:
self.additional_uis = []
self.widget = None
self.ui = '<ui></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
@ -108,6 +107,9 @@ 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)