3498: Fix bug and enable show all checkbox in selector
svn: r13969
This commit is contained in:
parent
c7cebc637f
commit
6872ce1b33
@ -592,7 +592,7 @@ class GuiFamilyOption(gtk.HBox):
|
|||||||
sel = select_class(self.__dbstate, self.__uistate, self.__track,
|
sel = select_class(self.__dbstate, self.__uistate, self.__track,
|
||||||
filter=rfilter )
|
filter=rfilter )
|
||||||
family = sel.run()
|
family = sel.run()
|
||||||
self.__update_family(family)
|
self.__update_family(family.get_handle())
|
||||||
|
|
||||||
def __update_family(self, handle):
|
def __update_family(self, handle):
|
||||||
"""
|
"""
|
||||||
|
@ -110,8 +110,9 @@ class BaseSelector(ManagedWindow.ManagedWindow):
|
|||||||
self.show()
|
self.show()
|
||||||
#show or hide search bar?
|
#show or hide search bar?
|
||||||
self.set_show_search_bar(show_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:
|
if self.filter[1] is not None:
|
||||||
|
self.showall.connect('toggled', self.show_toggle)
|
||||||
self.showall.show()
|
self.showall.show()
|
||||||
else:
|
else:
|
||||||
self.showall.hide()
|
self.showall.hide()
|
||||||
|
@ -62,7 +62,6 @@ class SelectPerson(BaseSelector):
|
|||||||
self.width_key = 'interface.person-sel-width'
|
self.width_key = 'interface.person-sel-width'
|
||||||
self.height_key = 'interface.person-sel-height'
|
self.height_key = 'interface.person-sel-height'
|
||||||
self.tree.connect('key-press-event', self._key_press)
|
self.tree.connect('key-press-event', self._key_press)
|
||||||
self.showall.connect('toggled',self.show_toggle)
|
|
||||||
|
|
||||||
def get_window_title(self):
|
def get_window_title(self):
|
||||||
return _("Select Person")
|
return _("Select Person")
|
||||||
|
Loading…
Reference in New Issue
Block a user