Re: drawing in a for-loop
- From: Dave Benson <daveb idealab com>
- To: Richard Stellingwerff <remenic gmail com>
- Cc: gtk-list gnome org
- Subject: Re: drawing in a for-loop
- Date: Thu, 24 Feb 2005 14:40:10 -0800
On Thu, Feb 24, 2005 at 11:31:10PM +0100, Richard Stellingwerff wrote:
> Ian Strascina wrote:
> >Don't worry, everything is defined, signals connected to the callbacks,
> >etc... I just want to know why this logic doesn't refresh the display
> >after each iteration... Please help... Thanks...
>
> This is my take...
>
> gtk_widget_queue_draw_area() queues a redraw, which will then be
> performed when the main loop is idle. Since the for loop keeps the main
> loop busy, the redraw event is not processed until that loop finishes.
>
> I suppose you could try a g_timeout_add() instead, if it's really that
> important?
or gdk_window_process_all_updates(), which reenters the main-loop i believe.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]