From 0f445d124a99c7cb853dff3d35e2509eee2b7788 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 3 Dec 2006 00:23:59 +0000 Subject: [PATCH] * src/Filters/SideBar/*SidebarFilter.py: Busy cursor when filtering. svn: r7751 --- ChangeLog | 1 + src/Filters/SideBar/_EventSidebarFilter.py | 3 --- src/Filters/SideBar/_FamilySidebarFilter.py | 3 --- src/Filters/SideBar/_MediaSidebarFilter.py | 3 --- src/Filters/SideBar/_PersonSidebarFilter.py | 3 --- src/Filters/SideBar/_PlaceSidebarFilter.py | 3 --- src/Filters/SideBar/_RepoSidebarFilter.py | 3 --- src/Filters/SideBar/_SidebarFilter.py | 6 ++++++ src/Filters/SideBar/_SourceSidebarFilter.py | 3 --- 9 files changed, 7 insertions(+), 21 deletions(-) diff --git a/ChangeLog b/ChangeLog index d8b853b50..834d43bb5 100644 --- a/ChangeLog +++ b/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/src/Filters/SideBar/_EventSidebarFilter.py b/src/Filters/SideBar/_EventSidebarFilter.py index 1d217f6a3..3c3466c4b 100644 --- a/src/Filters/SideBar/_EventSidebarFilter.py +++ b/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/src/Filters/SideBar/_FamilySidebarFilter.py b/src/Filters/SideBar/_FamilySidebarFilter.py index ceca1ab99..85c981bd4 100644 --- a/src/Filters/SideBar/_FamilySidebarFilter.py +++ b/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/src/Filters/SideBar/_MediaSidebarFilter.py b/src/Filters/SideBar/_MediaSidebarFilter.py index a4b579bb6..12bc0db45 100644 --- a/src/Filters/SideBar/_MediaSidebarFilter.py +++ b/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/src/Filters/SideBar/_PersonSidebarFilter.py b/src/Filters/SideBar/_PersonSidebarFilter.py index 6dd3e661a..b9d4c6b75 100644 --- a/src/Filters/SideBar/_PersonSidebarFilter.py +++ b/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/src/Filters/SideBar/_PlaceSidebarFilter.py b/src/Filters/SideBar/_PlaceSidebarFilter.py index 9ef043cdd..17b780170 100644 --- a/src/Filters/SideBar/_PlaceSidebarFilter.py +++ b/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/src/Filters/SideBar/_RepoSidebarFilter.py b/src/Filters/SideBar/_RepoSidebarFilter.py index c7667d4ae..6d7afda20 100644 --- a/src/Filters/SideBar/_RepoSidebarFilter.py +++ b/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/src/Filters/SideBar/_SidebarFilter.py b/src/Filters/SideBar/_SidebarFilter.py index 2acc5e396..bd27c359e 100644 --- a/src/Filters/SideBar/_SidebarFilter.py +++ b/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/src/Filters/SideBar/_SourceSidebarFilter.py b/src/Filters/SideBar/_SourceSidebarFilter.py index d1724c8b8..17c10685e 100644 --- a/src/Filters/SideBar/_SourceSidebarFilter.py +++ b/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()