Re: [gtkmm] Forcing redraw of window, without returning to main event loop




Daniel Evison wrote:

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...
So I think the complete solution could be...

do {
   gtk_main_iteration();
   }
while (gtk_events_pending());

so redraw will be called with no events pending.





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