Alessandro Re wrote:

Hi everyone, my first message here.

Well im trying to make a screenmate engine with gdk.
All what i've to do is this:
1. Load a GIF in a PixbufAnimation
2. Retrive the actual frame
3. Display it on the GdkWindow (as a background pixmap)
4. Changing the shape of the window (using shape_combine_mask) to display that image
5. Loop this until the animation is finished

Well, my problem is this: i can load each frame and change the shape of the window for 
each frame, but when i draw the pixmaps on the window this isn't updated. If i stop 
the animation then i raise another window on the one i'm using, then i return the 
screenmate's window on the top, i can see the pixmap updated.

I tried to call clear(), clear_area_e(), invalidate_rect() and process_updates(), but 
nothing changed

Actually i dont know what to do to solve this problem :( can someone help me, please?

TIf you wanna take a look, the source code i'm referring to (with 2 example gif) is 
here:
http://akiross.hopto.org/other/loger/loger-devel.tar

I'm sorry, it's bad and confused code (and don't use classes), but i'm just doing some try before the final version.


I think you need to call clear() after calling set_back_pixmap() in display()

John

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to