[Glade-users] why expose_event made cpu so busy in glade?



There are some examples in <<Developing Linux Applications with GTK+ AND
GDK>> written
by Eric Harlow.Now I want to use glade to realize the clock example,and
I had made it.
but I have some questions.

1.
when it is executing, I found mouse moved very very slowly.If I coverd
the drawingarea part with xterm,mouse moved well.
so I think expose_event made cpu busy .
Is there any way to solve it?

2.
now in my callback.c,poping  a togglebutton down will call
gtk_timeout_add(1000,repaint,drawingarea),
at the end of  repaint ,there is
gtk_widget_draw(drawingarea,&update_rect)----
 will it call configure_event to configure the drawing area?
thank you in advance.











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