Re: [clutter] Segmentation fault with get_pixbuf

2010-02-21 Thread Emmanuele Bassi
On Sat, 2010-02-20 at 17:59 -0800, Saumitra Buragohain wrote:
 Hi Emmanuele,
 I'm using  
 
 libclutter-0.8.0

clutter_texture_get_pixbuf() and clutter_texture_set_pixbuf() were
removed from clutter in the 0.7 cycle.

 python-clutter  0.6.2-1gutsy1

pyclutter 0.6 was binding the clutter 0.6 API, that's why it's not
working.

you should *not* be using any of these versions, though; clutter 1.0 and
pyclutter 1.0 are the stable releases for clutter.

 
 __
 From: Emmanuele Bassi eba...@linux.intel.com
 To: clutter@o-hand.com
 Sent: Sat, February 20, 2010 7:49:56 AM
 Subject: Re: [clutter] Segmentation fault with get_pixbuf
 
 On Fri, 2010-02-19 at 19:17 -0800, Saumitra Buragohain wrote:
  I'm using texture.get_pixbuf() and am getting segmentation faults.
 Any
  idea where the problem can be?
  -S
 
 how are you using a function that doesn't exist any more?
 
 which version of Clutter and PyClutter are you using?
 
 ciao,
 Emmanuele.
 
 -- 
 Emmanuele Bassi, Open Source Software Engineer
 Intel Open Source Technology Center
 
 -- 
 To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
 
 

-- 
Emmanuele Bassi, Open Source Software Engineer
Intel Open Source Technology Center

-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com



[clutter] Segmentation fault with get_pixbuf

2010-02-19 Thread Saumitra Buragohain
I'm using texture.get_pixbuf() and am getting segmentation faults. Any idea 
where the problem can be?
-S

boxx:~/Desktop/0.1$ python
Python 2.5.2 (r252:60911, Jan 20 2010, 21:48:48)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type help, copyright, credits or license for more information.
 import clutter
 import gtk
 from clutter import cluttercairo
 stage = clutter.Stage()
 stage.fullscreen()
 stage.hide_cursor()
 (s_w, s_h) = stage.get_size()
 print %s %s_w
800
 print %s %s_h
600
 texture = clutter.Texture()
 src = themes/Gloxygen/background.png
 print %s %src
themes/Gloxygen/background.png
 pix_buf = gtk.gdk.pixbuf_new_from_file(src)
 texture.set_pixbuf(pix_buf)
True
 pixbuf1 = texture.get_pixbuf()
Segmentation fault
boxx:~/Desktop/0.1$