diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index d8b853b50..834d43bb5 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2006-12-02 Alex Roitman + * src/Filters/SideBar/*SidebarFilter.py: Busy cursor when filtering. * src/plugins/Check.py (check_repo_references): Add new check. 2006-12-01 Brian Matherly diff --git a/gramps2/src/Filters/SideBar/_EventSidebarFilter.py b/gramps2/src/Filters/SideBar/_EventSidebarFilter.py index 1d217f6a3..3c3466c4b 100644 --- a/gramps2/src/Filters/SideBar/_EventSidebarFilter.py +++ b/gramps2/src/Filters/SideBar/_EventSidebarFilter.py @@ -100,9 +100,6 @@ class EventSidebarFilter(SidebarFilter): self.etype.child.set_text('') self.generic.set_active(0) - def clicked(self, obj): - self.clicked_func() - def get_filter(self): gid = unicode(self.filter_id.get_text()).strip() desc = unicode(self.filter_desc.get_text()).strip() diff --git a/gramps2/src/Filters/SideBar/_FamilySidebarFilter.py b/gramps2/src/Filters/SideBar/_FamilySidebarFilter.py index ceca1ab99..85c981bd4 100644 --- a/gramps2/src/Filters/SideBar/_FamilySidebarFilter.py +++ b/gramps2/src/Filters/SideBar/_FamilySidebarFilter.py @@ -122,9 +122,6 @@ class FamilySidebarFilter(SidebarFilter): self.mtype.child.set_text('') self.generic.set_active(0) - def clicked(self, obj): - self.clicked_func() - def get_filter(self): gid = unicode(self.filter_id.get_text()).strip() father = unicode(self.filter_father.get_text()).strip() diff --git a/gramps2/src/Filters/SideBar/_MediaSidebarFilter.py b/gramps2/src/Filters/SideBar/_MediaSidebarFilter.py index a4b579bb6..12bc0db45 100644 --- a/gramps2/src/Filters/SideBar/_MediaSidebarFilter.py +++ b/gramps2/src/Filters/SideBar/_MediaSidebarFilter.py @@ -93,9 +93,6 @@ class MediaSidebarFilter(SidebarFilter): self.filter_note.set_text('') self.generic.set_active(0) - def clicked(self, obj): - self.clicked_func() - def get_filter(self): gid = unicode(self.filter_id.get_text()).strip() title = unicode(self.filter_title.get_text()).strip() diff --git a/gramps2/src/Filters/SideBar/_PersonSidebarFilter.py b/gramps2/src/Filters/SideBar/_PersonSidebarFilter.py index 6dd3e661a..b9d4c6b75 100644 --- a/gramps2/src/Filters/SideBar/_PersonSidebarFilter.py +++ b/gramps2/src/Filters/SideBar/_PersonSidebarFilter.py @@ -114,9 +114,6 @@ class PersonSidebarFilter(SidebarFilter): self.mtype.child.set_text('') self.generic.set_active(0) - def clicked(self, obj): - self.clicked_func() - def get_filter(self): name = unicode(self.filter_name.get_text()).strip() gid = unicode(self.filter_id.get_text()).strip() diff --git a/gramps2/src/Filters/SideBar/_PlaceSidebarFilter.py b/gramps2/src/Filters/SideBar/_PlaceSidebarFilter.py index 9ef043cdd..17b780170 100644 --- a/gramps2/src/Filters/SideBar/_PlaceSidebarFilter.py +++ b/gramps2/src/Filters/SideBar/_PlaceSidebarFilter.py @@ -102,9 +102,6 @@ class PlaceSidebarFilter(SidebarFilter): self.filter_note.set_text('') self.generic.set_active(0) - def clicked(self, obj): - self.clicked_func() - def get_filter(self): gid = unicode(self.filter_id.get_text()).strip() title = unicode(self.filter_title.get_text()).strip() diff --git a/gramps2/src/Filters/SideBar/_RepoSidebarFilter.py b/gramps2/src/Filters/SideBar/_RepoSidebarFilter.py index c7667d4ae..6d7afda20 100644 --- a/gramps2/src/Filters/SideBar/_RepoSidebarFilter.py +++ b/gramps2/src/Filters/SideBar/_RepoSidebarFilter.py @@ -100,9 +100,6 @@ class RepoSidebarFilter(SidebarFilter): self.filter_note.set_text('') self.generic.set_active(0) - def clicked(self, obj): - self.clicked_func() - def get_filter(self): gid = unicode(self.filter_id.get_text()).strip() title = unicode(self.filter_title.get_text()).strip() diff --git a/gramps2/src/Filters/SideBar/_SidebarFilter.py b/gramps2/src/Filters/SideBar/_SidebarFilter.py index 2acc5e396..bd27c359e 100644 --- a/gramps2/src/Filters/SideBar/_SidebarFilter.py +++ b/gramps2/src/Filters/SideBar/_SidebarFilter.py @@ -37,6 +37,7 @@ class SidebarFilter: self.table.set_col_spacing(1,6) self._init_interface() uistate.connect('filters-changed',self.on_filters_changed) + self.uistate = uistate def _init_interface(self): self.table.attach(GrampsWidgets.MarkupLabel(_('Filter')), @@ -80,6 +81,11 @@ class SidebarFilter: pass def clicked(self, obj): + self.uistate.set_busy_cursor(1) + self.clicked_func() + self.uistate.set_busy_cursor(0) + + def clicked_func(self): pass def get_filter(self): diff --git a/gramps2/src/Filters/SideBar/_SourceSidebarFilter.py b/gramps2/src/Filters/SideBar/_SourceSidebarFilter.py index d1724c8b8..17c10685e 100644 --- a/gramps2/src/Filters/SideBar/_SourceSidebarFilter.py +++ b/gramps2/src/Filters/SideBar/_SourceSidebarFilter.py @@ -89,9 +89,6 @@ class SourceSidebarFilter(SidebarFilter): self.filter_note.set_text('') self.generic.set_active(0) - def clicked(self, obj): - self.clicked_func() - def get_filter(self): gid = unicode(self.filter_id.get_text()).strip() title = unicode(self.filter_title.get_text()).strip()