Re: forcing immediate redraw on widget



Am Mo, den 26.04.2004 schrieb Gus Koppel um 21:23:
Marc Santhoff wrote:

How can the immediate redraw of a widget be forced using GTK+ 1.2?

I think the following should work in GTK+ 1.2 and 2.x:

    gtk_widget_queue_draw (widget_to_redraw);
    while (gtk_events_pending ())
        gtk_main_iteration ();

Hi Gus!

Thank you for answering, although after testing this seems to be only
one half of the solution.

The other half would be to invalidate or mark the widget for redrawing,
so that there are events to process. Apparently changing the background
color on a widget (hscale in this case) does not do it.

Any further hints?

Many thanks,
Marc





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