[sugar] Applications without icons

Gonzalo Odiard godiard
Fri Aug 25 15:28:07 EDT 2006


Hello:
If i edit terminal.activity and add the line
show_launcher = yes
sugar don't start because IconItem.py not check name == None
I have tried to resolv this, but without luck.
If i do:
        def _create_icon(self, name, color, size):
                print name
                if name == None:
                        img = gtk.image_new_from_stock(
gtk.STOCK_MISSING_IMAGE,size)
                        return img.get_pixbuf()
have a error but i dont know why.
Outside of sugar this litle test work ok:
#!/usr/bin/env python
import gtk
w = gtk.Window()
w.connect("destroy", gtk.main_quit)
im = gtk.image_new_from_stock(gtk.STOCK_MISSING_IMAGE,2)
w.add(im)
w.show_all()
gtk.main()

Another test i do is
        def _create_icon(self, name, color, size):
                print name
                if name == None:
                        name = "stock-missing-image"
don work too.
I am doing anithing really stupid or is a problem with the sugar enviroment?
Gonzalo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.laptop.org/pipermail/sugar/attachments/20060825/546c6a3e/attachment-0001.html


More information about the Sugar-devel mailing list