Re: Update progress bar without returning to main loop?



Foster Gareth wrote:

Also note that if I replace

gdk_window()->process_updates(false)

with

get_toplevel()->queue_redraw();
get_toplevel()->gdk_window()->process_updates(true);

I get a nice update of the entire window - just as I thought. This may slow down the operation too much if it is done often, however.


Aye, seeing as both methods will be in the example, then we are probably
safe to assume that the user can adapt the code to their requirements, I
made it clear (I hope) in the comments that one method would repaint, and
the other would give control back to gtk momentarilly.

Btw, anyone know where can I take a quick peek at how examples should be
formated (code-wise), I can't seem to find the gtkmm examples in amongst the
mingw/win32 installer files. Are they online somewhere?

Gaz
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

The only ones I know of are here Gaz: http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/index.html

Bob



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