On Wed, 2007-07-11 at 23:38 +1000, Josh Stewart wrote:
> Been playing a little more and discovered a potentially related
> problem that causes an immediate seg fault. If I create a class and
> init is as below:
> class MenuSelector(clutter.Texture):
> 
>     def __init__ (self):
>         pixbuf = gtk.gdk.pixbuf_new_from_file("ui/active_bar.png")
>         self.set_pixbuf(pixbuf)
> 
> The app will segfault immediately if an instance of the class is
> created.

this is wrong. a class should be created with:

  class Foo (clutter.Texture):
      def __init__ (self):
          clutter.Texture.__init__ (self)

in order to correctly chain up the constructor.

> Like I said, not sure if this is a related problem, but thought it
> might be useful feedback.

can you try changing the constructor and test again?

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, OpenedHand Ltd.
Unit R, Homesdale Business Centre
216-218 Homesdale Rd., Bromley - BR12QZ
http://www.o-hand.com

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to