drawing graphics



Hello
My app uses a GtkDrawingArea to display some data (lines & texts)  drawn
with gdk drawing primitives.
the main drawing function is linked with the expose_event of my drawing area

  gtk_signal_connect (GTK_OBJECT (drawingarea1), "expose_event",
  		GTK_SIGNAL_FUNC(DrawData),this);

thus my system is not very effective and my function is called for each
refresh request...
what would be the most effective solution ?
 or where could i put the draw code so that it could be called only once ?
maybe i should use something else rather than drawing area???
(btw: my drawing function reads a hard drive file that s why i would avoid
to call it so much)
does someone have an idea to improve my app ?
thanks

regards



*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite. 
Tout message electronique est susceptible d'alteration. 
SG Asset Management et ses filiales declinent toute responsabilite au titre
de ce message s'il a ete altere, deforme ou falsifie.

Decouvrez l'offre et les services de SG Asset Management sur le site
www.sgam.fr 

				********

This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration.   
Neither SG Asset Management nor any of its subsidiaries or affiliates shall
be liable for the message if altered, changed or falsified. 

*************************************************************************






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