Redrawing drawing area from main loop timer



Hi

I'm trying to redraw periodically a drawing area from the main loop
using g_timer_add. In the GSourceFunc i tried to emit a signal to
my drawing area :

gboolean increment_angle(gpointer darea)
{
   angle += M_PI/100;
   g_signal_emit_by_name(GTK_WIDGET(darea), "expose-event", &angle);
   return TRUE;
}

The following error occurs :

(gdb) run
Starting program: /home/jerome/src/cairo/draw/draw
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1217390912 (LWP 5075)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1217390912 (LWP 5075)]
0xb79e9650 in g_slice_alloc () from /usr/lib/libglib-2.0.so.0
(gdb) quit

Problem with threads ?
Can someone help me ?

Thanks
Jerome


        

        
                
___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]