Re: Pictureproblem



On Sun, 2003-11-09 at 04:54, Christian Schneider wrote:
gboolean drawingarea_expose_event (...)
{
...
pixbufdrawingareadarstellung (..., picture1, ...);
sleep (3000);
pixbufdrawingareadarstellung (..., picture2, ...);
...
}

But if I start my program I will only see picture2
after 3 seconds.
I think I know why this occur. But I don't know how to
solve my problem.

Try gdk_flush () .

Plus, you shouldn't be using sleep.  Use gtk_timeout_add ().




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