RE: draw line in gtk



On Mon, 10 May 2004, manu aradhya wrote:
when u set callback to expose event,this callback is
contineously called,which eats cpu time.if set a
pixmap ,it refreshes(expose event is called) only when
somthing  is written on the drawing area.
Hello Manu!
The expose-callback will only be called when the widget was (at least
partially) covered by another window or if it was minimized and is now
shown again. When you have redrawn the widgets contents it will not be
called again until the widget is covered and exposed again or you
explicitely tell GTK to redraw it. When your callback gets called in an
endless loop without any good reason then you're doing something terribly
wrong.

Regards,
                     Peter
-- 
====================================================================
Peter Krüger

applied software solutions (appss) GmbH
Sandtorstr. 23
D-39106 Magdeburg
Germany

Phone:  +49-(0)391-54486-19388
Fax:    +49-(0)391-54486-19222
email:  krueger appss de
URL:    http://www.appss.de/

Managing Director: Uwe Hess, Dietmar Schäfer
Register: HRB12386, AG Magdeburg

"Virtual business becomes reality!"

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
====================================================================




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