Re: Call a function after showing something in a DrawingArea



Hi Christoph,

On 1/4/06, Christoph Bersch <bersch uni-muenster de> wrote:
Great, this seems to work :-)

Good!

I thought, that a call of gtk_widget_draw() might be better than
gtk_widget_queue_draw_area(), as it draws immediately, although it is
deprecated.

So how could a call of gtk_widget_draw() be replaced in new code (I
don't fully understand the part belonging to this function in the
documentation). Could it be something like

gdk_window_invalidate_rect ();
gdk_window_process_updates ();
?

You could do somethiing that, but it is more complicated and might
well finish being slower than just calling _queue_draw().

I would do some benchmarks and only even think about some hack like
that if _queue_draw() is unacceptably slow (which it shouldn't be ...
probably).

J



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