Re: How to use the GnomeAppBar
- From: Travis Miller <raphtee gmail com>
- To: Richard Boaz <riboaz xs4all nl>
- Cc: gtk-list gnome org
- Subject: Re: How to use the GnomeAppBar
- Date: Sun, 15 Jan 2006 01:31:04 -0500
Richard,
Thanks for the help. That made it work perfectly. I guess I still have a lot to learn about gtk_main().
Travis Miller
On 1/13/06, Richard Boaz <riboaz xs4all nl> wrote:
hi,
every time in your code where the progress bar should be updated, execute
the following code:
while (gtk_events_pending())
gtk_main_iteration();
this will force the events generated by your call to update the progress
bar to be processed by the main loop, thus updating the screen.
beware: this will process all main loop events. if your processing code
in the background generates its own events to be processed by the main
loop, they will get processed as well.
if you do generate other events during your processing that should not be
processed by the main loop until your code has completed, you need to
instantiate a new main_loop() that will be responsible for only processing
the progress bar update events.
cheers,
richard
> I've been using GTK+ for a short time now, and I'm still trying to figure
> out some of the little things. (So far I've found this to be an excellent
> source of great information so thanks to everyone who has helped me in the
> past). Anyway, I added a GnomeAppBar at the bottom of my app because I
> wanted to use its progressbar (GtkProgressBar *). So when I call
> gtk_progress_bar_set_fraction() in a loop, nothing happens (that I can
> see). Basicly all I end up seing is the last call to
> gtk_progress_bar_set_fraction(). Am I required to make some call to force
> it to update on each call inside the while loop?
>
> Thanks for any help,
> Travis Miller
> _______________________________________________
> gtk-list mailing list
>
gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]