fixed clearing of combobox
svn: r6707
This commit is contained in:
parent
53af71ae34
commit
52c8e1752e
@ -73,7 +73,7 @@ class PersonSidebarFilter(SidebarFilter):
|
|||||||
self.filter_death.set_text('')
|
self.filter_death.set_text('')
|
||||||
self.filter_note.set_text('')
|
self.filter_note.set_text('')
|
||||||
self.filter_gender.set_active(0)
|
self.filter_gender.set_active(0)
|
||||||
self.etype.set_text('')
|
self.etype.child.set_text('')
|
||||||
|
|
||||||
def clicked(self, obj):
|
def clicked(self, obj):
|
||||||
self.clicked_func()
|
self.clicked_func()
|
||||||
|
@ -71,7 +71,6 @@ 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
|
||||||
@ -108,6 +107,9 @@ 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user