#8920 NORM 9.1.0: Activity bundle icons in Journal aren't colored correctly

Zarro Boogs per Child bugtracker at laptop.org
Sat Nov 1 18:20:45 EDT 2008


#8920: Activity bundle icons in Journal aren't colored correctly
------------------------+---------------------------------------------------
   Reporter:  Eben      |       Owner:  tomeu        
       Type:  defect    |      Status:  new          
   Priority:  normal    |   Milestone:  9.1.0        
  Component:  sugar     |     Version:  not specified
 Resolution:            |    Keywords:               
Next_action:  diagnose  |    Verified:  0            
  Blockedby:            |    Blocking:               
------------------------+---------------------------------------------------

Comment(by Eben):

 Heh, pressed submit a minute too soon.  I think I've answered the first
 half of my own question.  Digging into the icon class in sugar-toolkit [1]
 reveals that a "dumb" check is performed to detect SVGs:
 endswith('.svg').  So, a new question follows.  Do we:

  1. make the icon class smarter, checking for the DOCTYPE inside the file
 itself;
  2. make the code which copies to /tmp append '.svg' to the filename;
  3. fix whatever oddity requires copying to /tmp, rather than referencing
 the icon in the bundle;
  4. or all of the above?

 I'm open to suggestions.


 [1] http://dev.laptop.org/git?p=sugar-
 toolkit;a=blob;f=src/sugar/graphics/icon.py;h=37af1911f8a587df63f6d8f45b180b67ec388c9b;hb=HEAD#l247

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


More information about the Bugs mailing list