Re: color "scribble-simple" eats up all memory & crashes



La plume légère, à Tue, Feb 13, 2001 at 06:45:31PM -0500, heure d'inspiration,
Havoc Pennington écrivait en ces mots:
You're leaking the graphics context, you have to free it. Also you
want to use gtk_widget_queue_draw(), not gtk_widget_draw() for
efficiency.

Havoc

Regarding gtk_widget_queue_draw, I have tried to use it with a drawing area
having a backpixmap in its gdkwindow, and the gdkwindow is not updated when
it is called. I know this is a hack (for speed, and to avoid flickering) but
is there an explanation for this ?


Wolfgang
-- 
A chicken is an egg's way of producing more eggs.




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