Drawing dinamically



Hi,

I am having some problems trying to draw things in a GtkDrawingArea

I have a function that's called from a handler, this function loops for a while
making some calculations related to the program, and inside the loop i have a
gdk_draw_rectangle(), to draw in the drawing area, but when i run the program it
executes all the loop and after it, all the drawings are drawn.

How can I do to draw in the darea from inside my loop and make it appears in the
screen while it is looping?

------ BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU d-(?) s+:- a--- C++(+++)>$ UBL++>$ P+ L++>$ !E W++ N? o? K? w- O- M- V- PS
PE+(++) Y? PGP- t S? X? R+ tv- b+ DI? D- G++ e- h! r- y?
------ END GEEK CODE BLOCK ------

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




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