3498: Fix bug and enable show all checkbox in selector

svn: r13969
This commit is contained in:
Nick Hall 2010-01-04 18:44:51 +00:00
parent c7cebc637f
commit 6872ce1b33
3 changed files with 3 additions and 3 deletions

View File

@ -592,7 +592,7 @@ class GuiFamilyOption(gtk.HBox):
sel = select_class(self.__dbstate, self.__uistate, self.__track,
filter=rfilter )
family = sel.run()
self.__update_family(family)
self.__update_family(family.get_handle())
def __update_family(self, handle):
"""

View File

@ -110,8 +110,9 @@ class BaseSelector(ManagedWindow.ManagedWindow):
self.show()
#show or hide search bar?
self.set_show_search_bar(show_search_bar)
#Hide showall always (used in person selector only)
#Hide showall if no filter is specified
if self.filter[1] is not None:
self.showall.connect('toggled', self.show_toggle)
self.showall.show()
else:
self.showall.hide()

View File

@ -62,7 +62,6 @@ class SelectPerson(BaseSelector):
self.width_key = 'interface.person-sel-width'
self.height_key = 'interface.person-sel-height'
self.tree.connect('key-press-event', self._key_press)
self.showall.connect('toggled',self.show_toggle)
def get_window_title(self):
return _("Select Person")