[Bugs] #2817 UNSP: combobox.py should catch exception when icon fails to load

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Apr 28 21:04:04 EDT 2011


#2817: combobox.py should catch exception when icon fails to load
------------------------------------------+---------------------------------
    Reporter:  walter                     |          Owner:  erikos                     
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar-toolkit              |        Version:  Git as of bugdate          
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------
 I thought I had reported this before and I had fixed it in my local copy,
 but I cannot find the ticket.

 The Balloon activity has a broken icon svg file which is causing the
 append_item method in combobox.py to throw an exception and prevent Sugar
 from launching properly.

 pseudo patch:
 lines 116-117

 -    pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(
 -        file_name, width, height)

 +    try:
 +        pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(
 +                    file_name, width, height)
 +    except:
 +        pixbuf = None

 This happened when I installed the latest update to Sugar which apparently
 overwrote the patch I had applied earlier.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2817>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list