#7904 LOW 9.1.0: Activities need to have their canvas shown before sugar calls read_file

Zarro Boogs per Child bugtracker at laptop.org
Sun Aug 10 23:41:51 EDT 2008


#7904: Activities need to have their canvas shown before sugar calls read_file
---------------------------+------------------------------------------------
 Reporter:  andresambrois  |         Owner:  marco             
     Type:  defect         |        Status:  new               
 Priority:  low            |     Milestone:  9.1.0             
Component:  sugar          |       Version:  Git as of bug date
 Keywords:                 |   Next_action:  never set         
 Verified:  0              |     Blockedby:                    
 Blocking:                 |  
---------------------------+------------------------------------------------
 sugar.activity.activity.py calls the activities read_file() in
 __canvas_map_cb, meaning they need their canvas to emit the 'map' signal
 before they can have their data from the datastore.
   This generates a chicken-egg problem as most activities will need that
 data to set up their UI when resuming from Journal. It can be hacked
 around by calling show() in your canvas before needing the data, but
 that's neither documented, nor pretty.

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


More information about the Bugs mailing list