#4715 NORM Never A: Items added to view need to run through current search filter

Zarro Boogs per Child bugtracker at laptop.org
Thu Nov 8 14:16:18 EST 2007


#4715: Items added to view need to run through current search filter
---------------------+------------------------------------------------------
  Reporter:  Eben    |       Owner:  tomeu         
      Type:  defect  |      Status:  new           
  Priority:  normal  |   Milestone:  Never Assigned
 Component:  sugar   |     Version:                
Resolution:          |    Keywords:                
  Verified:  0       |  
---------------------+------------------------------------------------------

Comment(by tomeu):

 This should fix it:

 {{{
 diff --git a/shell/view/home/MeshBox.py b/shell/view/home/MeshBox.py
 index 696dc86..3943973 100644
 --- a/shell/view/home/MeshBox.py
 +++ b/shell/view/home/MeshBox.py
 @@ -509,6 +509,9 @@ class MeshBox(hippo.CanvasBox):
          icon = ActivityView(self._shell, activity_model)
          self._layout.add(icon)

 +        if hasattr(icon, 'set_filter'):
 +            icon.set_filter(self._query)
 +
          self._activities[activity_model.get_id()] = icon

      def _remove_activity(self, activity_model):
 @@ -521,6 +524,9 @@ class MeshBox(hippo.CanvasBox):
          icon = AccessPointView(ap_model, meshdev)
          self._layout.add(icon)

 +        if hasattr(icon, 'set_filter'):
 +            icon.set_filter(self._query)
 +
          self._access_points[ap_model.get_id()] = icon

 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/4715#comment:1>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list