Re: [gtkmm] Forcing redraw of window, without returning to main event loop
- From: "Daniel Evison" <devison pacificit co nz>
- To: "gtkmm mailing list" <gtkmm-list gnome org>, "Paul Davis" <pbd op net>
- Subject: Re: [gtkmm] Forcing redraw of window, without returning to main event loop
- Date: Thu, 1 Aug 2002 03:14:12 +1200
Well actually the single call of gtk_main_iteration didn't work for me, but
with the while loop it did! I guess that there are multiple events to be
handled (including a number of redraw events) and the loop is necessary...
thanks for your help,
Dan
p.s. it seems to work OK on TreeViews too, but I will be aware of potential
problems.
> it can be done, but on the gtk-list there was some discussion that
> suggests that for the TreeView code this is a bad idea. ymmv.
>
> gtk_main_iteration()
>
> can be called anywhere, and will cycle through the update part of
> GTK+'s event loop once. do not use:
>
> while (gtk_events_pending()) {
> gtk_main_iteration();
> }
>
> since this probably won't work: the conditional looks for new
> user-driven events (e.g. from X), not for queued redraw requests.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]